<?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 &#187; &#8220;might contain boring programming talk&#8221;</title>
	<atom:link href="http://routecafe.com/tags/might-contain-boring-programming-talk/feed" rel="self" type="application/rss+xml" />
	<link>http://routecafe.com</link>
	<description>It's all about David's Blog!</description>
	<lastBuildDate>Fri, 04 Jun 2010 02:59:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<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 &#8230; <a href="http://routecafe.com/posts/i-forgot-there-is-no-initialization.moccha">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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 &#8230; <a href="http://routecafe.com/posts/events-events-and-more-events.moccha">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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>
	</channel>
</rss>
