Book Review: Java for RPG Programmers

Java
Typography
  • Smaller Small Medium Big Bigger
  • Default Helvetica Segoe Georgia Times

 Java for RPG Programmers has been popular for over a decade. This unique book manages to bridge the gap between the procedural nature of RPG and the sometimes mysterious world of Java and object-oriented programming (OOP). This Third Edition is a worthy entry in the book's history.

 

The problem for RPG programmers is that most Java books don't differentiate between application programming and system programming. Java has a dual nature: Java experts use the advanced features of the language to build system-level routines, and application programmers use those routines to build applications. Most RPG programmers need the latter explained in familiar terms.

 

Unfortunately, most Java tomes delve deeply into the intricacies of OOP, using terms that belong more in post-graduate Computer Science courses than in your average programming shop. I found the word "polymorphism" about five pages into the first Java book I read, and I immediately wondered what I'd gotten myself into.

 

I'm pretty good at Java now, but I wish I'd had this book to get me started. Java for RPG Programmers uses a unique "Rosetta Stone" approach in which Java concepts are compared to similar RPG concepts. The authors understand where the languages are similar and where they differ in a way that could confuse RPG programmers.  For example, they make sure to point out that arrays are zero-based in Java as opposed to one-based in RPG. And in their own words, they don't "hit you over the head" with OO stuff. They explain it where needed and leave it out where it's unimportant.

 

The book covers all the important facets of Java programming from an application standpoint—from basic syntax and control logic to database programming. I also appreciate that they don't teach outmoded techniques for the sake of filling space; instead, they present expert-level techniques for solving basic programming issues. I've been programming Java for a decade, and I still learned a couple of new tricks.

 

As an added bonus, they go out of their way to make RPG III programmers comfortable in the RPG ILE world. Since ILE has more in common with modern languages than old OPM-style RPG, it's to your benefit to understand ILE programming. But the authors understand that not everyone is an ILE expert, so where it's appropriate, they compare the two RPG styles. Things like exception handling and even things as basic as the D-specification are explained so that RPG III programmers can get up to speed and make the transition to Java.

 

This book is obviously written by and for real programmers. There are several pages just on commenting, including a remark ("You do comment your code, don't you?") that lets us know that these guys have been in the trenches. The authors even went so far as to include a brief but helpful "How-To" section for common System i issues. In the end, it's clear this was meant for System i programmers, right down to an appendix on IBM's Java Toolbox, which allows access to System i data and objects.

 

If you're an RPG programmer who wants move into Java programming, this is an excellent book to get you there.

Joe Pluta

Joe Pluta is the founder and chief architect of Pluta Brothers Design, Inc. He has been extending the IBM midrange since the days of the IBM System/3. Joe uses WebSphere extensively, especially as the base for PSC/400, the only product that can move your legacy systems to the Web using simple green-screen commands. He has written several books, including Developing Web 2.0 Applications with EGL for IBM i, E-Deployment: The Fastest Path to the Web, Eclipse: Step by Step, and WDSC: Step by Step. Joe performs onsite mentoring and speaks at user groups around the country. You can reach him at This email address is being protected from spambots. You need JavaScript enabled to view it..


MC Press books written by Joe Pluta available now on the MC Press Bookstore.

Developing Web 2.0 Applications with EGL for IBM i Developing Web 2.0 Applications with EGL for IBM i
Joe Pluta introduces you to EGL Rich UI and IBM’s Rational Developer for the IBM i platform.
List Price $39.95

Now On Sale

WDSC: Step by Step WDSC: Step by Step
Discover incredibly powerful WDSC with this easy-to-understand yet thorough introduction.
List Price $74.95

Now On Sale

Eclipse: Step by Step Eclipse: Step by Step
Quickly get up to speed and productivity using Eclipse.
List Price $59.00

Now On Sale

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

Book Reviews

Resource Center

  •  

  • LANSA Business users want new applications now. Market and regulatory pressures require faster application updates and delivery into production. Your IBM i developers may be approaching retirement, and you see no sure way to fill their positions with experienced developers. In addition, you may be caught between maintaining your existing applications and the uncertainty of moving to something new.

  • The MC Resource Centers bring you the widest selection of white papers, trial software, and on-demand webcasts for you to choose from. >> Review the list of White Papers, Trial Software or On-Demand Webcast at the MC Press Resource Center. >> Add the items to yru Cart and complet he checkout process and submit

  • SB Profound WC 5536Join us for this hour-long webcast that will explore:

  • Fortra IT managers hoping to find new IBM i talent are discovering that the pool of experienced RPG programmers and operators or administrators with intimate knowledge of the operating system and the applications that run on it is small. This begs the question: How will you manage the platform that supports such a big part of your business? This guide offers strategies and software suggestions to help you plan IT staffing and resources and smooth the transition after your AS/400 talent retires. Read on to learn: