Made of Everything You're Not

Personal blog of PHP programmer Eric Lamb.
  • Blog
  • Portfolio

Posts Tagged: 'Eclipse'

Eclipse for PHP Dev: One Month In

Posted in Programming on September 02nd, 2009 by Eric Lamb – 0 Comments

As I previously mentioned I'm using Eclipse IDE for a good deal of my php development at the moment. At first, I was a little skeptical of how much Eclipse would improve my productivity. Initially, it was kind of painful but after changing my work flow to work better with Eclipse I do admit it's an improvement.

Eclipse IDE

My initial "look" at Eclipse was Eclipse for PHP Developers; this was on my old laptop but sine I no longer had it I had to reinstall Eclipse again. This time I'm using Eclipse standard with the PHP Developer Tools (PDT) extensions added on instead. No real reason, "just 'cause".

First the good.

Right off, the most important and very coolest of the very cool features, is the built in function reference. I LOVE the ctrl+click feature! You can click on any function, class or method call and it will open the file containing that call. It's really, REALLY, helpful. This feature is incredible, and one I'm sure isn't unique to Eclipse. Still, after doing the alternative (see function, search for file with function, search for function in file and read) a feature like this is simply magical.

Hell, just hovering over an element will display the comment info if you used docblock style comments (you do write docblock comments right?).

Eclipse Code Inspector

Combining the above two features pretty much kills off a pretty signifigant portion of development; digging through code looking for something.

But wait! There's more:

There's also the integration with Subversion; it requires an add-on plugin to work but work it does. It's a little confusing to use at first, but after reading How to use Subversion with Eclipse article by IBM it started to make sense. I started working with Eclipse before I dug into the Subversion integration so the change to workflow was a little disruptive at first. If you're planning on using Subversion you should definately check out the Subversion integration before using Eclipse full time.

One last thing about the Subversion plugin; it's written by the same guys (CollabNet) who make TortoiseSVN and Subversion itself so you can still use Tortoise if you want to. I appreciate that.

One of my first "misconceptions" was that there wasn't any FTP or SFTP functionality. This is technically true but there is a plugin that handles this in a basic manner. There isn't any way to work directly on the server (by this I mean, upload on save type functionality) but you can download and upload files to a server using either FTP or SFTP.

Now the petty, petty, stuff

One gripe I have is that Eclipse doesn't syntax highlight Smarty tags; not even the HTML is syntax highlighted.

I was also hoping for some sort of customization on the syntax highlighting colors. Personally, I like the colors to be a little more vibrant than most IDEs default to. Small gripe to be sure but it would have been nice to have.

At this stage I haven't really dug into the build process but from what I've read it should be able to improve the deployment work. Since I do php work I'm hoping "deployment work" means automated replication and setup. I know there's ANT integration but having never used ANT before this is a whole other discussion.

Still, all and all Eclipse isn't bad. Not even close. I still use EditPlus for some development, especially since there isn't remote access, but more and more I'm finding myself open Eclipse for the real work.

http://eclipse.org/

Searching for the Perfect IDE Experience

Posted in Programming on July 20th, 2009 by Eric Lamb – 19 Comments

Right now, and the last 4 years really, I use EditPlus for all my PHP development but from time to time I dip my toes in the IDE waters to see if I can make a switch for something  a little more... helpful. I've always had a love/hate thing going on with IDEs for PHP; I've always been intrigued by the bells and whistles of IDEs but the memory usage has always been a sore spot I can't get past. Needless to say, I invariably end up going back to EditPlus.

evans-ide-2006

When I first started with PHP I used DreamWeaver 4 as my IDE tool of choice for a while, eventually switching to newer versions of DreamWeaver as they came out. Obviously,  I was a pretty crappy PHP developer at the time; there was no thought to process or cleanliness and DreamWeaver helped make sure I didn't.

Like most serious programmers do, I eventually found DreamWeaver getting in the way more than helping so I went on a bender, switching IDEs about every few months (and sometimes every week).

I've worked locally on a Linux server with Joe, Pico and Vim and worked with Zend Studio, Komodo, PHP Designer, PHP Edit but I always found the experience, across the board, to be lacking and/or painful. Linux text editors are fine and all but they just work too differently than I'm used to and the learning curve was just too high. The Windows IDEs above all had some nice features but their memory usage was always just abysmal.

The memory usage is the big one for me. There's nothing worse than trying to get something done and have your computer become unresponsive. It just fucking sucks man.

Being a web developer I can have quite a few programs open at a time and all of them are HUGE memory hogs. Photoshop (sometimes with 100MB+ PSD files open), CuteFTP, Internet Explorer, FireFox, Chrome, Safari, Outlook and EditPlus (my PHP editor of choice). On top of that I'm running Windows Vista which sucks up 750MB of RAM on a laptop with only 2GB of RAM.

With no programs running, my computer is using 850-875MB of RAM.

Computer Baseline

With all the above programs running I'm using around 1.75 to 1.90GB of RAM.

Computer Loaded

This leaves very little for anything else so EditPlus, with it's 2MB of RAM requirement, looks extremely appealing. Not to gush too much about EditPlus but out of the box it's got syntax highlighting, FTP (and SFTP) remote connectivity, extensibibility and it's very, very, fast and efficient.

The problem is that I'm doing more than php development now. I've spoken a little about my interest in Blackberry development and Java before and lately I've been a little frustrated with switching from EditPlus to Eclipse to Blackberry JDE (the Blackberry extension for Eclipse is outdated and doesn't work with Eclipse 3.5 so I use the JDE instead).

After working with Eclipse for a couple weeks I've grown pretty fond of it. For Java development it works great because I don't need any of the web development tools I need for building a website so the 250MB of memory it requires is a drop in the bucket.  Even taking into account the Blackberry development having to be done in the Blackberry JDE Eclipse is still a great choice for Java development.

But for web development, at the moment, I'm not so sure. With the exception of the memory usage the biggest issue is that I'm not sure Eclipse can connect to a remote server for php development; I'm still pretty new to Eclipse so I could be wrong. Without the ability to connect to a remote server this really hampers my ability to work on hosted sites.

Still, I'm going to be using Eclipse for PHP development for 1 month just to see if it's worth it. I know I'm going to have to change some of my process but, hopefully, the benefits of the IDE will outweigh any downside.

We'll see...

  • Subscribe: Entries | Comments
  • About Me

    Email Email
    Twitter Twitter
    310.739.3322
  • Categories

    • Brain Dump
    • Business
    • Code
    • IT
    • Programming
    • Rant
    • Servers
  • Archives

    • February 2012
    • October 2011
    • August 2011
    • July 2011
    • June 2011
    • May 2011
    • April 2011
    • March 2011
    • February 2011
    • January 2011
    • December 2010
    • November 2010
    • October 2010
    • September 2010
    • August 2010
    • July 2010
    • June 2010
    • May 2010
    • April 2010
    • March 2010
    • February 2010
    • January 2010
    • December 2009
    • November 2009
    • October 2009
    • September 2009
    • August 2009
    • July 2009
    • June 2009
    • May 2009
    • April 2009
    • March 2009
    • February 2009
    • January 2009
    • December 2008
    • November 2008
    • October 2008
  • Advertisement

Copyright © 2008 - 2013 Eric Lamb - All rights reserved