Re:Ask HN: What does your mental model of programming look l...
by ggm on Monday October 31, 2022 @01:00AM
(#33402243)
I wish mine was this one:
abstraction arrives by god knows what glorious mechanism.
after a few iterations for bad typing, I arrive at a fantastic solution.
My method is more like this:
I try the 3 brute force hammers I know for most problems, typically in a UNIX pipe sequence of pre existing commands, written in different languages so sed, and awk, and cut, and python and a few specific C binaries might be there.
I then re-write this about 10 times, before recognising I did it between 3 and 10 years ago, better.
My personal experience is that watching better programmers suggests behind the scenes they do a lot of iteration before surfacing with that beautiful abstraction but a very small number have intuition closer to it, and arrive at solutions with strongly typed, DLS like models of the world which seem to work very well.
They think differently.