seven war stories and a moral

10
Mpsig November 2Nd, 2013 7 War Stories & a Moral John Ashmead

Upload: john-ashmead

Post on 19-May-2015

129 views

Category:

Technology


2 download

DESCRIPTION

Seven Victories over the Forces of Chaos & Entropy; with some Morals attached for the Instruction & Edification of the Young

TRANSCRIPT

Page 1: Seven War Stories and a Moral

Mpsig November 2Nd, 2013

7 War Stories & a MoralJohn Ashmead

Page 2: Seven War Stories and a Moral

Informix Stored Procedure Template

✤ Stored procedure -- about 100 lines long & did nothing!

✤ Standard comments!

✤ Standard security checks!

✤ Logged that it ran!

✤ Copy & hack!

✤ Most useful thing I did at 1838 apparently???

Page 3: Seven War Stories and a Moral

Reading the meta data

✤ All the foreign keys are in the meta data!

✤ Most stored procedures are just joins & a few fields!

✤ So give it the tables & it can lookup the join keys!

✤ Generated 100K lines in < 2 minutes!

✤ 90% useable, 8% good starting point, 2% -- what is life without work?!

✤ Two month contract done in 3 days

Page 4: Seven War Stories and a Moral

How to lie to the software

✤ Only four fonts; needed eight!

✤ Needed only four at one time, however! Did have to use the font tables!

✤ So, just mapped the four we needed on the way in & back on the way out.!

✤ Wrote a shell script to lie systematically!

✤ Got idea at 11:30 am on a Saturday in a garden

Page 5: Seven War Stories and a Moral

Brain damaged co-worker

✤ Had negative typing speed!

✤ Wrote a 4 up address program he couldn’t screw up!

✤ So he formatted our journal articles using it!!

✤ Finally gave up & just put him in front of a pile of envelopes

Page 6: Seven War Stories and a Moral

File system checker

✤ Checked for overlaps, not in backups, & so on!

✤ 1000 lines, written in a single day. !

✤ One bug, co-worker worked it out!

✤ Had every setting known to be needed by man!

✤ Operators said they needed just one: fix it!

Page 7: Seven War Stories and a Moral

The report of many colors

✤ 60% hit rate on video; should have gotten 90%!

✤ four departments each pointing the finger in three directions!

✤ Wrote report of: of 100 going in to your stage, what % escaped? Red, yellow, green!

✤ Turned out the damage about equally spread out!

✤ A great silence descended on the company or at least the four departments

Page 8: Seven War Stories and a Moral

Falling off the edge of the world

✤ Idiot switchers kept overflowing their 64K buffers!

✤ Had trouble calling home when the satellite told them to!

✤ Wrote a report: switchers at the edge of the world, with those most delinquent in orange & red!

✤ Wrote a mad-polling script to hammer them. Operators loved this!

✤ Tweaked continuously

Page 9: Seven War Stories and a Moral

Twelve for one

✤ Previous programmer had died; moonlighting IRS agent.!

✤ 12 copies of main report; 3 minute gaps on ideas, 11 edits would be right!

✤ Told lab director, I can do it the same way. Or I can spend two days consolidating using “make” & “m4”, so there is really only one report!

✤ Take the two days!

Page 10: Seven War Stories and a Moral

And a Moral

✤ Know the tech!

✤ Know the business!

✤ Take a walk in the garden