Ugh, I absolutely hate reading code with a ton of variables that are only used once, because each introduction of a variable is a new thing that I have to first parse and then track to figure out what it does. I would much rather read a pipeline that expresses what is going on concisely without introducing extraneous elements. In particular, I thought that the pipeline at the start of the article was perfectly clear and did not need any of the subsequent modifications.
- Posts
- 4
- Comments
- 929
- Joined
- 2 yr. ago
- Posts
- 4
- Comments
- 929
- Joined
- 2 yr. ago
Selfhosted @lemmy.world How do I avoid becoming one with the botnet?
Showerthoughts @lemmy.world "GOOD AI DON'T THINK! (They get even.)" would be a great name for a horror movie...
Fediverse @lemmy.world How do I discover the Pixelfed content that is out there when so many big instances block exploration?
Programmer Humor @programming.dev ) (Whew!)
One can definitely go overboard with this, though. I have had to read a lot of code where someone broke something up into several functions that only had the effective of forcing me to constantly bounce around all over source file to figure out what was going on without improving clarity at all.