Fucking Computer Science.

P. B. Walker said:
I wouldn't be surprised if some programmers do it on purpose for job security. Heh. But I will say, if you are involved in a large programming project with multiple coders who all have to share code, you usually see more well written code since most people won't put up with one person writing crappy code that nobody else can work with. It's the guys/ladies that work alone that you will see some shoddy coding from.
I think part of it is that the senior engineers on this project were the only ones who understood the legacy code, and they just let themselves get sloppy.

Their code in general was better than most of the legacy code, but I think being exposed to that other code (written by people who were no longer with the company) just made them lax in how they put together the code.

Or at least I hope that was the case. These guys were smart, and they knew a lot of comp-sci stuff I didn't, and they came up with algorithms I couldn't, but when it came time to code it - yuck!

Almost all code has to be maintained, usually for years, often by someone else - so if you don't write readable/maintainable code, you are not being as productive as someone who takes quite a bit longer. Of course, that is the way some companies are organized, and newbies there are afraid to rock the boat lest they make enemies.

On another project in the same company we were a lot stricter about coding standards, and everyone knew it, so the code was halfway decent most of the time. There were a few brainiacs who thought they were above having to document their code though - even though our standard said no checking in until it was documented.
 
The Heretic said:
I think part of it is that the senior engineers on this project were the only ones who understood the legacy code, and they just let themselves get sloppy.

Their code in general was better than most of the legacy code, but I think being exposed to that other code (written by people who were no longer with the company) just made them lax in how they put together the code.

Or at least I hope that was the case. These guys were smart, and they knew a lot of comp-sci stuff I didn't, and they came up with algorithms I couldn't, but when it came time to code it - yuck!

Almost all code has to be maintained, usually for years, often by someone else - so if you don't write readable/maintainable code, you are not being as productive as someone who takes quite a bit longer. Of course, that is the way some companies are organized, and newbies there are afraid to rock the boat lest they make enemies.

On another project in the same company we were a lot stricter about coding standards, and everyone knew it, so the code was halfway decent most of the time. There were a few brainiacs who thought they were above having to document their code though - even though our standard said no checking in until it was documented.

The tighter the deadline the crapier the documentation. At all levels. Underestimating the project run time does more to contribute to this than anyother factor.

In many cases senior management brings this on themselves. Caving in to the pressures of the marketing group.

They won't listen to experience. But will bring in a hot shot coder with 5 years under his/her belt who invariably WAY underestimates project run time. When it's painfully obvious that something ISN'T going to get done, documentation is the first to go.

Ishmael
 
Back
Top