08-16-2024, 12:33 AM
My #1 objective is clarity of code. I like to comment with concise understandable comments (and not write a book!). I need to be able to come back later and understand my code quickly so that I can make changes. If I have to spend an hour just trying to get back an understanding of what I was doing, it makes me quite an unhappy person!
I will take a chuck of complex code and assign it to a function even if I only use that function in 2 places (2 uses is my minimum for a function) if it makes my code easier to understand. All of my code is written for business so cutting edge speed is not of utmost importance...although it is important, I would rather not have spaghetti code even if it means that it might run a tad slower.
I will take a chuck of complex code and assign it to a function even if I only use that function in 2 places (2 uses is my minimum for a function) if it makes my code easier to understand. All of my code is written for business so cutting edge speed is not of utmost importance...although it is important, I would rather not have spaghetti code even if it means that it might run a tad slower.