Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jffhn
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
jffhn
25d ago
>Want to store 90 degrees in radians? No matter how many bits you use, it will never be exact. That can be seen as a feature: cos(angRad) will never return zero, avoiding edge cases, and same with sin(angRad) if argument is not zero.
2.
▲
by
jffhn
25d ago
>Creating software that isn't outright wasteful in terms of performance isn't even hard, it's just a matter of not doing ridiculously dumb things. Non-tautological rephrasing: When optimizing code, first actually just de-s
3.
▲
by
jffhn
3mo ago
Also, the four fallacies of local computing: - The CPU is infinitely fast. - RAM is infinite. - CPU caches don't exist. - Cache lines don't exist.
4.
▲
by
jffhn
4mo ago
It cannot be just a product of the body, else it could not have effect on the body and our tongues could not be moving speaking about it.
5.
▲
by
jffhn
4mo ago
We don't experience the sun going up and down, we experience its direction changing relative to the horizontal plane, and it is not an illusion: it matches planetary motion. The mistake arises when interpreting the raw experience. Sens
6.
▲
by
jffhn
4mo ago
Bounded collections still allow for useless reachings of their bounds, and corresponding memory and CPU wastes (and possibly functional/domain issues). The main reason I saw around me for memory leaks in GC'ed languages, is devs o
7.
▲
by
jffhn
5mo ago
Before, not after: when the code makes it hard to implement a new feature (the definition of technical debt: code that is properly designed but only for previous features), first refactor the code to make the feature easy to implement, then
8.
▲
by
jffhn
6mo ago
>Do people really argue about variable names? Of course they do. A program's code is mostly a graph of names; they can be cornerstones of its clarity, or sources of confusion and bugs. The first thing I do when debugging is ensuring
9.
▲
by
jffhn
8mo ago
>We do not hurt criminals as punishment anymore, in the civilized age Singapore is quite civilized, and they conduct caning strokes.
10.
▲
by
jffhn
9mo ago
>where each line is extracted into its own method As John Carmack said: "if a lot of operations are supposed to happen in a sequential fashion, their code should follow sequentially" ( https://cbarrete.com/carmac
11.
▲
by
jffhn
9mo ago
I can guarantee you that I have been doing just that for 20 years, creating and working on the same codebase, and that it only got better with time (cleaner code and more robust execution), though more complex because the domain itself did.
12.
▲
by
jffhn
10mo ago
In manufacturing there are economies of scale and adding more people increases workforce, in mindfacturing there are diseconomies of scale and adding more people increases confusion, yet many managers view software with a manufacturing mind
13.
▲
by
jffhn
1y ago
When I do functional unit tests, they tend to include the same functional logic as the code to test. What I strive for is then to express it in a different and possibly clearer way, and I see the testing as mutual testing of two implementat
14.
▲
by
jffhn
1y ago
Agreed. A program is made of names, these names are of the utmost importance. For understanding, and also for searchability. I do a lot of code reviews, and one of the main things I ask for, after bug fixes, is renaming things for readers t
15.
▲
by
jffhn
1y ago
I only use "TODO" eventually followed by a sub-classification like "TODO bug": it maximizes discoverability by other devs and tools, and allows for a lot of variants (both technical and/or functional) while still pe
16.
▲
by
jffhn
1y ago
Or: the hardware that generates beliefs about how things should be - whether based on religious or ideological dogma -, as opposed to science which is not prescriptive and can only describe how things are.
17.
▲
by
jffhn
1y ago
Domains are often not very deep, as a lot of people need to understand them. I've seen smart people quickly figure things out and propose upgrades in a matter of weeks, on points lifelong experts overlooked, or were too lazy to dig. Re
18.
▲
by
jffhn
1y ago
>the same person with a different psychological education can become suicidal or give zero damn about the same situation Or even like it. Reminds me of a quote about solitude: "I live on what others die of." (Michelangelo)
19.
▲
by
jffhn
1y ago
>burnout from having to deal with bloated software and the deadlines associated with that I did not have the deadlines, but to bear having to deal with bloated software, my solution was vodka: since it has no color, I filled mineral wate
20.
▲
by
jffhn
1y ago
Jujutsu - I like the name. I often see programming as going MMA with data, until you get what you want out of it. Using brute force algorithms is going berserk, vibe coding is spamming summons in hope they get the job done, etc.
21.
▲
by
jffhn
1y ago
>My largest source of sanity in this career is to spend extra time at work doing the things that I love in my position. Ironically, I get high performance ratings because of this - but have to fight to spend my time on it. Why do you hav
22.
▲
by
jffhn
1y ago
>Though abs() returning negative numbers is hilarious. Math.abs(Integer.MIN_VALUE) in Java very seriously returns -2147483648, as there is no int for 2147483648.
23.
▲
Show HN: It's better to call Java drawImage() many times than once
(github.com)
2 points
by
jffhn
1y ago
|
0 comments
24.
▲
by
jffhn
2y ago
>dozens of crocodiles attacking the soldiers en masse, and appearing out of seemingly nowhere to drag off some poor soul. The nights were said to have been filled with dire screams, gunfire, and the sounds of animal attacks. Sounds like
25.
▲
by
jffhn
2y ago
>the most weird thing they said Reminds me of a quote from Jean Cocteau, of which I could not find the exact words, but which roughly says that if the public knew what thoughts geniuses can have, it would be more terrified than admiring.
26.
▲
by
jffhn
2y ago
err that's Kahn
27.
▲
by
jffhn
2y ago
>"programs should treat any unrecognized values as if they were “Other”" Having such an "Other" value does not prevent from considering that the enum is open-ended, and it simplifies a lot all the code that has to dea
28.
▲
by
jffhn
2y ago
Fantastical sfumato in the first picture.
29.
▲
by
jffhn
2y ago
Reminds me of this quote from Schopenhauer: "My curse upon anyone who, in future editions of my works, knowingly changes anything in them, be it a sentence, or even just a word, a syllable, a letter, a punctuation mark."
30.
▲
by
jffhn
2y ago
>I believe I'm unsuitable to be a parent, yet everyone around me assured me it would be ok They might just have said that not to sound alarming, and to close the subject. You know yourself infinitely better than anyone else does, so
More ›