loading...

re: A simple tip for cleaner code VIEW POST

TOP OF THREAD FULL DISCUSSION
re: For some reason the younger devs in the team prefer to write code this way ☝️, but the truly enlightened devs will write code like this: const f...
 

That second one with ramda is a prime example of garbage code from a developer proving theyve read some functional programming books / blog posts. Why would you ever do that as opposed to the nested ternary? Functional programming is great but the use of ramda is complete nonsense for that example.

code of conduct - report abuse