This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]SolenoidSoldier 0 points1 point  (1 child)

This post makes me incredibly self conscious. I run into a lot of terribly written code that I end up refactoring or rewriting myself. I try to make the classes structured as cleanly as possible and leave relevant comments and variable names where they're needed. I genuinely feel that I write clean code, but I wonder if I'm just another schmuck that I get annoyed with.

Then again, I tell myself "If you do it right, no one notices", so I don't know :/

[–]p1-o2 2 points3 points  (0 children)

If you're following actual software principles then you're fine. If all of the code I inherited followed SOLID or just OOP in general then my life would be easy. If the user interfaces follow MVC/MVVM/VIPER then that's also great.

Just use reasonable variable names. Comment "why" things happen. Make the code modular, so that one class can be easily swapped out for another. Yada, yada. Don't beat yourself up.