[Israel.pm] Last Meeting ("Programming Red Flags") Summary + What's Next for TelFOSS?

[Israel.pm] Last Meeting ("Programming Red Flags") Summary + What's Next for TelFOSS?

Steve Litt slitt at troubleshooters.com
Mon Jul 6 18:05:52 IDT 2009


On Monday 06 July 2009 09:59:01 am Gabor Szabo wrote:
> On Mon, Jul 6, 2009 at 4:46 PM, sawyer x<xsawyerx at gmail.com> wrote:
> > Hello.
> >
> >> The "Programming Red Flags" meeting had a high attendance, and was
> >> generally very successful. Thanks to all the people who came and special
> >> thanks to Yaron for volunteering to give such a great talk. Yaron told
> >> me he is now working on an updated version of his slides, which he'll
> >> send to me for putting on the TelFOSS site, so expect it there soon.
> >
> > Slides are available here:
> > http://www.slideshare.net/xSawyer/red-flags-1683319
>
> I am sorry I missed it. Nice slides.

Yes, it looks great -- I make those mistakes all the time :-)

Well, except for goto -- I'm not suicidal.

Anyway, a couple days ago I was reminded of another red flag -- mixing heavy 
break logic with heavy procedural logic. The input file was an outline for 
the convenience of the human, and the output is on-screen reminders. The 
logic was a 10kg ball of chewed gum -- I couldn't get free of it. 

So in the end I made a small routine that did nothing but break logic, and for 
each "event" in the outline it output a header followed by a series of data 
lines followed by a footer line. Then the main routine then became trivial:

If header
	make new event object
elsif data
	add data to event
elsif footer
	final event calculations
	process event

SteveT

Steve Litt
Recession Relief Package
http://www.recession-relief.US
Twitter: http://www.twitter.com/stevelitt




More information about the Linux-il mailing list