patterns. Not only do these patterns make it easy to write, they make it easy for an IDEto inspect the code in your project. In addition, they help you while writing bydisplaying the results of their inspection. For example, if you define a class with thename
MyClass
in your project, the IDE then provides a pop-up window that includes
MyClass
as an option as soon as you type the keyword
new
. As you use the object of thattype, the IDE shows its available methods and instance variables. When you start typinga function call, the IDE helps you by displaying the available arguments. Honestly, thisis the No. 1 reason you should use an IDE and not a text editor. This type of codeintelligence can save you hours of mistyped class names, method names, and wrongarguments.
Class view
A side effect of having a code intelligence engine in the IDE is that the IDE can producea
class view
of the project. Instead of showing the files, the system can show you thedifferent classes you have defined, regardless of the file they're in. As you click theclasses, your editor is taken to that file and the selection placed on the class, method, or instance variable. It's a much nicer way of navigating around big projects.
Support for multiple languages
Each IDE covered here supports not just PHP but a collection of the related languages:JavaScript, Structured Query Language (SQL), Hypertext Markup Language (HTML),and Cascading Style Sheets (CSS). Support for HTML and CSS are often the best, because it's simpler. The support for JavaScript often comes down to syntaxhighlighting, but something is better than nothing.
Source code control
All the IDEs evaluated here support some connection to a source code control system,which allows you to maintain versions of the files in your project over time. You canmark particular versions of the files as a release, then revert to them when you want toroll out changes you've made. It's critical in team environments to use a source codecontrol system, but it's important for individuals to use one, as well. A good source codecontrol system can save you when a disk blows up or when the customer suddenly wantsthe version before last, rather than what you have today. Most of the IDEs supportConcurrent Version System (CVS) and Subversion, which are open source controlsystems. One IDE supports Perforce, a commercial source code control system.
FTP/SFTP integration
Related to source code control is the ability to use FTP for the most recent code to theserver. This is a lot easier than using an FTP client or packing up the files yourself,sending them to the server, and unpacking them.
Database navigation
A helpful but not essential feature is database navigation. With this feature, you can browse the database your application talks to, find out the table and field names, and runqueries. Some systems even automate writing some of the database access code for you.
Integrated Web browser
Some of the IDEs support an integrated Web browser that can navigate directly to the page you're editing with additional arguments you specify, the browser being hostedwithin the IDE or invoked externally. To be honest, I'm not a huge fan of the integrated browser because I don't mind switching between editing the code and viewing the resultin two separate applications. But I can see the attraction, and it's not required that youuse it.
Snippets
Leave a Comment