3X to i5 Flashback

An irreverent look at life with IBM's midrange computers for the last 25 years

RPG

March 18, 2007

Stupid RPG tricks and sourdough programming starter

Remember learning to program before the Internet? How did we do it? How did we learning anything? Back in the good ol' days, programming tricks and techniques were passed around from one programmer to another like sourdough starter was passed from gold prospector to gold prospector in the 1800s.

Early on for me, in the middle of a cornfield in Indiana learning RPG back in the late 70's and early 80's, I learned first not from magazines or COMMON, but rather from a few local programmers. I remember having lunch one day with a programmer friend of mine. We had hired the company he worked for to help us out and he was the guy assigned to our account. Long story short, he and his company weren't much help. But he did teach me a thing or two.

For a couple of years, before I learned that there were actually midrange programming educational resources avaiable, he and his crappy code were my main source of programming sourdough starter. I recall the thrill I got when I learned from reading his code how to set the value of sequential indicators with a single line of code. A single line of code! Remember this oldie-but-goodie:

'0010100' MOVEA *IN,55

Geeze, Louise. I thought the guy was a genius. I used the technique everywhere. Of course, the technique moved my already near-awful code a few squares closer to pure awful. But, hey, at least I was making it awful with very few lines of code!

The other nearly famous RPG trick I learned from reading my buddy's code was the infamous 10000.01 date multiplication trick. Of course, the trick wasn't commented and there weren't any meaningful field names used; it wasn't until about the 100th viewing that it dawned on me what was happening. With just one line of code, and no data structures or other nonsense, you could easily convert a MMDDYY numeric date into YYMMDD. Again, genius! It would be several years, and require another programming platform and language before the date data type light came on for me. But until it did, I thought 10000.01 was date manipulation nirvana.

How about you? What's your favorite stupid RPG trick? And who provided your programming sourdough starter?

rp

Posted by rpence on March 18, 2007 at 11:03 PM | Comments (2) | TrackBack

Bill Blalock
August 2008
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            

Blog Policy

Our blogs are editorial content of System iNetwork. We welcome your comments and opinions and encourage lively debate on the issues, and we reserve the right to edit all postings for clarity, length, civility of tone, and appropriateness to the topic under discussion. Comments consisting of product or job solicitations and other spam, profanity, and extreme rudeness will be deleted. We also reserve the right to publish excerpts from the blogs in our e-mail newsletters and print magazine.

ProVIP Sponsors