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

I was giving myself RSI by deleting <12000 lines of copied comments (only misleading noise, explaining what was happening) and <4000 LOC (replaced with a 120 LOC in a single fn) when I reverted to using regex while sanitizing a badly bloated codebase.

Can feel you right there.



> when I reverted to using regex

Begrudgingly I hope...

If you replaced 4000LoC with a regex that regex scares me...


haha! I did use regex to find and delete repetitive patterns of code with slight variation that would be carried out by the aforementioned function.

I wish I could write such a monstrosity though :)




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

Search: