Cakephp

March 18th, 2009

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.

Killer Combination for PHP Development?

January 18th, 2009

I am a fan of Open Source. Almost 3-4 years before Amit Bhai (whom i respect most to guide me in web development field) told, “I want open source fans to work in linux environment instead of windows”.

That was really a hard fact.

I love linux. I love developing with PHP whereas i have to work on windows environment. I think i have to mention that I am not a person of anti-windows family but i feel more comfortable when i work on linux. I basically try to choose the best tool for a specific job, if it suits with me.

Anyways, at that time i knew no other tool other than dreamweaver to work with. And of course i could not choose linux os for development.

Now i can, though not 100%. Eclipse is the answer!!!

To me killer combination for web development  on open source could be

Linux  + JAVA + Eclipse (IDE)  + Zend Debugger + JSEclipse (JS Editor) + Subclipse (For version control) + CakePhp (PHP Framework) + Jquery (Javascript library) +  Apache Ant (Build application) + YUI-compressor for both JS and CSS

And all you can use from Eclipse.

Exited??? Want to taste the sweetness?

Read the awesome article Getting Started with Eclipse PHP Development Tools

This may help also.

Cakephp fans please read this article if you want to setting up eclipse to work with cake. Code generator for cakephp can be run directly from IDE.

Thats all for today. I shall try to come with Ant & YUI next time.

Happy coding!

Importance of Doctype

January 7th, 2009

What’s your doctype? You may wondar and reply back with another query, Why?

Heres why it becomes important to me.

1. HTML Validation & SEO: To make a site SE friendly, website should have well-formed html code. Its more important to validate HTML code to be sure that HTML is correctly implemented. Keep in mind that search engine spiders like the pages with properly structured HTML. The best way to validate a web page is to use the HTML validator .

And here comes the role of DOCTYPE. All HTML documents should start with the correct doctype. This is the first step in creating valid HTML.

 

2. Impact on CSS box model specially for IE: If you want IE6 to render css box using W3C model, doctype switching is the only way.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

If you like to have an example visit this.
Hope this helps someone!

Worth Reading:
http://www.alistapart.com/stories/doctype/
http://www.alistapart.com/articles/journey/ (Boxes & Doctype)
http://www.w3.org/TR/xhtml1/#dtds