2,061 karma · joined May 24, 2009 (17y ago) · 911 submissions
comment 9y ago · link · parent
What repetition are you referring to?
comment 9y ago · link · parent
comment 9y ago · link · parent
But you're right, there are some forms of security that don't require obscurity. For voting systems though, I would categorize them as "cat and mouse" systems, which unfortunately fall into the obscurity category.
comment 9y ago · link · parent
If can model your database differently for this rudimentary example, then good for you – you're thinking about race conditions. Many web programmers do not think about them at all, and race conditions are usually not trivial to fix.
comment 9y ago · link · parent
Take a classic example: a one-time use coupon. Without some kind of locking, two simultaneous requests would be able to use the same coupon successfully. Roughly:
0.0s - [1] Client 1: Apply coupon
0.0s - [2] Client 2: Apply coupon
0.1s - [1] Server to database: Is coupon marked as used?
0.1s - [2] Server to database: Is coupon marked as used?
0.2s - [1] Database to server: Nope! All good.
0.2s - [2] Database to server: Nope! All good.*
* Since the question was asked for both requests at the same time, the answer was "Not used" in both cases. 0.3s - [1] Server to database: Update coupon as used.
0.3s - [2] Server to database: Update coupon as used.*
* Coupon has been used twice :(
Node's async model is not going to help you here. You will need something more, such as a mutex.comment 9y ago · link · parent
Here's another interesting concatenative language in development that I'm following: http://kittenlang.org/
comment 9y ago · link · parent
comment 9y ago · link · parent
See this article for more detail: https://jakearchibald.com/2016/fun-hacks-faster-content/
comment 9y ago · link · parent
comment 9y ago · link · parent
http://evincarofautumn.blogspot.com/2012/02/why-concatenativ...
comment 10y ago · link · parent
Most all web developers of that day were new to programming (experienced folk didn't take JS seriously), so naturally they did not know how to write well-designed software. The benefit of Backbone was not Backbone itself – it was the community push for thinking about code structure in general.