HNHacker News
TopNewBestAskShowJobs

beautron

160 karma · joined September 23, 2023

submissionscomments
beautron··on Postgres: The next generation
> No RAII, no classes, virtual dispatch, smart pointers.

I enjoy programming more when the above concepts are absent. RAII and smart pointers tend toward a fragmented and confused layout of a program's memory—there are much simpler ways!

The arena concept for managing your program's memory is more straightforward. It's easier to think about (not confused) and it becomes natural to have your memory laid out nice and orderly (not fragmented, which can be horrible for performance). See the recent article by Ryan Fleury:

https://www.rfleury.com/p/untangling-lifetimes-the-arena-all...

I also think life is easier without classes or virtual dispatch. I value a sort of "mathematical elegance" in programming languages, and prefer to create programs from a small set of fundamental language primitives. Classes and virtual dispatch don't earn their keep in that set.

beautron··on Forty years of programming
I'm the same too. Having multiple monitors makes no sense to me.

With a keypress, I can switch between fullscreen workspaces. Or place two windows side-by-side when needed. My desk is free of clutter, and I never have to deal with configuring multiple displays.

I believe multiple monitors are less elegant and less effective (though a giant workstation full of monitors is perhaps impressive to family and friends).

A similar topic: I also don't understand why some fellow programmers need syntax highlighting. Some programmers have never even tried programming without it! And to them it might feel weird to go without at first, but I think it quickly becomes clear that syntax coloring is noisy and superfluous (and you might end up wasting time picking colors, etc.). Imagine if we did that for natural language (verbs are green, nouns are red, etc.), or math notation (numbers are blue, variables are pink, operators are orange, etc.). The silliness becomes clear quickly.

beautron··on Show HN: Learn piano without sheet music
Pianists call real-time reading "sight-reading", and it's not what pianists usually focus on. Even the most skilled pianist is probably not going to sight-read a Bach fugue (or be satisfied with the result).

The more common way to read music (at least in terms of the large and marvelous classical piano literature), is as part of a careful process of studying. You read to learn and understand the music, but the reading doesn't need to be real-time (it normally isn't, when learning a piece).

Real-time sight-reading is its own special skill, which you can practice for its own sake. But it's nowhere near as important as the non-real-time learning process mentioned above. I got pretty good at sight-reading when I worked as an accompanist, but I still hate it: It's not how I like to learn a piece. (And the music I find most interesting [like Bach!] can't even really be learned that way).

← PreviousPage 3 of 3