22
Sun, Dec
3 New Articles

Zend Studio 11: A Pretty Big Deal

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

 

This small package packs a powerful punch, providing many facilities that all PHP programmers definitely should have at their disposal.

 

Last month, we talked about the Zend Server, the Garth Brooks of the Zend world, and how it can be used to provide an effective environment to run PHP programs from the IBM i. Now we will move on and talk about Zend Studio, the Ariana Grande of the Zend world.

 

Zend Studio is an Integrated Development Environment (IDE) similar to RDi. It provides a single spot where you can write and debug your PHP scripts. As such, it is an adjunct to the Zend Server, which provides the structure and services you use to run those scripts. Zend Studio is built on the open-source Eclipse platform and is therefore ideally positioned for other open-source plug-ins to connect with it. And guess what? It runs on Windows, Linux, and the Mac! Gotta love that.

 

Cost

 

 

Sometimes it's hard for me to think of IBM as a benevolent sort of beast, but maybe it is. If you remember from last month, you can get the Zend Server, try the primo version for a month, and then after that, keep using the basic version for nothing. Of course, you don’t get updates or new releases, but the basic product works quite well, so it's a pretty good deal. Well, the same thing is true for Zend Studio. You can download it and get one year of support and updates for free and then at the end of the year keep using it for free (but without getting any additional updates). And that pricing policy is only for IBM i people and is courtesy of IBM (and Zend). They’re a swell bunch of fellas (and gals).

 

 

How much is a license (if you do want updates and new releases)? Keeping in mind that any pricing info I would give you is a snapshot as of that moment and may not be accurate by the time this article comes out, I'm seeing a per-year cost for one user on Zend Studio being about a hundred dollars. If you check out the pricing details on the Zend website, you can get up-to-date information as there are four price packages available. Take a look yourself and see what works for you.

 

What Can it Do?

 

Of course, the big question is, who cares how much it costs? What will it do for me? Why should I even bother?

 

It's true that you can write all your PHP scripts on a simple text editor, even one that you downloaded for free. And that's the way I started, so you can't get much more normal than that.

 

Of course, a text editor doesn't provide debugging capabilities, so it's ideally suited to those who don't have any bugs or problems in their code. That's not the type of PHP programmer I am. I really need a debugger. Mostly, I need a syntax-checker, though. Something to remind me that I spelled "session" wrong or forgot a parenthesis. A text editor doesn't do that either. So, for a programmer like me, a bit more sophisticated IDE comes in handy. But what specifically does Zend Studio do for you?

 

Productivity Features

 

While it sort of looks like a text editor and you can enter text into it, the Studio provides a number of special features that a text editor won't necessarily have. Things like code completion to make the task of doing a particular code structure faster.

 

There's also a code syntax checker, and you can sync that up to a particular version of PHP because the syntax and what is allowed does vary from release to release.

 

The Studio also helps with refactoring, or applying small changes to a code section in an effort to improve its modularity by allowing you to easily rename elements and files, move files from one directory to another, and extract or replace either variables or methods.

 

Debugging

 

This is the big one for me. Without something like this, you're pretty much reduced to putting "echo" statements into the script to try to follow along with what's happening. And that point is rendered moot if the mistake you make happens to take out the entire screen so that the page is blank. That generally doesn't happen to me, though. At least not more than multiple times per day.

 

The debug facility really functions in two ways; first to help you remove bugs from your code, but also, using the Profiler, to spot performance bottlenecks and remove them before you put your code into production.

 

In terms of debugging, the Studio comes with its own debugger, ZendDebug, but it also supports the very well-known open-source debugger XDebug so that you can use either of them. Unfortunately, I don't believe it's possible to use both at once as a kind of mano e mano debugger showdown. Might be interesting.

 

The debugger allows you to set breakpoints, step through your code, interrogate your variables, and suspend launched programs. In other words, do all the things we are used to doing within RPG.

 

The debuggers can be used on either local code or scripts that are on a remote server, including the cloud, so it's perfect for both development as well as production troubleshooting.

 

Frameworks

 

In the RPG world, we talk about programs, which are more or less comparable to scripts in PHP. But in the PHP world, since everything is so much more modular, we tend to talk about "projects," and the first step when you're starting something new in Studio is to create a new project.

 

Why am I talking about this? Just to add a few extra words. No, seriously, I have to get up to a certain minimum word count. So I thought I would throw that in. And since I have mentioned it, I should also say that most experienced people in the PHP world build their projects on a framework. So the ability to integrate your development environment (Studio) with the framework you want to use is essential.

 

That is, the framework is sort of like an application model. Because we're dealing with the web, with remote servers and web servers and weird stuff like that, a lot of specialty modules are sort of required to do this communication and they really have nothing to do with the business problem you are trying to solve. In an effort to improve productivity, PHP people began developing generic modules for some of these scripts and organizing them in a particular way by using a framework.

 

Now in the Ruby world, there's really only one framework that's cool to useRails. But in PHP it's an all-out brawl. You have Symfony, Laveral, ZendFramework 2, and many others. And everyone has their own reasons why one or the other is the only framework you will ever need. To maximize your efficiency, you create your project based on a framework model and import the whole mess into Studio so you can massage the code that has already been written and add more modules into it. And the advantage of Studio? It interfaces with a wide variety of frameworks right out of the box.

 

Deployment

 

The other big difference between the web world and the real world of RPG is in deployment. For RPG, all we usually do is transfer modules from test to production libraries. But in the web world, it's more complex and harder to control.

 

Studio is not a deployment coordinator per se, but it has full integration with Composer, an application-level dependency manager (I know that's true because I copied it right out of Wikipedia) that's a powerful tool in terms of deploying applications, particularly if the app is going to multiple sites, which often happens with web thingies.

 

What's New in Studio 11

 

Everyone in the Zend world is really excited these days. The latest release of Studio, Zend Studio 11, is out, and it features quite a bit of new functionality.

 

First, it offers new support for helping to develop mobile apps, certainly a big deal today.

 

Second, this is where a lot of the new framework integrations have been added in.

 

Third, there's more support for development and deployment on the cloud, including some of the leading cloud offerings (Amazon, Azure, SoftLayer, Open Shift, Red Hat, etc.).

 

And fourth is the addition of Z-Ray, which is an article all on its own, so let me just say that it gives you unprecedented information on the performance of your app and really helps you see where you're losing time.

 

Summary

 

As I look back over this, it almost seems like an advertising piece. So I tried reading it again, looking for bad things I could say or rumors I could start. It's honestly not like Studio is perfect. I'm sure there are things about it that would make a sailor's girlfriend blush. But all in all, it's a pretty great product. And when you consider the integration it has with Zend Server, well, it's pretty hard to ignore.

 

But here's the real crux of the matter. I went along just using a text editor for PHP for a long time. Strangely enough for someone who writes about technology, I take to new things pretty slowly. And using the text editor just flat out slowed down my learning curve. And it made a lot of things tedious.

 

Studio is a product, but it is also a tool, the kind of tool that should be in every PHP programmer's pocket. So there.

 

Oh, and don't worry. I more than exceeded my word minimum. Don't know why I was so concerned.

 

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: