Where’s the sun, or, How I Write PHP!

Friends, I’m sure the post would be a heck of a lot funnier if instead of “How” I would write “Why”, but I’m sticking to “How” for .. now ;)

The sun’s shadow

Eclipse 3.1 Logo Everybody knows Eclipse, but if you don’t, here’s what they have to say about it (via the Eclipse FAQ):

The Eclipse Platform is an open extensible IDE for anything and yet nothing in particular. The Eclipse Platform provides building blocks and a foundation for constructing and running integrated software-development tools. The Eclipse Platform allows tool builders to independently develop tools that integrate with other people’s tools so seamlessly you can’t tell where one tool ends and another starts.

The cool words here are “Extensible”, “Anything” and “Nothing” which is great news all over for generic lovers everywhere :) . So we can use the Eclipse IDE to write Java out of the box but there are projects that allow us to write things in other languages (like C/C++, Python, Perl, Ruby heck, even Gramps) , but what I’m really interested in is, obviously PHP and that’s taken care of.

Enter PHPEclipse

PHPEclipse LogoWhat they say :

The PHPeclipse project aims to create a full featured PHP IDE with features like internal PHP parser, debugger, code formatter, outline view, templates and much more.

And it works too :) , the installation is a breeze, especially if you go with the Eclipse Update Manager, which installs the current stable version of PHPEclipse (instructions are here), but it’s equally easy to install the latest CVS builds, you just download them and unzip them all over you Eclipse dir … how nice is that ;)

What has it done for me ? Well, I code faster, I actually write more comments (even if mostly to say bad things about my code, or how cool things could be if I had more time, etc etc), Eclipse helps me manage the gazillion files my projects usually generate and, if one day I get off my chronically lazy bottom, it will even help me, gosh, this is so exciting, DEBUG my apps (var_dump, I’m gonna miss you ;) ), although, ever since PHP 5.0 came out, my debugging needs have dropped tremendously, mostly because I really enjoy my Objects and PHP 4.0 made SUCH A MESS of references that you could write a book on the subject of sleepless nights searching why the hell a certain object was, apparently, forgetting WHAT it was … ufff, thank you PHP 5 and can I have PHP 6 now (damn namespaces, I need you :) ) .

What else then ?

Well, I use the Subversion plugin (One Click Commit ™ ;) ), JSEclipse plugin, XMLBuddy, errr, what else, I have AnyEditTools, the C/C++ Plugin and I’ve recently installed the Web Standard Tools and I’ve been meaning to try the UML plugin, but then again, I’ve been trying to use UML for a long time but keep falling back to SAAOP (Squares and Arrows on Paper) every time, so I guess it’s just one of those things ;) . As a simple note, everything EXCEPT XMLBuddy can come through the Eclipse Update Manager platform, so it’s easy to install and update ;)

But what about you?

I know a blog is not the best place to discuss things, but post a comment or better yep, a post on your blog with tracking back here saying either how you use Eclipse or how you write your PHP (yeah, notepad works great , very l33t of you ;) )

  • http://tudo-sobre-nada.blogspot.com/ Carlos Rodrigues

    “yeah, notepad works great , very l33t of you ;)

    Well, jEdit (http://jedit.sourceforge.net) is a bit better that notepad, and I use it for all my editing needs (which don’t include PHP for now).

    I rather keep things simple, although jEdit can be made into a full IDE through the use of its many plugins…

  • http://tudo-sobre-nada.blogspot.com Carlos Rodrigues

    “yeah, notepad works great , very l33t of you ;)

    Well, jEdit (http://jedit.sourceforge.net) is a bit better that notepad, and I use it for all my editing needs (which don’t include PHP for now).

    I rather keep things simple, although jEdit can be made into a full IDE through the use of its many plugins…

  • http://david.ragingnexus.com David Ramalho

    Yeah, I use that at work, it’s my fall back thingy (used to be Ultraedit) , I was gonna say that development was apparently halted, but lo and behold 4.3pre3 is out ;) .. good of you to remember jEdit, thanks ;)

  • http://songo.blackorange.pt/blog David Ramalho

    Yeah, I use that at work, it’s my fall back thingy (used to be Ultraedit) , I was gonna say that development was apparently halted, but lo and behold 4.3pre3 is out ;) .. good of you to remember jEdit, thanks ;)

  • http://phpgirl.blogspot.com/ Nola Stowe

    Interesting posts. I installed Eclipse not too long ago, although I was kind of more interested in using it for Ruby. I will try it for PHP. I use UltraEdit right now, the new UltraEdit studio has some nifty features for PHP. I wrote a review about it at CodeSniper.com if you are interested. I have also used JEdit and use that for Ruby right now, its alright, but I may get the wordfile for Ruby and use UE. But I do use it as sort of a notepad replacement.

    Review of UE and UE Studio
    http://codesnipers.com/?q=node/50

  • http://phpgirl.blogspot.com Nola Stowe

    Interesting posts. I installed Eclipse not too long ago, although I was kind of more interested in using it for Ruby. I will try it for PHP. I use UltraEdit right now, the new UltraEdit studio has some nifty features for PHP. I wrote a review about it at CodeSniper.com if you are interested. I have also used JEdit and use that for Ruby right now, its alright, but I may get the wordfile for Ruby and use UE. But I do use it as sort of a notepad replacement.

    Review of UE and UE Studio
    http://codesnipers.com/?q=node/50

  • http://david.ragingnexus.com David Ramalho

    Hummm, I didn’t know about UltraEdit Studio, but I’ll take a deep look at your review . As I’ve said, I’m really liking Eclipse, at least on the PHP side of things (haven’t tried it for Ruby yet) and, jEdit is always an option, but for ad-hoc file editing, all my server config files are edited with jEdit for instance, but I wouldn’t use it over Eclipse for development projects, I really like my editor to be aware of all the files that make up a project :)

    Thanks for commenting Nola ;)

  • http://songo.blackorange.pt/blog David Ramalho

    Hummm, I didn’t know about UltraEdit Studio, but I’ll take a deep look at your review . As I’ve said, I’m really liking Eclipse, at least on the PHP side of things (haven’t tried it for Ruby yet) and, jEdit is always an option, but for ad-hoc file editing, all my server config files are edited with jEdit for instance, but I wouldn’t use it over Eclipse for development projects, I really like my editor to be aware of all the files that make up a project :)

    Thanks for commenting Nola ;)

  • http://www.oscarm.org/ Oscar Merida

    I’m going to give Eclipse another try on your recommendation. I’m a jedit user at the moment, and its got a pretty useful phpparser plugin for catching errors, there’s also a php project plugin but I haven’t figured out exactly how its supposed to work either.

    I’m also now using subversion for all my projects and one-click commit would be a definite benefit.

  • http://www.oscarm.org/ Oscar Merida

    I’m going to give Eclipse another try on your recommendation. I’m a jedit user at the moment, and its got a pretty useful phpparser plugin for catching errors, there’s also a php project plugin but I haven’t figured out exactly how its supposed to work either.

    I’m also now using subversion for all my projects and one-click commit would be a definite benefit.

  • http://richardathome.wordpress.com/ Richard@Home

    I’ve been using HTML-Kit (www.chami.com) ever since I got into PHP (all the way back in the ‘good’ ‘ol days of PHP3). Once a few PHP plugins are installed its pretty much the only editor I’ve needed…

    I’m downloading eclipse atm though to give it a whirl…

  • http://richardathome.wordpress.com Richard@Home

    I’ve been using HTML-Kit (www.chami.com) ever since I got into PHP (all the way back in the ‘good’ ‘ol days of PHP3). Once a few PHP plugins are installed its pretty much the only editor I’ve needed…

    I’m downloading eclipse atm though to give it a whirl…

  • Eric Coleman

    TextMate from http://macromates.com/

  • Eric Coleman

    TextMate from http://macromates.com/

  • http://david.ragingnexus.com David Ramalho

    The only problem with TextMate is, of course, that it’s MAC OS only ;) but good of you to remember it, maybe one day there’s a Windows port (and a Linux one)

  • http://songo.blackorange.pt/blog David Ramalho

    The only problem with TextMate is, of course, that it’s MAC OS only ;) but good of you to remember it, maybe one day there’s a Windows port (and a Linux one)

  • http://www.codestorm.net/ Tim Denholm

    Vim. I really only learnt how to use it effectively 12 months ago, but I love it!

  • http://www.codestorm.net/ Tim Denholm

    Vim. I really only learnt how to use it effectively 12 months ago, but I love it!

  • http://www.bulaj.com/ Webit

    Yeah, I started using Eclipse IDE with PHP plugins (now the only one and the only good is PHPeclipse) about 18 months ago. Now I can’t imaging any other IDE like that. It has everything, is fast, flexible, stable, scalable… it’s great! I’m waiting for Zend’s Eclipse plugin which should be released soon (I think)…

  • http://www.bulaj.com Webit

    Yeah, I started using Eclipse IDE with PHP plugins (now the only one and the only good is PHPeclipse) about 18 months ago. Now I can’t imaging any other IDE like that. It has everything, is fast, flexible, stable, scalable… it’s great! I’m waiting for Zend’s Eclipse plugin which should be released soon (I think)…

  • http://david.ragingnexus.com David Ramalho

    (WebIt) I tottaly agree, I do like jEdit, UltraEdi and … well, even VIM ;) , and they are excelent text editors but an IDE has a bit more features, not just text manipulation features, but file managment, code context and all sorts of little helpers that let you get some peace of mind while tackling the dangers and misteries of Coding :D … didn’t know about the Zend Plugin, I’m sure it will never beat PHPEclipse’s price tag but … I’m keeping that on the radar ;)

  • http://songo.blackorange.pt/blog David Ramalho

    (WebIt) I tottaly agree, I do like jEdit, UltraEdi and … well, even VIM ;) , and they are excelent text editors but an IDE has a bit more features, not just text manipulation features, but file managment, code context and all sorts of little helpers that let you get some peace of mind while tackling the dangers and misteries of Coding :D … didn’t know about the Zend Plugin, I’m sure it will never beat PHPEclipse’s price tag but … I’m keeping that on the radar ;)

  • http://www.oscarm.org/ Oscar Merida

    I’m trying Ecliipse, really making an honest effort to use it. I’ve run into only one annoyance, so far its been really useful. Our convention at work is that display php files get the file extension .tpl, but I can’t find any way to tell phpeclipse to treat those as php files I tried this: http://phpeclipse.net/tiki-index.php?page=PHP FileExtensions but my tpl files want to be edited by the HTML editory and I can’t find a way to tell it not to.

  • http://www.oscarm.org/ Oscar Merida

    I’m trying Ecliipse, really making an honest effort to use it. I’ve run into only one annoyance, so far its been really useful. Our convention at work is that display php files get the file extension .tpl, but I can’t find any way to tell phpeclipse to treat those as php files I tried this: http://phpeclipse.net/tiki-index.php?page=PHP FileExtensions but my tpl files want to be edited by the HTML editory and I can’t find a way to tell it not to.

  • http://www.oscarm.org/ Oscar Merida

    Fixed – I think I spoke too soon, I was able tos et it vya Prefernces > General > Editors > File Associations

  • http://www.oscarm.org/ Oscar Merida

    Fixed – I think I spoke too soon, I was able tos et it vya Prefernces > General > Editors > File Associations

  • http://david.ragingnexus.com David Ramalho

    :D , how’s it been so far?

  • http://songo.blackorange.pt/blog David Ramalho

    :D , how’s it been so far?