fhg
Volume 12, Number 19 -- July 25, 2012

Is An RPGOA-like Standard For HTML5 On The Horizon?

Published: July 25, 2012

by Alex Roytman

There is a lot of talk lately about HTML5. But do most people understand what HTML5 really is? One way to define it is to say it's the next version of HTML; basically an update to HTML4.

But is it more than that? Perhaps it's not just an update, but a new thing altogether, a new way to build Web and mobile applications.

To me, HTML5 signifies a different paradigm, where Web applications are built as true applications, not just as Web pages.

More Than Just HTML

The enhancements being adopted and proposed into the HTML5 standard encompass HTML, CSS, and JavaScript. Although we refer to it as simply HTML5, most of the HTML5 demos I encounter online seem to contain a lot more CSS and JavaScript than HTML, and I think that's where the power really is.

Here are some features that I think are game-changing:

  • Canvas elements allowing you to render just about anything in the browser.
  • Simple session and local storage, including a built-in SQL database.
  • Reading and processing local files.
  • Offline application caching, which allows you launch and use an application even when you have no access to the server.
  • Built-in drag and drop, including dragging files from other windows or the desktop.
  • Powerful audio and video support.
  • Workers for multi-threading in the browser (similar to submitted jobs on the IBM i).
  • Web sockets for two-way TCP communications between the server and browser; the server can push messages to the client at any time (it's like AJAX on steroids).

These are just some of the new capabilities provided by HTML5.

Sure, we can still use HTML5 in the same old HTML4-way, but the real advantage comes from using some of the features described above in a programmatic way. And there are many tools and JavaScript libraries (including some IBM i and RPG-centric tools) being developed to take advantage of these new HTML5 features.

HTML5 Is Still Being Defined

While today's browsers are starting to implement many HTML5 features, the HTML5 standard is still being defined. The World Wide Web Consortium (W3C) is collecting, organizing, and standardizing proposals from its members and the public on how to make the Web better.

One participant that has contributed a lot is Google, a company that certainly has a lot vested in the World Wide Web. Google has worked on a number of frameworks and ideas on how applications should be built with HTML5.

What are those ideas? Some of you may be surprised, and perhaps thrilled, to find out that their ideas are very similar in concept to display-file programming that RPG developers are so intimately familiar with. Nowadays, RPG also provides RPG Open Access, which can extend the display file programming paradigm to Web and mobile applications.

RPGOA Is All About Records

Display files are organized into record formats, which do a tremendous job of separating the display portion of any application from the core logic. The idea is that you bind variables to certain portions of the display and allow your RPG code to control or read those variables. The RPG code only controls the display through a set of variables or indicators in the record format--never directly!

This design, in which different aspects of an application are well separated, is also known by the term MVC (Model-View-Controller). RPGOA automatically separates the view from the model and controller in this case. If you chose to do it, you can also detach the model from the controller by creating ILE service programs to house separate business logic.

With RPGOA and display files, the separation is built in. However, this is not the case with most other types of Web application development. While other Web developers strive toward this separation, they have to work much harder to achieve it.

Google is looking to improve upon this by extending the capabilities of HTML and making HTML work more like a display file.

Model-Driven Views

Developers at Google are proposing something called MDV (Model-Driven Views). They define it like this:

Model-Driven Views (MDV): A proposal for extending HTML to support a sensible dynamic separation between page display and the data which drives it. Updates to the data are reflected in the page, and user input into the page is immediately assigned to the data.

I ran into the concept as it was being discussed on the W3C forums. It sounded a lot like a display file when I first read about it, and upon further research, my suspicions were confirmed.

If you find this just as fascinating as I do, here are some relevant links:

AngularJS

Google recently published another project called AngularJS. AngularJS is an open source JavaScript library that is very different from any other library I have seen. You don't call its functions, and it does not call your functions. Instead, it extends HTML with dynamic data, again making HTML very similar to display files on the IBM i.

It is unclear whether Angular and MDV originated from the same team at Google, but they do appear to be almost identical in concept.

Conclusion

HTML5, the new way to develop Web and Mobile applications, is here now and evolving at a rapid pace. Fortunately, RPGOA is positioned well to take advantage of what the architects of the HTML5 standard may have in mind for it. The simplicity is brilliant: to display a screen, we simply write the screen's data, and everything else is taken care of automatically.

Many have criticized Open Access in the past. The concept of display files and ExFmt/Write/Read RPG style of development is so old; it can't be good, right? But those that embraced it have seen that this style of programming for Web applications is more reliable and easier to work with compared to the traditional ways. Companies like Google are validating the concept as well.


Alex Roytman is an innovator in the field of legacy application modernization, with a concentration on creating rich browser interfaces on the IBM i (iSeries/AS400) system. His company, Profound Logic Software, provides an innovative graphical user interface platform for ILE RPG developers on the IBM i. Profound Logic has facilitated the modernization of many millions of lines of legacy RPG code, and serviced thousands of customers, including prominent enterprises such as Nintendo, Disney, Nike, Pepsi, FedEx, Volvo, Sony, General Electric, and Warner Brothers. Most recently, Alex and his team have worked closely with IBM to define a new era for the IBM i platform--an era where a graphical user interface is native to the system. Through a joint offering (RPG OA from IBM and Profound UI from Profound Logic), developers can use sophisticated design tools to create native IBM i user interface objects to modernize and extend existing legacy code. This new approach has proven to be 10 to 20 times more effective compared to traditional application modernization.




                     Post this story to del.icio.us
               Post this story to Digg
    Post this story to Slashdot


Sponsored By
WORKSRIGHT SOFTWARE

Do you need area code information?
Do you need ZIP Code information?
Do you need ZIP+4 information?
Do you need city name information?
Do you need county information?
Do you need a nearest dealer locator system?

We can HELP! We have affordable AS/400 software and data to do all of the above. Whether you need a simple city name retrieval system or a sophisticated CASS postal coding system, we have it for you!

The ZIP/CITY system is based on 5-digit ZIP Codes. You can retrieve city names, state names, county names, area codes, time zones, latitude, longitude, and more just by knowing the ZIP Code. We supply information on all the latest area code changes. A nearest dealer locator function is also included. ZIP/CITY includes software, data, monthly updates, and unlimited support. The cost is $495 per year.

PER/ZIP4 is a sophisticated CASS certified postal coding system for assigning ZIP Codes, ZIP+4, carrier route, and delivery point codes. PER/ZIP4 also provides county names and FIPS codes. PER/ZIP4 can be used interactively, in batch, and with callable programs. PER/ZIP4 includes software, data, monthly updates, and unlimited support. The cost is $3,900 for the first year, and $1,950 for renewal.

Just call us and we'll arrange for 30 days FREE use of either
ZIP/CITY or PER/ZIP4.

WorksRight Software, Inc.
Phone: 601-856-8337
Fax: 601-856-9432
E-mail: software@worksright.com
Web site: www.worksright.com


Senior Technical Editor: Ted Holt
Technical Editor: Joe Hertvik
Contributing Technical Editors: Edwin Earley, Brian Kelly, Michael Sansoterra
Publisher and Advertising Director: Jenny Thomas
Advertising Sales Representative: Kim Reed
Contact the Editors: To contact anyone on the IT Jungle Team
Go to our contacts page and send us a message.

Sponsored Links

Townsend Security:  View the recorded Webcast: Secure Managed File Transfers for the IBM i
Help/Systems:  FREE: Download the IBM i Scheduling Survival Guide
Abacus Solutions:  More affordable and flexible alternatives to deliver secondary workloads


 

IT Jungle Store Top Book Picks

BACK IN STOCK: Easy Steps to Internet Programming for System i: List Price, $49.95

The iSeries Express Web Implementer's Guide: List Price, $49.95
The iSeries Pocket Database Guide: List Price, $59
The iSeries Pocket SQL Guide: List Price, $59
The iSeries Pocket WebFacing Primer: List Price, $39
Migrating to WebSphere Express for iSeries: List Price, $49
Getting Started with WebSphere Express for iSeries: List Price, $49
The All-Everything Operating System: List Price, $35
The Best Joomla! Tutorial Ever!: List Price, $19.95


 
The Four Hundred
IBM Gives Killer Power System Deals Down Under

Big Blue Cranks Up The Profit Engine In Q2

Another Look At .NET Apps Accessing IBM i

As I See It: To Serve, To Strive, And Not To Yield

IBM Should Buy Mellanox Before HP Or Cisco Does

Four Hundred Stuff
CYBRA Completes Forms Journey with MarkMagic 8

Jumping Hurdles From Green Screen to Graphical

Software AG Maintains Investment in Jacada Tools

Raz-Lee Cracks Down on CL Commands with New Software

Robot/NETWORK Now Displays Performance Data

Four Hundred Monitor
Four Hundred Monitor's
Full iSeries Events Calendar

System i PTF Guide
July 21, 2012: Volume 14, Number 29

July 14, 2012: Volume 14, Number 28

July 7, 2012: Volume 14, Number 27

June 30, 2012: Volume 14, Number 26

June 23, 2012: Volume 14, Number 25

June 16, 2012: Volume 14, Number 24

TPM at The Register
ARM grabs TSMC's 3D FinFETs for future 64-bit PC brains

Scottish cloud abacus gobbled by control freak RightScale

AMD pins its server hopes on SeaMicro technology - maybe in APUs

Super Micro misses target in June quarter

OpenStack cloud fluffer growing faster than Linux

Mellanox makes InfiniBand hay while the sun shines

IBM juices profits in Q2 despite sales drop

TryStack pits ARM against Xeon in the cloud

Intel accidentally outs 'Poulson' Itanium specs

Servers save Intel's Q2, and probably the year

VMware cranks Zimbra collabware up to 8.0

Cisco buys Virtuata for virty security

THIS ISSUE SPONSORED BY:

WorksRight Software
T.L. Ashford
System i Developer


Printer Friendly Version


TABLE OF CONTENTS
Is An RPGOA-like Standard For HTML5 On The Horizon?

Copy Data From A Remote DB2 Database Using DB2 For i 7.1

Admin Alert: The Right Way To Delete User Profiles, Part 1

Four Hundred Guru

BACK ISSUES




 
Subscription Information:
You can unsubscribe, change your email address, or sign up for any of IT Jungle's free e-newsletters through our Web site at http://www.itjungle.com/sub/subscribe.html.

Copyright © 1996-2012 Guild Companies, Inc. All Rights Reserved.
Guild Companies, Inc., 50 Park Terrace East, Suite 8F, New York, NY 10034

Privacy Statement