Categories
Uncategorized

Programming poster of the day and Rob Pike’s 5 rules of programming

fancy algorithms

I made this poster after seeing (and retweeting) this from @CompSciFact, whom you should be following:

It’s the most amusing of Rob Pike’s 5 Rules of Programming, which are listed below:

  1. You can’t tell where a program is going to spend its time. Bottlenecks occur in surprising places, so don’t try to second guess and put in a speed hack until you’ve proven that’s where the bottleneck is.
  2. Measure. Don’t tune for speed until you’ve measured, and even then don’t unless one part of the code overwhelms the rest.
  3. Fancy algorithms are slow when n is small, and n is usually small. Fancy algorithms have big constants. Until you know that n is frequently going to be big, don’t get fancy. (Even if n does get big, use Rule 2 first.)
  4. Fancy algorithms are buggier than simple ones, and they’re much harder to implement. Use simple algorithms as well as simple data structures.
  5. Data dominates. If you’ve chosen the right data structures and organized things well, the algorithms will almost always be self-evident. Data structures, not algorithms, are central to programming.

It’s a good set of general rules to keep in mind.

Categories
Uncategorized

“Cyber Monday” programming book deals

books

If you’re looking for programming books, these publishers have some deals that you might want to check out today (Monday, December 1, 2014):

Get some programming books, save some money, and sharpen your skills!

Categories
Uncategorized

“Cyber Monday” deal: All Pragmatic Programmer ebooks are 50% off

pragmatic bookshelf sale

In case you hadn’t heard, The Pragmatic Bookshelf is offering all their ebooks at 50% off with the coupon code turkey2014. It says that the code is valid until December 1, 2014.

It’s not clear whether that means it’s valid until November 30, 2014 at 11:59:59 p.m. or December 1, 2014 at 11:59:59 p.m.. If you’ve had your eye on a Pragmatic Bookshelf book, I suggest you get it now.

Other Cyber Monday deals:

Categories
Uncategorized

“Cyber Monday” deal: All O’Reilly books and videos are 50% off

50 percent off

Here’s another techie deal for Cyber Monday: All O’Reilly books and videos are 50% off until Tuesday, December 2, 2014 at 5:00 a.m. Pacific (8:00 a.m. Eastern)! Just use the discount code CYBERDY when checking out.

As an added bonus, the discount goes up to 60% if you’re spending more than $100.

Other Cyber Monday deals:

Categories
Uncategorized

“Cyber Monday” deal: All Apress ebooks and alpha books for $15 each

only 15 on cyber monday

If you’re looking for a good programming book deal, be sure to visit Apress’ site on Monday, when all their ebooks and alpha (in mid-production) books will sell for $15 (instead of the usual $28 – 35) and Springer ebooks will see for $30 (instead of the usual $40 or more).

Some notable titles include:

Don’t forget to check out their site on Monday!

Other Cyber Monday deals:

Categories
Uncategorized

Shopify’s CEO Tobi Lütke named Canadian CEO of the Year

shopify cover

The Canadian newspaper The Globe and Mail have named their CEO of the year, and it’s Tobi Lütke, CEO of my former workplace, Shopify! My congrats to Tobi and the team for a job well done and a company well built.

This article also appears in my personal blog, The Adventures of Accordion Guy in the 21st Century.

Categories
Uncategorized

Do you remember these?

rf modulator

Back when game consoles and what were called “home computers” had composite video output using RCA jacks like the one below…

composite video

…TVs had either coax cable input…

tv cable input

…or, if your TV was really old, antenna input:

tv antenna input

In that era, you needed an RF modulator to convert your console’s or computer’s output into a signal your TV could use:

game - rf modulator - tv hookup

These days, there isn’t as much need for RF modulator boxes, as consoles and computers have VGA and HDMI outputs, and TVs have corresponding input jacks. However, there are still a number of monitors and other devices that don’t have HDMI inputs, which means that there’s a niche market for HD RF modulators. You can plug an HDMI cable into its input, and its output comes in old-fashioned-TV-friendly coax. If you need to play PS4 or Xbox games on your grandparents’ TV, you might want one of these:

hd rf modulator