Author Archive
Writing 2014-05-05
Sunday, June 22nd, 2014Writing 2014-05-04
Sunday, June 22nd, 2014PBP: 015 Vertical Alignment
Thursday, June 19th, 2014The Perl Best Practices suggest to align things vertically. They like to apace things out into neat rows of equals, fat commas, braces, and parenthesis. Columns of data, when it will fit, are also approved of. (more…)
PBP: 014 Elses
Monday, June 16th, 2014The PBP suggests that you don’t “cuddle” an else. This means that the else and it’s opening parenthesis starts on its own line: (more…)
Writing 2014-05-03
Sunday, June 15th, 2014Writing 2014-05-02
Sunday, June 15th, 2014Writing 2014-05-01
Sunday, June 15th, 2014Writing 2014-04-30
Sunday, June 15th, 2014PBP: 013 Chunking
Thursday, June 12th, 2014The suggestion in this one was very simple, “Code in paragraphs.” Deceptively simple, because it means different things to different people. (more…)
PBP: 012 Blocks
Monday, June 9th, 2014The Best Practices tell us never to place two statements on the same line.
In general, I agree with this, and find it a workable thing to do. There’s a few cases I forget, or decide not to. In most of them, it comes back to bite me later, and I wish I’d listened.
At the end of the day, I like whitespace, so yes, use a new line.