Showing posts with label python. Show all posts
Showing posts with label python. Show all posts

A Good Python IDE

0 comments

    In my last post (well… it was my first), I talked about Python programming language and how good and powerful it is … in this post I am going to talk about something very important, which is choosing a good IDE (Integrated Development Environment ).

    Some people argue that going simple is always the best way, like using a simple text editor would do the job , these people may have a point but trust me ; going this way can be very VERY messy !

    I have tested some  IDEs that claim to be the best when It comes to Python support , but I liked one in particular and it was (believe it or not) Netbeans IDE.

Netbeans is a well-known Java IDE, but I was surprised to find a cool plug-in that would allow it to extend its reach to Python.

The main reason i liked it, is its features that will make programming in Python even an easier job:

  •  Code completion: This is the first thing I look for in any IDE that I come across; imagine using a certain class with many methods inside , don’t you just love it when that small menu drops down showing all the methods and data members inside, Instead of having to check the methods list of that class every time you have to call a certain one? This is the main reason I chose Netbeans over the other IDEs that didn’t have this feature.autocomp
       
  • Smart indent, and pair matching: this is an important feature also, because Python uses indentation to separate code blocks from each other . if you use a simple text editor , there is a great chance that you will have an indent error , but this feature takes care of indentation for you, making it bullet proof.

indent

  • Code folding: when developing at a large scale it is very important to easily navigate between multiple fragments of your code, trust me this is a nasty experience if you have to scroll down 700+ lines of code in order to get to a certain code block that you need to work on. fold
       
  •  Instant Rename: now Imagine that you had to change some function’s name ,however this function was called like 50 times in you project , this feature saves you time as it allows you to change the name of the function and all its calls simultaneously without having to go through your code and change them one by one ! rename
       

Now for those of you who want to jump start coding…here’s what you need:

    You can either download Python EA as a standalone IDE , or  as a plug-in from the plug-in manager -if you have Netbeans 6.5 –or above preinstalled on your machine-

check the Netbeans website to get the latest version and install it!

Happy Coding !

Technorati Tags: ,,

Python Programming Language

3 comments

Python is kind of snakes Ever since I learned programming in the 8th grade (that is if visual basic counts as coding) I have built the impression that real programming had to be complex and hard, because a computer is stupid and it has to be fed with every bit of information needed to operate properly. But since I started working in Python this idea was completely changed.
The first time Python caught my eye was on one of the Ubuntu forums when I was looking for a way to get java working properly on my Linux machine. I noticed some guys talking about python and how good it is, I started searching ,and minutes later (I know this may sound geeky) I got hooked.

And this is why:
  • Python concentrates on the productivity of the programmer, unlike other programming languages which tend to hold the programmer back sometimes. For example a certain algorithm that took multiple classes in java , can be performed in a little number of lines of python .
  • Python is object oriented and this is something I was familiar with from programming in java
  • Python runs on almost every machine out there; whether it is a mobile or a computer or even a robot, and whether it runs Linux, Windows, or Mac.
  • Python is Free. Yupi!
  • Python has a very large support community on the net, and this really surprised me. There are lots and lots of tutorials and forums where you can find solutions to any problem you come across.
  • Python is shipped with most of the Linux Distros ; Like Ubuntu, Fedora and many others.
  • You can link python programs to other libraries and even other pieces of code from another programming language like java, C and C++.
  • You can find lots of python libraries that perform various tasks like: Science, Engineering, graphics, communication and gaming, most of which are free…
It is really easy to get started with Python especially if you have a programming background, but it is absolutely ok if you don’t have any experience at all! The first thing you need to is download the Python interpreter, you can do this here , and the package you download is about 15 Mb and includes:
  • The python interpreter ;the most important of them all.
  • Library documentation for Python's standard library.
  • A very good tutorial to get you started from the ground up.
Happy coding…