Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ape_key
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
1.
▲
by
ape_key
3y ago
Why does the right insist on a massive military budget, then complain about sending surplus supplies overseas? You’re debating two things: whether the US should intervene in Ukraine, and whether the US should get its internal affairs in or
2.
▲
by
ape_key
3y ago
Unit tests are dead weight during refactoring. Integration tests are useful. Code coverage metrics are most easily met by writing unit tests. Unit tests are tedious to write. If you have a robot writing unit tests, I do not want to see you
3.
▲
by
ape_key
3y ago
If a test is worth having, it’s worth writing by hand. Throw away mandatory code coverage tech debt instead of adding artificially-intelligent tech debt on top. The best I can see a use for something like this is more like a linter than a t
4.
▲
by
ape_key
3y ago
Weird how I write complete thoughts and supply references but this site full of tech geniuses mostly produces downvotes and single-sentence drivebys. Come back when you have things worth contributing.
5.
▲
by
ape_key
3y ago
Yeah it’s more useful to think of unvalidated state and validated state. Use different types if you can. What I don’t care about is if the state is from a prop, a value inside a DOM object, a global… If I have to know where the state comes
6.
▲
by
ape_key
3y ago
I’d be deeply surprised if a webapp requiring Next.js doesn’t have a state machine in any components. If you’re past the complexity threshold for Next.js, you’ve run into what’s really probably the most fundamental construct in computing. T
7.
▲
by
ape_key
3y ago
I’m not strictly isolationist. I’m also not smart enough to predict what happens when playing Risk with real countries. It’s definitely possible that sending weapons into a conflict just makes it worse. Especially when soldiers are just pe
8.
▲
by
ape_key
3y ago
Nah, diagrammatic reasoning is part of it. Separate yourself from syntax. Doodling on paper (or just mentally envisioning a data structure) is way more fun than writing actual code. I certainly would dissuade the OP from trying Elm. Not a
9.
▲
by
ape_key
3y ago
Inflation just turns people’s brains off. Some of us just panic and react without thinking about why food is getting more expensive or what policies will improve the world for us now and our children in the future. When people are hangry,
10.
▲
by
ape_key
3y ago
hey, I want to interpret this charitably but the language here is pretty bad: “achieving […] dead Slavs […] isn’t […] useful”. Yeah I know I used a lot of editing but the sentiment and word choice is there. I don’t want the US to be the w
11.
▲
by
ape_key
3y ago
You absolutely should learn about state machines. Also event-driven programming. (especially the idea of delaying effects, e.g. so in an RPG someone can perform a Reaction which disables the effects of an Action performed by another charac
12.
▲
by
ape_key
3y ago
If you enjoy your job, you’re lucky. If you don’t enjoy retirement, you’re not trying. Human psychology is dominated by getting stuck in emotion-behavior cycles, and those cycles wind up in local maxima. Change is scary. Self-actualizatio
13.
▲
by
ape_key
3y ago
The number of times I’ve started typing my email address into a form and the form yelling in DANGER ALLCAPS RED: “INVALID”. Yeah I know “a” isn’t a valid email address, but let me finish typing lol. This is for everyone. Please, please lea
14.
▲
by
ape_key
3y ago
(a+b)-a doesn’t always equal (a-a)+b It’s different behavior if the order of operations are non-deterministic. Plenty of room for such things in games. Most of the time the effects are too small to notice. They can chaos-theory out of con
15.
▲
by
ape_key
3y ago
respectfully you haven’t written enough games > real game turn-based and real-time games have different kinds of complexity, so a platformer won’t expose you to all of it. turn-based games are roughly going to give you an easier time sep