Showing posts with label languages. Show all posts
Showing posts with label languages. Show all posts

Monday, December 25, 2006

Eclipse with PHP and Java

I have been using Eclipse for some time now and it's the first IDE that I can compare to Visual Studio 2005. In some respects I'd say it's better than VS, but then I use them for different languages. I like the fact that Eclipse is multi-platform and free (as in open source).

Pluggabe!
One of the best things about Eclipse is that it is easily pluggable and has as a result lots of great plug-ins. I've been using the EasyEclipse Expert Java distribution with some of the EasyEclipse plug-ins, one of which is PHP Eclipse.

Slow?
I've heard some people speak of not using Eclipse because it's Java and "Slow". Now I don't have a fast computer (laptops are expensive things), but I'd have to say Eclipse is very responsive, way more so than VS.

Java and Eclipse
I found one site that is great for beginners of both Eclipse and Java. Dave Powell at Elon University has created a great video tutorial on everything from setting up Eclipse, debugging and GUI programming to unit testing in Java using Eclipse.

Experience with CakePHP and Eclipse
CakePHP is a rapid application development toolkit for PHP centered around the Model-View-Controller pattern. I've found it by way of searching for a PHP alternative to Ruby-On-Rails (as rails hosting is still harder to come by).
      Maybe I just don't know how, but I could not seem to make Eclipse use the correct coloring or syntax-helpers with the default .thtml view file suffix. I've solved this for now by using .phtml and in the controller set $this->ext = '.phtml';. After that Eclipse has been very comfortable to work with.
      Im using EasyPHP as my LAMP server.

Thursday, November 23, 2006

First impressions: Ruby

People have been talking a lot about Ruby... and I haven't actually heard anything bad about it this far. And I like good things :), so I decided to try it out.

To start with many recommended this site: http://tryruby.hobix.com. And it's great except I never got past the File.copy section, seemed a bit buggy.

I'm quite used to C and C++ so I found To Ruby From C and C++ interesting. After reading that I went on to go trough the official Quickstart.

The best learning resource I've found this far would be Learning Ruby.

The .chm of "Programming Ruby" included in the Ruby documentation isn't bad either.

The way of installing a Ruby environment is generally said to be the One-Click Ruby Installer. It's a pack containing ruby, libraries, docs and the gem packet manager (and more). Never did get the included FreeRIDE to work (no output). SciTE and the Ruby In Steel plugin to VS2005 worked about equally as good (colors, no auto-completion).

As I'm on my way to becoming a .NET programmer I'm of course interested in the Ruby.NET project, and I've tried their beta version with some small programs. I'm a bit interested in using it for scripting, but I'll probably end up with Boo for that (as that language is written for .NET to begin with).

One of the best uses I've found this far for Ruby is with ruby-on-rails and I'm definitely going to try making a site with ruby-on-rails someday.

So.. what are my first impressions of Ruby?

I'd say it's about the same as I had with Perl or Python: it's fast and easy to write small applications but I miss the robust feeling of C++ or C#. However, you should certainly use the right tools for the job at hand so you'll never know when it might be usefull :).