25
Thu, Apr
1 New Articles

New Year's Resolutions for RPG Programmers

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

It's that time of the year again for us to resolve how this year will be different from last. So what should be at the top of the list for the modern IBM i professional?

 

OK, I know that traditionally we make our New Year's resolutions at the end of December so that we can jump right on them in the new year, so these are a bit belated. But that's OK because by now you've abandoned your resolutions to lose weight, get in shape, stop chewing smokeless tobacco, and a dozen other things that you pledged to three weeks ago.

 

Now it's time for some professionally oriented resolutionsa list of things that you should, and can, do over the next year. They're not things that you have to or even can do all at once, but if taken one at a time in slow careful bites, they're things you can seriously accomplish in the next 12 months.

 

Start Using /Free

This is an easy oneand one that you should already be doing. If not, now is the time to start.

 

I know you have a lot of positional code out there, probably gobs and gobs of it, but that doesn't mean you have to perpetuate it. There's nothing wrong with doing modifications and enhancements in /Free. We worry so much about screens looking modern. We should be just as concerned about replacing code that looks like something out of an Assembler handbook.

 

In many shops, management dismisses /Free, saying, "Not everyone knows it." That's sort of like saying no one should stop for red traffic lights because some people don't do it. If everyone doesn't know it, then everyone should learn it. This should be a departmental priority for every IT group2016, the year everyone learned and began using /Free exclusively.

 

Pick up Jim Martin's book, invest a little time, and do it.

 

Embrace ILE

Here's another onea technology that has been around for almost 20 years that's still not being embraced the way it should be.

 

And what am I talking about here? To start with, subprocedures instead of subroutines, prototyped calls, and service programs.

 

You can easily incorporate subprocedures into existing programs instead of subroutines. And you should definitely start to think about service programs and how you want to work them into your little bag of tricks. By the end of the year, you should have a strategy in place and have at least one service program doing some of your heavy lifting.

 

Learn it, live it, love it. My suggestion is Rafael Victoria-Pereira's new book, Evolving Your RPG Coding. Check out the RPG ILE sections (you can read the rest of it too; there's no law against it).

 

Learn a New i Skill

Every person's situation is different. Maybe you're learning tons of new stuff all the time. Maybe you just do pretty much the same thing over and over again. If you're in the latter group, set a goal of learning one new i skill over the coming year.

 

It doesn't have to be huge; it just has to be something that keeps you going in the i world.

 

Maybe you use a little SQL but don't do more-complex things, like various types of joins or fetch thingies.

 

Or maybe you use SQL but have never used the new SQL-based IBM i Services that Scott Forstie's group has developed.

 

Or maybe you'd like to learn how to use POI to create your own Excel-type outputs.

 

I admit this one could be optional. If you teach yourself /Free and ILE, then I guess this one is covered, but if you already know that stuff, then this resolution is fair game.

 

Learn a Web Skill

This one you can do regardless of anything above.

 

I know they say it causes hives and makes one liable to a serious case of the heebie jeebies, and that's probably correct, but you can't ignore the web anymore.

 

Besides, it makes you look cool, and no matter how old we RPGers get, looking cool is still important.

 

What should you start with? Well, if you're completely new to the web, you probably want to dig into HTML. HTML5 specifically. Nothing else is worth bothering with unless you're going to transition over to being a web designer who has to deal with older HTML versions. I like the introductory courses on Code School; it's video instruction with exercises that are completely self-contained. Another good option is Shay Howe's series on HTML (and CSS).

 

And, if you know HTML already, get into CSS3. Again, Code School has some excellent courses, but you can also just google "CSS3 tutorials" and get a ton of references.

 

If you're familiar with those basic client languages, then you might want to take your first steps into PHP or Ruby. Or you might want to go the JavaScript route. What's the difference? JavaScript is a client-side language, and it's used to change your web pages from being static to dynamic. That may sound dumb, but adding even a little bit of dynamic content to your business web portals goes a long way to making them seem more professional and modern. PHP and Ruby are server-side languages that also add dynamic elements to the web page by allowing you to access and display information held in a database.

 

There are tons of options out there; what's important is to get started. Don't fear the dark side. Embrace it, for you do not yet know its power.

 

Code Modular

Number one on the list, over and above everyone else, is to make this the year that you start to code modular. Of all the things you can do to modernize your systems, refactoring some existing code into a modular format is without a doubt the most important.

 

Yes, people look at screens when they consider whether a system is modern, but frankly a lot of i users don't see green-screens as the main problem, and many even appreciate the speed and simplicity of the green-screen versus the web.

 

And techies look at the database as one way of determining a system's age. Is the database DDL-based SQL? If not, then it's not modern. And I don't dispute that too much. Yes, SQL is technically superior to DDS-based files, but for many functions the difference is more academic than real.

 

What's critical is that when management makes a decision that your system is outdated, it does so based on how long it takes to add an enhancement, on the number of bugs or problems that are introduced in the process, and the fact that they feel like they're being held prisoner by older programmers who are likely to die or retire at any moment. Strangely enough, this fear they feel isn't great enough to cause them to pay those programmers more or give them the one thing they have always wanted (La-Z-Boy chairs in the conference room), but that's another issue for another day.

 

Most of us think of modularization as something that we can do only on new systems, where we're starting from scratch. But what we really need to do is pick a system that currently exists in a BOP (Big Ol' Program) state and then refactor that down into modules, hopefully starting you down the service program road.

 

Yes, you'll need management approval, and yes, it'll require some work, and yes, there's some risk, but I think modularization will very quickly show that your existing applications can be refactored, just as is done with web software, to make your code more efficient and easier to modify in the future. And frankly, if you can't convince management to do this, then the writing is on the wall. They're going to bring in some other language and package eventually.

 

Good Luck

New Year's Resolutions are almost impossible to keep, maybe because often they really aren't that important to us. But this is one set of resolutions that you should seriously try to keep alive.

 

David Shirey

David Shirey is president of Shirey Consulting Services, providing technical and business consulting services for the IBM i world. Among the services provided are IBM i technical support, including application design and programming services, ERP installation and support, and EDI setup and maintenance. With experience in a wide range of industries (food and beverage to electronics to hard manufacturing to drugs--the legal kind--to medical devices to fulfillment houses) and a wide range of business sizes served (from very large, like Fresh Express, to much smaller, like Labconco), SCS has the knowledge and experience to assist with your technical or business issues. You may contact Dave by email at This email address is being protected from spambots. You need JavaScript enabled to view it. or by phone at (616) 304-2466.


MC Press books written by David Shirey available now on the MC Press Bookstore.

21st Century RPG: /Free, ILE, and MVC 21st Century RPG: /Free, ILE, and MVC
Boost your productivity, modernize your applications, and upgrade your skills with these powerful coding methods.
List Price $69.95

Now On Sale

BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$0.00 Raised:
$

Book Reviews

Resource Center

  • SB Profound WC 5536 Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application. You can find Part 1 here. In Part 2 of our free Node.js Webinar Series, Brian May teaches you the different tooling options available for writing code, debugging, and using Git for version control. Brian will briefly discuss the different tools available, and demonstrate his preferred setup for Node development on IBM i or any platform. Attend this webinar to learn:

  • SB Profound WP 5539More than ever, there is a demand for IT to deliver innovation. Your IBM i has been an essential part of your business operations for years. However, your organization may struggle to maintain the current system and implement new projects. The thousands of customers we've worked with and surveyed state that expectations regarding the digital footprint and vision of the company are not aligned with the current IT environment.

  • SB HelpSystems ROBOT Generic IBM announced the E1080 servers using the latest Power10 processor in September 2021. The most powerful processor from IBM to date, Power10 is designed to handle the demands of doing business in today’s high-tech atmosphere, including running cloud applications, supporting big data, and managing AI workloads. But what does Power10 mean for your data center? In this recorded webinar, IBMers Dan Sundt and Dylan Boday join IBM Power Champion Tom Huntington for a discussion on why Power10 technology is the right strategic investment if you run IBM i, AIX, or Linux. In this action-packed hour, Tom will share trends from the IBM i and AIX user communities while Dan and Dylan dive into the tech specs for key hardware, including:

  • Magic MarkTRY the one package that solves all your document design and printing challenges on all your platforms. Produce bar code labels, electronic forms, ad hoc reports, and RFID tags – without programming! MarkMagic is the only document design and print solution that combines report writing, WYSIWYG label and forms design, and conditional printing in one integrated product. Make sure your data survives when catastrophe hits. Request your trial now!  Request Now.

  • SB HelpSystems ROBOT GenericForms of ransomware has been around for over 30 years, and with more and more organizations suffering attacks each year, it continues to endure. What has made ransomware such a durable threat and what is the best way to combat it? In order to prevent ransomware, organizations must first understand how it works.

  • SB HelpSystems ROBOT GenericIT security is a top priority for businesses around the world, but most IBM i pros don’t know where to begin—and most cybersecurity experts don’t know IBM i. In this session, Robin Tatam explores the business impact of lax IBM i security, the top vulnerabilities putting IBM i at risk, and the steps you can take to protect your organization. If you’re looking to avoid unexpected downtime or corrupted data, you don’t want to miss this session.

  • SB HelpSystems ROBOT GenericCan you trust all of your users all of the time? A typical end user receives 16 malicious emails each month, but only 17 percent of these phishing campaigns are reported to IT. Once an attack is underway, most organizations won’t discover the breach until six months later. A staggering amount of damage can occur in that time. Despite these risks, 93 percent of organizations are leaving their IBM i systems vulnerable to cybercrime. In this on-demand webinar, IBM i security experts Robin Tatam and Sandi Moore will reveal:

  • FORTRA Disaster protection is vital to every business. Yet, it often consists of patched together procedures that are prone to error. From automatic backups to data encryption to media management, Robot automates the routine (yet often complex) tasks of iSeries backup and recovery, saving you time and money and making the process safer and more reliable. Automate your backups with the Robot Backup and Recovery Solution. Key features include:

  • FORTRAManaging messages on your IBM i can be more than a full-time job if you have to do it manually. Messages need a response and resources must be monitored—often over multiple systems and across platforms. How can you be sure you won’t miss important system events? Automate your message center with the Robot Message Management Solution. Key features include:

  • FORTRAThe thought of printing, distributing, and storing iSeries reports manually may reduce you to tears. Paper and labor costs associated with report generation can spiral out of control. Mountains of paper threaten to swamp your files. Robot automates report bursting, distribution, bundling, and archiving, and offers secure, selective online report viewing. Manage your reports with the Robot Report Management Solution. Key features include:

  • FORTRAFor over 30 years, Robot has been a leader in systems management for IBM i. With batch job creation and scheduling at its core, the Robot Job Scheduling Solution reduces the opportunity for human error and helps you maintain service levels, automating even the biggest, most complex runbooks. Manage your job schedule with the Robot Job Scheduling Solution. Key features include:

  • 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.

  • LANSAWhen it comes to creating your business applications, there are hundreds of coding platforms and programming languages to choose from. These options range from very complex traditional programming languages to Low-Code platforms where sometimes no traditional coding experience is needed. Download our whitepaper, The Power of Writing Code in a Low-Code Solution, and:

  • LANSASupply Chain is becoming increasingly complex and unpredictable. From raw materials for manufacturing to food supply chains, the journey from source to production to delivery to consumers is marred with inefficiencies, manual processes, shortages, recalls, counterfeits, and scandals. In this webinar, we discuss how:

  • 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

  • Profound Logic Have you been wondering about Node.js? Our free Node.js Webinar Series takes you from total beginner to creating a fully-functional IBM i Node.js business application.

  • 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: