<?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>Madfozi eNotes &#187; PHP</title>
	<atom:link href="http://www.madfozi.net/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.madfozi.net</link>
	<description>Abe Ganu Nikoh Ore Kelate. Kiro Kelate Celup.</description>
	<lastBuildDate>Mon, 24 Oct 2011 03:24:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How To Write A Good Application</title>
		<link>http://www.madfozi.net/2011/08/04/how-to-write-a-good-application/</link>
		<comments>http://www.madfozi.net/2011/08/04/how-to-write-a-good-application/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 03:18:38 +0000</pubDate>
		<dc:creator>madfozi</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[good codes]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.madfozi.net/?p=129</guid>
		<description><![CDATA[Write a &#8220;good&#8221; application? Why not &#8220;excellent&#8221;? Well for me there is no perfect application. Even a perfect an excellent application need to be at par with latest technology. Now days hackers do not have to concentrate on layer 1 till layer 6, as layer 7 itself were too vulnerable for them to play with. [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#f8f7f1;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.madfozi.net%2F2011%2F08%2F04%2Fhow-to-write-a-good-application%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.madfozi.net/2011/08/04/how-to-write-a-good-application/"></g:plusone>
			</div>
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.madfozi.net/2011/08/04/how-to-write-a-good-application/"  data-text="How To Write A Good Application" data-count="horizontal" data-via="madfozi"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.madfozi.net/2011/08/04/how-to-write-a-good-application/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><blockquote>
<h2>Write a &#8220;good&#8221; application? Why not &#8220;excellent&#8221;?</h2>
</blockquote>
<p>Well for me there is no perfect application. Even<del> a perfect</del> an excellent application need to be at par with latest technology. Now days hackers do not have to concentrate on layer 1 till layer 6, as layer 7 itself were too vulnerable for them to play with. Last month attacks on many Malaysian&#8217;s Government website/portal can testify everything. Most of the website/portal was developed using open source scripts such as Joomla and WordPress which is heavily customized without concerning on application securities issues and I do not think every official released patches was applied to the website/portal. <span style="color: #000080;"><strong>|ROLF|</strong></span></p>
<p>Okey back to what we were supposed to discuss, what is written here was based on my own experiences and discussion with my fellow script geeks.</p>
<ol>
<li><strong><span style="text-decoration: underline;">No &#8216;adhoc&#8217; Script Please</span><br />
</strong>Your boss/client came and ask you to develop what they called simple functions. They said that they used to see the functions on the net and ask you to download and just used the functions in order to speed up everything. Seems like they know better than you isn&#8217;t it? Things like these look very simple and doable. But haven&#8217;t you/they thought that by applying these scripts can either expose your vulnerabilities or bring out data leakage? You can say,<em> &#8220;don&#8217;t worry, we have proper analysis and planning&#8221;</em>. If that&#8217;s the case than if suddenly the script release patches? Can it easily applied to your customized functions?</li>
<li><span style="text-decoration: underline;"><strong>Create and Maintain Your Own Library</strong></span><br />
You are experienced programmer and can write any scripts with one eye open. Two thumbs up for you (applause). From this point I am sure you are facing with redundant codes, repetitive scripts, functions that almost similar like previous projects and any look alike codes. <span style="color: #003300;">Save your time save your lines</span> &lt;&#8211; <em>(I love this quote)</em>. Look back at all your scripts and look at similarities of it and create a universal library. Make it as functions or to make it much awesome, build classes (which I will elaborate in next point). It will reduce your line of codes, centralize control.</li>
<li><span style="text-decoration: underline;"><strong>OOPs &#8211; Our Own Peeps</strong></span><br />
Most of the programmers that I met reluctant to use <strong>OOP (Object Oriented Programming)</strong> as the can&#8217;t see the beauty of it. To me, writing codes without OOP just like <em>&#8220;makan nasi kerabu tanpa budu&#8221;</em> or <em>&#8220;riding a maserati at 40k/h&#8221;</em>. My lecturer once told me to memorize four main things about <strong>OPP</strong> &#8211; <strong>ENCAPSULATION</strong>, <strong>INHERITANCE</strong>, <strong>AGGREGATION</strong> and <strong>POLYMORPHISM</strong>. Only two years later I figured out what those four is. Basically once you jumped into OOP, you&#8217;ll getting lazy and lazier. Why? Because you managed to construct and organize classes and ready to reuse it anytime that you want. Any enhancement or new additional functionality can save you many-many-many hours. Before I forgot, if you can use Method Chaining, other normal people will worship you if they saw your code.</li>
<li><span style="text-decoration: underline;"><strong>Use MVC &#8211; Model via Catwalk</strong></span><br />
Now we are getting to proper development (hoping there will be proper documentation). Since I jumped into this <del>shit</del> ship, programmer designer not get along things always happen. Programmer will blaming designer for not following required functionality and designed layout which what they said impossible to implement. While the designers will pointing fingers to programmer for not using users/client approved mockup. Some more programmer vs programmer might happen when there is redundant functions, classes or namespaces. Well said, if this team understand how to use <strong>Model View Controller (MVC)</strong> approach, most of the cats and dogs argument can be solve. But please be sure the MVC&#8217;s guideline is proper  documented for reference, or else nothing is change.</li>
</ol>
<p>&nbsp;</p>
<p>It might be true or not, depends to individual. I am hoping this write up can at least assist some of you on developing any projects.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madfozi.net/2011/08/04/how-to-write-a-good-application/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>EkadMalaysia Is Almost Done!</title>
		<link>http://www.madfozi.net/2008/02/20/ekadmalaysia-is-almost-done/</link>
		<comments>http://www.madfozi.net/2008/02/20/ekadmalaysia-is-almost-done/#comments</comments>
		<pubDate>Tue, 19 Feb 2008 17:34:30 +0000</pubDate>
		<dc:creator>madfozi</dc:creator>
				<category><![CDATA[Daily Sketch]]></category>
		<category><![CDATA[Ekad]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ekad]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.madfozi.net/?p=75</guid>
		<description><![CDATA[I had managed to finish 90% of the ekadmalaysia back end . Some of the security issue had been solved. For mean time I need some contribution from designer to submit their card design. Particular as below: Size : 400px width / 350px height Theme is widely open. It can be special occasion, love, friendship, [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#f8f7f1;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.madfozi.net%2F2008%2F02%2F20%2Fekadmalaysia-is-almost-done%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.madfozi.net/2008/02/20/ekadmalaysia-is-almost-done/"></g:plusone>
			</div>
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.madfozi.net/2008/02/20/ekadmalaysia-is-almost-done/"  data-text="EkadMalaysia Is Almost Done!" data-count="horizontal" data-via="madfozi"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.madfozi.net/2008/02/20/ekadmalaysia-is-almost-done/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>I had managed to finish 90% of the ekadmalaysia back end . Some of the security issue had been solved. For mean time I need some contribution from designer to submit their card design. Particular as below:</p>
<ol>
<li>Size : 400px width / 350px height</li>
<li>Theme is widely open. It can be special occasion, love, friendship, condolence, thank you and any that you think is related.</li>
</ol>
<p>Submission can be send to me at madfozi [at] gmail [dot] com.</p>
<p><img src="http://www.ekadmalaysia.net/cards/big/ekadteknik.jpg" alt="KadTeknik" width="400" height="350" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.madfozi.net/2008/02/20/ekadmalaysia-is-almost-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EkadMalaysia</title>
		<link>http://www.madfozi.net/2008/02/08/ekadmalaysia/</link>
		<comments>http://www.madfozi.net/2008/02/08/ekadmalaysia/#comments</comments>
		<pubDate>Thu, 07 Feb 2008 17:32:44 +0000</pubDate>
		<dc:creator>madfozi</dc:creator>
				<category><![CDATA[Daily Sketch]]></category>
		<category><![CDATA[Ekad]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[ekad]]></category>
		<category><![CDATA[good codes]]></category>

		<guid isPermaLink="false">http://www.madfozi.net/?p=69</guid>
		<description><![CDATA[Currently I&#8217;m working on ekadmalaysia, which is an online greeting card service. This website was a big hit on 2004 and 2005, but later had been shutdown due to server problem. Thus I had this initiative to rebuild and revamp this website entirely. I create this website using my own php framework which is called [...]]]></description>
			<content:encoded><![CDATA[<div class="bottomcontainerBox" style="background-color:#f8f7f1;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.madfozi.net%2F2008%2F02%2F08%2Fekadmalaysia%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://www.madfozi.net/2008/02/08/ekadmalaysia/"></g:plusone>
			</div>
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://www.madfozi.net/2008/02/08/ekadmalaysia/"  data-text="EkadMalaysia" data-count="horizontal" data-via="madfozi"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://www.madfozi.net/2008/02/08/ekadmalaysia/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div><p>Currently I&#8217;m working on ekadmalaysia, which is an online greeting card service. This website was a big hit on 2004 and 2005, but later had been shutdown due to server problem. Thus I had this initiative to rebuild and revamp this website entirely. I create this website using my own php framework which is called MyLib. I will open MyLib framework to public when I feel that it is ready to face the public.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.madfozi.net/2008/02/08/ekadmalaysia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

