or, “in search of the lazy programmer”. a slide with a fancy title (and #)counts except this...
TRANSCRIPT
![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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/1.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/2.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/3.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/5.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/6.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/7.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/8.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/9.jpg)
“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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/10.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/11.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/12.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/13.jpg)
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](https://reader036.vdocuments.us/reader036/viewer/2022070412/5697bf7c1a28abf838c84258/html5/thumbnails/14.jpg)
Demos, Questions,Debate