Writing 2014-06-15

September 23rd, 2014

hw20140921-01.jpg Read the rest of this entry »

Writing 2014-06-14

September 23rd, 2014

hw20140920-01.jpg Read the rest of this entry »

Writing 2014-06-13

September 23rd, 2014

hw20140919-01.jpg Read the rest of this entry »

Writing 2014-06-12

September 23rd, 2014

hw20140918-01.jpg Read the rest of this entry »

Writing 2014-06-11

September 23rd, 2014

hw20140917-01.jpg Read the rest of this entry »

Writing 2014-06-10

September 23rd, 2014

hw20140916-01.jpg Read the rest of this entry »

PBP: 042 Heredoc Indentation

September 22nd, 2014

The 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. Read the rest of this entry »

PBP: 041 Here Documents

September 18th, 2014

The 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. Read the rest of this entry »

PBP: 040 Multiline Strings

September 15th, 2014

The PBP suggests breaking your strings on any embedded newlines so they look in code something like they’ll look when output. Read the rest of this entry »

PBP: 039 Long Numbers

September 11th, 2014

Great 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. Read the rest of this entry »