Hi, I’m Amy.
✨ New 🏳️⚧️ improved ♀️ version 👩❤️👩 out 🏳️🌈 now! 🎊
I live in Japan. Talk to me about Haskell, Scheme, and Linux.
日本語も通じます。
- 0 Posts
- 6 Comments
Joined 3 years ago
Cake day: June 12th, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
Amy@lemmy.sdf.orgto
Programmer Humor@lemmy.ml•KB, MB, GB, and TB are all part of the metric system. What empirical measurements should we Free™️ Americans use for computer memory?
45·2 years agoMost people would use “word”, “half-word”, “quarter-word” etc, but the Anglophiles insist on “tuppit”, “ternary piece”, “span” and “chunk” (that’s 5 bits, or 12 old bits).
TDD
const max12 = (x, y) => { if (x === 1 && y === 2) { return 2; } else if (x === 7 && y === 4) { return 7; } else { return x; } };
Um, actually… A signed 32-bit counter would loop back to December 1901, so the calendar is presumably 31-bit unsigned. (Sorry)
Amy@lemmy.sdf.orgto
Programmer Humor@lemmy.ml•For-loops in Java don't require any code in the body. I can't control what you do with that information.
4·3 years agoThere’s always the classic C strcpy :)
char *strcpy(char *dest, char *src) { char *p = dest; while (*p++ = *src++); return dest; }
Why is the Socratic method my favorite?