Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is no way you replaced 50,000 lines of batch files with 10 lines of a script.


I'm positive there's some exaggeration for effect, but I've run into some Powershell scripts for that have grown into 1000+ lines and I'd guess roughly 2/3rds of them were in functions never called.

The call is removed, but the function remains. Fields in a form stay, unused and unpopulated, but the validation is disabled and left behind. Things like this.

No version control meant it was hard to go back, and people are afraid to break things.


I once replaced ~2500 lines of ruby with ~450 lines of...ruby.

That was some shit.

Mostly it was copy/pasted data (strings) with slight modifications eating up a lot of lines. A few big chunks were in a code path that could not execute, as well.

It was just really bad code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: