4 ms·
> Much of the pain in programming is taken for granted. After years of repetition it fades into the background and is forgotten. The first step in making progra
by rektide 5y ago
> Much of the pain in programming is taken for granted. After years of repetition it fades into the background and is forgotten. The first step in making programming easier is to be con[s]cious of what makes it hard.
I think there's an invaluable starting place here, & that we should all spend a lot of time writing down & identifying this.
A huge amount of programming & it's difficulty lies in having your bearings. Knowing what you have, & having some sense of direction forward or destination. Being able to see & comprehend what is about us, what we have can be a challenge. Or one could be lacking a sense of what to do to progress forward. Or perhaps one doesn't really know where the code needs to have, doesn't have a good picture in mind of the object.
The human mind wants to have the full model, of where we are, where to go, and where to end up: a view of the current structure, the operation to advance, which yields us a new structure.
Programming is ultimately about consciousness, an understanding of the pieces of this allagmatic flow. Having good tools & environments that tell us what is about us, that show us the objects around, the processes/operations that are occuring, to let us know/predict where the state is going to end up, is a kind of meta-causal comprehension skill that programming rests upon. Trying to think of what is hard is good, but we also ought be trying to turbo-charge our exploration of what new capabilities instruments, tools & environments can do to augment our views & vantages of code, state, & their execution.
- kazinator 5y agoSpeaking of bearings, I'd introduce newbies to the Context Diagram: https://en.wikipedia.org/wiki/System_context_diagram https://en.wikipedia.org/wiki/System_context_diagram OK, that bubble in the middle is your program. How does it fit into the world? While drawing the context diagram, we should keep in mind two questions (at least): - is the bubble at the center of it necessary at all? Can we remove it, such the other pieces around it function just fine without it? Is it just a "middleman" that can be "cut out"? - if the bubble is necessary, does it have to be a computer program, or can it exist just fine as some non-computerized process? Can some of it be computerized, and some of it not? - if the computer program is necessary, does it have one that we make, or can we find an existing one? - if the program has to be one we make, or can we modify or extend another program we already made?