Just another WordPress weblog
Posts tagged php
PHP Debugger – NetBeans & xdebug – Awesome!
Dec 10th
Yesterday while browsing the Internet I came across www.netbeans.org. Now, I already have netbeans installed as I use it for JAVA development, however I never realised there was an IDE for PHP! So there I was waiting for the 200mb download to finish, so I could replace my old NetBeans with the newer 6.5 version and things got even better. NetBeans can communicate with xdebug! I’ve played with xdebug before, but I could never get along with it, there was so much setting up you had to do, so many little things to change that could effect the end result – it just didn’t seem practical, so I kept to my own debugging methods. NetBeans, however changed this! Their website directed me to a local web server that has MySQL and PHP5 preinstalled (I do work on a Mac so I’ve both those installed anyway, but getting them setup is a pain in the backside) called xampp. After the download had finished I read the documentation which told me to add 4 lines to my PHP.ini (Spotlight found that one for me!) and I was off. Next was to install xdebug. Again I downloaded the source, placed it in the xampp PHP folder, phpized it and then compiled it to run along side PHP5. Easy as pie! No sooner had I restarted xampp NetBeans picked up on the change and enabled the debug button.
Below is a screen shot of NetBeans IDE helping me with remembering was methods are available to me in the Db class – neat, huh? It even lists the comments I have made above the method for easy understanding.
This tool is fantastic! Close to 5 years I have been developing in PHP and not once have I come close to using anything as good as NetBeans. The interface is clean and concise. It’s fast with no lag when you need to see the method list *cough* Visual Studio *cough*. And it has a debugger! Need I say anymore?! It’s a perfect tool for anyone who uses PHP, what ever their level, I am going to suggest NetBeans to all of my friends and hopefully you will too!
ASP.NET – Why I Don’t Want to Touch It.
May 28th
Before I start; Here’s a famous quote of Mr. William Gates: “1994 – I see little commercial potential for the Internet for at least ten years.” – Four years later the giant we know today as Google Inc. was founded. Two years after that Google were crowed the Worlds largest Search Engine.
The trend of Microsoft ignoring the importance of the Internet has been around for a lot longer than most people can remember. And for this exact reason my motivation for learning ASP.NET is minimal. Don’t get me wrong – I understand the importance of learning a Microsoft language. I understand that employers are looking for people who know the new .NET framework, I also know that Microsoft are, obviously, the dominant suppler of software in the market. However, I personally believe that for such a large company, their naivety is enough to put you off learning their web language.
I am also a strong believer of Open Source. When i started College at the age of 16 I made the decision to learn a programming language. I started off learning Visual Basic 6, but decided that the importance of the Internet was too much to miss on (even a 16 year old boy can see it), so I decided to learn PHP. PHP is an Open Source language developed to run on multi-platforms making it very versatile and develop-able. Because PHP is Open Source there is a large “fan base” and support community to go with it. Along with PHP I also enjoy playing with Linux, which is also open source. Which is another reason I want to stay away from ASP.NET, and ASP in general. I realise that Microsoft can only advertise their own products, it wouldn’t make sense if they allowed everyone and anyone to make their own languages. What they haven’t done is make ASP for an other Operating Systems such as Linux. This may be impossible to do, I don’t know, but it would be nice to see them attempt it.
To summarise. I don’t believe Microsoft are leaders in the Internet market and will never be. Their current roll of the most dominant company in the software and SDK / IDE market will, I feel, be stolen by someone like Google, or even perhaps Apple. Open Source / Linux is become more and more popular with the every day user. Take Dell for example, they give you the chance to buy personal computers and servers with Red Hat pre-installed. Dell have been associated with Microsoft for many years, and are probably Microsoft’s largest retailer, now they’re supplying an alternative.
