lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


@Sean I agree, my first run animal examples were a mess.  Consider it gone.  I like your real world IO example.  It's the best motivation I've ever read to get into the device driver business myself :o) but I think a single page worth of fantastic animals (my second run examples) can provide a high level run through of the is-a/has-a oop stuff.  And I'm just more of an expert on animals than devices.

If I can get through that overview quick, I'll then head into the simple Android/iOS UI stuff for "real" code that does something (as per @Coda's suggestion).  I put "real" in quotes because at first we'll just be putting the pretty pictures and buttons on our nexus/iphones (but even this will eat up the pages quick).  Eventually the real "real" code will be something like write your own email client for your phone (or similar).

@Steve that's a good idea.  A good chapter/section title would be "Debugging Lua: What To Do When the Print Statements Fail"  I think this would be most effective if I can settle on a single IDE with debugger support.  (And tbh, the freer the better so I need to look at ZBS).  And then just cover step into/out of/over/run/inspect vars with screenshots.  Any further ideas on that?

@Everyone, regarding the "OO Overused" thread.  You know, I love the functional languages.  If you give me first class functions, lexical scoping, closures and tail call elimination, I'm yours!  But OO is what puts asses in the seats.  Beginning and experienced programmers flock to the OO books and blogs because it is the currently accepted paradigm.  It's what gets you a paying job because it's what the bosses and the managers want.

This is sort of relevant by the way (and even if it isn't it's still awesome) https://www.youtube.com/watch?v=LR8fQiskYII

"Java is the COBOL of the 21st century"  I love it.




On Thu, Oct 3, 2013 at 4:13 PM, Steve Litt <slitt@troubleshooters.com> wrote:
On Thu, 3 Oct 2013 15:36:11 -0500
Steven Johnson <steve@xibalbastudios.com> wrote:


> #7 - "Debugging is easy"
>
> There's a lot one can cover when it comes to debugging strategies,
> error diagnosis, and the like, but often I've seen
> author just mention, say, "Put a print() statement here", and call it
> a day.

I think that to do justice to debugging, you need to go over the whole
debugging mindset, and very few people document that. I know, I'm one
of the few.

This is going to sound like a crass promotion, but I think it's a valid
one: If I were writing a software book and wanted to address debugging
(and any software book had better), I'd write a chapter on debugging, in
which I'd recommend one of Steve Litt's troubleshooting books for a
complete mindset/habit/process reference.

Thanks,

SteveT

Steve Litt                *  http://www.troubleshooters.com/
Troubleshooting Training  *  Human Performance