3 ms·
You're not the beholder. You're the author. Actually, that's mostly not true. I work on a 450,000 codebase, and I wrote almost none of it. I read far more Pe
by SwellJoe 18y ago
You're not the beholder. You're the author.
Actually, that's mostly not true. I work on a 450,000 codebase, and I wrote almost none of it. I read far more Perl than I write, as with any language used in a project that isn't a throwaway.
Your beholders value simple code rather you selfishly saving a few keystrokes.
You've got it backwards. I'm selfishly thinking of myself when I read it, not when I write it. I'm selfishly looking to save time while I read by having more functionality in the same amount of lines of code--a map or a join, for example, is far more concise than explicitly iterating over a data structure and operating on it. You may not prefer to read the single line map or join version over the multiline block of code in a loop, but I certainly do.
- nailer 18y ago>> You're not the beholder. You're the author. >Actually, that's mostly not true. I work on a 450,000 codebase, and I wrote almost none of it. I read far more Perl than I write, as with any language used in a project that isn't a throwaway. Er, you've just proved it true. Other people wrote that code, hopefully to make it easier to maintain by those who come after them. Like you say, code is read more often than it's written.