When you are in a big trouble?

When you feel your current working project is boring. :/

How to write comments and an introduction to CDD

Read the following wikipedia page :http://en.wikipedia.org/wiki/Comment_(computer_programming)#Uses

Written well enough for me ūüôā

about using TODO, here is an example:

// TODO:2008-12-06:johnc:Add support for negative offsets.

// While it is unlikely that we get a negative offset, it can

// occur if the garbage collector runs out of space.


see that the todo tag is followed by date then developer name, as it will help other developers to understand who is writing this todo and why.

level of details: The level of detail in the documentation is an important element. Too much detail renders the documentation ina ctive; rather the tool should generate documentation as intended by the author and not as produced by an exhaustive parsing tool.

alright, lets talk about comment driven development (CDD). Comment programming, also known as¬†comment-driven development¬†(CDD) is a¬†software development¬†technique that is based on the regular use of¬†comment¬†tags.¬†In comment programming the comment tags are not used to describe what a certain piece of code is doing, but rather to stop some parts of the code from being executed. The aim is to have the commented code at the developer’s disposal at any time he might need it. This is especially useful when the requirements change rapidly. In this case they happen to revert to older versions of themselves, thus making the programmer either write the code again, or revert parts of the code from the versioning repository, which would be more time-consuming. With comment programming, when such a request for reverting to an old implementation arises, the developer just comments the current implementation and uncomments the previous. It is advisable to add short descriptive comments to blocks of commented code.

another good definition i found:¬†This is a programming methodology that encourages the developer to start out complex projects by building a wireframe of their procedures using little more than comments ‚Äď and basic pseudocode ‚Äď to describe each step of the algorithm. CDD helps the developer encounter and work out problems before they write a line of actual code; it also has the advantage of helping clearly delineate the routes between the high-level problem and the many small-picture fractals it is composed of. The comments created using CDD may survive the process of actual coding and development as line comments throughout the programming unit; however, it will sometimes make sense to delete them after their purpose has been served. (better then wikipedia i hope)

here is the video from MSDN sweden, http://channel9.msdn.com/Blogs/MSDNSweden/Comment-Driven-Development-the-art-of-removal hope that helps you, will write more about it.

reference and read more:


http://www.approxion.com/?p=39 http://en.wikipedia.org/wiki/Comment_programming


http://allthingsoracle.com/how-to-make-comments-the-most-important-code-you-write/ (a good article, i would suggest you to read it)

The Asset Pipeline

The asset pipeline provides a framework to concatenate and minify or compress JavaScript and CSS assets. It also adds the ability to write these assets in other languages such as CoffeeScript, Sass and ERB.

The first feature of the pipeline is to concatenate assets. This is important in a production environment, because it can reduce the number of requests that a browser makes to render a web page. Web browsers are limited in the number of requests that they can make in parallel, so fewer requests can mean faster loading for your application.

The second feature of the asset pipeline is asset minification or compression. For CSS files, this is done by removing whitespace and comments. For JavaScript, more complex processes can be applied. You can choose from a set of built in options or specify your own.

The third feature of the asset pipeline is that it allows coding assets via a higher-level language, with precompilation down to the actual assets. Supported languages include Sass for CSS, CoffeeScript for JavaScript, and ERB for both by default.

read more( and how it works on rails): http://guides.rubyonrails.org/asset_pipeline.html

Testing Your Web Application – A Quick 10 Step Guide

Interested in a quick checklist for testing a web application? The following 10 steps cover the most critical items that I have found important in making sure a web application is ready to be deployed. Depending on size, complexity, and corporate policies, modify the following steps to meet your specific testing needs.

via Testing Your Web Application – A Quick 10 Step Guide.

How To Install PHP APC In Xampp For Windows

The Alternative PHP Cache (APC) is a free and open opcode cache for PHP. Its goal is to provide a free, open, and robust framework for caching and optimizing PHP intermediate code.

In the following link it is given that how to install it in xampp.

PHP Development on windows is not a good option,right?

How To Install PHP APC In Xampp For Windows.

InnoDB slow? – PHPBuilder.com

MyISAM’s advantage is speed and the support of the FULLTEXT search capability. InnoDB sacrifices some speed in favor of transactions support.

via InnoDB slow? – PHPBuilder.com.

How to turn safe mod off in php

Depends on your system (e.g, you are using wampp,xampp or using dedicated server) open the php.ini file.

Inside the file, you will see the following lines

; Safe Mode

; http://php.net/safe-mode

safe_mode = On

make the last line as safe_mode = off

Alright, now the safe mod is off.

Read more about safe mod : http://php.net/manual/en/features.safe-mode.php

Read more about how to work with safe mod in dedicated server:- http://help.godaddy.com/article/119


WordPress vs Joomla vs Drupal, Which is better? | Web Hosting Reviews and Hosting Coupon

A fine and good article that defines which one should be used when in small words!

WordPress vs Joomla vs Drupal, Which is better? | Web Hosting Reviews and Hosting Coupon.

.htaccess tricks and tips.. part two: url rewriting with mod rewrite.

.htaccess plays a nice role in web engineering. I will provide some links about the nature of .htaccess files which will help you to work with it.

Caution: Work with .htaccess, but do not play with it.

.htaccess tricks and tips.. part two: url rewriting with mod rewrite..