• The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
Menu
  • The Four Hundred
  • Subscribe
  • Media Kit
  • Contributors
  • About Us
  • Contact
  • REPL Tool Gives RPG Developers Immediate Feedback

    April 20, 2022 Alex Woodie

    If you’ve ever wanted to quickly know what a small snippet of RPG code does but do not want to take the time to compile a test program and go through the debugging process, then you might be interested in rpgle-repl, a new open source Read-Evaluate-Print-Loop (REPL) utility that was recently shared with the IBM i community.

    Tom Sharp, a senior developer at a financial software provider in the UK, says he created rpgle-repl after receiving numerous requests from his colleagues about what particular pieces of RPG code actually did.

    “The first place to check would always be the IBM Redbooks (especially if it was a section with examples!), then a search for articles and forums with similar questions on sites such as IT Jungle and Code400 for a more detailed walkthrough,” Sharp tells IT Jungle.

    If these resources didn’t provide an answer to his specific query, then he would ping his colleagues via his company’s Slack. Lastly, he would write a skeleton program to run the snippet in question, he says.

    Now he has something better. Instead of taking the time to write a skeleton program and then compiling and debugging it to see how it impacts the values of local variables, he created rpgle-repl, which he thinks is a better way.

    “This was something I created for our development team after realizing that our internal chat was full of questions like ‘What exactly do all these built-in functions do? How does this weird legacy code respond to these inputs? And is this the right free format equivalent to this old fixed format code I found?’” Sharp wrote in a post to Ryver, an online forum for discussions about open source IBM i software.

    In his Ryver post, Sharp describes rpgle-repl as “a lightweight wrapper to compile and run a program containing on-screen code, with some crafty parsing to print out the values at runtime.”

    The rpgle-repl offering, which can be downloaded from Sharp’s GitHub repository, speeds up the development process by allowing developers to quickly see what a snippet of code is doing. And not only does it automatically compile snippets of code, Sharp said, but it also dynamically records changed variables and displays the results on screen.

    The new rpgle-repl tool functions as a lightweight wrapper to compile and run an RPG program in an online manner. (Image source: Tom Sharp)

    Sharp says rpgle-repl lets him quickly see what his colleagues are up to, and whether what they’re doing is working or not. And since the snippets created by users are automatically saved according to their session ID, rpgle-repl allows users to share their snippets with others.

    The feedback among Sharp’s colleagues has been very positive, he says.

    “I think our most common use case is users double-checking the right combination of keywords to turn a date into a UK format date string,” he says. “My colleagues have also really helped shape usability questions on saving snippets and navigating the screen, and I’m always really excited to see how people are using it — especially when they start using it in ways I hadn’t even considered! There’s a real feeling of joy in seeing that people have been able to use rpgle-repl to check in less than a minute something that would have previous taken five minutes to look up.”

    The new tool also received a warm reception on Ryver. “Wow, that’s quite amazing,” wrote Kevin Adler, an IBM engineer based in Rochester, Minnesota. Others noted the potential of rpgle-repl to function as a training mechanism for new programmers, particularly with the ability the share snippets.

    Sharp said rpgle-repl has settled down as a stable product. He is soliciting feedback, and is open to requests for additional features. “My slow-moving roadmap has supporting nested data structures, and resolving a variable name length limit up next,” he said.

    For more information or to download rpgle-repl, see github.com/tom-writes-code/rpgle-repl.

    RELATED STORY

    Want to Talk IBM i OSS? Head Up the Ryver

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Tags: Tags: IBM i, Read-Evaluate-Print-Loop, REPL, RPG, rpgle-repl

    Sponsored by
    UCG TECHNOLOGIES

    A Focal Point Solutions Group Company

    EXPLORE OUR DATA CENTERS

    FPSG Data Centers are interconnected and strategically located across the US, Canada, and Europe. They are placed in leading technical and financial markets to provide you with global reach and scale. Our enterprise-grade centers are fully redundant and endlessly secure for our customers. Customers can use our data centers to run critical product applications by continually updating with the latest technology. You can develop, test, and have resources to validate your complete infrastructure, safeguard disaster recovery environments, and use software solutions in a diverse, real-world environment.

    LEARN MORE ABOUT OUR:

    • Compliance
    • Security
    • Power
    • Network
    • Connectivity Providers

    SECURITY COMPLIANCE SERVICE SOLUTIONS

    Our technical experts enable you to maintain security, data protection, and Industry/Government compliance level requirements for your enterprise. We specialize in PCI DSS, GLBA, GDPR, HIPPA, SOC, FISMA, ISO 17799, and COBIT.

    LET’S DISCUSS YOUR CLOUD REQUIREMENTS

    info@ucgtechnologies.com| ContactUs@FocalPointSg.com

    Share this:

    • Reddit
    • Facebook
    • LinkedIn
    • Twitter
    • Email

    Infor CM3 to Provide On-Prem Alternative to Cloudy M3 ALL400s Survey Paints a Picture of IBM i Community

    3 thoughts on “REPL Tool Gives RPG Developers Immediate Feedback”

    • paulhark@aol.com says:
      April 20, 2022 at 11:51 am

      Great idea!!!

      This has long been accomplished, and more, with the Real-Time Program Audit (RTPA) for IBM i RPG, COBOL and CL programs.
      see http://www.realtimeprogramaudit.com

      Real-Time Program Audit Overview Multilingual Demonstration English and German

      Real-Time Program Audit Overview Multilingual Demonstration English and German – YouTube

      Free one-year RTPA for IBM i evaluation downloads may be requested at http://www.realtimeprogramaudit.com

      ISV Toolmaker gmbh at http://www.toolmaker.de has a German (multilanguage) version of RTPA available as product directaudit

      Reply
    • Íñigo says:
      April 21, 2022 at 2:31 am

      The link to the repository is wrong.
      The correct one should be: https://github.com/SharpRepository/SharpRepository

      Reply
      • Íñigo says:
        April 21, 2022 at 2:32 am

        Sorry, wrong link (better check before publish) 😉

        Reply

    Leave a Reply Cancel reply

TFH Volume: 32 Issue: 27

This Issue Sponsored By

  • ARCAD Software
  • UCG TECHNOLOGIES
  • iTech Solutions
  • WorksRight Software
  • Krengeltech

Table of Contents

  • ALL400s Survey Paints a Picture of IBM i Community
  • REPL Tool Gives RPG Developers Immediate Feedback
  • Infor CM3 to Provide On-Prem Alternative to Cloudy M3
  • Four Hundred Monitor, April 20
  • IBM i PTF Guide, Volume 24, Number 16

Content archive

  • The Four Hundred
  • Four Hundred Stuff
  • Four Hundred Guru

Recent Posts

  • IBM Mulls Using DataMigrator as Cloud Warehouse Pipeline
  • PowerTech AV Automatically Detects Ransomware Activity
  • Infor Puts CM3 Project On Hold
  • Four Hundred Monitor, June 29
  • IBM i PTF Guide, Volume 24, Number 26
  • Guild Mortgage Takes The 20-Year Option For Modernization
  • IBM i Licensing, Part 3: Can The Hardware Bundle Be Cheaper Than A Smartphone?
  • Guru: The Finer Points of Exit Points
  • Big Blue Tweaks IBM i Pricing Ahead Of Subscription Model
  • We Still Want IBM i On The Impending Power E1050

Subscribe

To get news from IT Jungle sent to your inbox every week, subscribe to our newsletter.

Pages

  • About Us
  • Contact
  • Contributors
  • Four Hundred Monitor
  • IBM i PTF Guide
  • Media Kit
  • Subscribe

Search

Copyright © 2022 IT Jungle

loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.