<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Personal Blog of Abhishek Dilliwal</title>
	<atom:link href="http://abhishek.dilliwal.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://abhishek.dilliwal.com/blog</link>
	<description>Technical and my Life experiences timelined!</description>
	<lastBuildDate>Sun, 15 Apr 2012 18:20:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>JavaScript vs Java (the OO thing)</title>
		<link>http://abhishek.dilliwal.com/blog/2012/04/javascript-vs-java-the-oo-thing/</link>
		<comments>http://abhishek.dilliwal.com/blog/2012/04/javascript-vs-java-the-oo-thing/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 18:20:58 +0000</pubDate>
		<dc:creator>abhishekdilliwal</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://abhishek.dilliwal.com/blog/?p=149</guid>
		<description><![CDATA[JavaScript is object oriented! but is it just like JAVA? a small comparison in Java and JavaScript]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fabhishek.dilliwal.com%2Fblog%2F2012%2F04%2Fjavascript-vs-java-the-oo-thing%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe><p style="text-align: center;"><img class="aligncenter size-full wp-image-151" title="javascript vs java" src="http://abhishek.dilliwal.com/blog/wp-content/uploads/2012/04/javascript.jpg" alt="javascript vs java" width="556" height="325" /></p>
<p>Well, from my initial days of software development I chose languages like C++, Java and PHP. From past 2.5 years I was working as a professional in JAVA stream and about 4 years working in Object Oriented Languages.</p>
<p>I always had the insect (<em>kidda</em>) of web related technologies and so I chose to move towards it. I already had basic idea of JavaScripts (as people say, it runs on browser!). Well when I did not know about it I use to think, ok it’s just browser stuff and anyways I can make a webapp without it!</p>
<blockquote><p>Yeah I can make a webapp without it (JavaScript) but it would be like 90’s website where you can just click on lame links!</p></blockquote>
<p>Listing out some points for JAVA people who think that’s JavaScript is like JAVA.</p>
<div id="_mcePaste">
<ul>
<li>JavaScript is primarily a <strong>Prototype based language</strong> (Prototype! No it’s not that JS library, am talking).</li>
<li>JavaScript is<strong> Object Oriented but in a weird way</strong>. It does not have classes and all that stuff but it has rather a more <strong>powerful stuff known as prototype</strong>.</li>
<li>In Java a Person (class) can be extended to Engineer (class). But wait your engineer can never fly! Or in other words he can’t act as an Airplane (class).<br />
But in JavaScript rather your engineer can copy the prototype of Airplane and wooh! He gets to know how to fly. Well you might be thinking why one will do this, but consider a student (object of class Student) who studies maths/science and becomes an Engineer. That Student (same instance) is now an Engineer. This is a usual thing. Your object may acquire properties of extended classes. How you will do this in an OO language like Java? Yes, JS prototype will work here.</li>
<li>JavaScript is an <strong>implementation of ECMAScript</strong> and it’s also a<strong> specification</strong> like Java. One more interesting thing, JavaScript is one implementation and hence it’s just not for Browsers. There are implementations which are server side. Have you heard about NodeJS? Or JS used in NoSQL databases like MongoDB?</li>
</ul>
</div>
<blockquote><p>The kool thing about JavaScript is <strong>you can make a whole Enterprise Level application with just one language – JavaScript</strong>. Yeah this baby has grown up big, can be used on clients/servers/databases and much more.</p></blockquote>
<p><em>JavaScript is a small and a simple language just like JAVA. But you will take time mastering it.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://abhishek.dilliwal.com/blog/2012/04/javascript-vs-java-the-oo-thing/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>A recipe for making WebApp!</title>
		<link>http://abhishek.dilliwal.com/blog/2011/06/steps-to-make-website-or-webapp/</link>
		<comments>http://abhishek.dilliwal.com/blog/2011/06/steps-to-make-website-or-webapp/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 15:08:49 +0000</pubDate>
		<dc:creator>abhishekdilliwal</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[making webapp]]></category>
		<category><![CDATA[making website]]></category>
		<category><![CDATA[webapplication]]></category>
		<category><![CDATA[website making]]></category>

		<guid isPermaLink="false">http://abhishek.dilliwal.com/blog/?p=133</guid>
		<description><![CDATA[This is a short guide which tells you how to start making webapp or website.]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fabhishek.dilliwal.com%2Fblog%2F2011%2F06%2Fsteps-to-make-website-or-webapp%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe><div id="attachment_142" class="wp-caption alignnone" style="width: 610px"><img class="size-full wp-image-142" title="website-making" src="http://abhishek.dilliwal.com/blog/wp-content/uploads/2011/06/website-making.jpg" alt="making a website or webapp" width="600" height="300" /><p class="wp-caption-text">Making a WebApp</p></div>
<blockquote><p>Many times people see my made applications (the one like <a href="http://expenses.co.in/">expenses.co.in</a>) they ask me a simple question…  &#8220;How did you make that .com thing?&#8221;</p></blockquote>
<p>Well I can’t be very descriptive here but I will (in short) be  writing the steps involved which will make you start with it.</p>
<ol>
<li>First buy a domain that’s all your choice you  want to buy a .com or .net or .in etc.
<ul>
<li>TIP: Well, I prefer that the name should be like  which describes the purpose of website.</li>
</ul>
</li>
<li>Now you need to make choice over technology (or  language) to make the app. You can read my opinion on what technology to choose  (<a href="http://abhishek.dilliwal.com/blog/2011/02/php-asp-jsp-which-one-to-go-for-and-why/">php, asp, jsp which one to go for? and why?</a>).</li>
<li>While you make your web-app you must invest time  over choosing a website template. This is what people see! If you know CSS/HTML/Photoshop,  well and good if not you can buy a template or may be use some free web templates  (google it).<br />
<br />A site template should have these features</p>
<ul>
<li>It should not be too heavy in terms of size.  Reason is simple, it takes time for loading such templates and it will consume  more bandwidth of your network. Just imagine your site is 400Kb and 100 ppl  visit it in an hour which means consumption of 40Mb of your serve r bandwidth. If  you reduce it to say 200Kb you will save 20Mb per hour (or 240Mb per day)</li>
<li>It should be cross-browser. Don’t test the  template on just one browser. I love Opera, but still I test the app’s over IE,  Safari, Mozilla and Chrome as there are 2% people using Opera across the globe</li>
<li>If you are planning a webapp to be cross device  (like <a href="http://expenses.co.in/">expenses.co.in</a> ) meaning which can  run on a mobile, you need to make a mobile template which is even more lighter  and compatible with small screen size.</li>
<li>Other points include color, page-width,  font-size, font-type and table-less design these all are very important.</li>
</ul>
</li>
<li>Using the Javascript on your site: If you  are using some kind of framework which internally uses some Javascripts  Framework try to use it or extend it. If not you should use some kind of Javascript  framework like JQuery, DOJO, YUI etc. The reason is it makes easy to manage the  application. Read my post <a href="http://abhishek.dilliwal.com/blog/2011/02/javascript-patterns-html5-blended-with-jquery-just-makes-it-cleaner/">Javascript Patterns: HTML5 blended with JQuery </a>to get a tip over this  concept.</li>
<li>Buy a space over hosting servers
<ul>
<li>You may go for a shared host if your just  starting your web-app or when you know the traffic would be low</li>
<li>There are other options like dedicated host and  Semi-dedicated host. They are comparatively costly but good if your site has a  high traffic rate. Try searching about them.</li>
</ul>
</li>
<li>Linking the domain and Server: From the Domain  Management tool (available with almost all domain registrars) point your  nameservers to your hosting server. Many times people buy the domain and server  from the same place but I don’t prefer this as I don’t want to give keys and  home to same person.</li>
<li>Now you must end up with your own .com/.net/.in/.co.uk  etc.</li>
</ol>
<p>PS: There are many hidden steps. I just gave a glimpse of  what to do.</p>
]]></content:encoded>
			<wfw:commentRss>http://abhishek.dilliwal.com/blog/2011/06/steps-to-make-website-or-webapp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expenses.co.in &gt; a public web-app by me!</title>
		<link>http://abhishek.dilliwal.com/blog/2011/05/shared_expenses_manager_app/</link>
		<comments>http://abhishek.dilliwal.com/blog/2011/05/shared_expenses_manager_app/#comments</comments>
		<pubDate>Sat, 14 May 2011 17:32:32 +0000</pubDate>
		<dc:creator>abhishekdilliwal</dc:creator>
				<category><![CDATA[My Work]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[common-expenses]]></category>
		<category><![CDATA[expenses calculator]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shared expenses report]]></category>
		<category><![CDATA[shared expenses tracker]]></category>
		<category><![CDATA[shared-expenses]]></category>

		<guid isPermaLink="false">http://abhishek.dilliwal.com/blog/?p=112</guid>
		<description><![CDATA[Expenses.co.in is a web-app (for mobile and computer) which is used to maintain the shared expenses you do with your roomies/roommates. this app creates reports and mails all members. ]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fabhishek.dilliwal.com%2Fblog%2F2011%2F05%2Fshared_expenses_manager_app%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe><div id="attachment_119" class="wp-caption alignnone" style="width: 610px"><a href="http://expenses.co.in"><img class="size-full wp-image-119" title="Shared Expenses Manager" src="http://abhishek.dilliwal.com/blog/wp-content/uploads/2011/05/shared_expenses_manager.jpg" alt="Shared Expenses Manager or common expenses manager" width="600" height="300" /></a><p class="wp-caption-text">Expenses.co.in | Shared Expenses Manager </p></div>
<p>Well this post of me will interest all those guys who <strong>live in sharing</strong> just like me. For me I just not share the home in which I live but also the expenses we have in common.</p>
<p>I, Saransh, Nikhil and Vivek all used to share the expenses of our home B218 at Mumbai, not only the expenses which were common to all but there were expenses which were common to only me and Vivek or say me and Nikhil. So how we did the expense calculation? Yeah the <em>old way using pen-notepad</em> being kept on our TV! So deal was whosoever does the expense will write on it, simple? Now then after a month comes the “Hisab” day when all the final calculation is made and believe me it’s not that simple as you think. It’s not dividing by 4 stuff, there are mutual expenses too!<br />
I then started looking for the better option, someone suggested excels! Oww c’mon I need to open my laptop to add the expense and btw it’s not that transparent and clear.</p>
<p>It was the click I had in my mind, why not to make an app? An app which I can run from my Laptop or my Desktop-PC or may be from my mobile.  So the ideas started floating, it should be light weight, cross-browser, it should send email reports, very simple and what not.</p>
<p>So <a href="http://expenses.co.in">I made an app </a>which is simple, cross-browser, cross-platform, light-weight bla bla bla. What it does? <strong>It just simplifies all those tedious calculations and tells you in simple language how much you need to give and to take and from whom</strong>? Want detail of how the calculation the app made? The app gives you the <strong>full break of report</strong> generated and yeah you can <strong>mail the report</strong> to all your sharing-mates.</p>
<p><a href="http://expenses.co.in">Give it a try!</a> <strong>It’s free, simple and yes it helps you keep your </strong><a href="http://expenses.co.in"><strong>shared expenses clear</strong></a>. Visit <a href="http://expenses.co.in"><strong>expenses.co.in</strong></a> to start using the app.</p>
<p>I would really thank Saransh, Nikhil, Vivek, Natasha, Vibhuti, Pranjal, Devina, TCS-NSDL team for the evaluation and interest in app. It helped a lot in building it!</p>
<p><strong>found it interesting? tell your friends! </strong><a href="http://www.facebook.com/sharer/sharer.php?u=http%3A%2F%2Fexpenses.co.in" target="_blank"><strong>share on the facebook!</strong></a><strong> <img src='http://abhishek.dilliwal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://abhishek.dilliwal.com/blog/2011/05/shared_expenses_manager_app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web adopting &#8220;Single Login System&#8221;, should you?</title>
		<link>http://abhishek.dilliwal.com/blog/2011/03/web-adopting-single-login-system-openid/</link>
		<comments>http://abhishek.dilliwal.com/blog/2011/03/web-adopting-single-login-system-openid/#comments</comments>
		<pubDate>Sun, 06 Mar 2011 08:51:57 +0000</pubDate>
		<dc:creator>abhishekdilliwal</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[open-login-system]]></category>
		<category><![CDATA[openid]]></category>

		<guid isPermaLink="false">http://abhishek.dilliwal.com/blog/?p=98</guid>
		<description><![CDATA[OpenId and OAuth are used intensively these days. Should we use as an end user? Should we adopt it for a new site?
Here's my experience and my view on this.]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fabhishek.dilliwal.com%2Fblog%2F2011%2F03%2Fweb-adopting-single-login-system-openid%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe><p>It’s been 7-8 years for me browsing the web and every week, I visit hundreds of website and so I created hundreds of accounts across Internet!</p>
<ul>
<li>Every time I visit a new site, it says &#8220;Sign      Up&#8221; | &#8220;Register&#8221; | &#8220;Create an account&#8221; (what? Am      not touching the keyboard&#8230; damn!)</li>
<li>Ok, now I registered myself now what? It’s asking to      confirm the email!!! (~@#$&amp;#~.. abuses)</li>
<li>I confirm it and pheeew! finally am authorized to      comment or access the features&#8230;</li>
<li>Few days later I visit the site again but wait it’s not      accepting my username/password? (Where’s the forget password link&#8230;)</li>
</ul>
<p>I got irritated and I started ignoring the sites who asked me to make a new username/password thing&#8230; It’s enough to remember my mail and facebook password&#8230; am not a database!</p>
<p>Let me tell you the pain of website-owner/admin&#8230;</p>
<ul>
<li>If you are not identified as a unique user how they      will tell who&#8217;s doing what on site&#8230;</li>
<li>There are more bots on Internet than actual human&#8217;s      (that&#8217;s y u need to type those captcha images and verify the email)</li>
</ul>
<p>And yes, there was someone (<a href="http://openid.net/">OpenID</a> and <a href="http://oauth.net/">OAuth</a>) listening and acting&#8230;</p>
<p>What&#8217;s OpenID anyways? in a simple language you create an account once and the same account is used by various sites. If you are logged in this means you are logged in to all the linked sites.</p>
<p>Websites these days are rapidly adopting the OpenID/OAuth and users too should move on to it. If you are Facebook, Gmail/Google, Yahoo registered users you can link your account to the sites which have this feature.</p>
<p>Following the same in my upcoming work I am implementing the OpenID/OAuth Login system. Here is I made a sample application&#8230; <a href="http://work.dilliwal.com/openLogin">work.dilliwal.com/openLogin </a></p>
<div id="attachment_106" class="wp-caption alignnone" style="width: 612px"><a href="http://work.dilliwal.com/openLogin"><img class="size-full wp-image-106" title="openLogin using the openid and codeigniter" src="http://abhishek.dilliwal.com/blog/wp-content/uploads/2011/03/openLogin1.gif" alt="" width="602" height="261" /></a><p class="wp-caption-text">openLogin made by me using the php-openid lib and codeigniter as the framework</p></div>
]]></content:encoded>
			<wfw:commentRss>http://abhishek.dilliwal.com/blog/2011/03/web-adopting-single-login-system-openid/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Top reasons saying, &#8220;You are in Mumbai!&#8221;</title>
		<link>http://abhishek.dilliwal.com/blog/2011/02/top-reasons-saying-you-are-in-mumbai/</link>
		<comments>http://abhishek.dilliwal.com/blog/2011/02/top-reasons-saying-you-are-in-mumbai/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 15:36:15 +0000</pubDate>
		<dc:creator>abhishekdilliwal</dc:creator>
				<category><![CDATA[My Life]]></category>
		<category><![CDATA[mumbai]]></category>
		<category><![CDATA[my-life-experience]]></category>

		<guid isPermaLink="false">http://abhishek.dilliwal.com/blog/?p=88</guid>
		<description><![CDATA[Its being one year in Mumbai... sharing some of my experiences...]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fabhishek.dilliwal.com%2Fblog%2F2011%2F02%2Ftop-reasons-saying-you-are-in-mumbai%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe><div id="attachment_91" class="wp-caption alignnone" style="width: 610px"><img class="size-full wp-image-91" title="mumbai" src="http://abhishek.dilliwal.com/blog/wp-content/uploads/2011/02/mumbai.jpg" alt="the Mumbai glimpse" width="600" height="150" /><p class="wp-caption-text">glimpse of mumbai</p></div>
<blockquote><p>&#8220;I tried to read your blog but its kinda technical&#8221; </p></blockquote>
<p>So, here I go for those who think I write <em>too </em>technical for them to understand… </p>
<p>Its being more than one year in Mumbai and I had <em>sweet and sour moments. </em>To share with you, I will write some of them which realize you that you are in mumbai! </p>
<ul>
<li>In the morning 6 you see people on street not for morning walk but with their office bags.</li>
<li>You took a pause in a bus or train or anywhere and someone says “<em>pude chala!”  (trans: move ahead)</em></li>
<li>You tried to hire an auto and one says &#8220;no gas&#8221;, other says &#8220;nahi jayega&#8221; <em>(trans: will not go) </em>and finally you realize you should walk instead.</li>
<li>You ask a mumbai-guy about some location he will answer you &#8220;just at the walking distance&#8230;&#8221; you end up walking miles and still someone guides you &#8220;just at the walking distance&#8230;&#8221;</li>
<li>While on way you encounter two vehicles collided… silence remains… no farting around, no arguments and they just move by&#8230;</li>
<li>You come to a bus-stand and it seems no one was there&#8230; a moment later you stretch your neck a bit right and see a very long queue waiting before you&#8230;</li>
<li>You manage to get inside the bus/train but what was that&#8230; some people behind (who were actually shouting to get inside quickly) didn&#8217;t come.. so what?&#8230; magically your mobile-phone/wallet is missing.</li>
<li>It was a nice day you are coming early from office @ evening 7&#8230; somehow you manage to get in the train/bus but all of the sudden it started heavy rain (as if it never happened)&#8230; you kept standing and people continued coming in the same bus/train&#8230; now u started feeling the power-massage (free of cost)&#8230; you getting choked as there was no oxygen(seems) but still people continued coming in&#8230; (this scenario is depicted as <em>&#8220;gardi&#8221;)</em></li>
<li>You go to a restaurant and in menu most of dishes have name <em>&#8220;pav&#8221;</em>(bread), example pav-bhaji, samosa-pav, vada-pav, bhajiya-pav, omlete-pav etc.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://abhishek.dilliwal.com/blog/2011/02/top-reasons-saying-you-are-in-mumbai/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Javascript Patterns: HTML5 blended with JQuery just makes it cleaner!</title>
		<link>http://abhishek.dilliwal.com/blog/2011/02/javascript-patterns-html5-blended-with-jquery-just-makes-it-cleaner/</link>
		<comments>http://abhishek.dilliwal.com/blog/2011/02/javascript-patterns-html5-blended-with-jquery-just-makes-it-cleaner/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 14:12:16 +0000</pubDate>
		<dc:creator>abhishekdilliwal</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[html5]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[patterns]]></category>

		<guid isPermaLink="false">http://abhishek.dilliwal.com/blog/?p=63</guid>
		<description><![CDATA[Javascript and HTML5: cleaner way to program]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fabhishek.dilliwal.com%2Fblog%2F2011%2F02%2Fjavascript-patterns-html5-blended-with-jquery-just-makes-it-cleaner%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe><p>So, now you know more about <a href="http://en.wikipedia.org/wiki/Web_2.0">web</a> and the javascript thing but it just get messy when you embed javascript callbacks in the HTML form and woooah! it works but really not easy to maintain.</p>
<p>Requirements: make a link which on clicking does some JS stuff!</p>
<h4>Doing it the old-fashioned way…</h4>
<p>After studying the JS and HTML we came with the following code…</p>
<p>HTML :-</p>
<pre>&lt;a href="javascript: void();"
onclick="call_function('Abhishek',23)"&gt;Do Something&lt;/a&gt;</pre>
<p>JavaScript:-</p>
<pre>function call_function(name, age){
	if(age&gt;=13 &amp;&amp; age&lt;=19){
		age_desc = 'a teenager';
	}else if(age&gt;19){
		age_desc = 'an adult';
	}else{
		age_desc = 'a kid';
	}
	message = name + " is " + age_desc;
	alert(message);
}</pre>
<p>This is <em>my Experience</em> that the code above is real pain when it comes to debugging or maintaining. Here&#8217;s <em>my way </em>of doing the same thing in a bit cleaner way using <a href="http://jquery.com">JQuery</a> and <a href="http://dev.w3.org/html5/spec/Overview.html">HTML5</a>.</p>
<h4>Doing it in a clean way&#8230;</h4>
<p>new HTML:-</p>
<pre>&lt;a href="#" class="action_link" data-name="abhishek" data-age="23"&gt;Do Something&lt;/a&gt;</pre>
<p>and the new JavaScript:-</p>
<pre>$(function()){
	$("a.action_link").click(function(){
		call_function($(this).attr("data-name"),
			$(this).attr("data-age")));
	});
}</pre>
<p><strong>Explanation:</strong> In second method we don&#8217;t call any javascript through the HTML and for the params required by the javascript function we use HTML5&#8242;s custom attributes data-*. This method makes our HTML cleaner by removing all the javascripts.</p>
<p>Reasons why the second method is better&#8230;</p>
<ul>
<li>
<div>Javascript is totally separated from HTML.</div>
</li>
<li>
<div>All the JS event binding is done separately. (JQuery)</div>
</li>
<li>
<div>HTML is now cleaner; All the params are now in data attributes (HTML5). This is useful in cases when we are bringing the data from a database as its more readable</div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://abhishek.dilliwal.com/blog/2011/02/javascript-patterns-html5-blended-with-jquery-just-makes-it-cleaner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php framework: codeigniter vs cakephp</title>
		<link>http://abhishek.dilliwal.com/blog/2011/02/php-framework-codeigniter-vs-cakephp/</link>
		<comments>http://abhishek.dilliwal.com/blog/2011/02/php-framework-codeigniter-vs-cakephp/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 18:08:16 +0000</pubDate>
		<dc:creator>abhishekdilliwal</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[cakephp]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[Comparision]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://dilliwal.com/blog/?p=43</guid>
		<description><![CDATA[using php? which framework? here's is what I personally use]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fabhishek.dilliwal.com%2Fblog%2F2011%2F02%2Fphp-framework-codeigniter-vs-cakephp%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe><p>This is my another comparison post, now comparing between two big PHP frameworks <em>cakephp and codeigniter</em></p>
<p>Again, the points I would be keeping here are of my own personal choice and experience. so here I go,</p>
<p>Personally I searched too much on various MVC frameworks available in PHP and learned them. I then chose cakephp and codeigniter for the final round. I am now <em>taking codeIgniter as my base framework</em> and here&#8217;s the reason why&#8230;</p>
<ul>
<li>cakephp was far too abstract, as everything was done magically(console commands). I wanted in-depth knowledge as whats going on inside as am being a core php developer.</li>
<li>cakephp various benchmarking told that it was slow when compared to codeIgniter</li>
<li>cakephp had various restrictions over naming convention.</li>
<li>codeIgniter could be understood easily with all clean programming.</li>
</ul>
<p>Recently I was looking to the <a href="http://www.google.com/trends?q=codeigniter%2C+cakephp">google trend</a> and I compared the codeIgniter and cakephp search trends and found something like this&#8230;</p>
<div id="attachment_48" class="wp-caption alignnone" style="width: 510px"><img class="size-full wp-image-48" title="codeigniter_vs_cakephp" src="http://dilliwal.com/blog/wp-content/uploads/2011/02/codeigniter_vs_cakephp.gif" alt="codeigniter vs cakephp" width="500" height="252" /><p class="wp-caption-text">Trend analysis (google.com/trends) of codeigniter and cakephp</p></div>
<p>The blue is hitting close to red rapidly and this makes us understand what people are searching more and following!</p>
]]></content:encoded>
			<wfw:commentRss>http://abhishek.dilliwal.com/blog/2011/02/php-framework-codeigniter-vs-cakephp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php, asp, jsp which one to go for? and why?</title>
		<link>http://abhishek.dilliwal.com/blog/2011/02/php-asp-jsp-which-one-to-go-for-and-why/</link>
		<comments>http://abhishek.dilliwal.com/blog/2011/02/php-asp-jsp-which-one-to-go-for-and-why/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 14:03:46 +0000</pubDate>
		<dc:creator>abhishekdilliwal</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[asp]]></category>
		<category><![CDATA[comparision-of-technologies]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://dilliwal.com/blog/?p=16</guid>
		<description><![CDATA[So you always had questions like&#8230; What language to use php, java/jsp/servlet or asp for web-app development? Which is better asp/jsp/php? Java Developer: Why to use php anyways? Its not OO! php Developer: Why to make things so complicated! This may fire a debate but before it does I just want to tell you that [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fabhishek.dilliwal.com%2Fblog%2F2011%2F02%2Fphp-asp-jsp-which-one-to-go-for-and-why%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe><p style="text-align: center;"><img class="size-full wp-image-29 aligncenter" title="PHP or JSP or ASP what to go for" src="http://dilliwal.com/blog/wp-content/uploads/2011/02/php_or_jsp_or_asp.jpg" alt="which web technology to choose" width="500" height="100" /></p>
<p>So you always had questions like&#8230;</p>
<ul>
<li>What language to use <a href="http://php.net">php</a>, <a href="http://oracle.com">java/jsp/servlet</a> or <a href="http://microsoft.com">asp</a> for web-app development?</li>
<li>Which is better asp/jsp/php?</li>
<li>Java Developer: Why to use php anyways? Its not OO!</li>
<li>php Developer: Why to make things so complicated!</li>
</ul>
<p>This may fire a debate but before it does I just want to tell you that this is just <em>my opinion</em>&#8230; A wise man somewhere-somehow said..</p>
<blockquote><p>Listen to everyone but just do what you wanna do!</p></blockquote>
<p>Now, it goes this way.. I was a college student thought why not to make one site I heard of making that stuff in php.. Now the question was why not Java (say it jsp, servlet, struts, jsf and what not&#8230; all are basically from same family and that is JAVA) or may be the Microsoft thing (asp, .net, aspx, iis etc. all microsoft stuff).</p>
<p>If I had chosen php saying <em>&#8220;buddy this is open source&#8221; </em>what about java.. haa? here I am giving some of the points which made me choose php over the other server side technologies&#8230;</p>
<ul>
<li>PHP is open-source, yes Java is but Microsoft isn&#8217;t (So, for me asp is out here at first point)</li>
<li>PHP is light to server unfortunately Java is not (Java&#8217;s application servers are too heavy for my apps).</li>
<li>PHP could be compiled just to have optimized output just like Java and ASP but on the other hand it does not require compilation (being a scripting language) and all long server restarts which Java server may require.</li>
<li>Java offers me MVC based frameworks like struts and jsf but wait PHP now offers even better frameworks like cakePHP, codeIgniter etc.</li>
<li>Java is an Obeject Oriented Language meaning am always playing in classes and objects, so what php (5+) now offers the same.</li>
<li>Java had so many utility libraries just download the jar and use it.. so is the case with php</li>
<li>PHP shared servers are easy to find and are light to pocket, this is not the case with Java.</li>
</ul>
<p>Conclusion by <em>me</em>..</p>
<blockquote><p>If you wanna make a web-app just small as my homepage or just huge as facebook you can go for PHP</p></blockquote>
<p>so where does JAVA fits? for that I will put some more points&#8230;</p>
<ul>
<li>If your application is too big and is to be maintained by several people you may follow some kind of strict OO methodology and design patterns you may go with php but here JAVA is a better option.</li>
<li>If your application is less web and more serverside, say you want to make a bank-application it deals more with transactions, accounts, bulk operations etc., these kind of applications are better if made in JAVA technologies. Generally a N-tier system is made where the web side is just for taking your request (like you wanna send some money to ur buddy u place a request) the main part is transactions, bulk operations (several accounts are given an interest of say 5%). These operations are generally not done within a client-server request rather should be done by the server running applications (EJB&#8217;s and Java Pojo&#8217;s do this work).</li>
<li>If your client is ready to invest more money go for Java. ( <img src='http://abhishek.dilliwal.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  )</li>
</ul>
<blockquote><p>So, If you making an application which process less for web and more server side work (transactions or bulk operations) go with java&#8230;</p></blockquote>
<p>all are good at their places just you need to know what you want to attain.</p>
]]></content:encoded>
			<wfw:commentRss>http://abhishek.dilliwal.com/blog/2011/02/php-asp-jsp-which-one-to-go-for-and-why/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

