07
Thu, Nov
7 New Articles

Web Development: Are You Using the Best Tools for Your Environment?

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

So many tools…how do you choose the one that's best for you?

 

If you are embarking on a new Web development project, the first decisions you need to make are the platform and the technology. Let's assume you are committed the IBM i platform. (You should be! It's secure, scaleable, reliable, and totally capable of hosting the most modern Web apps.) So the next choice is technology. That choice has been made easier for us in the last three years, with the advent of native PHP support on the IBM i platform.

 

IBM Rochester finally saw the light and essentially abandoned Java/WebSphere as a strategy, at least for everyone but the top-tier customers who can afford all the technology/manpower overhead to get it to work. Instead, IBM chose to recognize the rising tide of PHP's popularity, and, as one IBMer said to me, to "join the party." (The Rational group at IBM is still touting Java, in the form of EGL, but that's had very limited success in terms of adoption rate and remains an IBM-only technology. If you choose EGL, you are stuck with one development tool, RDi, which, at over $2,000 per developer seat, can be expensive, depending on how many developers you have ).

 

If you have any doubts about PHP's success, just look at the top sites that are using it to run their businesses. Facebook, for example, is driven by PHP. There are now more than 350 million registered Facebook users worldwide, making it the third largest "country," behind China and India. If anyone had doubts about PHP's productivity or scaleability, I would humbly suggest that Facebook has put those doubts to rest.

 

So the next crucial decision you face is which Web development tool (or tools) you should use to create your application. I'll attempt to answer that question in this article.

An Overview of Web 2.0 Technologies

There are essentially five programming skills you need to build Web 2.0 applications. I've omitted Web design, which is really a different skill set, requiring a graphic artist. You can sometimes get away without needing these skills, although often the biggest weakness in a Web application is the UI. The table below describes the skills and suggests the best technologies to deploy them:

 

Web 2.0 Development Required Skill Set

Skill

Technology

Server-side business/presentation logic programming

PHP

Server-side database programming

MySQL or DB2 SQL

Client-side UI

HTML

Client-side design

CSS

Client/Server event-driven interaction

AJAX (and JavaScript)

 

The last item on this list is probably the most overlooked aspect of Web application development, especially with modern apps, which have so much more immediate interactions with the user and the back-end/server. I suggest you learn a JavaScript framework or library. Doing so will help speed up your development efforts, eliminate the issue of cross-browser compliance, and help you create consistent UIs easily (most libraries have a set of widgets). I generally use jQuery because it's easy to learn, performs faster than most other libraries, has lots of online and hard-copy resources to learn it, and offers many extensions in the form of user-written plug-ins. You can also write your own plug-ins. If you'd like to see one I've written, click here.

 

I've also used ExtJS on a couple of projects. It has a great set of UI components, such as data grids, layouts, trees, menus, etc. But it does lock you in to a certain look and feel to some degree, and it has a steeper initial learning curve than jQuery. It is also not entirely free open source, so depending on your use, you may need to pay a license fee.

Selecting Web Development Tools

Choosing Web development tools can be daunting task. There are so many options. However, because we are using the IBM i as our platform, that helps narrow down the decision process somewhat. You probably want to focus on tools that have an IBM i-centric focus to make it easy to work with DB2 databases, re-use existing RPG code, interface with IBM i system commands and APIs, etc. The other choice, which I discussed above, is the primary server-side development language. In this article, I assume you agree with me about PHP being the best choice. If so, keep reading and we'll look at some of the tools available to us.

RDi

Rational Developer for i (RDi) is IBM's IDE. It used to be called WDSc. It is based on the open-source Eclipse toolset, like a couple of the other products I'll discuss later. According to IBM's Web site, it comes in two versions: the basic one at $860 per user license, and RDi for SOA Construction at $2,160 per user. The latter version includes Web Services wizards (that's the SOA component) and HATS toolkit for on-the-fly green-screen transformations. It also includes Rational Business Developer, which you use to build EGL applications.

 

EGL is a fourth-generation language that produces JavaServer Pages (JSP) or COBOL apps. COBOL is not really a suitable language for the i compared to RPG, and JSP requires WebSphere in order to run, as opposed to the standard Apache HTTP server, bringing you back to many of the headaches of Java. In addition, even though EGL purports to generate both the client-side and server-side code for you, a cursory look at the EGL Cafe bulletin boards shows many instances where programmers have to tweak the code under the covers. A sample thread gives you an idea of what I mean. In addition, EGL seems to have very limited adoption currently. If you Google EGL, the first 20 hits have one reference to the EGL language, and that's IBM's product page.

 

Even though RDi is built on Eclipse, it has extensions to Eclipse that make it well-suited for writing RPG or COBOL code. As a modern replacement for SEU, this might be helpful for many developers, although it is expensive for just this functionality, especially when you can get a free open-source Eclipse plug-in for editing RPG code from a brilliant coder, Mihael Schmidt. In any case, RDi doesn't particularly provide any benefits for writing PHP code, compared to Eclipse, which is free. Both RDi and Eclipse are built with Java, so the IDE will run on Windows, Mac, or Linux. This is also true of other Eclipse-based products, such as Zend Studio, which I'll discuss later in this article.

Eclipse

Eclipse is an open-source, Java-based IDE. You can download it in several flavors, including for Java developers or for PHP developers. The PHP download for Windows 32bit is here.

 

Eclipse is sponsored by the Eclipse Foundation, a non-profit organization. IBM was one of the initial founders and is still involved in the project. When the Eclipse IDE was first released, in 2001, it was considered by most developers to be too slow, and its memory/disk requirements were too large for practical use. This was partly because of its reliance on a Java Virtual Machine (JVM). Since then, PCs have caught up with Eclipse in terms of chip speed, memory, and disk requirements, making it a practical tool for most developers.

 

The strength of Eclipse lies in its extensibility; anyone can write extensions or plug-ins for it. The PHP package, for example, includes the PHP Development Tools (PDT) plug-in. This plug-in provides PHP syntax-checking, code-completion, and debugging. Eclipse itself includes built-in FTP support (as do most IDEs), so it provides convenient functionality for setting up local and production versions of your code base. You can also add a Subversion plug-in, called Subclipse, to give you change-management capabilities.

 

There is no support contract available for Eclipse.

Aptana Studio

Aptana Studio is available for free from Aptana. The company used to charge for the IDE, but now its business model is focused on cloud services, so Aptana Studio is a loss-leader to hook you in to Aptana's cloud to host a Ruby on Rails server. Aptana Studio is built using Eclipse. When you install it, you get a chance to choose from popular plug-ins that weren't included in your install. I chose to install the aforementioned PDT, so I can use Aptana for PHP development.

 

Aptana's product differentiator is that it includes robust client-side programming services. For example, it includes a JavaScript debugger. Since JavaScript can often be 50 percent or more of the programming effort in Web development, this is useful to have. You can debug JavaScript code using a FireFox browser with the Firebug plug-in (or using Chrome or IE 8), but having direct access to the code in a full-blown editor while you are debugging is very useful.

 

Aptana does not offer a support plan for Aptana Studio.

Zend Studio

Zend Studio is YAEBI (yet another Eclipse-based IDE!)...at least the latest edition, 7.1, is. It used to be written in a Microsoft language, but this release is a completely new code base. Essentially, Zend has replicated much of the functionality of PDT, which they actually support, and added more functionality. Check out the comparison of features in Zend Studio to PDT or read a more objective comparison.

 

Zend Studio starts at $399 per user (including one year of support). The license is limited to one user on one PC, which for me is just too expensive. I have three PCs and a two Macs I regularly work on, so it would cost me $2,000 the first year!


It's important to note that, although Zend mentions "IBM i Edition" on its Web site, there is really no difference between Zend Studio and this edition. In fact, when you go to buy, no matter which you choose, you get taken to the same page! It's also important to note that the key component for writing PHP code on the IBM i that takes advantage of DB2 functionality and i/OS functionality (calls to RPG programs and modules, etc.) is server-based, not client-based. This means you can write PHP code for IBM i in any IDE, ranging from Notepad to Eclipse. 

NetBeans

NetBeans is sponsored by Sun Microsystems (now Oracle). It is also open source and free. You can consider it a direct rival to the Eclipse project, and it has its own group of partner companies supporting it, such as Research in Motion (RIM), maker of BlackBerry. It is also built with Java, so it needs the Java Runtime Environment installed to run (as do all four previous products).

 

As with Eclipse, you can download a PHP-centric version of NetBeans that includes both a JavaScript and a PHP debugger. However, it does not include any IBM i-specific functionality.

 

While Netbeans is free, you will have to pay Sun for support. The current price per developer is $549 annually.

WebSmart PHP

BCD's WebSmart PHP is a Rapid Application Development (RAD) tool as well as an IDE. It is built using Microsoft C++, so it has a much smaller footprint and fewer system requirements than Eclipse-based IDEs (30Mb install versus 130Mb for Eclipse with PDT, for example). However, it can run natively only on Windows PCs. You can run it on Macs using VMWare Fusion or on Linux using WINE, but it won't perform as well as on Windows.

 

WebSmart PHP does not include an interactive debugger, although there are plans to incorporate XDebug, an open-source debugger that you can currently plug in to Eclipse or NetBeans, for example.

 

WebSmart PHP was built specifically for the IBM i platform, so it comes with good IBM i integration features. For example, it includes direct access to DB2 meta data (files, fields, etc.), and it includes code wizards for building program calls using Zend's i5 functionality. It's main differentiator from all the other products is its intelligent templates. When you select a template, you are deciding on the appearance and functionality of a component of your Web application. WebSmart PHP leads you through a series of prompts to help you build that component, without requiring you to know how to code in PHP at all. You can choose from record-level access, DB2 database, or MySQL database-driven templates, depending on your need. Intelligent templates help you become productive, with real-world results, very quickly. WebSmart PHP also includes integrated project management features to support enterprise-level development efforts.

 

WebSmart PHP is currently licensed either by server or by developer. Server pricing is dependent on the server tier. You can also purchase annual support/upgrade agreements.

The Right Tool

Making the choice of PHP is relatively easy. Choosing the right development tool is more challenging. I've shown you just a small sampling of the many PHP products out there. When evaluating a solution, though, you want to ask yourself some questions: How easy is the tool to learn? What kind of IBM i integration does it have? What tools does it have to make me more productive? What kind of product support can I get? What is the reputation of the company's support team? How often does the tool get updated?

 

And, by all means, try out any of these products for yourself. They all have free downloads available. 

Duncan Kenzie
Duncan Kenzie is President and CTO of ExcelSystems Software Development Inc. Duncan’s company is responsible for product development and technical support for BCD International Inc.’s (www.bcdsoftware.com) product line. Duncan has a BA in English Literature from the University of Waterloo, Ontario, and enjoys writing on a variety of subjects. Duncan is a frequent public speaker and has been writing articles about the midrange platform since 1985. He has also been involved in producing programmer productivity and business intelligence tools for 25 years and is the technical lead on products such as WebSmart, WebSmart PHP, and Nexus, leading System i Web tools.  Duncan still enjoys programming, and studies in leadership and self-improvement. He can be reached at This email address is being protected from spambots. You need JavaScript enabled to view it..
BLOG COMMENTS POWERED BY DISQUS

LATEST COMMENTS

Support MC Press Online

$

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: