Hacker News new | past | comments | ask | show | jobs | submit login

How is your refactoring clean ? Lmao if this is clean code I'm the Queen of england...



Everybody has different taste and opinions what "clean code" is supposed to look like (best example of this is "for-loops" vs .map()" - IMHO nested loops are usually more readable than a function chain which does the same, but other people have the opposite opinion).

IMHO the core problem of the situation described in the article is that the guy simply rewrote a piece of code without before talking to the author/maintainer/owner of that piece code.


The thing is, majority of ppl cannot evaluate this too and we end up with code with clean code ^tm traits that sucks


Can you share how you would clean it up?




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

Search: