Author Archive
Writing 2014-06-15
Tuesday, September 23rd, 2014Writing 2014-06-14
Tuesday, September 23rd, 2014Writing 2014-06-13
Tuesday, September 23rd, 2014Writing 2014-06-12
Tuesday, September 23rd, 2014Writing 2014-06-11
Tuesday, September 23rd, 2014Writing 2014-06-10
Tuesday, September 23rd, 2014PBP: 042 Heredoc Indentation
Monday, September 22nd, 2014The Best Practices suggest that putting a heredoc in a deeply nested function looks funny because it has to be left-justified, and suggests creating a “theredoc” by writing a function that does nothing besides evaluate and return the heredoc. (more…)
PBP: 041 Here Documents
Thursday, September 18th, 2014The PBP tells us to use here documents when a multi line string is too long. It suggests two lines is long enough for a single string, and anything longer should be a here document. (more…)
PBP: 040 Multiline Strings
Monday, September 15th, 2014The PBP suggests breaking your strings on any embedded newlines so they look in code something like they’ll look when output. (more…)
PBP: 039 Long Numbers
Thursday, September 11th, 2014Great big numbers full of digits are hard to read and be sure they’re right, so the PBP suggest using the magic underscore in the numbers to spread them out and make them more readable. (more…)