loading...

re: You changed the code, you didn't refactor the code. VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Refactoring should also aim to make something either 1) more readable, 2) more performant (because of an actual need to make it more performant), o...
 

I couldn't agree more about one-liners. Also using "tricks", little-known features and other "clever" stuff usually just makes the code harder to comprehend. IMHO the code example above doesn't really need refactoring anyway.

code of conduct - report abuse