That documentation sounds like marriage.
- 1 Post
- 24 Comments
Phoenix3875@lemmy.worldto iiiiiiitttttttttttt@programming.dev•Some people put in no effort.English13·2 months agoWhat a mad man, using quotation marks in memes!
Cabin in the Woods!
Phoenix3875@lemmy.worldto Patient Gamers@sh.itjust.works•Weekly Recommendations Thread: What are you playing?English7·5 months agoControl is surprisingly fun. Got it on GoG.
Phoenix3875@lemmy.worldto Programming@programming.dev•Rant: I wish more people stopped using Github33·6 months agoSpecifically for the rate limit issue, a lot of nix’s derivations are hosted on GitHub and now and then the rate limit problem comes up when I rebuilds a dev environment.
Nixos.org is kind enough to host gigabytes of cache, but to get a ~40MiB tarball, we need to beg at the door of M$. Path dependency is really a trap.
Phoenix3875@lemmy.worldto Today I Learned@lemmy.world•TIL that the “S” in “Harry S. Truman” isn’t an abbreviation. His middle name was just “S”.English23·9 months agoJ Moore, the Moore in the wildly used Boyer-Moore string search algorithm, has a first name of a single letter, J. It’s not an abbreviation.
Phoenix3875@lemmy.worldto Open Source@lemmy.ml•Busybox 1.37 is tiny but capable, the way we like Linux tools to be6·9 months agoHaha, but it’s really a pack of tools, more like a toolbox.
In recent git versions (>2.23),
git restore
andgit restore --staged
are the preferred ways to discard changes in the working tree (git checkout -- .
) and staged changes (git reset --
) respectively.
Phoenix3875@lemmy.worldto Programming@programming.dev•Stack Overflow Survey: 80% of developers are unhappy16·10 months agoMy point today is that, if we wish to count lines of code, we should not regard them as “lines produced” but as “lines spent”: the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger.
——On the cruelty of really teaching computing science - E.W. Djikstra
Phoenix3875@lemmy.worldto Programming@programming.dev•Book recommendations to learn programming fundamentals12·10 months agoIf you are looking at learning CS in a more holistic manner, there’s Path to a free self-taught education in Computer Science!. It’s a list of courses, categorized by topics, which are exactly what a CS undergraduate would learn. It might feel daunting at first, but you can pick any interesting topic and dive in.
I especially recommend CS50P for beginners.
Phoenix3875@lemmy.worldto Programming@programming.dev•Why I Prefer Exceptions to Error Values8·10 months agoOne problem with exceptions is composability.
You have to rely on good and up-to-date documentation or you have to dig into the source code to figure out what exceptions are possible. For a lot of third party dependencies (which constitute a huge part of modern software), both can be missing.
Error type is a mitigation, but you are free to e.g. panic in Rust if you think the error is unrecoverable.
A third option is to have effect types like Koka, so that all possible exceptions (or effects) can be checked at type level. A similar approach can be observed in practical (read: non-academic) languages like Zig. It remains to be seen whether this style can be adopted by the mainstream.
Phoenix3875@lemmy.worldto Today I Learned@lemmy.world•TIL Black Americans were developing the Afro-Futurism/Black Sci-Fi genre of literature as early as the mid-19th century. Titles such as 'Blake' (1859), 'Iola Leroy' (1892), 'Imperium In Imperio (1899)English6·10 months agoBlack Panther the movie actually borrowed some art elements from Afrofuturism. Although it’s not very pronounced.
Phoenix3875@lemmy.worldto Programming@programming.dev•Why focus on formal language in theory of computation? Most programs do more than merely accept or reject an input3·1 year agoIn general, given a Turing machine which outputs the result of a procedure to its memory tape, you can equivalently construct a recognizer of valid input/output pairs. Say P is the procedure, then the recognizer R is
let (i, o) = input in P(i) = o
The reverse is also possible. Give a recognizer R, you can construct a procedure P that given part of the input (can be empty), computes the rest of the input that makes R accept the whole. It can be defined as
for o in all-strings, if R(i, o) then output o and halt, else continue
.It might feel contrived at first, but both views can be useful depending on the situation. You’ll get used to it soon with some exercises.
Phoenix3875@lemmy.worldto Programming@programming.dev•Why focus on formal language in theory of computation? Most programs do more than merely accept or reject an input3·1 year agoFor all possible input, only recognize the one input that’s (under certain encoding scheme) equal to the sum of the given list. That’s for a given list.
Another more general approach is that, only recognize the input if (under certain encoding), it’s a pair of a list and a number, where the number is the sum of the list.
Look, there’s a thing called safety-catch and that’s why my son can play with semi-auto rifles.
Phoenix3875@lemmy.worldto Today I Learned@lemmy.world•TIL The term "joystick" does not originate from video games, and was first coined in 1909English3·1 year agoNo, the inventor Chatty Grandparent will never let that happen.
Phoenix3875@lemmy.worldto Programming@programming.dev•Paying people to work on open source is good actually205·1 year agoIMHO the reality is more complicated than what’s described here.
-
Open source is sustainable (in the sense that people will continue to do it), even without the maintainers getting paid, for better or worse. This is evidenced by the history and the majority of open source projects now.
-
The bait-and-switch problem, which gets the maintainers paid, hurts the ecosystem in the long run, which relies heavily on the good faith.
-
Zen master says: the real issue resolution is within yourself.