News for hackers. Stuff that matters.
Re:Good Software Development Habits by jprete on Sunday November 17, 2024 @02:09PM (#42166206)
Not the GP but I think a foundational skill is naming things. If you can't give a simple name to a function/class/etc., it's probably not well-defined. It should be adjusted to make it easier to name, usually by moving responsibilities out of (or into) the code structure until it represents one concept that you can clearly state as a name.
Re:Good Software Development Habits by gozzoo on Sunday November 17, 2024 @02:37PM (#42166451)
This! Coming up with meaningfull names helps you undrestand the problem and define the solution. I advise junior devs: if you don't know how to name a variable give it simple 1-letter name: a, b, x, y. When you look at the code it is immediately clear how well they understands the problem. One should be careful to avoid the naming paralasys though.