14
Maia 10-20-30 Or, “In search of the lazy programmer”

Or, “In search of the lazy programmer”. A slide with a fancy title (and #)counts Except this one Ask questions at any time Rules

Embed Size (px)

Citation preview

Page 1: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Maia 10-20-30Or, “In search of the lazy programmer”

Page 2: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

A slide with a fancy title (and #)counts Except this one Ask questions at any time

Rules

Page 3: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Started with Progress v3 1987 Dot R created 1991 Acquired 1996 MBO 2012

#1 Dot R and Me

Page 4: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

New methodology Unit tests Separate Model from DB

#2 A new way

Page 5: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Wanted modern, clean code Dynamic Code ! Yay! Separate Model from DB

#3 A new way

Page 6: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Single base class All crud handled for any table Weekend of hard work Several beers in celebration

#4 Success!

Page 7: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Need to add extra functionality (lookup etc) Explain methodology to other devs Use methodology in other systems Let’s fire it up and see !

#5 Time for change

Page 8: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Horrible code Dynamic everything. Arrgggh. Should be xxx rated Document it. That will sort it out

#6 Failure !

Page 9: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

“Debugging is twice as hard as writing the code in the first place.

Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it”

Brian Kernighan

Page 10: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Why this way ? Showing off how clever I was… Keep my job ;) However, it’s wrong wrong wrong

#7 On Reflection

Page 11: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Needed lots of samey code I didn’t want to write the code (#1 lazy programmer) So, get the computer to do it

#8 Code Generation

Page 12: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Consistency Predictable: No surprises Understandable Faster than you are

#9 Code Generation

Page 13: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Maia uses templates ActiveRecord framework Roll your own Easy and productive

#10 Summary

Page 14: Or, “In search of the lazy programmer”.   A slide with a fancy title (and #)counts  Except this one  Ask questions at any time Rules

Demos, Questions,Debate