DEV Community

Discussion on: A simple tip for cleaner code

Collapse
 
srsholmes profile image
Simon Holmes

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.