Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ajuc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
691.
▲
by
ajuc
3y ago
Yup, would be nice. Also ternaty boolean operations, for example https://en.wikipedia.org/wiki/Three-valued_logic#%C5%81ukasi...
692.
▲
by
ajuc
3y ago
There's currently a big public debate in my country regarding relaxing building restrictions for wind turbines, and all the FUD about noise levels, killing birds etc is very much in use. Current law is so harsh that you can build a coa
693.
▲
by
ajuc
3y ago
> That the Russian Federation has a small fraction of US GDP but has launched more cruise missiles in a single conflict (~7500) than the US has ever produced (4000 tomahawks) is an important example of this. By their fruits you'll k
694.
▲
by
ajuc
3y ago
Yes, it's not population density that's important but the distribution of said population, and USA is more urbanized and clumped up than many European countries with much better train system than USA. The problem in USA is that th
695.
▲
by
ajuc
3y ago
https://aidungeon.com/
696.
▲
by
ajuc
3y ago
Yeah we have that too, but this is about evaporating it to make the air healthy to breathe. Different benefits compared to drinking. Here's more about the mechanism: https://en.wikipedia.org/wiki/Graduation_tower
697.
▲
by
ajuc
3y ago
There are health resorts here in Poland where the whole reason is for them to exist in these particular places is because air there has a lot of iodine and other minerals from sea salt. I've been to one in Kołobrzeg as a child because
698.
▲
by
ajuc
3y ago
Children in countries with high unemployement and low median salary have completely different motivation to learn math and pursue STEM career than children in countries in which you can do the bare minimum at school and expect a comfy life.
699.
▲
by
ajuc
3y ago
Poplation growth is slowing down everywhere, in the developed world (which uses the most energy and resources) it's been negative for some time. Currently there's about 8 billion people, and estimates predict it will stop at 10 bi
700.
▲
by
ajuc
3y ago
According to our best estimates we're already past the "peak children". World population growth has been slowing down for decades at this point, it will become negative in second half of this century. World hunger is not caus
701.
▲
by
ajuc
3y ago
It assumes 2.3% yearly exponential growth of energy consumption for 400 years while we know our population already passed peak growth and peak children number and will start to decrease in this century. It's just dumb.
702.
▲
by
ajuc
3y ago
It will be hard, for many places on Earth it will be catastrophic. Civilization won't end tho. Some of these estimates are absurd, which only makes the case for fighting climate change harder to make - same as overblown estimates of th
703.
▲
by
ajuc
3y ago
bash?
704.
▲
by
ajuc
3y ago
Eastern Europe adapted to this and also used mostly cavalry tactics, some countries all the way up to early 20th century. What works better (cavalry or infantry) mostly depends on population density, distances between population centers and
705.
▲
by
ajuc
3y ago
> You need the right terrain. Forests are not a good place for cavalry. Roads are needed to shift cavalry (and fodder) around. Bigger distances, lower population density and WORSE roads = cavalry is MORE useful. That's why Eastern E
706.
▲
by
ajuc
3y ago
It makes you optimize for different things which is why I prefer it to Factorio even if the tech and crafting tree is less developed.
707.
▲
by
ajuc
3y ago
Free will is a very useful heuristic that lets you quickly determine when to stop looking for the root cause of events that interest you. When a stone hits you - you want to attack the person that threw it at you and not the stone or that p
708.
▲
by
ajuc
3y ago
It's sad how people that don't understand computer science have the power to enforce such idiotic rules.
709.
▲
by
ajuc
3y ago
Avoiding the need to special-case empty input.
710.
▲
by
ajuc
3y ago
This invariant only works for 1-character needles. So no "Lorem Ipsum".indexOf("Ipsum") Which is the main purpose of this function. Also with your invariant types are different. Not "abc".indexOf("
711.
▲
by
ajuc
3y ago
The invariant is: haystack.substring(haystack.indexOf(needle), needle.length()) == needle And indexOf should return lowest such number. So it should return 0. LastIndexOf too, because the haystack is empty. For nonempty haystack i
712.
▲
by
ajuc
3y ago
Even before hearing about ECS I wanted some kind of in-game in-memory database for game objects (preferably with history) so I could write quests and dialogs conditions in general way. Like "If player seen this kind of a monster alread
713.
▲
by
ajuc
3y ago
> Any kind of logic that goes like "IF something(component 1) THEN doSomethingTo(component 2) ELSE doSomethingTo(component 3)" What's the problem here? You write a system that queries these 3 components and then call regul
714.
▲
by
ajuc
3y ago
Their company "Telegraf" got cheap credit from Bagsik just before.
715.
▲
by
ajuc
3y ago
> This was Chomsky’s impossible dilemma. Somehow, he needed to ensure: a) that the research he was conducting for the US military did not interfere with his conscience; and b) that he could criticise the US military without inducing them
716.
▲
by
ajuc
3y ago
Imagine if math books told you that you should ALWAYS solve for X and if somebody tells you to solve for Y they are a bad mathematician :) That's Clean Code.
717.
▲
by
ajuc
3y ago
Yup this is the worst part of Clean Code. I've seen real-life bugs caused by this kind of refactoring. The best part is that the same commit added unit tests so our coverage grew over the magic 80% bar, but of course unit tests don
718.
▲
by
ajuc
3y ago
Yes, bąblowiec, I'm well aware. My sister is a vet. We always wash the blueberries after gathering because of that (and preferably you should gather berries after a strong rain). Also cooking the berries (like in the case of pierogi) m
719.
▲
by
ajuc
3y ago
Maciej Zalewski (a co-creator of Kaczyński's first party - Porozumienie Centrum) remains the only high-level politician I know of in Poland that was sentenced for corruption and actually went to jail. https://pl.wikipedia.or
720.
▲
by
ajuc
3y ago
This depends entirely on family traditions. My mother is from near the eastern border of Poland (Włodawa), my father from around Lublin, my wife from central Poland (Kutno). Each family makes different versions of pierogi, even ruskie are d
More ›