|
|
|
|
|
by gregjor
500 days ago
|
|
Rule 13 from The Elements of Programming Style: > Write first in easy-to-understand pseudo language; then translate into whatever language you have to use. [1] I write in a simplified version of C. Pseudocode helps you concentrate on the data structures, module boundaries, and control flow without getting bogged down and distracted with the details and trivia of a specific language. You can read and walk through the code in your head. I know this advice seems contrary to the copy/paste let the IDE or "AI" do it mentality, but as the industry shakes out (again) the programmers who can actually write code to solve business problems will still have jobs, and those who memorize and automate won't. [1] https://en.wikipedia.org/wiki/The_Elements_of_Programming_St... |
|