News for hackers. Stuff that matters.
Re:-2000 Lines of Code by mehdix on Saturday March 23, 2024 @05:01AM (#39798486)
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.

Re:-2000 Lines of Code by jpc0 on Sunday March 24, 2024 @10:38AM (#39807497)
> when I reverted to using regex

Begrudgingly I hope...

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

Re:-2000 Lines of Code by mehdix on Monday March 25, 2024 @01:47PM (#39819280)
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 :)