<?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>the toe of webdev &#187; C#</title>
	<atom:link href="http://toebot.edublogs.org/category/programming/c/feed/" rel="self" type="application/rss+xml" />
	<link>http://toebot.edublogs.org</link>
	<description>a disabled developer's point of view</description>
	<lastBuildDate>Sat, 03 Jan 2009 23:21:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>School&#8217;s Out and I Am Reborn!</title>
		<link>http://toebot.edublogs.org/2008/05/09/schools-out-and-i-am-reborn/</link>
		<comments>http://toebot.edublogs.org/2008/05/09/schools-out-and-i-am-reborn/#comments</comments>
		<pubDate>Fri, 09 May 2008 05:08:28 +0000</pubDate>
		<dc:creator>toebot</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[College]]></category>
		<category><![CDATA[Rambling]]></category>

		<guid isPermaLink="false">http://toebot.edublogs.org/2008/05/09/schools-out-and-i-am-reborn/</guid>
		<description><![CDATA[Yep, that&#8217;s right.&#160; I graduated April 8th — well, finished school that is.  Graduation isn&#8217;t until August.
I am sure it is completely evident, but here it is again in case you missed it.
I simply hate blogging.
I have tried so many times to run a successful blog and it simply does not pan out.&#160; By [...]]]></description>
			<content:encoded><![CDATA[<p>Yep, that&#8217;s right.&nbsp; I graduated April 8th — well, finished school that is.  Graduation isn&#8217;t until August.</p>
<p>I am sure it is completely evident, but here it is again in case you missed it.</p>
<p>I simply hate blogging.</p>
<p>I have tried so many times to run a successful blog and it simply does not pan out.&nbsp; By successful I do not mean one that is dependent upon advertising revenue, but one that simply sees a post once in a while.</p>
<p>Long story short I have decided that this blog is to have a different purpose.&nbsp; It started out that I would post my happenings in C#, but inevitably became my rant zone for my idiot professor who spent the majority of his time taking comments personally.</p>
<p>When he was not doing that, he was busy making comments that generally pissed a lot of fellow classmates.</p>
<p>We all agreed that he, the class, or perhaps the university — I would vote all three — was simply too pathetic to glean anything useful.</p>
<p>Since I found myself bitter and angry, I gave up blogging about it.</p>
<p>Instead, this will be the home of my random thoughts and activities in interfaces, usability, and functionality.</p>
<p>I fear that I may be one of those who are far better suited to teach, than professionally exert my knowledge.</p>
<p>If that is the case, I sincerely promise to deliver the best possible ideas and concepts that randomly flit through this damaged brain.</p>
]]></content:encoded>
			<wfw:commentRss>http://toebot.edublogs.org/2008/05/09/schools-out-and-i-am-reborn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solicitation during class, by the professor no less</title>
		<link>http://toebot.edublogs.org/2008/02/16/solicitation-during-class-by-the-professor-no-less/</link>
		<comments>http://toebot.edublogs.org/2008/02/16/solicitation-during-class-by-the-professor-no-less/#comments</comments>
		<pubDate>Sat, 16 Feb 2008 07:22:56 +0000</pubDate>
		<dc:creator>toebot</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[College]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rambling]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://toebot.edublogs.org/2008/02/16/solicitation-during-class-by-the-professor-no-less/</guid>
		<description><![CDATA[Say what!?  No way!
Yes way!
During my class last night StudentA (for some strange reason) stroked the professor&#8217;s ego by saying that he should have wrote the book, upon which the professor replied:
Student A: They should have just paid you to write the text
Professor: (I have my own C# text out there Student A)
Upon reviewing [...]]]></description>
			<content:encoded><![CDATA[<p>Say what!?  No way!</p>
<p>Yes way!</p>
<p>During my class last night StudentA (for some strange reason) stroked the professor&#8217;s ego by saying that he should have wrote the book, upon which the professor replied:</p>
<blockquote><p><strong>Student A</strong>: They should have just paid you to write the text<br />
<strong>Professor</strong>: (I have my own C# text out there Student A)</p></blockquote>
<p>Upon reviewing the class transcript I see that it was because the idea behind the &#8220;static&#8221; keyword finally sunk in for Student A.  It was then that they fully understood why you call:</p>
<pre>
System.Console.WriteLine();
</pre>
<p>By prefixing the WriteLine method with Console, rather than instantiating an object of the Console class.</p>
<p>For this a student gushes about how well the professor is teaching?  That he should have wrote the book?  All he did was explain how static works!</p>
<p>*sigh*</p>
]]></content:encoded>
			<wfw:commentRss>http://toebot.edublogs.org/2008/02/16/solicitation-during-class-by-the-professor-no-less/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is nitpicking a requirement of a PhD?</title>
		<link>http://toebot.edublogs.org/2008/02/14/is-nitpicking-a-requirement-of-a-phd/</link>
		<comments>http://toebot.edublogs.org/2008/02/14/is-nitpicking-a-requirement-of-a-phd/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 15:46:32 +0000</pubDate>
		<dc:creator>toebot</dc:creator>
				<category><![CDATA[C#]]></category>
		<category><![CDATA[College]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rambling]]></category>
		<category><![CDATA[Rant]]></category>

		<guid isPermaLink="false">http://toebot.edublogs.org/2008/02/14/is-nitpicking-a-requirement-of-a-phd/</guid>
		<description><![CDATA[My professor constantly avoids any and all questions that involve anything beyond the simplistic.  For example, one time he tells me:
I feel really bad because if this is your last term as a programmer, then you should have been through 3 courses in either VB or Java here.  Which means then you really [...]]]></description>
			<content:encoded><![CDATA[<p>My professor constantly avoids any and all questions that involve anything beyond the simplistic.  For example, one time he tells me:</p>
<blockquote><p>I feel really bad because if this is your last term as a programmer, then you should have been through 3 courses in either VB or Java here.  Which means then you really should already have the knowledge base for this course &#8211; you just don&#8217;t have the C# syntax (which is nearly identical to Java).  Honestly, you&#8217;re the bulk of the reason why I&#8217;ve added in these &#8216;extra&#8217; programs &#8211; because I think everyone else is going to be having a tough enough time with the regular projects.  Hopefully I&#8217;ll be wrong about that, but having taught this course more than a few times, that&#8217;s just been my experience.</p></blockquote>
<p>Yeah, you heard that right.  He feels bad because I should have had previous programming classes to prepare me for this course.  Granted, I did have an Introduction to Programming about a year ago, but it was basically a &#8220;how to use Visio&#8221; course.  It didn&#8217;t teach anything worthwhile (unless you consider Visio that worthwhile).</p>
<p>So, I decide to continue to push my understanding of the language and ask about assemblies, specifically this (in a discussion board thread that he previously ignored):</p>
<p>ME</p>
<blockquote><p>I didn&#8217;t see a necessity to pollute the global namespace with a using directive for one qualification.</p>
<p>And I&#8217;ll be honest, I have no absolute clue that it would pollute the &#8220;global namespace.&#8221; That is basically a carry-over from my work in client-side programming and memory resident applications that would normally suffer greatly the more you &#8220;polluted&#8221; the memory allocation.</p>
<p>Well, PROFESSOR? Does it increase memory whatsoever? I&#8217;m going to say, &#8220;No.&#8221; It probably doesn&#8217;t because this is a compiled language, then again, I&#8217;ve no clue how it may poll the framework. It might request that System be looked up each and every time the program runs or it may statically link in some information pertaining to the specific calls it requires. I have ZERO clue how assemblies are resolved.</p></blockquote>
<p>PROFESSOR</p>
<blockquote><p>For this course, it&#8217;s quite appropriate to have a &#8216;using statement&#8217; even if you only use that reference one time &#8211; in fact, it&#8217;s nearly expected. For example, it&#8217;s fine to have:</p>
<pre>
using System;

public class TestMe {
public static void Main() {
Console.WriteLine("hello");
}
}</pre>
<p>The rest of the discussion here is well beyond the scope of this course.</p></blockquote>
<p>Say what?!  How in the world did that answer ANYTHING I said?!  In fact, the response didn&#8217;t even make sense.</p>
<p>And if that simple bit of information is outside of the scope of this course, yet it is supposed to be the 4th in a series of programming courses offered — WHEN exactly would it be in scope?</p>
<p>I am convinced my professor is an idiot.</p>
<p>Oops, almost forgot the nitpicking.  I purposely did the wrong exercise to see how it would be handled (it was an extra, nothing against my grade) and this was his response:</p>
<p>PROFESSOR</p>
<blockquote><p>The problem that I see in the text says:</p>
<p>&#8220;Show the output for each of the following data types: &#8230;&#8221;</p>
<p>The program code that I see here has 3 ints, a float and a double. It does some math and then outputs a single value (the double).</p>
<p>~~~~~~~~~~~~~~~~~~~~~~~</p>
<p>Now, was this first problem a real-world problem? Certainly not. It was quite abstract &#8211; BUT &#8211; it does bring up a great point. And this was something that I mentioned near the end of our first meeting together:</p>
<p>&#8220;The thing that folks tend to lose the most points for in this class is for not following directions.&#8221;</p>
<p>And while the problem itself might not be &#8216;real world&#8217;, following directions is definitely something that&#8217;s about as real world as it gets. I have this long, drawn out story that I tell to seated students about working your first job.</p>
<p>The short version is that your boss says they have a big client who wants a spreadsheet program. You want to impress your boss so you add all these extra features. At the end, you have a program that&#8217;s the best word processor EVER. It&#8217;s going to put Word out of business. The problem is &#8211; your client wanted a spreadsheet and you end up getting fired.</p>
<p>Ok&#8230; a little unrealistic, but the point is that reading and following directions is critical for a programmer. After all, what does a programmer do for a living? They write instructions for a machine.</p>
<p>Again, I feel bad posting this here — hey, you&#8217;ve taken the time out of your life to write an extra program. However, this is really part of the reason why I&#8217;ve created these &#8216;extras&#8217;. Because there&#8217;s so much to learn and really the best way to find out is to actually write a program and then get feedback on it.</p>
<p>Overall, I think it&#8217;s wonderful that you were able to get this program working — but I&#8217;ll challenge you to try to slow down a bit and pay close attention to what the problem is stating. This is going to be critical in your Projects this term as I&#8217;ll always grade based on the Project specs.</p>
<p>Thanks!</p></blockquote>
<p>ME</p>
<blockquote><p>Thanks for that lengthy response — I think.</p>
<p>I am worried about something small — I&#8217;m not sure if it was the fact that I did the wrong exercise, or the fact that you didn&#8217;t catch it.</p></blockquote>
<p>PROFESSOR</p>
<blockquote><p>Well, to be fair to myself, I do not have 100% complete knowledge of every single problem that is written in this textbook.</p>
<p>I sincerely apologize for not being better at catching the fact that you did a different problem.</p>
<p>All of my comments still apply to everyone though.  Reading and following directions is critical.</p></blockquote>
<p>Um&#8230; to be fair to me should I not have a competent professor in the field I&#8217;m studying?  Why do I have to have the Gomer Pyle of C#?</p>
<p>So, I post the right exercise:</p>
<blockquote><p>&#8230;<br />
2.  &#8220;Initialize each variable with an appropriate test value.&#8221;</p>
<p>I figured this meant no values outside of the types natural range. So I pushed the limit and casted a float value to my integer variable. (Just because I wanted to use 12345.12345 in each example. I know&#8230; silly&#8230;)</p>
<pre><code>namespace IT254_01_Unit2_Extra
{
	class Program
	{
		static void Main()
		{
			int varInteger = (int) 12345.12345; // casting so I can use 12345.12345
			float varFloat = 12345.12345F; // no implicit conversions
			double varDouble = 12345.12345;
			decimal varDecimal = 12345.12345M; // no implicit conversions

			Console.WriteLine("\r\nFormatted with 0 digits:");
			Console.WriteLine("varInteger:\t{0:C0}", varInteger);
			Console.WriteLine("varFloat:\t{0:C0}", varFloat);
			Console.WriteLine("varDouble:\t{0:C0}", varDouble);
			Console.WriteLine("varDecimal:\t{0:C0}", varDecimal);

			Console.WriteLine("\r\nFormatted with 2 digits:");
			Console.WriteLine("varInteger:\t{0:C2}", varInteger);
			Console.WriteLine("varFloat:\t{0:C2}", varFloat);
			Console.WriteLine("varDouble:\t{0:C2}", varDouble);
			Console.WriteLine("varDecimal:\t{0:C2}", varDecimal);

			Console.WriteLine("\r\nFormatted with 5 digits:");
			Console.WriteLine("varInteger:\t{0:C5}", varInteger);
			Console.WriteLine("varFloat:\t{0:C5}", varFloat);
			Console.WriteLine("varDouble:\t{0:C5}", varDouble);
			Console.WriteLine("varDecimal:\t{0:C5}", varDecimal);
			Console.WriteLine();
			Console.Write("Press any key to continue... ");
			Console.ReadKey();
		}
	}
}</pre>
<p></code>
</p></blockquote>
<p>He responds with:</p>
<blockquote><p>Sounds fine. I'm not sure that I totally understand why you cast a double into an int, instead of just storing the int. Yes, I see your explanation there, but I think that was part of the deal with having 4 different variables and was probably an extra line of text that wasn't necessary.</p>
<p>Oh, and keep in mind that often times with these textbooks, the author writes the text and someone else (maybe multiple someone elses) write the problems, summaries, student materials, etc, etc, etc. Not really that big of a deal, but its more than likely true. (See you never know what you might learn here)</p></blockquote>
<p>So of course, why the heck are we learning from this 5 year old book in the first place — you know, the one my PROFESSOR told me was not really all that old and was a great book to learn C# from?</p>
<p>And of course that brings me to my final and most important point of my post — why can he not stop nitpicking?  I mean, I explained that OCD frequently makes me do neurotic things and I've explained inline and in comments that I just wanted to, for no reason whatsoever.  The only thing this moron can do is try and justify it in his own mind?</p>
<p>He cannot answer a simple question about C# coding conventions, but he can nitpick every moot point he sees fit?</p>
<p>I think my professor is an idiot.</p>
<p>You know what?  Since I am rambling... let me tell you this final story.  It relates to him saying that I should have had more programming classes before this one, but offers nothing in the way of actual assistance or guidance — and coding conventions just reminded me of it.</p>
<p>I asked if he had any C# design patterns or specifically a way to lay out my projects in a way that made sense and were easy to revisit after months or years of not perusing the code.</p>
<p>His response:</p>
<blockquote><p>Are there any design patterns that I recommend?  Yes, I'd recommend that you learn the different patterns and choose the most appropriate for the situation at hand.  A good text to use when learning these is "Design Patterns" (Gamma, Helm, Johnson, Vlissides) ISBN 0-201-63361-2.</p></blockquote>
<p>I am so letdown at my college's offerings and staff at this point, I feel as if I have wasted an entire 2 years of my life and over $30,000 USD in tuition.</p>
<p>Did I mention I think my professor is an idiot?</p>
]]></content:encoded>
			<wfw:commentRss>http://toebot.edublogs.org/2008/02/14/is-nitpicking-a-requirement-of-a-phd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
