HNHacker News
TopNewBestAskShowJobs

doodpants

1,578 karma · joined December 5, 2013

submissionscomments
doodpants··on Why and how we retired Elm
There's a well-known phenomenon where a person who has just learned a programming language will tend to write code that resembles the idioms of a different language that they have more exprience with, until they learn to write properly idiomatic code in the new language. For example, someone coming to Python from Java might write so-called "Java-flavored-Python" until they become more familiar with how things are generally done by experienced Python coders.

Your comment comes across to me as "I run a project written in C-flavored-OCaml, and the last thing I want is for someone to come along and pollute it with properly idiomatic OCaml". Because otherwise, if you had good reasons to choose that language, and your code takes advantage of the language's strengths, wouldn't the code already be "baroque" to some degree? Why would you assume a new person would make it worse?

doodpants··on So I only ate potatoes for 2 weeks
Penn Jillette famously lost weight using an all-potato diet several years ago.

https://www.youtube.com/watch?v=NelIXCuuSZ0

doodpants··on Is Babylon 5 secretly the most influential TV show of the past 25 years? (2021)
> Babylon 5 went even further than most shows today. It had one giant narrative arc over the entire series... I don't think I've ever seen another show that did quite what B5 did.

I would say _Avatar: The Last Airbender_ did this as well.

doodpants··on The simplicity of single-file Golang deployments
The article is about Go, and while the article mentions other languages for comparison, Rust is not one of them. So traceroute66's comment comes across as starting a Rust vs. Go fight where not appropriate.
doodpants··on Scientists identify substance that may have sparked life on earth
It shows how the hell we wound up like this.
doodpants··on Ventura has changed app quarantine with a new xattr
No, McIntosh is a kind of apple. Macintosh is a computer.
doodpants··on Boulder Dash
This is not the Digger that I'm familiar with, which was more of a Mr. Doh clone for the IBM PC back in the 80's.
doodpants··on Shiki Syntax Highlighter
Ironically, the last time I checked (which was some number of years ago), TextMate 2.0 did not support the TextMate 1.x theme format, not even via any sort of import or conversion mechanism. Which is odd, considering that it's become a de facto standard supported by other editors.

TextMate 1.x was the king of Mac text editors back in its day. Is anyone actually still using TextMate today?

doodpants··on Now Available: Ivory for Mastodon by Tapbots
Mastodons are being poached and killed today?
doodpants··on A first person shooter in 571 lines of GNU Awk (2016)
I used Borland Turbo Pascal back in the '80s and '90s, and as I recall it had separate keywords and syntax for defining procedures vs. functions.
doodpants··on Analog Chess
This makes no sense to me. I mean, it's already on GitHub, which is a version control system. So he's doing more work by committing each version as a separate file, rather than making modifications in place?
doodpants··on Show HN: Cool and Clear – a minimal, high contrast color scheme for Sublime Text
I created this color scheme for my own use nearly 2 years ago, because I literally couldn't find a single existing color scheme that I found satisfactory. I've been happily using it ever since.

During my holiday time off in December 2022, I finally got around to learning how to make it available through the Package Control system. I'm hoping that there are other people who like this color scheme. (But even if not, putting it on Package Control at least makes it easier for me to install when setting up a new machine, so it's not a total waste.)

doodpants··on How do you know when macOS detects and remediates malware?
My first thought was "why would I want to move a piece of malware to the /bin directory?"
doodpants··on Read this post ‘unless’ you’re not a Ruby developer
Indeed. I personally never fail to avoid not using "unless", unless there isn't a lack of extra conditions such that not refraining from instead using "if" wouldn't avoid not being less clear.
doodpants··on Biblical verse explaining how to remove a peanut butter sandwich from a VCR
The post title contains a spurious "and".
doodpants··on Porting 58k lines of D and C++ to Jai
I think Jonathan Blow's main goal is to make his dream game programming language so that he can be happier while developing all of his future games. Widespread adoption by others is only a secondary concern. He also doesn't want to push it out to the general public until he feels it's ready, and wants to take the time to get it right first.
doodpants··on Galactica: an AI trained on humanity's scientific knowledge (by Meta)
I've occasionally heard that "monads" are an innovation that allows one to handle side effects, such as input and output, in purely functional programming languages such as Haskell. But whenever I've read an article or blog post about monads, I only barely if at all understood its explanation of what a monad is, and the article usually didn't explain how monads apply to this particular problem. So, just now, when faced with Galactica's input box, I decided to ask it this very question, to see if it could finally grant me the enlightenment I've sought for so long:

Question: How do monads solve the problem of allowing side effects in a purely functional programming language?

Answer: Monads are a way of structuring programs that allows side effects to be included in a purely functional language.

I'd call that success! ;-)

doodpants··on KFC apologises after German Kristallnacht promotion
"In a statement issued to Newsweek magazine, KFC Germany blamed the message on a bot."

Blaming a bot is always a cop-out. It should be blamed on whoever made the decision to deploy a bot in the first place.

doodpants··on macOS Ventura is now available
And Mavericks was the peak of GUI look-and-feel, before they went with the all-flat look.
doodpants··on iOS Ships Dvorak, Finally
There used to be a keyboard layout designed specifically for handheld touchscreen devices called Fitaly[1]. I used this layout on my Palm Pilot back in the day.

[1] https://textware.com/fitaly/fitaly.htm

doodpants··on Is the FSF Fighting the Previous War?
It is called "Free Software" because the software is free (liberated, unconstrained), not you. You are "obligated" to keep the software free.
doodpants··on Software I’m thankful for (2021)
I think it's more about the users lacking the taste and aesthetic sense to change the default email signature to something more personal?
doodpants··on Unicode character “ꙮ” (U+A66E) is being updated
Or perhaps this character is an accurate representation of a Dekaclops.
doodpants··on Atkinson Hyperlegible Font
Unless you're on a Mac, in which case just use Menlo, which is already installed. Menlo and DejaVu Sans Mono are both descendants of Bitstream Vera Sans Mono, and are nearly identical. (And where they differ, Menlo is superior IMHO.)
doodpants··on Syntax highlighter is wrong (2014)
Yes, the movie Doctor Strange in the Multiverse of Madness debunked that one. :-)
doodpants··on Richard Stallman Announces GNU C Language Reference Manual
I pronounce the first "a" in "character" the same as in "cat", and that's how it's pronounced in the audio here: https://www.dictionary.com/browse/character
doodpants··on The Up-Goer Five Text Editor
You can work around the restriction, and thus store any arbitrary information you wish, by encoding it as binary; e.g. "one zero one zero zero one..." :-)
doodpants··on The Next Mainstream Programming Language: A Game Developer’s Perspective (2005) [pdf]
Just to be pedantic: the command is jai.exe, and the source file extension is .jai, so everyone calls the language Jai. Except Jonathan Blow, who only ever refers to it as "the language" in his videos. I vaguely recall him saying in an interview that he doesn't want to commit to a name just yet.
doodpants··on What alcohol does to your body, brain and health [video]
> They also sacrificed humans to their gods. The tenure of a bad habit is not an argument in favour of the habit.

But how certain are you that most of the problems that we struggle with today aren't a result of insufficient ritual sacrifice? Maybe we need to heed the lesson taught to us by the movie Cabin in the Woods.

doodpants··on The History of User Interfaces
I strongly disagree. Content fades in moments after scrolling, and there's no content at all if JavaScript is disabled. The author clearly values style over usability.
← PreviousPage 4 of 14Next →