Don’t Write Dense Lambda Expressions
It’s easy to get carried away when writing code and lose sight of code quality. It’s often not our fault. We’re trying to understand the requirements, figure out possible solutions, try out different ideas, and sometimes struggle to get things working the way we want. After all, programming involves a series of mini-experiments where we turn a bunch of unknowns into knowns. In doing so, we’re relieved to see that the code works, but we often forget the next step in the journey: taking the time to refactor in order to improve the quality of code.
A common poor practice among several developers is to write multiline lambda expressions. Avoid that as much as possible and make sincere efforts to refactor immediately ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access