HNHacker News
TopNewBestAskShowJobs

doodpants

1,578 karma · joined December 5, 2013

submissionscomments
doodpants··on Making Code Faster
No, they're saying that not all optimization is premature. Or that upfront performance considerations in the design are not necessarily a case of premature optimization.
doodpants··on Show HN: To prevent dry eyes and back pain, I created a macOS app
I always keep my monitor's brightness low, and never experience eye strain. My technique is to hold a sheet of white paper up next to the screen, and turn down the display's brightness until a window with a white background appears to be no brighter than the paper.
doodpants··on An uroboros program with 100 programming languages
This quine is discussed (among other topics) in The Art of Code[0], one of the most captivating tech talks I've ever seen.

[0]https://www.youtube.com/watch?v=6avJHaC3C2U

doodpants··on A Philosophy of Software Design – Book Summary and Notes
Thanks for this. I bought and read the first edition last year, and the second edition was published right while I was in the middle of reading it! (Which I didn't discover until a month after I had finished reading.)
doodpants··on Ask HN: Have you created programs for only your personal use?
Since you asked nicely:

Abstract Painting, Arrows, Battleships, Booty Island, Busy Seas, Castle Bailey, Castle Patrol, Chocolate, Clouds, Consecutives, Crosstown Traffic, Desert Dunes, Digital Battle Ships, Disconnect Four, Farmer, Fence Sentinels, FenceLits, Fillomino, Flower Beds, Free Planks, Fussy Waiter, Futoshiki, Half-Dominoes, Hedgehog, Hidden Clouds, Holiday Island, Inbetween Sumscrapers, Kakurasu, Kakuro, Knightoku, Kropki, Landscaper, Landscapes, Light Battle Ships, Magnets, Mine Ships, Mixed Tatamis, More Or Less, Neighbours, Nonogram, Noughts And Crosses, Number Crossing, Number Crosswords, Number Path, Odds Are Even, Orchards, Over Under, Paint the Nurikabe, Parks, Planks, Ponds And Flowerbeds, Power Grid, Ripple Effect, Robot Crosswords, Robot Fences, Sheep And Wolves, Skydoku, Skyscrapers, SlitherLink, Snail, Snake, Snake-omino, Square 100, Straight And Turn, Sudoku, Sumscrapers, Tatami, Tenner Grid, Tetromino Pegs, The Odd Brick, Trebuchet, Unblock Me (aka Rush Hour), Unreliable Hints, Vexed, Wish Sandwich, Zen Gardens, Zen Landscaper

Most of them are puzzles found in the following iOS apps:

https://apps.apple.com/us/app/100-logic-games-time-killers/i...

https://apps.apple.com/us/app/100-logic-games-more-puzzles/i...

doodpants··on Ask HN: Have you created programs for only your personal use?
No, they're not in any public repo or anything. Besides, if you solve puzzles using a solver you didn't write yourself, it's cheating. :-)
doodpants··on Ask HN: Have you created programs for only your personal use?
Heck yes, all the time. While it seems like the major computer/OS vendors these days are trying to turn computers into limited purpose appliances, I was first exposed to computers as a child in the late 70's, when it was expected that anyone who owned a computer would also want to program it for their own purposes. My own personal projects tend not to be very large in scope, but can be quite handy. Some examples include:

- A Pomodoro timer that has exactly the features and user interface that I want

- A script to perform backups of select files and directories from a source drive to a specified backup volume

- A "pixels-per-inch" calculator that allows me to compare the resolutions of displays that I may be interested in purchasing; by entering the width and height of a display in pixels, and its diagonal in inches, it calculates the density in pixels-per-inch, and the dot pitch in millimeters

- Various user-friendly graphical interfaces to aid in solving different types of puzzles (think sudoku-like logic puzzles)

- Programs to actually solve various types of puzzles all on their own (I've written over 70 of these in the last 10+ years!)

- Various command line scripts for code management tasks (i.e. useful for sofware development itself)

doodpants··on Show HN: I made a puzzle game in HTML5
I feel like there was a lot of this sort of thing on the web back in the late 90's and early 2000's, first as Java applets and then as Flash apps.
doodpants··on US Senate votes unanimously to make daylight savings time permanent
DST makes more sense simply because we are already on DST for 8 months of the year, vs. 4 months for "standard" time.
doodpants··on Corners Don't Look Like That: Regarding Screenspace Ambient Occlusion (2012)
Lens flares in games were always stupid, because they imply that you're looking at the scene through a camera, which breaks the immersion. I mean, they might as well also have a boom mike occasionally pop in from the top of the screen while they're at it.
doodpants··on Are sprouted potatoes safe?
Did you see the "This Really Happened" sidebar next to the article? Sure it's anecdata at best, but certainly worthy of some concern if true.
doodpants··on C# Raw String Literal Proposal
These aren't different string types, they're different syntaxes for string literals.
doodpants··on Tesla FSD Beta Lunges Toward Bicyclist
> People are some of the worst drivers around

Compared to which other species?

doodpants··on Show HN: Three Magic Words
I like it! But my one criticism is that it wastes too much time on animation, especially when transitioning from one round to the next. I'm anxious to get started, but have to wait at least 5 seconds for the current puzzle to dissolve, and then all the tiles for the next round to move into place one by one.
doodpants··on The New York Times buys Wordle
> In fact I'd say no one comes to wordle just to play a word game for 5 minutes and then forget about it.

I do. And I'd be surprised if I'm the only one.

doodpants··on Guess the daily Wordle in one try using the tweet distribution
The "original" Wordle[0] only lets you play once per day, so if potential addiction is your concern, it shouldn't be a problem. It should take up less than 5 minutes of your time per day.

[0]https://www.powerlanguage.co.uk/wordle/

doodpants··on Roguelikes: The Misnamed Genre (2011)
> For me, roguelike = procedural generation + permadeath, that's all.

By this definition, Minesweeper is a Roguelike. :-)

doodpants··on Georgia teacher read the fine print and won $13K (2019)
Years ago when I was working at a different company, all employees were given an agreement that we were required to sign, regarding (non-)disclosure of confidential information. I carefully read the document, and noticed a section that basically said we were not allowed to disclose any information about our products to anyone outside of the company. It obviously should have specified not to disclose confidential information, but taken literally, we were not allowed to tell customers about our products at all, such as by publishing advertising/marketing materials.

I emailed the president about this, who forwarded my concern to the lawyer who created the agreement. The president then forwarded the lawyer's reply back to me, which more or less said that I was an idiot. Deciding this wasn't a battle worth fighting, I replied "well, since I'm not a lawyer, I'll have to take his word for it that a judge in court would interpret this clause the way he claims it is intended", and signed it.

The agreement also said that the president was supposed to co-sign each signed agreement and return a copy back to the employee, and since I never actually received my co-signed copy, I have to assume it never became binding for me anyway.

doodpants··on Ask HN: What Happened to Borland?
Except that Go is for command line programs and backend code; its standard library doesn't include a cross-platform GUI API for desktop applications.
doodpants··on JetBrains Fleet: The Next-Generation IDE by JetBrains
> We built Fleet to be a fast and lightweight text editor for when you need to quickly browse and edit your code. It starts up in seconds so you can begin working immediately...

An editor that takes multiple seconds to start up doesn't strike me as "fast and lightweight".

doodpants··on I'm “still afraid to use spaces in file names” years old
I'm not young, but I've been using Macintosh computers regularly since 1990, and even back then file names could be up to 31 characters long, and could include any character except colon.¹ So I'm pretty comfortable using spaces, and sometimes even non-ASCII characters, in file names.

Also back then Mac file names typically did not include an extension, because the file's type was stored as part of the metadata in its resource fork. I remember one time a friend of mine was visiting and was playing around with a paint program on my Mac. Being used to DOS, when she went to save her file, she typed a very short name, and then asked me what the proper file extension should be. I smirked and said, "That's not how you name files on a Mac. THIS is how you name files on a Mac." And then I named her file "Ailsa's Cool Picture". Her mind was blown. :-)

¹This is because the colon was the path separator. But since the classic Mac OS had no command line interface, the typical user would never type or even see a file path written out.

doodpants··on Why is Excalidraw so good?
Back in the early days there were so few web sites that you didn't even need a search engine; any old Yahoo could tell you what all of them were.
doodpants··on New Colorways for Firefox 94
I'm just glad the decades-long nightmare of not being able to express my most authentic self while paying my gas bill and looking at lolcat pictures is finally over.
doodpants··on Anatomy of a Terminal Emulator
To clarify: .NET being cross platform, I write console apps that I run on both Windows and MacOS, and in both cases if I redirect the color output to a .txt file and open it in an editor, there are no ANSI escape sequences in the file. So I was wondering if there is some other standard for sending control codes to a terminal that is independent of the output stream.

Or is there some voodoo by which the ANSI sequences get stripped from the output when redirected to a file?

doodpants··on Anatomy of a Terminal Emulator
One thing I've been wondering for a long time (and my Google-fu is apparently too weak to find on my own): how do certain console applications change the output color without inserting ANSI escape sequences into the output stream? The specific case I have in mind is when writing console programs in C#/.NET, and using the System.Console.ForegroundColor property to vary output colors on the fly. The resulting output text does not have ANSI escape characters in it, yet the colors are displayed properly in the terminal.
doodpants··on Show HN: Coding Font – A game to find your favorite coding font
Some missing fonts that I would like to see added:

- Liberation Mono

- DejaVu Sans Mono

- SF Mono

That said, I ended up picking Cousine, which is a font I had never heard of before.

(Edit: Cousine seems to be identical to Liberation Mono.)

doodpants··on “Dune” (The Movie), Annotated
Eh, yes and no. A lot of the outdoor scenes and effects look pretty poor, presumably due to TV-level funding, but the interior set design and costume design are excellent IMHO. Also, the only bad actor was the one playing Paul; I thought everyone else was fine.
doodpants··on 50 years ago, The Electric Company used comedy to boost kids' reading skills
I loved this show as a kid.

...Holy crap I'm almost 50.

doodpants··on Making bracket pair colorization faster
I don't use VS Code, but I like having it installed; I'll occasionally launch it just to watch it update itself and/or its extensions, and enjoy the dopamine hit that comes from the satisfaction of getting my software up-to-date.
doodpants··on A Simulator of a Universal Turing Machine (2017)
It also uses "//" for comments.
← PreviousPage 5 of 14Next →