Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Demiurge
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
421.
▲
by
Demiurge
9y ago
And all everyone else is saying, constraint to all possible weird values and reject the junk. If you want free form text field, use that. Problem solved. Meanwhile numeric column is numeric only.
422.
▲
by
Demiurge
9y ago
Saying a feature of database that validates the data inside a database is dangerous is very much like saying seatbelts are dangerous because you can drawn. Anything can be misused, but there is a clear use case, because an ACID database pro
423.
▲
by
Demiurge
9y ago
>Of course you can. For example, constraints inside triggers. A simple insert trigger will only apply on records going forward. Or you can just expand the constraint to superset of two, or figure out how the old data needs to be treated
424.
▲
by
Demiurge
9y ago
It's not a defense. It doesn't absolve anyone of personal responsibility.
425.
▲
by
Demiurge
9y ago
The engineers in both cases are not essential to the outcomes. Engineers or craftsmen, or any other workers execute tasks put forth to them by society that gave them birth and education. Any person in the society has some influence, but cle
426.
▲
by
Demiurge
9y ago
Yes, there are a plethora of extremely talented musicians, of every genre who take music theory extremely seriously in order to reach top competitive level. If you look at any live performance of a pop star, most likely their band will incl
427.
▲
by
Demiurge
9y ago
I haven't thought about comparing React to jQuery, but I think that's good point. React is probably an equally important and ubiquitous stepping stone of a library for JS. Love it or hate it, its a new standard. Getting into it pr
428.
▲
by
Demiurge
9y ago
That sounds right, sleep is just the beginning of recovery from burnout. I can get pretty productive for some deadlines, working nonstop, but if there is too much to do, it can become painful to work or think, and the productivity can even
429.
▲
by
Demiurge
9y ago
This is a great article, that I think can also be useful from manager/supervisor point of view. I think 'mechanical' solutions can also help. I have been lucky that over the years when I felt like "slacking" instead
430.
▲
by
Demiurge
9y ago
I would give a lot for a discord, slack and irc integrated client!
431.
▲
by
Demiurge
9y ago
To further muddy things, it invokes the setter method on the object referenced by a local variable with a certain argument.
432.
▲
by
Demiurge
9y ago
Well, the idea is that I would have to store a variable and access it without races, so I would use an external storage library. This is pretty cool though, I've never used python threading for state, thanks a lot!
433.
▲
by
Demiurge
9y ago
correct
434.
▲
by
Demiurge
9y ago
> Add a middleware that stores the session object in a thread-local variable for the duration of that request This has come up many times, and I've never been able to figure out how to do this without something redis. Do you know an
435.
▲
by
Demiurge
9y ago
Can you give an example? It's a callback passed to the decorator implemented by the library. The library calls my callback with just the arguments it wants ;(
436.
▲
by
Demiurge
9y ago
That's a good point, I modified the object to which the variable was referring to (session), not the local variable itself.
437.
▲
by
Demiurge
9y ago
Oh yeah, the first time I monkey patched a method, it was an "aha" moment. I really understood the 'self' variable, and class as variable, and python just clicked all of a sudden for me.
438.
▲
by
Demiurge
9y ago
Abusing python can really save your life sometimes. I think my favorite recent hack has been accessing and MODIFYING callers variable, due to inability to get it passed through the Django module to the callback. def invite_accepted(send
439.
▲
by
Demiurge
9y ago
I know only one coworker who understands this concern. No one else seems to care, and the girl I am dating, who is quite technical, has been very suspicious and saddened by me not wanting to put up any pictures of us together. It was basica
440.
▲
by
Demiurge
9y ago
From the article you linked, "The term is commonly associated with war communism during the Russian Civil War when it was introduced by the Bolshevik government. However Bolsheviks borrowed the idea from the grain razvyorstka introduce
441.
▲
by
Demiurge
9y ago
It was the Tsar who took control of the Russian farm yields in order to supply the WW1 army, with strong encouragement of the British/Entente.
442.
▲
by
Demiurge
9y ago
The thing is that Google maps is so old and the api is so domain specific, it doesn't need to change. The data required is just maps.google.com/v2/<z>/<x>/<y>.png There are new things like vector t
443.
▲
by
Demiurge
9y ago
I actually tried to do that, but quickly realized there is no way I could follow the tree of forks. How is what you're saying practically possible?
444.
▲
by
Demiurge
9y ago
I tried to debug Go project once, and the moment I saw that, I was completely shocked that it was importing from github urls, without even tags, or versions as far as I could tell. It seems dangerous to rely on a for-profit host and individ
445.
▲
by
Demiurge
9y ago
That's a good example of Abad use of the feature. The logical check and assignment are obvious, and represent the same two operation that three or more nested operations in spread and combine end up causing implicitly. If I saw anyone
446.
▲
by
Demiurge
9y ago
I don't think anyone wants unregulated markets for everyone, just like no one really wants anarchy. There are criminal, or rebellious elements in every group, but co-beneficial arbitrage is what we've evolved to.
447.
▲
by
Demiurge
9y ago
Latency is more important than reliability for online gaming because the world state instantly gets stale. Instead of retransmit you want latest snapshot. I'd be curious to find out in what online games that is not the case.
448.
▲
by
Demiurge
9y ago
And yet, my abacus is even more secure ;-)
449.
▲
by
Demiurge
9y ago
I've been using Django + Django ORM for a decade, and it has covered vast majority of database usage. Entire applications written with zero SQL, and clean DRY code describing data and allowing to use it in the code. And yet other appli
450.
▲
by
Demiurge
9y ago
This type article of article has come up countless times before. Why not both? Using both, you let the ORM handle regular, boring CRUD, validation, repeatable exercises, and write tricky joins, aggregates, function calls that ORMs don'
More ›