nealabq

Joined 14 years ago

Karma
2,562
Submissions
654
Member since
Aug 2
let me think about it
View on Hacker News

Recent submissions

Comment · 2 months ago
My wife once did the same in VisualBasic. The cells were buttons. Small but fun.
Comment · 5 months ago
My 50-year-old HP-21 with red LED display still works. I'm very fond of it. RPN forever!
Comment · 6 months ago
Were this fiction, I would expect a denouement where images of the two memorial stones, black and white, when placed side by side (as Swift intended), reveal a subtle joke.
Comment · 6 months ago
I find myself wondering if this essay is meant as a gentle satire. Bemused not savage, not Swiftian.

I am reminded of Lord Peter Wimsey.

Comment · 6 months ago
I think he meant it can fall onto his toddler, causing injury.
Comment · 7 months ago
You're right of course. I was thinking specifically of printing log/debug statements in the assert(..), but that usually only happens if the assert(..) fails and exits, and in that case the "no side effects" rule no longer matters.
Comment · 7 months ago
I don't mean to be that guy, but for "functional" programmers a print statement has "side effects".

But your meaning is clear. In an assert expression, don't call functions that might change the program/database state. Be as "const" as possible.

Comment · 7 months ago
In C++ you should probably #include <cstdio> instead of <stdio.h> unless you have a good reason. And especially avoid #including both. <cstdio> provides the function std::getc(..) while <stdio.h> usually provides getc(..) as a macro.

htons(..) and related socket-utility names are also often macros, but I'm pretty sure there is not a std::htons(..) in the C++ standard, partly because 'htons' is not an attractive name. Since it's (sometimes) a macro don't qualify its namespace like ::htons(..).

A long time ago in the Microsoft C (and later C++) dev envs there were macros named "min" and "max", which I thought were terrible names for macros.

Comment · 7 months ago
Chompsky, in his early days, wrote of deep grammar or deep structure as opposed to surface structure. He theorized that there was a universal set of semantic concepts represented in human brains -- like "verbs" or "noun phrases" and how they interconnect. But Chompsky didn't take this too far. The work in this paper may be teasing out what this human "deep structure" is, a sort of world view and social view that's at least partly genetically encoded.
Comment · 9 months ago
Third-derivative pun.

Riposte: I knew you'd say that! Snap!

Comment · 1 year ago
Since Iceland is so isolated, it may be a good place to see if a gene drive can actually eradicate.
Comment · 1 year ago
Comment · 1 year ago
Is being a monster a good or a bad thing?
Comment · 1 year ago
Could you do this with dry corn starch? Shake it up in the bottle and light it before the dust settles.
Comment · 1 year ago
No recursion means no Erlang. Which means no RabbitMQ?

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton