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

This is especially problematic in machine-control code.

I've seen code from an otherwise highly capable developer that contained 1000+ LOC functions. When asked why he couldn't do a refactor the answer boiled down to fear. When the only real way to test the code is by physically running a machine through a number of scenarios, many of which are difficult at best to recreate, you become very reluctant to refactor or clean it up.

Like all problems, it's best to nip it in the bud before things get that far out of line.



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

Search: