<?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>Jucato's Data Core &#187; Programming</title>
	<atom:link href="http://jucato.org/blog/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://jucato.org/blog</link>
	<description>The Log Module</description>
	<lastBuildDate>Sun, 17 Jan 2010 15:05:20 +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>Moving Forward: 2009</title>
		<link>http://jucato.org/blog/moving-forward-2009/</link>
		<comments>http://jucato.org/blog/moving-forward-2009/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 08:22:40 +0000</pubDate>
		<dc:creator>Jucato</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[Gadgets]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://jucato.org/blog/?p=175</guid>
		<description><![CDATA[EDIT: Fixed typos/grammar errors. Thanks Sho! My English-fu is failing me&#8230;
2009 didn&#8217;t kick off quite well. I got the flu immediately after New Year&#8217;s day and that lasted for almost a week. Luckily for me, my midterm exam that was scheduled on the 10th was postponed for the 17th. Even that was a disaster (here&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p><em>EDIT: Fixed typos/grammar errors. Thanks Sho! My English-fu is failing me&#8230;</em></p>
<p>2009 didn&#8217;t kick off quite well. I got the flu immediately after New Year&#8217;s day and that lasted for almost a week. Luckily for me, my midterm exam that was scheduled on the 10th was postponed for the 17th. Even that was a disaster (here&#8217;s to hoping I didn&#8217;t mess that one up). </p>
<p>But regardless of that, there were a few highlights this month that tells me that 2009 will be an exciting year. KDE 4.2, which is going to be released really soon now, marks another milestone release from the KDE 4 series, boasting a lot of improvement and interesting changes. Furthermore, last week, Nokia, now the owners of Qt Software (formerly Trolltech) <a href="http://www.qtsoftware.com/about/news/lgpl-license-option-added-to-qt">announced</a> that the next release of Qt will also be available under the <a href="http://www.gnu.org/licenses/lgpl.html">LGPL</a>, hopefully pacifying/satisfying a lot of &#8220;I-don&#8217;t-want-to-use-Qt-because-of-the-license&#8221; people. And last but definitely not the least, hopefully this month, I will be getting my <a href="http://www.nseries.com/products/n810/#l=products,n810">Nokia N810</a>!! So yes, 2009 is probably going to rock!</p>
<p>And what new year would be complete without a set of new year&#8217;s resolutions? Here&#8217;s my 10 Commandments for 2009.</p>
<ol>
<li><strong>Discipline and Focus</strong>. Combat procrastination, perhaps my numero uno character flaw.</li>
<li><strong>Be Health Conscious</strong>. The final months of 2008 really shook me up physically. It&#8217;s time to pay more attention to my health and weight (and shape <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ).</li>
<li><strong>Blog Early, Blog Often</strong>. But also Blog Shorter. I should try writing more in shorter spurts than writing a novel in one go. And maybe not limit myself to only KDE/FOSS subjects (though those won&#8217;t appear on Planet KDE unless relevant).</li>
<li><strong>Finish pending projects ASAP before turning to new ones</strong>. Prevent &#8220;project&#8221; creep from overwhelming me.</li>
<li><strong>Schedule</strong>. Try as I might, I couldn&#8217;t live without some form of structure or guidance. While I do like the occasional spontaneity, I cannot thrive on random chaos. Of course, the effectiveness of a schedule relies on resolution #1&#8230;</li>
<li><strong>Code more!</strong> My primary motivation for free software and KDE was programming. 3 years later, I haven&#8217;t done much progress. Time to move forward! Need to spit out actual KDE and Qt code.</li>
<li><strong>Get a hobby</strong>. There&#8217;s life away from computers&#8230; I just need to discover it.</li>
<li><strong>Sharpen the mind</strong>. I&#8217;ve been worried (read: paranoid) that my memory and sharpness seems to be declining lately.</li>
<li><strong>Save money</strong>. Need to pay back Mama for (half of) the N810 <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  and probably open up my own bank and PayPal account.</li>
<li><strong>Document!</strong> Take note of important procedures I&#8217;ve done or scripts I&#8217;ve used. I&#8217;ve lost count of the number of times I&#8217;ve had to redo something I&#8217;ve done before, only to realize I&#8217;ve forgotten how I did it in the first place. It&#8217;s a habit I hope to develop and carry over to coding.</li>
</ol>
<p>And now for the hardest part: actually doing all these. <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jucato.org/blog/moving-forward-2009/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Still Alive and Qt&#8217;ing (end-of-the-month log)</title>
		<link>http://jucato.org/blog/still-alive-and-qting-end-of-the-month-log/</link>
		<comments>http://jucato.org/blog/still-alive-and-qting-end-of-the-month-log/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 15:56:57 +0000</pubDate>
		<dc:creator>Jucato</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>

		<guid isPermaLink="false">http://jucato.org/blog/?p=165</guid>
		<description><![CDATA[Whew! November is finally over! I never expected it to actually be that hectic, usually because nothing much happens except in the first week (Mama&#8217;s birthday). But that is precisely what happened. Ironically, it has probably been one of the most productive months I&#8217;ve had this whole year.
I could probably say that half of the [...]]]></description>
			<content:encoded><![CDATA[<p>Whew! November is finally over! I never expected it to actually be that hectic, usually because nothing much happens except in the first week (Mama&#8217;s birthday). But that is precisely what happened. Ironically, it has probably been one of the most productive months I&#8217;ve had this whole year.</p>
<p>I could probably say that half of the busy-ness of November was devoted to personal matters: birthdays, church/community activities, and health problems. I got a very big wake up call regarding my physical status, so I need to put a lot of effort into losing weight and staying fit. I&#8217;m not sure if the <a href="http://www.fourmilab.ch/hackdiet/www/hackdiet.html">hacker&#8217;s diet</a> is something that I can apply, given culture and situation considerations, but I&#8217;ll give it a try. In the meantime, I&#8217;ve taken some preventive measures and have declared war on all forms of soda/pop/soft drinks/whatever-you-call-them-in-your-country which started three weeks ago. That means (sniff) farewell to <a href="http://www.fourmilab.ch/hackdiet/www/hackdiet.html">Mountain Dew</a>.</p>
<p>But I&#8217;ve also been busy with the tech side of life. School has started again next month, and this time my subjects are more interesting and challenging (and the books equally incompetent) than last semester: Data Structures and Algorithms and Computer Structure and Organization. I&#8217;m really starting to feel that I&#8217;ve enrolled in a Computer Science course.</p>
<p>I was also finally able to finish (technically) a major web-related project that has been going on (very slowly) for months. It was my first attempt at using <a href="http://www.textpattern.com">Textpattern</a>, which probably gives me enough experience to start migrating my whole site over to it. Sure it&#8217;s not as simple as WordPress, where you can just install it (or have it installed) and blog away. But it isn&#8217;t that complicated. Understanding how it&#8217;s basic presentation components work together is the key. The hardest part for me was actually &#8220;translating&#8221; the plain XHTML/CSS to Textpattern, complete with dynamic content and such. In a way, it&#8217;s a lot like programming with a library (TXP Tags), which I actually found appealing.</p>
<p>Last, but definitely not the least, I managed to cram my way through my Qt book finally. Although I have to admit that skipped on a few chapters that either didn&#8217;t interest me or were well beyond my current areas (databases, threading, OpenGL, embedded). I focused mostly on the beginning chapters, which is IMHO the minimal Qt necessary to start KDE hacking. Just for fun, I put together this very simple, crude, and primitive &#8220;web browser&#8221;:</p>
<p><a href="http://jucato.org/stuff/project.jpeg"><img src="http://jucato.org/stuff/project.jpeg" style="width: 40%;" alt="My Crude Browser" /></a></p>
<p>(P.S. This made an early college Windows fantasy of mine come true. But I have no intentions of going beyond that). The book, by the way, is available for free (legally) at the <a href="http://doc.trolltech.com/4.4/how-to-learn-qt.html">Qt documentation pages</a> (unfortunately, only the first edition is available for free, which is a bit dated now).</p>
<p>But more than actually finishing a book that I bought a year ago, this milestone practically means that I&#8217;m ready for real KDE coding, which has been the ultimate goal for the past 2 years. I might be able to blog about the <a href="http://techbase.kde.org/Development/Tutorials">many KDE tutorials</a> as I go along (but knowing my own blogging discipline, or lack of it, I won&#8217;t hold my own breath). Now I&#8217;m really excited.</p>
<p>Cheers to an eventful November and here&#8217;s to an even busier December! <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jucato.org/blog/still-alive-and-qting-end-of-the-month-log/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Some notes on C: Pointers to Pointers</title>
		<link>http://jucato.org/blog/some-notes-on-c-pointers-to-pointers/</link>
		<comments>http://jucato.org/blog/some-notes-on-c-pointers-to-pointers/#comments</comments>
		<pubDate>Fri, 19 Sep 2008 17:38:05 +0000</pubDate>
		<dc:creator>Jucato</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://jucato.org/blog/?p=159</guid>
		<description><![CDATA[I&#8217;ve finally submitted my last assignment for my subject in Programming, using C. This practically marks the end of the semester. All that&#8217;s left is taking the final examinations on the 27th. I can only imagine how uncomfortable that will be since we&#8217;ll be practically programming on paper only.
I have mixed feelings about how this [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally submitted my last assignment for my subject in Programming, using C. This practically marks the end of the semester. All that&#8217;s left is taking the final examinations on the 27th. I can only imagine how uncomfortable that will be since we&#8217;ll be practically programming on paper only.</p>
<p>I have mixed feelings about how this particular course has gone. For starters, we were &#8220;required&#8221; to use Turbo C. Well actually we were allowed to use something else as long as they display and compile properly on TC, which means setting text editors to use CR\LF as end of lines (DOS style) and testing them in TC (of course I used GCC (g++) and beloved Kate). I don&#8217;t know why it was the recommended IDE and compiler, though, since I think it sucks on both aspects. Other than that, I&#8217;m quite satisfied with the course. I&#8217;ve come across some algorithm issues in my assignments that I haven&#8217;t really thought much about before, so I had a chance to flex my brain muscles and understand some aspects of the language much better. One of those &#8220;Eureka!&#8221; moments.</p>
<p><strong>Pointers to Pointers</strong></p>
<p>In one of the assignments, our teacher made some notes about this topic which the book failed to cover. A pointer to a pointer, which in turn points to something else, might sound useless, but there&#8217;s definitely one use case we encountered that needed it: passing pointers and modifying them in functions.</p>
<p>Simple case: You have a generic function for opening files and checking for errors. Normally you&#8217;d declare a pointer to a file in main() and pass it to the function, like so:</p>
<div class="box">
<pre>
int openfile(FILE *fileptr, char *name, char *mode)
{
    fileptr = fopen(name, mode)&#59;

    ...
}

int main()
{
    FILE *fp;

    openfile(fp, "foo", "r")&#59;

    ...
}
</pre>
</div>
<p>You&#8217;d think that would work, but it doesn&#8217;t. In fact, it would error when you try to use that file pointer. Because the address of the opened file isn&#8217;t getting assigned to fp in main(), although it was getting assigned to fileptr of course. It wasn&#8217;t clear to me at that time. After all, I did pass a pointer, right? Yes, I did, but not for the effect that I thought it would have. I scanned over my old C books and didn&#8217;t really see anything that discusses this topic. I have the K &amp; R book, but I haven&#8217;t read it much, so I can&#8217;t really say. So instead, I&#8217;m just going to write this down, maybe to be able to help somebody else in the future (or some of my classmates who might be reading this).</p>
<p>The real issue here is that while pointers are used to pass by reference, the pointers themselves are passed by value. While you can modify the variable that the pointer is pointing to, you cannot modify the pointer itself. It&#8217;s probably easier to understand once you see that a pointer is just a variable. It&#8217;s a variable who only accepts memory addresses as its value, just like an int would accept integer values, etc. So like any variable, when passed to a function, a copy of that pointer is made and the original pointer&#8217;s value is untouched. So when you, for example, assign a memory address like a pointer to a file you opened in openfile(), that address gets assigned to the copy of fp, which if fileptr. Once the function ends, that copy is destroyed and the handle to the file is lost. Same goes for assigning a block of memory for a linked list or making a pointer to the head of a linked list point to something else.</p>
<p>So what do you do to be able to modify the pointer in a function? Simple, just like any other variable, you need to pass the address of that variable to the function and the function should receive that address in a pointer. In this case, you pass the address of a pointer and received with a pointer to a pointer. And to access what it is pointing to, as usual, you will need to use the dereference (*) operator. So the above code will now be like so:</p>
<div class="box">
<pre>
int openfile(FILE **fileptr, char *name, char *mode)
{
    *fileptr = fopen(name, mode)&#59;

    ...

}

int main()
{
    FILE *fp&#59;

    openfile(&#038;fp, "foo", "r")&#59;

    ...
}
</pre>
</div>
<p>I hope that this could help some poor soul whose brain has been plagued by the same problem. It would probably be easier to have done this in C++, using references (&#038;), though I think even that has its own problems. And anyway, the class was on C, not C++.</p>
<p>So that basically ends my formal C education. Not much was added to what I&#8217;ve already learned by myself years ago, except for some of the exercises. Now I feel I need to review my C++. <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jucato.org/blog/some-notes-on-c-pointers-to-pointers/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Some short updates</title>
		<link>http://jucato.org/blog/some-short-updates/</link>
		<comments>http://jucato.org/blog/some-short-updates/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 02:31:18 +0000</pubDate>
		<dc:creator>Jucato</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://jucato.org/blog/?p=149</guid>
		<description><![CDATA[&#8230;In bullet form  

School: The past 2 weeks have been stressful. First preparing for an exam and then cramming for an assignment in discrete math. My fault entirely though. Procrastination rears its ugly head again.
Discrete structures/math: Except for the cramming I did last week, I think I&#8217;m doing ok with this subject. But I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>&hellip;In bullet form <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<ul>
<li><strong>School</strong>: The past 2 weeks have been stressful. First preparing for an exam and then cramming for an assignment in discrete math. My fault entirely though. Procrastination rears its ugly head again.</li>
<li><strong>Discrete structures/math</strong>: Except for the cramming I did last week, I think I&#8217;m doing ok with this subject. But I&#8217;m just not happy with our textbook&#8217;s presentation and content. I could buy another recommend book, but is this subject worth investing that much in? So far no one I asked has been able to give me a straight answer to the question &#8220;What are the practical applications of discrete math in actual software development?&#8221;. Any ideas, LazyWeb?</li>
<li><strong>KDE Talk</strong>: I&#8217;m giving a talk on the 23rd about &#8220;Kubuntu &amp; KDE: Contributing to an International Software Project&#8221; at a <a href="http://ubuntuloveday2008.eventbrite.com/">gathering of the local Ubuntu community</a>. It&#8217;s my first public speaking engagement as a FOSS and KDE advocate, and probably the first (and most probably not the last) time I&#8217;ll be using TeX (courtesy of <a href="http://www.kde.org/kdeslides/">KDE presentations templates</a>). Hope everything goes well.</li>
<li><strong>CWG</strong>: So it&#8217;s official. The <a href="http://ev.kde.org/">KDE e.V.</a> has <a href="http://dot.kde.org/1218525921/">approved</a> the Community Working Group of which I am a part of. To put it simply, its mission is to take care of the community and communication aspects of KDE. As almost everyone is still at Brussels, we haven&#8217;t put up anything official yet. Hopefully we can do that in the coming days. But one of the current projects of the group is the <a href="http://www.kde.org/users/faq.php">End User FAQ</a> and <a href="http://www.kde.org/users/glossary.php">KDE Glossary</a>. This FAQ is by no means comprehensive nor finished. It&#8217;s mostly taken from FAQ&#8217;s I&#8217;ve encountered in #kde. I have plans to improve it, so stay tuned. <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li><strong>Updating guides</strong>: After doing the FAQ and <a href="http://jucato.org/kde/faq.html">mirroring</a> it on my site, I realized that I have quite a number of <a href="http://jucato.org/kde/">KDE/Kubuntu guides</a>. I have to update them for KDE 4, specially the theming and autostart guides, since there are major changes for KDE 4. And there are some that I probably no longer need (or want) to update. Hopefully I can whip myself into action ASAP.</li>
<li><strong>My Non-KDE/Kubuntu/FOSS on Planets?</strong> I&#8217;m still quite undecided on this. I have a few posts in mind that I&#8217;d probably want to share with others and ask people&#8217;s opinions. However, they&#8217;re not exactly KDE/Kubuntu/FOSS related (at least some of them). So I&#8217;m kinda hesistant whether I should let them be aggregated here. Decisions, decisions, decisions.</li>
</ul>
<p>For something that&#8217;s supposed to be short, I have again successfully made it long. <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jucato.org/blog/some-short-updates/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>100th Post! KDE 4.1 Rocks, School, Textpattern, and C</title>
		<link>http://jucato.org/blog/100th-post-kde-41-rocks-school-textpattern-and-c/</link>
		<comments>http://jucato.org/blog/100th-post-kde-41-rocks-school-textpattern-and-c/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 23:23:49 +0000</pubDate>
		<dc:creator>Jucato</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[UPOU]]></category>

		<guid isPermaLink="false">http://jucato.org/blog/100th-post-kde-41-rocks-school-textpattern-and-c/</guid>
		<description><![CDATA[1. Yay! This is my 100th post on this blog. This is quite an achievement for me since I&#8217;ve probably gone through about 2-3 blogs/sites and was never able to really maintain them. I guess it&#8217;s quite different when you actually have an audience.   I was hoping to post something special for this [...]]]></description>
			<content:encoded><![CDATA[<p>1. Yay! This is my 100th post on this blog. This is quite an achievement for me since I&#8217;ve probably gone through about 2-3 blogs/sites and was never able to really maintain them. I guess it&#8217;s quite different when you actually have an audience. <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  I was hoping to post something special for this 100th post, but certain things came up and thus my plans changed. So instead, I&#8217;ll treat you all to a hodgepodge of stuff.</p>
<p>2. KDE 4.1 is so going to rock! At least it already does for me. And I include a disclaimer that I&#8217;m not your average KDE joe, so YMMV (Your Mileage May Vary). Seeing the project evolve as a whole (and not just focusing on some more visible part) is truly amazing. Of course, some will not like it, and some will. What&#8217;s important at this point IMHO is that things aren&#8217;t stagnating. Of course, it&#8217;s not yet complete (depending on your &#8220;completeness&#8221; requirements). But I firmly believe that it&#8217;s too early to really bang the gavel on KDE 4. Only time would tell (and there&#8217;s always KDE 3.5 while waiting). As for me, I&#8217;m planning to migrate my main user (jucato) to KDE 4.1 this week.</p>
<p>3. We had our class&#8217;s first online session last Saturday. We were told that we&#8217;d be using Yahoo! Messenger. Not knowing how it will be done, I opted to use the real client on Windows XP. It turns  out we&#8217;ll be using the conference feature, which is perfectly supported by Kopete, so no need to switch for the next sessions. Right now I&#8217;m considering suggesting and helping setup a more permanent online session place (like IRC) for group studying (because people might prefer synchronous communication than forums). A friend suggested using a web app like Campfire. I&#8217;ll have to take a long look at it since it&#8217;s not something I&#8217;m familiar with and, thus, can&#8217;t confidently recommend. I&#8217;ll try to see if the university can setup something for us and make it more &#8220;official&#8221;.</p>
<p>4. I&#8217;m considering migrating my blog from WordPress to Textpattern. When I do that, I&#8217;d probably make all the static pages I have in my site also under Textpattern. I don&#8217;t have any problems with WordPress actually, and it has served me quite well. Textpattern just happens to come highly recommended by a good friend compared to WP. Other supposed advantages of Txp include: better and cleaner template system (no messy PHP, which I&#8217;m not really keen on learning right now), more CMS than blog (whereas WP is more blog than CMS), and created by writers for writers (like me?). Anyway, it&#8217;s probably not going to happen immediately as I still need to actually use Txp. And when that time comes, I hope I don&#8217;t flood the Planet and get kicked. <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>5. One of my subjects this semester teaches Principles of Programming using the C programming language. Having some previous experience gives me a bit of an edge in class. One of the things I&#8217;ve noticed is how our book really doesn&#8217;t say much about good programming practices. It&#8217;s a very short, direct to the point textbook. I presume that we are being encouraged to research on our own. For example, the book mentions that something like <strong>sum1 = sum2 &#8211; (x &#8211; (y = 10)) * 4;</strong> &#8220;makes the code unreadable, but certainly shorter&#8221;,  either implying that &#8220;shorter&#8221; is to be preferred over &#8220;unreadable&#8221;, or not explicitly discouraging such kind of code. Anyway, I don&#8217;t really expect much from the book and the professor, since the study program is more or less based on independent studying, but I&#8217;m somewhat uncomfortable that beginning programmers aren&#8217;t being taught good habits as early as possible. Fortunately, the subject makes use of Moodle, which has a forums feature which I can probably share my thoughts, as well as solicit other people&#8217;s experiences.</p>
<p>Hm&#8230; I really need to learn to write shorter&#8230; <img src='http://jucato.org/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jucato.org/blog/100th-post-kde-41-rocks-school-textpattern-and-c/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
