News for hackers. Stuff that matters.
Re:Good Software Development Habits by bloopernova on Sunday November 17, 2024 @01:45PM (#42166004)
Can you recommend any refactoring tutorials or books that teach those kinds of lessons?
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.
Re:Good Software Development Habits by leetrout on Sunday November 17, 2024 @01:55PM (#42166079)
Not specifically this, per se, but I HIGHLY recommend "A Philosophy of Software Design" by Dr. John Ousterhout

https://web.stanford.edu/~ouster/cgi-bin/book.php

Re:Good Software Development Habits by mdaniel on Sunday November 17, 2024 @03:12PM (#42166776)
I wish I could upvote this a million times

But, I'll also point out that just like reading about exercise, merely reading the book doesn't help unless one is willing to practice and -- much, much more difficult -- get buy-in from the team. Because software engineering is usually a team sport and if one person is reading these kinds of books and trying to put them into practice, and the other members of the team are happy choosing chaos, it's going to be the outlier who gets voted off the island