<?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>chenstopher.com &#187; Programming</title>
	<atom:link href="http://www.chenstopher.com/category/technology/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.chenstopher.com</link>
	<description></description>
	<lastBuildDate>Sun, 05 Feb 2012 04:20:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Inorder Tree Traversal</title>
		<link>http://www.chenstopher.com/inorder-tree-traversal/</link>
		<comments>http://www.chenstopher.com/inorder-tree-traversal/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 20:02:13 +0000</pubDate>
		<dc:creator>chenstopher</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[data structures]]></category>
		<category><![CDATA[inorder traversal]]></category>
		<category><![CDATA[interview]]></category>
		<category><![CDATA[tree]]></category>

		<guid isPermaLink="false">http://www.chenstopher.com/?p=859</guid>
		<description><![CDATA[So I had an interview for an job yesterday. In fact, it was my first job interview. It went okay. One of the technical questions the interviewer asked was to create a data structure that would insert in O(log n) and return an iterator that would iterate the data back in sorted order in O(n) [...]]]></description>
			<content:encoded><![CDATA[<p>So I had an interview for an job yesterday. In fact, it was my first job interview. It went okay.</p>
<p>One of the technical questions the interviewer asked was to create a data structure that would insert in O(log n) and return an iterator that would iterate the data back in sorted order in O(n) time. I knew it was a binary tree and the iterator would use an inorder traversal of the tree so I started typing it out.</p>
<p>But when I got to the iterator part, I just couldn&#8217;t figure it out.  I knew for sure it was an inorder traversal but I couldn&#8217;t figure out how to turn the recursive algorithm that I knew into an iterative one. So I sat there and drew some trees to try and visualize the algorithm for it. I thought using a stack for the traversal would also probably work but I couldn&#8217;t figure that out either. And then time was up.</p>
<p>So we continued the interview. I asked some questions about the position. Then the interview ended.</p>
<p>I hung around for a little bit with a friend that worked there and referred me for the job then we biked back to our dorms. As soon as I got back I opened up Visual Studio and worked on the problem again because I knew that if I didn&#8217;t I&#8217;d probably end up staying up all night thinking about it.</p>
<p>It figured it out in ten minutes.</p>
<p>Coding under pressure, man. Can&#8217;t do it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenstopher.com/inorder-tree-traversal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A* + Python/Pygame</title>
		<link>http://www.chenstopher.com/a-pythonpygame/</link>
		<comments>http://www.chenstopher.com/a-pythonpygame/#comments</comments>
		<pubDate>Sun, 10 Oct 2010 08:26:41 +0000</pubDate>
		<dc:creator>chenstopher</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[a*]]></category>
		<category><![CDATA[pathfinding]]></category>
		<category><![CDATA[pygame]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://www.chenstopher.com/?p=704</guid>
		<description><![CDATA[I implemented the A* pathfinding algorithm in python/pygame today. Yep. I was bored of doing Source SDK stuff for my CSE381 class and so I decided to learn a new language, framework, and algorithm. The program itself is pretty basic and isn&#8217;t really that optimized but it works. Maybe I&#8217;ll post the executable once I figure [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-707" title="astar" src="http://www.chenstopher.com/wp-content/uploads/2010/10/astar.png" alt="" width="570" height="441" /></p>
<p>I implemented the A* pathfinding algorithm in python/pygame today. Yep. I was bored of doing Source SDK stuff for my CSE381 class and so I decided to learn a new language, framework, and algorithm. The program itself is pretty basic and isn&#8217;t really that optimized but it works. Maybe I&#8217;ll post the executable once I figure out how to build python code into exes.</p>
<p>I&#8217;m actually really liking python/pygame. Maybe I&#8217;ll make my next game with it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenstopher.com/a-pythonpygame/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSE380</title>
		<link>http://www.chenstopher.com/cse380/</link>
		<comments>http://www.chenstopher.com/cse380/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 22:33:45 +0000</pubDate>
		<dc:creator>chenstopher</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cse380]]></category>
		<category><![CDATA[game]]></category>
		<category><![CDATA[game programming]]></category>
		<category><![CDATA[zombies]]></category>

		<guid isPermaLink="false">http://www.chenstopher.com/?p=669</guid>
		<description><![CDATA[If anyone is interested, I put up a project page for the game programming course I&#8217;m taking (CSE380). For my individual project, I&#8217;m making a game called &#8220;I WOKE UP LATE AND NOW I HAVE TO ROCKET JUMP PASS ZOMBIES TO GET TO CLASS&#8221; or IWULANIHTRJPZTGTC for short or ZOMBIES for shorter. There hasn&#8217;t been [...]]]></description>
			<content:encoded><![CDATA[<p>If anyone is interested, I put up a project page for the game programming course I&#8217;m taking (CSE380). For my individual project, I&#8217;m making a game called &#8220;I WOKE UP LATE AND NOW I HAVE TO ROCKET JUMP PASS ZOMBIES TO GET TO CLASS&#8221; or IWULANIHTRJPZTGTC for short or ZOMBIES for shorter. There hasn&#8217;t been much progress but I&#8217;m working on it.</p>
<p>Here it is: <a href="http://chenstopher.com/cse380">http://chenstopher.com/cse380 </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenstopher.com/cse380/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Freaking Hash Tables</title>
		<link>http://www.chenstopher.com/freaking-hash-tables/</link>
		<comments>http://www.chenstopher.com/freaking-hash-tables/#comments</comments>
		<pubDate>Fri, 01 May 2009 21:01:19 +0000</pubDate>
		<dc:creator>chenstopher</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[School]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[cse214]]></category>
		<category><![CDATA[disappointment]]></category>
		<category><![CDATA[hash table]]></category>
		<category><![CDATA[stony brook]]></category>

		<guid isPermaLink="false">http://www.chenstopher.com/freaking-hash-tables/</guid>
		<description><![CDATA[I just took my CSE214 test. There were three questions with two parts each. We had to write some methods for some data structures. I breezed by the first two and thought I finished the third but for some stupid reason, it wouldn’t work. I sat there debugging this one stupid thing for at least [...]]]></description>
			<content:encoded><![CDATA[<p>I just took my CSE214 test.</p>
<p>There were three questions with two parts each. We had to write some methods for some data structures. I breezed by the first two and thought I finished the third but for some stupid reason, it wouldn’t work.</p>
<p>I sat there debugging this one stupid thing for at least an hour. I couldn’t figure out why the stupid chained hash table was inserting null entries when I tried to add something into it. Eventually, I had enough and deleted everything and started over. Took me two minutes to rewrite the method and it finally worked! I tested it with the grade calculator that the teacher gave us and I got 15 out of 15.</p>
<p>I wanted to get out of there so I quickly handed in the files and the paper, left the computer lab, walked downstairs and out the building. Then I remembered something super important that I forgot to do: update the hash table’s size.</p>
<p>FUCK.</p>
<p>I couldn’t go back and add it, I had already left the exam area and handed it in. I felt so dumb. I just couldn’t shake the fact that I had forgotten something totally stupid and now I won’t get perfect scores on all the tests I’ve taken for that class. Yeah, it sounds lame that I am worried about something like that. But I already forgot to hand in the last hw on time (luckily I was allowed to hand it in late). And this comp sci stuff is probably the one of the only things I’m good at so I’m feeling kind of mad at myself ‘cause I forgot to do it.</p>
<p>Now I have to ace the final. Too bad it’s multiple choice. I hate multiple choice comp sci exams.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenstopher.com/freaking-hash-tables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I Give Up On C++/DirectX</title>
		<link>http://www.chenstopher.com/i-give-up-on-cdirectx/</link>
		<comments>http://www.chenstopher.com/i-give-up-on-cdirectx/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 07:42:40 +0000</pubDate>
		<dc:creator>chenstopher</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[c++]]></category>
		<category><![CDATA[directx]]></category>
		<category><![CDATA[game programming]]></category>
		<category><![CDATA[nikujin]]></category>
		<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://www.chenstopher.com/i-give-up-on-cdirectx/</guid>
		<description><![CDATA[Yeah. I think I’m just gonna do C# and XNA game programming. Seems a whole lot easier and I won’t have to manage memory. Sure, C#/XNA is slower but I don’t think it matters when the games I want to make are gonna be 2D. When I move on to 3D I think I’ll try [...]]]></description>
			<content:encoded><![CDATA[<p>Yeah. I think I’m just gonna do C# and XNA game programming. Seems a whole lot easier and I won’t have to manage memory.</p>
<p>Sure, C#/XNA is slower but I don’t think it matters when the games I want to make are gonna be 2D. When I move on to 3D I think I’ll try C++/DirectX again. I can’t really find any decent online resources for DirectX right now and I don’t feel like buying a book. </p>
<p>I’ll probably take the game programming course here at Stony in a later semester. The teacher is cool and having someone guide you through it is a whole lot easier. Wish they had it when I was at Tech. Screw you weird name people, Ariel and Aljohn. Oh and Lukasz.</p>
<p>This kid Allen(?) is starting up a game programming club so I’m gonna be joining that. He seems pretty awesome at programming, much more knowledgeable than I who only knows Java and a bit of C++ (and php/html/css/js). It’ll be fun. I hope.</p>
<p>So anyway, I’ve starting learning C# and it’s a lot like Java. That’s kind of a good thing since Java’s pretty easy. Still deciding on game to start off with.</p>
<p>Snake? Space Invaders? Tetris? PONG?!</p>
<p>For the sake of randomness. Here’s a video of one of the <a href="http://tigsource.com/articles/2007/06/11/nikujin">best games ever</a>.</p>
<p align="center"><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/Fo6p40RpzrU&amp;hl=en&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/Fo6p40RpzrU&amp;hl=en&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenstopher.com/i-give-up-on-cdirectx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A List of Things I Want To Learn</title>
		<link>http://www.chenstopher.com/a-list-of-things-i-want-to-learn/</link>
		<comments>http://www.chenstopher.com/a-list-of-things-i-want-to-learn/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 08:37:16 +0000</pubDate>
		<dc:creator>chenstopher</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[3d]]></category>
		<category><![CDATA[blender]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[directx]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[products of boredom]]></category>

		<guid isPermaLink="false">http://www.chenstopher.com/a-list-of-things-i-want-to-learn/</guid>
		<description><![CDATA[So I was sitting around yesterday bored out of my mind. Seriously. I started staring at the fish on my desktop. I was trying to look for something to do. Searched DC++ for some games to play, didn’t really work. Tried to watch a movie, wasn’t in the mood. Do homework? It was a Saturday. [...]]]></description>
			<content:encoded><![CDATA[<p>So I was sitting around yesterday bored out of my mind. Seriously. I started staring at the fish on my desktop.</p>
<p><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="desktop-the-fish" border="0" alt="desktop-the-fish" src="http://www.chenstopher.com/wp-content/uploads/2009/03/desktopthefish2.jpg" width="564" height="354" /></p>
<p>I was trying to look for something to do. Searched DC++ for some games to play, didn’t really work. Tried to watch a movie, wasn’t in the mood. Do homework? It was a Saturday. No one does homework on Saturday. </p>
<p>Then I thought, I kinda want to learn Blender and 3D modeling and texturing. You know, do some animation and game programming. If I wanted to do animation, I’d have to learn some video editing. And for game programming, I’d have to learn DirectX programming and more C++. So, I ended up making a list of stuff I wanted to learn.</p>
<h2>The List</h2>
<ul>
<li>DirectX </li>
<li>Advanced Game Programming </li>
<li>More C++ </li>
<li>Blender/3D Modeling/Textures </li>
<li>Basic Animation </li>
<li>Basic Video Editing </li>
<li>iPhone App Development </li>
<li>Android Development </li>
</ul>
<p>Yeah that’s a lot of stuff but it’ll give me something to do if I ever fall into “help I’m bored out of my mind” state again. If it ever does happen I can just refer to the list and google up some tutorials. </p>
<p>I tried to start learning Blender but Windows 7 had some problems with it and I didn’t feel like booting up the Vista partition. So I just spent the rest of the day doing nothing. </p>
<p>Yeah I know. I’m lazy. I should probably actually try to accomplish stuff on the list instead of just making one for fun but you know what? Screw you. Just keeeeding. Haha.</p>
<p>I think I’ll start with DirectX/Game/C++.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chenstopher.com/a-list-of-things-i-want-to-learn/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

