Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Voxera116405yTo bad, testing is very helpful but I know that many working with legacy code has a hard time seeing it as the code requires a major rewrite to be testable.
I hope he comes around and realize the potential some day. -
C0D4682115y@Voxera i too have this problem with a couple of legacy code basis.
Rewrite to make testable, well more to make usable by a dev and break up 1000's of lines of code, or trust it works, seeing as its worked as intended for years.
Business's won't see the benefit in a rewrite just for the sake of sanity. -
Cero825yTesting is a powerful tool that helps building cleaner code with less dependencies. I am sure there are great, experienced devs out there that can do that by default. Just put out wonderful, readable code that is working from scratch without tests.
But frankly, my bet is they are less than 1 in a million. I do not know your senior, but from the chances given I wouldn't bet he is one of those prodigies.
I wish you best of luck trying to turn his opinion around. -
The argument that it's Not worthwhile to rewrite Lots of legacy Code die testing is valid to a certain degree. But this doesn't mean New Features can't be tested! Tell him to at least write tests for new features as this will increase stability when working on top of legacy code.
From Business perspective: the risc of "wasting time" and therefore money with a rewrite is way Higher than the risk of potential future problems with an untestable Code base. Depends on the Type of Project though -
uhura615y@don-rager Absolutely, and we've been down that road. I think the main issue is he retires in a few years and doesn't want to learn anything new - even if that new thing would bear fruit and wouldn't be much to learn outside of his primary development. Biding my time, I suppose.
-
Voxera116405y@idaydream I had a student once that had retired but that enrolled to a computer course with the motivation “computers are the future and she was mot going to be left behind”.
She was 81 years old and this was -87 and MS-DOS.
Retirement is a bad excuse to stop learning :D
Related Rants
I value our most senior developer. His code is certainly clean and structured. He is the ultimate at KISS. However he's not a fan of testing and instead just says, well, did it compile? No matter how much I show him how great testing is, he comes back with how it's pretty unnecessary. Somehow, in the deep dark parts of the web, he finds articles that comply with his standing. I'm okay with him not making tests, I do it myself. But then when working extending or implementing his code, many of my parts are untestable because the parents are. Oye.
rant