Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Sankozi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
181.
▲
by
Sankozi
4y ago
I agree completely. When I first heard about NoSQL I thought some databases were finally introducing some replacement for abominable SQL. But no, they were just creating schemaless databases.
182.
▲
by
Sankozi
4y ago
> Is XML better than JSON? For longterm stability sure. A quick config file? Nope. I have an opposite opinion. JSON is great solution for a protocol or serialization format, better than XML (JSON is faster, smaller, safer, easier to unde
183.
▲
by
Sankozi
4y ago
"consider the set of numbers that cannot be described using any finite collection of symbols" - isn't that set empty? If "numbers" mean "real numbers" then I can describe easily "smallest positive num
184.
▲
by
Sankozi
4y ago
Why would it always look normal? Different IP, different usage patterns could trigger the alert.
185.
▲
by
Sankozi
4y ago
There is ArchUnit - https://www.archunit.org/
186.
▲
by
Sankozi
4y ago
Null terminated string is probably the worst data structure that was invented. It is has caused numerous security problems. It takes worst performance characteristics from array and linked lists (slow resizing, slow indexing). It definitely
187.
▲
by
Sankozi
4y ago
Comparing artists that could make record sales earlier to all current streaming artists is comparing apples to oranges. I agree that Spotify's revenue split is not perfect (it is in fact worse than what you described), but it is still
188.
▲
by
Sankozi
4y ago
When considering revenue of 1999 as 100% CD sale and 2021 as 100% streaming we got something like (in inflation adjusted $bn). (1999) 40% of 23.7 = 9.48 (2021) 70% of 14.9 = 10.43 So while gaming got much more popular during that time, musi
189.
▲
by
Sankozi
4y ago
That is not Spotify's fault. It is a deal made by artists that splits revenue between them and producer, record label etc. 70% of Spotify's revenue is to be split that way compared to ~40% of revenue of CD sales.
190.
▲
by
Sankozi
4y ago
70% percent of Spotify revenue goes to the artists (content owners to be precise), I doubt that was the case when you bought a CD (I have found numbers closer to 40%). It is not abysmal, revenue never seemed to be better.
191.
▲
by
Sankozi
4y ago
It was not debunked and it is not only ethical basis for the mandate (not overloading healthcare providers is also important). The only thing that was "debunked" were ridiculous statements like "vaccine prevents transmission
192.
▲
by
Sankozi
4y ago
It is quite slow compared to other cities with metro I visited. I think mainly due to too many stops. On some parts I got impression than metro platforms take more than 30% of the line fragment which is ridiculous.
193.
▲
by
Sankozi
4y ago
In most programming languages JS style APIs (i.e. give me anything and I will try to interpret it somehow in an undocumented or poorly documented way) are antipatterns. TS is often bringing sanity to libraries that switch from JS to TS. I t
194.
▲
by
Sankozi
4y ago
If static method behaves like a function I see very little reason for mocking. Do people mock also calls to complex constructors (which are too static methods)? I think some people put unit testing to the extreme by not wanting to test logi
195.
▲
by
Sankozi
4y ago
They are hard to test only if they are not functions and access some global mutable state. In vast majority of cases static methods are functions and are easier to test than normal methods, because you do not need to initialize object.
196.
▲
by
Sankozi
4y ago
Before flex and grid CSS had most complex, least friendly and (probably) least powerful layout definition system compared to everything I knew. Creating unecessary elements just to trigger primitive CSS mechanisms was commonplace as was hav
197.
▲
by
Sankozi
4y ago
45% stat you linked seems like a proof for that claim. Violent crimes are rarer and much more investigated than non violent. Also it is 45% of reported violent crimes. So I would bet even majority of violent crimes is unsolved.
198.
▲
by
Sankozi
4y ago
"Environmental impact" formula is totally subjective and unscientific. You could easily create another one which would put mentioned bags in a different order. For example cotton bags critique often involves mentioning how much wa
199.
▲
by
Sankozi
4y ago
This does not seem to be a difficult problem. - bank can lend money to pay for the tax - collateral is big enough - if you cannot pay immediately, state can have share of your property - ownership could be transferred from the parent to the
200.
▲
by
Sankozi
4y ago
> They didn't ban leaf blowers, the banned _gas_ leaf blowers. Electric ones are quieter, inexpensive, and work just as well nowadays. While noise is an issue with gas blowers, the biggest issue with all kinds of blowers is how much
201.
▲
by
Sankozi
4y ago
According to the study opinion of 90% of Americans has no impact on goverment ( https://act.represent.us/sign/problempoll-fba/ ). Adding to it that the popular opinion itself is shaped by corporations I think focusi
202.
▲
by
Sankozi
4y ago
If contract says how many on call hours are per month then agree. Usually those hours are harder to predict compared to working hours so it is much easier to pay for them outside of typical monthly salary.
203.
▲
by
Sankozi
4y ago
Distribution problems you mention in Java are not handled by NPM at all and are not related to how you store dependencies (in Java). Not sure why you mention it. NPM dependency resolution is neither simpler nor faster compared to Maven. You
204.
▲
by
Sankozi
4y ago
It makes lots of queries (like find duplicate queries) much more complex without any benefit. Also it introduces completely unnecessary three value logic in SQL.
205.
▲
by
Sankozi
4y ago
The biggest failure of SQL joins is not using declared foreign keys. For example it should be something like "JOIN USING fk_invoice_customer c" instead of repeating each time the relationship between invoice and customer entries a
206.
▲
by
Sankozi
4y ago
const in C++ is more like Readonly from TypeScript - you cannot modify state of an object, but it still might be possible through other reference/pointer - you have to check source of that value to be sure
207.
▲
by
Sankozi
4y ago
Definition of data race on that page is very limited. Also on the same page "Data races are mostly prevented through Rust's ownership system".
208.
▲
by
Sankozi
4y ago
We need to tell that to people in Norway where 85% of new cars are plugin vehicles. Electric cars can run on average 100 km/h over 10 hours if you plan your trip well (and have a bit of luck with free spots on plugin stations). Apart f
209.
▲
by
Sankozi
4y ago
Observations after briefly checking the code: - KISS and YAGNI rules are broken frequently - abuse of inheritance that makes even trivial classes harder to read - some usage of boxed types feels incorrect, if null is meaningful it should at
210.
▲
by
Sankozi
4y ago
I think most of people does not want to eliminate suburbia as some kind of aim, they just want to stop subsidizing it and want to end its strange "you can't touch this" status. You can live in suburbs if you like, just don&#x
More ›