Software by tag 'programming'

7 Areas Of PHP You Might Want To Optimize

October 16th, 2009 in PHP, Tutorial | 21 Comments

PHP is undoubtedly one of the preferred development methods chosen by many to create dynamic web pages. As contents get bigger, there is a real need to manage our PHP codes so that it runs faster. Unfortunately for many beginners, designers and enthusiasts, making PHP codes run faster requires intricate knowledge of the overall infrastructure around PHP. It could be your Apache settings, your operating system, or even the memory of your machine.

But we can start from somewhere. Here are 7 areas of your own PHP code that you can modify for performance.

PHP static Keyword

Usage of the static keyword on functions is often programmer’s first choice for optimization. It allows methods within a PHP class to be accessed without the need to instantiate it.

<?php
class Foo {
public static function staticMethod() {
// put codes here
}
}
Foo::staticMethod();
?>

The process of instantiating an object is always expensive and as we can see here, the function staticMethod() can be called without creating a new Foo object. This optimization could lead almost up to 4 times speed improvement.
(more…)

10 Free And Powerful Windows Text Editors For Web Developers

August 3rd, 2009 in Tools | 54 Comments

You probably have some powerful IDEs such as Visual Studio or Adobe Dreamweaver installed. But what happen when you just want to edit a single line of code, or maybe you don’t need those advanced features that provided by most IDEs? So, you probably need a simple text editor like Notepad, which is installed by default on a Windows machine.

But, Windows Notepad is too simple and may not enough to handle our daily programming tasks. So, if you are looking for some alternatives for Notepad, then you have come to the right place. Today, we are going to cover 10 free and powerful Windows based text editors pro developers.

1. Notepad++

Notepad++ is an excellent replacement for Notepad. It has a lot of features, such as Syntax Highlighting, Syntax Folding, Auto Completion, Multi Documents tab view, Full Drag and Drop supported, Zoom in and out, Bookmark, Macro Recoding and powerful search feature. Users can have their own custom defined syntax highlighting, and this is among my most favorite feature of Notepad++.
notepad++

(more…)