DEV Community

Discussion on: You changed the code, you didn't refactor the code.

Collapse
 
samipietikainen profile image
Sami Pietikäinen

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.