PBP: 021 Lists

July 14th, 2014

Lists need to be formatted to be readable.  The suggestion is to always use parenthesis, indent after a parenthesis, and line things in columns, all with trailing commas.

The book provides clear examples, which I won’t duplicate here. Read the rest of this entry »

PBP: 020 Ternaries

July 10th, 2014

The book talks about how confusing the ternary operator can be and how much of a mess it can make.  I’m almost surprised it doesn’t say, “Don’t use it.”

It suggests columns instead, with the condition, then the positive result.

Read the rest of this entry »

Writing 2014-06-05

July 5th, 2014

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

Writing 2014-06-04

July 5th, 2014

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

Writing 2014-06-03

July 5th, 2014

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

Writing 2014-06-02

July 5th, 2014

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

PBP: 019 Assignments

July 3rd, 2014

The  PBP suggests breaking assignments much like it suggests breaking other operators; the assignment leads the broken line:


my $thingy

= $stuff + $hard_things + $foo;

Read the rest of this entry »

Writing 2014-06-01

July 1st, 2014

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

Writing 2014-05-31

July 1st, 2014

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

Writing 2014-05-30

July 1st, 2014

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