Posts Tagged ‘netbeans’

Mercurial Integration

November 20th, 2008

I’ve mentioned in a previous post about Mercurial integrations being fewer but I thought I’d actually put together a list of the decent ones…

  • NetBeans – Its managed using Mercurial so you’d expect it to have integrated support for it.  Its also the best Java IDE in the world.  So say I.
  • TortoiseHg – Ah yes the wonderful Tortoise.  You may have heard of TortoiseSVN.  Well this is the Mercurial version.
  • Mercurial Eclipse – If you’re a fan of the Rubbish IDE then this will come in handy.
  • Mercurial Bundle – For Textmate people.
  • VimVCSPlugin – A plugin for the best text editor in the known universe.  It also handles all the other SCMs.
  • Eric – Python people are intelligent.  That’s why this Python IDE has Mercurial support.

Tell me if I’ve forgotten any worthy members of this list.

Python GUI Programming? Painful

September 3rd, 2008

If you’re wanting to develop a Python GUI anytime soon can I strongly suggest you re/learn Java. I recently wanted to produce a simple yet functional desktop app and decided to give Python a go. I’d later py2exe my creation to create an executable Win32 app. My thinking was that Python is much faster to develop with and so doing a simple GUI app using it must be simple too.

Oh how wrong I was.

Coding the GUI

First off I tried the oldschool method of developing the GUI by hand using Tkinter as it seemed to have the greatest level of documentation and it was the library used in the Programming Python book. Alas this brought back painful memories of oldschool Java GUI programming with extremely restrictive rules on placement and positioning. After 3 hours of trying to get exactly what I wanted I ended up with GUI cat-sick on my screen – not good.

I tinkered with a couple of ther other libraries wxPython, PyGtk and even EasyGUI (too basic) only to hit the same problem – lack of flexibility.

I decided to try a different approach and find a GUI capable of handling the graphical side of things for me – maybe its a cheaters way out but personally I wanted an app not an education.

PythonCard

Oh dear god in heaven above. This app has been getting developed in a cave by the most hardcore, life-starved, miserable geekjects on the planet. It’s based on an age-old Apple Mac application for developing quick dirty GUI apps. Which is great except its method of working is completely different to any other IDEs out there. It does follow a convention – its just the convention died years ago. That doesn’t deter the developers though and they still have arguments to this day about wether to make tab ordering an easier to access feature or just leave as is (NB: Tab ordering is determined by the ordering of the elements in the frame and so you use “send to back”, “bring forward” commands – very intuitive).

Boa Constructor

You need a book to operate this and also colour blindness helps because the interface is…well….vile! It’s a painful mess to use and I didn’t even bother trying – I closed it down in disgust. End of story.

IronPython Studio

You need a full version of Visual Studio – no go.

PythonWorks

Project now dead.

PAGE (Python Automatic GUI Generator)

This is one hell of a piece of wonder. Its amazing the sub-sorry I can’t be sarcastic any longer. It’s rubbish, it performs a role and thats it. It simply generates your GUI code rather than being a full GUI IDE.

I eventually got onto Glade and there’s a number of options here that Python can exploit however, I’d wasted far too much of my valuable time by this point so I decided to do the only sensible thing:

Remember My Java

I left Java many moons ago but from when I’d last used Netbeans I remember the GUI building facilities were absolutely stellar. I wasn’t disappointed this time round either. I can’t believe how far along its now come and developing a GUI app in Netbeans using the Swing and SwingX components is an absolute joy. Its making me want to make more and more – I’ve restarted learning Java and not looking back.

So if you want to create a GUI desktop app – don’t use Python (or Ruby).

Latest NetBeans 6.0 Ruby/JRuby/Rails Support

September 20th, 2007

Netbeans LogoThe first shiny Ruby-supported beta of Netbeans 6.0 IDE by Sun has been released. With Ruby’s features maturing rapidly this looks to give Radrails a serious run for its money.I’ve always been a huge fan of Netbeans over Eclipse so I’m glad to see it jumping ahead like this and adding Ruby support was a masterstroke.

After some initial playing around and testing it all looks pretty solid for a beta and not a single crash attacked me in the time I’ve been using it.

The Ruby-features in the package are stunning compared to the other editors I’ve used. With the clever code completion and solid refactoring support which has been a part of NetBeans for a while now but works well with Ruby. It also comes packed with Rails app support so you can generate your apps internally and edit – similar to RadRails’ method.

I’m really looking forward to the final release of this as it promises to be something special.