Thursday, April 24, 2014

"Lazy Development" - Java, .NET, and PHP

Microsoft started the process of making developers click around to get things done with their superb IDE. An idea which was frowned upon by coding junkies because they think software development should always be rocket surgery. Java IDEs had no option than follow the trend with NetBeans and JDeveloper Studio (the ones I have been using). The multipurpose Dreamweaver is also good but have been overshadowed by the other specialized IDEs. In the PHP arena Drupal is the only software I have seen and used which comes close to letting PHP developers develop with ease the way .NET and Java developers develop do with their IDEs.
Drupal is a monstrous sort of software. It is more developer friendlier than non-developer friendly. It treats every content as an organized entity so that specific parts of the content can be displayed when the need arises. Unlike other CMSes which let users just dump content here and there once they have it. If someone has used the non-developer friendly Wordpress and Joomla CMSes before and they come to Drupal, they find themselves in a maze.
Whenever I am building complex web apps, my go to software is Drupal. If is it not complex enough then Joomla all the way. It is all about using the right tool for the right job.
I will go through a lot of hell if I were to use Joomla or Wordpress to build APIs for multiple devices consumption.  I mean native apps consuming content, not just device browsers consuming content or responsive web. Using Drupal for such a task is super easy since version 5 and the next version of Drupal, 8, comes with this functionality in core. One doesn't have to install module before they can expose content as a service for multiple devices to consume.
.NET and Java developers can easily build APIs fast by clicking around again in the IDE's specified above.

Wednesday, March 27, 2013

Handling "Fatal error: Maximum execution time of 30 seconds exceeded" in PhpMyadmin

Phpmyadmin caches pages and if one encounter the "Fatal error: Maximum execution time of 30 seconds exceeded" on a page, that page will be shown every time they click on that url. Apache restart or quitting all services and shutting down wamp or xamp won't solve the issue.
The solution
  1. Open that link in a new tab.(You will see the page with the error)
  2. Change the token value in the navigation textfield. You will see something like token=8318feae751e3db846d6a703cf6bc757  change just one of the token characters example 8318feae751e3db846d6a703cf6bc757 changes to 8318feae751e3db846d6a703cf6bc758
  3. Press the enter key
With this done you can get access to the page and do your stuff.

Sunday, February 3, 2013

The extinction of syntax errors.

IDEs have done a great deal in making syntax errors in applications a thing of the past. Unless someone has got the time to code in non-syntax error highlighting editors, they will encounter syntax errors only when they are typing codes, not when the application build is complete.
21st century coders think of application logic so whenever they have a bug to deal with, it is more of a logical error.
IDEs like the OutSystems Agile Platform Studio take application logic to another level by letting the developer create application logic flow as flowcharts. No coding required.

Monday, January 28, 2013

Write Once, Run Anywhere Mobile Apps

Thinking of developing apps for iPhone and getting stuck because of Apple's buy-a-Mac-before-you-can-develop-for-our-iDevices policy? Relax. Enter codenameone . You write your mobile application in Java and deploy to iPhone/iPad, Android, Blackberry, Windows Phone and J2ME.
What is the catch here. True native applications with lightning speed performance not HTML5 apps. Check out these links to see for yourself why facebook dumped their HTML5 apps for Android and iPhone and went back to native
Facebook doubles iPhone app speed by dumping HTML5 for native code
Facebook Android app drops HTML5 and rolls out rebuilt native app
Codename Designer lets developers create their GUIs faster. Coding logic of the the apps is truly fun. The coding style takes the pain in coding out for developers to write apps with the minimum lines of codes possible.
Have an mobile app idea? Just use Codenameone to develop it because it rocks.

Tuesday, February 14, 2012

Handling PHP Warning: Cannot modify header information - headers already sent

This can be a nightmare for a developer if they want things done quick. It is caused when a page/file which has already been requested get requested (require_once, require, include) again in the same script.
At times a developer need to get the thing to work at all costs and the only way to achieve is code hack. Simply tell PHP to keep its warning off just before the include or require statement and its warning on after it.
For instance I am requiring a file named cannotmodiy.php and the error occurs. The solution is

require_once 'cannotmodify.php';
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
// other codes continue

So you tell php, hey! I know what I am doing. Keep your mouth shut. Then after that you tell php to speak of any errors it sees. As simple as that.

Monday, October 10, 2011

Codeless Development

Most programmers never welcomed the very idea of clicking to get their jobs done. Some still hold on tight to the opinion that real programmers don't click, they code. Those who clicked were deemed not to be real programmers.
Technology has evolved and most programmers are left with no other option than to change to adapt to current trend of software engineering practices-codeless development.
Microsoft developers were deemed as lazy folks since almost 95% - my prediction - of the job is done for them when they click. Other companies had to look smart to attract developers with the clicking-to-develop methodology. From NetBeans to Eclipse to Oracle JDeveloper Studio to Qt ... and the list goes endless, everyone is empowering programmers to go codeless. I have been telling other developers who have prejudice against codeless software development that they will phase out.
I got this from  a three times champion developer from a codeless training workshop - forgotten whether that guy is a champion java developer or nokia developer - that last years nokia developer challenge was won by designers who spent six weeks in bringing out their application. Other started for months stressing their bones out. At the end of the day the clickers won the game.
Come on, if doctors use sophisticated technology to treat their patients, it doesn't mean they don't know doctoring. As developers, we are at the heart of empowering others to work smarter. We will be despecable folks if we live a chemotherapic coding lifestyle by working super slow with old, archaic and unproductive methods.
Codeless all the way!

Tuesday, September 27, 2011

Why Computing Professionals should not hate Microsoft

Most computing professionals start with Windows OS and when they feel geeky stop using the OS altogether. Web developers hate IE because it punishes them every now and then. They wish IE does not exist.
One should not hate any technology because there are flaws in their product. There is nothing like a perfect system. Humans are never perfect so one should not expect perfection from their products.
Being trained to think positive, I always look at the positive side of any technology and use it to my advantage.
Guess what, Microsoft products have been saving me lots of time in whichever activity I am performing. I know when to use them to achieve my goals. All that matters is the work gets done not how one stressed their DNAs out to get the work done. I always try to get other professionals to know how I cheat with Microsoft products to obtain quick results but they hold so huge a prejudice against Microsoft that they always turn the offer down. Do I care, they should continue stressing their DNAs out. No one will appreciate a work done without crazy deadlines met. Deadlines matter most in projects.
Looking at the positive side of things is always the course of wisdom which empowers one to throw away prejudice they hold against anything they see. Microsoft always saves my day.