On Wed, 11 Dec 2019 02:54:09 GMT, selimozel wrote:
I am new to web development so there's a bit of a learning curve.
I was thinking about developing a QA web application like SO or Reddit. At that time vibed had problems connecting to remote MongoDB server. So I decided to go with the Flask.
One of the most challenging aspect of the coding was to decide what would happen if the user changes his mind after voting within 5 minutes. Let's say a user up voted for a post. And than changed his mind an decided to down vote. If the user doesn't changes his/her vote after 5 minutes, the vote would be saved to database. After 5 minutes passed, he would not be able to vote for the same post again. He will be able to change his vote within 5 minutes to whatever he wants.
I used threads to accomplish this.
It is a powerful feature of vibed that it allows to access functions from templates.
a.k.a Her dem Erdem