Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Code in this "named-pipeline" style is already self-documenting: using the same variable name makes it clear that we are dealing with a pipeline/chain. Using more descriptive names for the intermediate steps hides this, making each line more readable (and even then you're likely to end up with `dataStripped = data.map(&:strip)`) at the cost of making the block as a whole less readable.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: