<?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>Dev + Mocha</title>
	<atom:link href="http://routecafe.com/feed" rel="self" type="application/rss+xml" />
	<link>http://routecafe.com</link>
	<description>It's all about David's Blog!</description>
	<lastBuildDate>Sat, 30 Jan 2010 11:46:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Reducing my work</title>
		<link>http://routecafe.com/posts/reducing-my-work.moccha</link>
		<comments>http://routecafe.com/posts/reducing-my-work.moccha#comments</comments>
		<pubDate>Sat, 30 Jan 2010 11:46:42 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=232</guid>
		<description><![CDATA[It hurts me but like any other person with responsibilities we need a source of income and just working on this project doesn&#8217;t guarantee me money once its released or pay my bills (yet). I gave it some thoughts, well, there wasn&#8217;t much to think of-just &#8220;well&#8230; just focus on a job&#8221;, etc etc.
It&#8217;s also quite frustrating, [...]]]></description>
			<content:encoded><![CDATA[<p>It hurts me but like any other person with responsibilities we need a source of income and just working on this project doesn&#8217;t guarantee me money once its released or pay my bills (yet). I gave it some thoughts, well, there wasn&#8217;t much to think of-just &#8220;well&#8230; just focus on a job&#8221;, etc etc.</p>
<p>It&#8217;s also quite frustrating, because I had other ideas of a few projects I wanted to take on. Yet most of them are <strong>extensions </strong>for OpenType Threads. Yet I won&#8217;t start talking about it after I finish the prototype of the forum software. One of the things I haven&#8217;t taken into account is the upgrade of extensions/forum software and most importantly the <strong>import</strong> of other bulletin board systems into OpenType Threads. I won&#8217;t bother with such thing yet, the design comes first.</p>
<p>Now to get a job or something =/ </p>
<div class='wp_likes' id='wp_likes_post-232'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(232)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://routecafe.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/reducing-my-work.moccha/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I forgot, there is no initialization!</title>
		<link>http://routecafe.com/posts/i-forgot-there-is-no-initialization.moccha</link>
		<comments>http://routecafe.com/posts/i-forgot-there-is-no-initialization.moccha#comments</comments>
		<pubDate>Fri, 22 Jan 2010 22:40:52 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA["might contain boring programming talk"]]></category>
		<category><![CDATA[My first important project]]></category>
		<category><![CDATA[OpenType Threads]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=228</guid>
		<description><![CDATA[I&#8217;m guilty, I have forgotten everything about the initialization file. True, I&#8217;ve been so focused on other matters that are also quite important. Yet I had no plan to &#8220;boot&#8221; the application, or on how I should call all the things needed to initialize, to put it bluntly, there was no dispatcher. So here I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m guilty, I have forgotten everything about the initialization file. True, I&#8217;ve been so focused on other matters that are also quite important. Yet I had no plan to &#8220;boot&#8221; the application, or on how I should call all the things needed to initialize, to put it bluntly, there was no dispatcher. So here I am cracking my head, there is also a problem on configuring OpenType Threads, it seems users will have to open a file to state the <strong>Absolute Path</strong> of the library, not so hard, but it&#8217;s going to be annoying for a few new users.</p>
<p>I started to enumerate what I needed for my controllers and logic models to work, right now I have these</p>
<p>0. Set default time zone</p>
<p>1. Setting the path of the library<br />
2. Registry to collect all the data I need, but I need to do a ini file reader, shouldn&#8217;t be a problem<br />
3.  Set up doctrine in our way.<br />
4. Load Access Lists and Roles and apply exceptions (the whitelist) from the database<br />
5. Register routes.<br />
6. Start localization with GETTEXT (probably won&#8217;t be implemented in this prototype)<br />
7. Finally, the dispatcher</p>
<p>Now there was a problem though, I left out Sessions, data filters and some other stuff. but then I started thinking &#8220;I don&#8217;t need all of them&#8230;&#8221; Sessions will be called in the instance <strong>mainController</strong> is called and check for existing sessions and and that voodoo stuff.  That means we will have quite a light dispatch, not with unneeded objects.</p>
<p>I should tag all this project related talk&#8230; peace out </p>
<div class='wp_likes' id='wp_likes_post-228'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(228)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://routecafe.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/i-forgot-there-is-no-initialization.moccha/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Events, events and more events!</title>
		<link>http://routecafe.com/posts/events-events-and-more-events.moccha</link>
		<comments>http://routecafe.com/posts/events-events-and-more-events.moccha#comments</comments>
		<pubDate>Fri, 22 Jan 2010 11:33:57 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA["might contain boring programming talk"]]></category>
		<category><![CDATA[My first important project]]></category>
		<category><![CDATA[OpenType Threads]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=221</guid>
		<description><![CDATA[After thinking, thinking, thinking and thinking. I just had to admit, it&#8217;s hard to make your web application to support (plug-ins/add-ons/modules/extensions) whatever you prefer to call it, for me they are extensions. So I had to go over and see some patterns and finally I came with a few ideas. It included a registry (protected [...]]]></description>
			<content:encoded><![CDATA[<p>After thinking, thinking, thinking and thinking. I just had to admit, it&#8217;s hard to make your web application to support (plug-ins/add-ons/modules/extensions) whatever you prefer to call it, for me they are extensions. So I had to go over and see some patterns and finally I came with a few ideas. It included a registry (protected one of course), and events(name) and listeners(extensions) and a handler to manage the injections.</p>
<p>I&#8217;m aware I left templates &#8220;manipulation&#8221; out, and I still won&#8217;t care for it yet. It is not the time to bother with such fancy features if I don&#8217;t have a solid extension base to work with. I&#8217;m seriously hoping to pull this one off. I want to get STARTED to code more, but I can&#8217;t code blindfolded with just ideas on mine and no blueprint to guide me, which is why I analyze, design, implement, test (you should know what I&#8217;m talking about :) ).</p>
<p>Extensions in a bulletin board is hard to see, I mean, there is so MUCH data to process. So many &#8220;events&#8221; to place, like on the one I placed &#8220;prePostLoop&#8221; which if injected, instead of calling my default model, all the raw data will be gone to your extension for you to process. Of course, you don&#8217;t have choose &#8220;prePostLoop&#8221; to just change ONE thing, there will be of course, other events to be placed.</p>
<p>Yet, a bigger problem to overcome is making the extension database layer and choosing the right database user, and also determining the extension&#8217;s &#8220;templatebits&#8221;, &#8220;routes&#8221;. It all requires a lot of &#8220;injections&#8221; to routes, doctrine (yes, I chose Doctrine ORM), views. One thing for sure is that, in the end you will have to place your function in the template. That&#8217;s a no brainer for many people, but I&#8217;m attempting to do something else.</p>
<p>To be honest, while it looks overwhelming for me. I still know I can do it if I keep my mind cool. I mean, it&#8217;s not HARD, like it was for me that I had to take a few days off after I designed how ACL (Access lists), ACL_Roles, ACL_Roles_Whitelist, ACL_Items. All I know is that the initialization of the board is going to be quite heavy.</p>
<p>To end this post, talking about events made me think of &#8220;Sections&#8221; as in &#8220;Link sections&#8221;. Where everyone want to keep it nice and neat. The problem with link sections is that I have to take care of administration pages and other things. It means, many and &#8220;Iterate&#8221; object comes to mind, such an eventful semester, I&#8217;m hoping it gives good results :) </p>
<div class='wp_likes' id='wp_likes_post-221'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(221)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://routecafe.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/events-events-and-more-events.moccha/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing your database, sometimes its more than just a storage</title>
		<link>http://routecafe.com/posts/designing-your-database-sometimes-its-more-than-just-a-storage.moccha</link>
		<comments>http://routecafe.com/posts/designing-your-database-sometimes-its-more-than-just-a-storage.moccha#comments</comments>
		<pubDate>Fri, 22 Jan 2010 00:33:02 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=219</guid>
		<description><![CDATA[Sadly, I&#8217;m catching a cold. I seriously hate being sick, all my motivation goes to nada. Yet I wanted to post on this subject, while I&#8217;m not going to get all specific and detailed about it. I will mention basic factors of designing your database. I have this book I bought on the many programming [...]]]></description>
			<content:encoded><![CDATA[<p>Sadly, I&#8217;m catching a cold. I seriously hate being sick, all my motivation goes to nada. Yet I wanted to post on this subject, while I&#8217;m not going to get all specific and detailed about it. I will mention basic factors of designing your database. I have this book I bought on the many programming books I have, it was requested by my professor to use it in our database design class but we actually never got to use it.</p>
<p>Now it bothered me, I don&#8217;t like buying things without a purpose so I opened it to apply things I learnt in my project. I did learn a few things about database designers, they are divided in two tasks, one is to design the database and the other is to check engines and worry about all physical files and how they are going to be managed. And so on, since it had this overwhelming history of flat files. And it got me to thinking of PHP and some developers.</p>
<p>While I love so much PHP, it&#8217;s disheartening to see many people just to rush over the project start assigning all kind of unneeded data types. Let&#8217;s be realistic, many people use <strong>Int</strong> over <strong>Medium Int</strong> because they &#8220;foresee their application passing over a range of 9 millions&#8221;, to actually reach that amount it will take years unless you spend an insane amount of money in promotions to get all kind of traffic. You can&#8217;t be a microsoft or a google in a year.</p>
<p>It also makes me glad in a way, this mistakes generate jobs, didn&#8217;t  you know? Because the buyers who hired those kind of people and made the database design shaky, don&#8217;t know why their page is slow or why their query is so slow. By putting a higher range, it means more work for the database engine.</p>
<p>Don&#8217;t go adding all type of indexes, just the ones your APPLICATION use most of the type. Like for example we got our auto-incrementer primary key (id), it is UNIQUE so MySQL will check UNIQUE ones first than non-unique ones. Or if we got lets say (categoryID, attachmentID) we got non-unique IDs, but they are mostly searched in a query statement.</p>
<p>Secondly, while I won&#8217;t probably real-world examples. A bad design can lead the web application to become a nightmare to maintain or add new features because you will end up refactoring or worst, re-designing your database.</p>
<p>Read <a href="http://dev.mysql.com/doc/refman/5.1/en/data-size.html">this page</a>, it&#8217;s from <a href="http://mysql.com">MySQL</a>&#8217;s <a href="http://dev.mysql.com/doc/refman/5.1/en/index.html">documentation</a>. It&#8217;ll be a guide to you if you are designing the database using that database system.</p>
<p>I was thinking, after I release OpenType Threads, oh boy I should be prepared to receive a rain of complains. And shield myself from patterns fanboys. Oh, and I started to like Ruby and Javascript syntax, it&#8217;s quite&#8230; fun. And now, making extra code to support other browsers is NOT fun. </p>
<div class='wp_likes' id='wp_likes_post-219'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(219)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://routecafe.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/designing-your-database-sometimes-its-more-than-just-a-storage.moccha/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts on security in web applications</title>
		<link>http://routecafe.com/posts/web-security-db.moccha</link>
		<comments>http://routecafe.com/posts/web-security-db.moccha#comments</comments>
		<pubDate>Tue, 19 Jan 2010 19:54:19 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=217</guid>
		<description><![CDATA[I&#8217;m pretty weary. All this week working on what/how/where/when implementations, starting with logic &#8220;what will this object hold?&#8221;. Working on the prototype of OpenType Threads has made realize how important it is to detail a plan, it&#8217;s good but also a bit lonely hopefully when I launch the prototype I hope some developers join me [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pretty weary. All this week working on what/how/where/when implementations, starting with logic &#8220;what will this object hold?&#8221;. Working on the prototype of OpenType Threads has made realize how important it is to detail a plan, it&#8217;s good but also a bit lonely hopefully when I launch the prototype I hope some developers join me along.</p>
<p>It is exciting in a way to get new concepts, and just yesterday I start to get a new one that I will immediately implement.</p>
<p>The plan is the following, probably nothing new to many seasoned programmers, but on current projects it is rarely seen, especially in PHP. We usually use a database storage, probably MySQL. MySQL provides the feature to allow multiple users to share one database, with different permissions. Quite a nice feature isn&#8217;t it? It&#8217;s hard to imagine how useful this is in programming, because well, installing PHP scripts just relies on the usual &#8220;SELECT, CREATE, INSERT, DELETE, DROP, UPDATE, ALTER&#8221;. We don&#8217;t usually THINK why MySQL users exists and many installers just tells you &#8220;Hey! Just write your database, database user, password, port if there is any and we&#8217;ll do the rest!&#8221; And that&#8217;s the worst mistake and you&#8217;ll see why:</p>
<p>I layered OpenType Threads administration concept in two, the master, the user. The master user has the following privileges :</p>
<p>Master user:</p>
<ul>
<li>INSERT</li>
<li>DELETE</li>
<li>UPDATE</li>
<li>SELECT</li>
<li>CREATE</li>
<li>ALTER</li>
<li>INDEX</li>
<li>DROP</li>
</ul>
<p>The user:</p>
<ul>
<li>SELECT</li>
<li>INSERT</li>
<li>DELETE</li>
<li>UPDATE</li>
</ul>
<p>Now, where do we usually use the &#8220;master user&#8221;? The answer lies in administration panel, imagine if you use wordpress, wordpress plug-ins usually need to CREATE/DROP/ALTER/INDEX a table, INSERT, DELETE, UPDATE, SELECT data. It&#8217;s perfect for the admin section.</p>
<p>Now why would I want to use two users, sharing the same database? The answer lies in SQL exploits. I won&#8217;t pretend this will take care of all injections, that depends mostly on your sanitation of inputs in your web application. It will certainly stop aggressive ones, like, for example:</p>
<p>- a malicious user attempts to DROP the database, everything will be lost in just one command.<br />
- One of your administrator&#8217;s &#8220;betrays&#8221; you and attempt tries to delete tables, again the DROP command will be unavailable.</p>
<p>Now as we see, using a the &#8220;normal user&#8221; will certainly be helpful. Yet it leaves kind of a gap, we can&#8217;t do much with the &#8220;DELETE&#8221; command, actually we can if you rethink your application. Lets say that in your <strong>articles table</strong> you have the usual (artID, artContent, artTitle) lets add one more column (artState(ENUM(&#8216;publish&#8217;,'delete&#8217;,'draft&#8217;))). We have enumerated three options, publish, delete and draft. The usual &#8220;publish&#8221; will just show the article to the users viewing your site.</p>
<p>Now, instead of using the DELETE command to delete the record, it will hide the record and add it to a &#8220;trash can&#8221; which will be ONLY be deleted when you access the administration panel so it carries the &#8220;master user&#8221;.</p>
<p>Issues like &#8220;what if I get my admin login stolen?&#8221;, &#8220;what if the malicious user steals the user, password of the master user?&#8221;.  Well, those issues depends on the security of your web application, it has nothing to do with the TRANSACTIONS made. And of course, sanitize all inputs.</p>
<p>I don&#8217;t believe it hurt to try this because so far it&#8217;s just another measure to take. Infact I&#8217;m not taking the measure with just using TWO MySQL users. I&#8217;m also throwing in <a href="http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html">Foreign Keys Constraints</a>, to stop any user deleting data that is related in another table. The introduction of Foreign keys constraints, it&#8217;s useful, but also can turn into a double edged blade if you overuse it.</p>
<p>Well, there is still a lot to learn :) I&#8217;m still lurking in MySQL documentation to get more ideas (but I should stop, implementing all unneeded features will just put a hole in your goal). Yet I&#8217;ll just do this one to see how it goes, it&#8217;s a gamble after all. I need to see the impact it will cause and what benefits will be gained. </p>
<div><b>1</b> people like this post.</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/web-security-db.moccha/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bing API PHP Wrapper Re-factoring</title>
		<link>http://routecafe.com/posts/bing-api-php-re-factoring.moccha</link>
		<comments>http://routecafe.com/posts/bing-api-php-re-factoring.moccha#comments</comments>
		<pubDate>Thu, 14 Jan 2010 17:13:22 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=212</guid>
		<description><![CDATA[A few months ago I released Bing API PHP to the public out of boredom, it was a hobby, still is. Now re-visiting my code I discovered a few things that needed to be introduced. Starting with an Abstract class, mostly all of Bing&#8217;s XML responses are almost equal to each other. Except for some [...]]]></description>
			<content:encoded><![CDATA[<p>A few months ago I released Bing API PHP to the public out of boredom, it was a hobby, still is. Now re-visiting my code I discovered a few things that needed to be introduced. Starting with an Abstract class, mostly all of Bing&#8217;s XML responses are almost equal to each other. Except for some cases, yet, in the midst of working on a solution on how to &#8220;write less&#8221; and &#8220;be more efficient gathering data&#8221;. I totally forgot about abstract classes, not just totally forgot, the next version of the wrapper itself got stalled due to attempting to &#8220;write less&#8221;.</p>
<p>Why did I start re-factoring now? Good question! It had something to do with OpenType Threads, working on my prototype has taught me a lot of things about classes, design patterns and a better problem solving skill. So when I looked at my wrapper class, I said to myself &#8220;hmmm&#8230; maybe we should do this one more time&#8221;. Yet, while this is still a hobby, one of my goal of why to re-factor the code was to allow me a better manipulation with JavaScript. I know I can use XML in JavaScript but well, we&#8217;ll see how it goes :)</p>
<p>So it&#8217;s time to pay a visit to Bing&#8217;s API documentation and delete old code without thinking twice. </p>
<div class='wp_likes' id='wp_likes_post-212'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(212)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://routecafe.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/bing-api-php-re-factoring.moccha/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Designing is poison for me</title>
		<link>http://routecafe.com/posts/designing-is-poison-for-me.moccha</link>
		<comments>http://routecafe.com/posts/designing-is-poison-for-me.moccha#comments</comments>
		<pubDate>Thu, 14 Jan 2010 15:24:30 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=210</guid>
		<description><![CDATA[Sometimes I envy graphic artists and web designers, they create some nice grunge themes, glassy themes, solid ones with different visions on how content will look, or behave. For me, I do my attempts even when I know I&#8217;m going to fail creating a decent web design. I can&#8217;t vision like they do, but solve [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes I envy graphic artists and web designers, they create some nice grunge themes, glassy themes, solid ones with different visions on how content will look, or behave. For me, I do my attempts even when I know I&#8217;m going to fail creating a decent web design. I can&#8217;t vision like they do, but solve the problems they can&#8217;t solve, like how to implement the design (although a lot of designers are getting good at this) in HTML, a Content Management System or create animations with JavaScript to make their design more attracting. </p>
<p>I&#8217;ve tried to follow tutorials, but they consume more time than programming problems which is very weird. Maybe because &#8220;web designing&#8221; is something undeveloped in me that is out of range. It&#8217;s something that have become an obsession to obtain, but it comes with a price. I have to decide which one to focus on: Programming? Designing? Both take a good time to craft. </p>
<p>Right now I&#8217;m fairly decent, I believe. I also want take on Java and make Android applications where &#8220;designing&#8221; doesn&#8217;t come to play (in graphics terms). And then move to C#, Python and Ruby. There is no decency in my web designing though, it&#8217;s from the &#8220;scratch&#8221;. I do get my visions from time to time, but I can&#8217;t say it&#8217;s as easy as  my programming visions, which if we compare our knowledge. Programming visions seems easier to pull than designing.  </p>
<div class='wp_likes' id='wp_likes_post-210'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(210)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://routecafe.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/designing-is-poison-for-me.moccha/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JavaScript Madness?</title>
		<link>http://routecafe.com/posts/javascript-madness.moccha</link>
		<comments>http://routecafe.com/posts/javascript-madness.moccha#comments</comments>
		<pubDate>Tue, 12 Jan 2010 15:24:11 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=201</guid>
		<description><![CDATA[I&#8217;ve been learning JavaScript for a few days now. Yesterday I got stuck and tried to find documentation, to my disappointment there isn&#8217;t a &#8220;centralized documentation&#8221; of the JavaScript language, it&#8217;s methods or useful examples. It&#8217;s more about experimenting and just listen what your guts tell you. Some have linked me to JavaScript&#8217;s model specifications [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been learning JavaScript for a few days now. Yesterday I got stuck and tried to find documentation, to my disappointment there isn&#8217;t a &#8220;centralized documentation&#8221; of the JavaScript language, it&#8217;s methods or useful examples. It&#8217;s more about experimenting and just listen what your guts tell you. Some have linked me to JavaScript&#8217;s model specifications giving me interfaces and what it should return (and so on) others linked me to MDC ( <s>Microsoft</s> Mozilla Development Center ), MDC has nailed it, very easy to understand examples, brief overview of the JavaScript technology and its Data Types, objects constructs and literals (literals has left me quite with a &#8220;wow&#8221;).</p>
<p>All nice, right? MDC seems like a nice resourceful spot (of course!), now this story will take a plot twist, and it starts when I test my JavaScript code in Internet Explorer, IE yelled errors with nonsense. I took a deep breath, lets do the math! Mozilla: Gecko, Google Chrome: WebKit, IE: well I think it was called &#8220;Trident&#8221;, and Opera? god knows, I forgot. So these people have different implementations on how to render the web, great! Now, they also have a different way on how to interpret JavaScript, just great! The Internet Explorer team needed to follow Microsoft&#8217;s standard, that is, just tweak a few things and claim it. (Like addEventListener converted to attachEvent, extra code is great :) god bless JavaScript libraries for this)</p>
<p>I cried myself to sleep yesterday. I just had one thought in my mind, &#8220;why it had to be like this, how about uniting or something&#8230; a centralized documentation, SOMETHING!&#8221;. I guess that won&#8217;t happen, like a fleeting dream :(</p>
<p>Don&#8217;t get me wrong, I like some of Microsoft technology (and their C# language). I also secretly like their Bing Search Engine, don&#8217;t tell anyone ;)</p>
<p>I&#8217;d like to thank <a href="http://stackoverflow.com/users/126562/justin-johnson">Justin Johnson</a> for his great help over <a href="http://stackoverflow.com/">StackOverflow</a>, enlightened me :) </p>
<div class='wp_likes' id='wp_likes_post-201'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(201)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://routecafe.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/javascript-madness.moccha/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>$%#@*#$, n00b!</title>
		<link>http://routecafe.com/posts/beeep-beep-n00b.moccha</link>
		<comments>http://routecafe.com/posts/beeep-beep-n00b.moccha#comments</comments>
		<pubDate>Tue, 12 Jan 2010 01:36:08 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[random]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=199</guid>
		<description><![CDATA[It sometime amuses me when I play online with random people. Really, I know everyone plays to win, that&#8217;s a fact, and if there has been someone that plays to lose, must be alien to the human kind ;) . I sometimes don&#8217;t know why they allow bluetooth in PlayStation 3, sure they play &#8220;strategically&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>It sometime amuses me when I play online with random people. Really, I know everyone plays to win, that&#8217;s a fact, and if there has been someone that plays to lose, must be alien to the human kind ;) . I sometimes don&#8217;t know why they allow bluetooth in PlayStation 3, sure they play &#8220;strategically&#8221; and so on, as if. Now to my point:</p>
<p>I play Uncharted 2 multiplayer. I connect to have some fun, win some rounds and let some stress out, unless it backfires :P. I&#8217;m in this game, using the shotgun since it was the only weapon before me when I got up that could deliver heavy damage, one kill shot. I killed 5 one by one since they walked toward me and b00m! The other team starts yelling, cussing, insulting  your mere life. Thing is they&#8230; kept coming at me like a mob with stakes. Thanks to my team they backed me up since their eyes wasn&#8217;t to kill the others, but to get revenge!</p>
<p>Exchanging fire, the shotgun spawned again and well I grabbed it again. I killed three in a row, same hurtful, unintended words~! Then below those three there were like 2 more, it started raining-grenades-and well I couldn&#8217;t do much, lol. The matches are 50 kills of a team of 5 individuals, quite fast. Well, I grabbed the shotgun again! Killed the same guy twice, nothing personal, he just had the bad luck of re-spawning where I was going. This one was in rage it seems, yelled at me, mentioning my nick, calling my noob and so on. I would put the text but this blog is rated &#8220;PG&#8221; :P</p>
<p>So yea! Speaking in-game certainly sucks, no one is helpful. They even sing (mostly kids who wanna be &#8220;cool&#8221;), or try to arm the team, which is often useless (98% of the time). I don&#8217;t particularly use the bluetooth myself, don&#8217;t really believe in that crappy stuff.</p>
<p>In the end, it&#8217;s not so bad, you get the kicks hearing them frustrated. It&#8217;s also annoying at the same time, like when one of your teammates has the music on, ugh, awful.</p>
<p>Peace out! more random thoughts later :P </p>
<div class='wp_likes' id='wp_likes_post-199'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(199)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://routecafe.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/beeep-beep-n00b.moccha/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It all boils down that PHP is a &#8220;childish language&#8221;</title>
		<link>http://routecafe.com/posts/it-all-boils-down-that-php-is-a-childish-language.moccha</link>
		<comments>http://routecafe.com/posts/it-all-boils-down-that-php-is-a-childish-language.moccha#comments</comments>
		<pubDate>Mon, 04 Jan 2010 13:57:55 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://routecafe.com/?p=196</guid>
		<description><![CDATA[Lurking around StackOverflow I&#8217;ve been looking for topics of Java and encountered this one from a fellow grad student that wants to follow a path taking a master language. So far from reactions, many programmers seems to ditch the idea of learning PHP, that they should go more towards Java, C, C#, etc etc. I&#8217;ve [...]]]></description>
			<content:encoded><![CDATA[<p>Lurking around StackOverflow I&#8217;ve been looking for topics of Java and encountered this one from a fellow grad student that wants to follow a path taking a master language. So far from reactions, many programmers seems to ditch the idea of learning PHP, that they should go more towards Java, C, C#, etc etc. I&#8217;ve seen rants of programmers against Java, but they still show respect (in a weird way), but when it comes to this scripting language. It turns into a bashing topic.</p>
<p>Anyway, just listen to what you like in the end people. Don&#8217;t be a victim of a flame war and choose something popular yet you dislike. There is market in PHP, but so in many languages. </p>
<div class='wp_likes' id='wp_likes_post-196'>
<div style='display:none' class='text'><b>0</b> people like this post.</div>
<div><a href=' javascript:wp_likes.like(196)' class='like' title='like this post'>Like</a>&nbsp;<img class='loader' src='http://routecafe.com/wp-content/plugins/wp-likes/images/spinner.gif' alt=''/></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://routecafe.com/posts/it-all-boils-down-that-php-is-a-childish-language.moccha/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
