<?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>Three till Seven &#187; C-sharp</title>
	<atom:link href="http://www.3till7.net/tag/c-sharp/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.3till7.net</link>
	<description>Programming, espresso, and grumbling.</description>
	<lastBuildDate>Sun, 13 Jun 2010 15:26:58 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>two new programming projects</title>
		<link>http://www.3till7.net/2010/01/30/two-new-programming-projects/</link>
		<comments>http://www.3till7.net/2010/01/30/two-new-programming-projects/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 03:53:54 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Techy]]></category>
		<category><![CDATA[C-sharp]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=3865</guid>
		<description><![CDATA[I&#8217;ve gone on a programming project binge today, coding first in C# on a project to add an enforceable Implements attribute to class members, then in PHP to write a Github application for Facebook.  I&#8217;m interested in co-developing the Facebook app, too, and have emailed a few of my programmer friends at UK to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve gone on a programming project binge today, coding first in C# on a project to add an enforceable <a href="http://github.com/moneypenny/ImplementsAttribute">Implements attribute</a> to class members, then in PHP to write a <a href="http://github.com/moneypenny/GithubFacebook">Github application for Facebook</a>.  I&#8217;m interested in co-developing the Facebook app, too, and have emailed a few of my programmer friends at UK to see if they&#8217;d like to participate in coding, testing, or some other part.  If you&#8217;re interested, let me know and I&#8217;ll get you access to the project on Github.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2010/01/30/two-new-programming-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the wily C# shuffle</title>
		<link>http://www.3till7.net/2009/11/07/the-wily-c-shuffle/</link>
		<comments>http://www.3till7.net/2009/11/07/the-wily-c-shuffle/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 16:46:40 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Class]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[academia]]></category>
		<category><![CDATA[C-sharp]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=3074</guid>
		<description><![CDATA[My programming languages professor is quite the wily one.  For our last programming assignment in there, we&#8217;re to write a fraction class in both Java and Smalltalk, as part of our coverage of object-oriented languages.  I asked if I could do C# and Smalltalk, since I really like C# and, darn it, everyone [...]]]></description>
			<content:encoded><![CDATA[<p>My programming languages professor is quite the wily one.  For our last programming assignment in there, we&#8217;re to write a fraction class in both Java and Smalltalk, as part of our coverage of object-oriented languages.  I asked if I could do C# and Smalltalk, since I really like C# and, darn it, everyone says they&#8217;re pretty much the same language.  For my professor&#8217;s purposes, i.e. teaching us different OO styles, substituting C# in for Java should accomplish the same purpose.  (&#8220;Accomplish the same purpose&#8221; sounds weird to me now, but &#8220;accomplish the same effect&#8221; did, too.  Suggestions on rephrasing?)  I sent him a list via email of all the reasons he should let me write it in C#, including:</p>
<ol>
<li>The Ph. D. student we had as a substitute mentioned that my professor is his advisor, the student is doing C# stuff, and my professor is not all that familar with C#.  This would give my professor more experience with it, and in a case where he already knows what the expected result of the program is.</li>
<li>The same Ph. D. student pointed out that if you know C++ and you know Java (which my professor certainly does), you can read C# fine.</li>
<li>You can use Mono in Linux to run C#&#8211;there&#8217;s no need to have .NET or use Windows.  This point stems from the fact that my prof is a big Linux person and either dislikes Windows/Microsoft or perhaps just GUI interfaces&#8230;  He has brought his laptop to class before to show code examples and he&#8217;s so hardcore that his window manager, <a href="http://www.fvwm.org/">fvwm2</a>, doesn&#8217;t even have <em>title bars</em> on the windows, by his configuration, so to move a window you have to hold down some key combination and drag it with the mouse.</li>
<li>For our first program, he let me work in Ruby instead of Python.  Ruby is to Python as C# is to Java.</li>
<li>Recently on <a href="http://stackoverflow.com">StackOverflow</a>, I was reading someone&#8217;s response about learning a new programming language, and I thought he had a good point.  He said that if you already know Java, there&#8217;s not much point in learning C#, but instead perhaps learn ML or C because those are different kinds of languages.  If this programming project is intended to teach us about object-oriented programming, then it doesn&#8217;t seem like it would matter whether we wrote in Java or C# because they&#8217;re so similar.</li>
</ol>
<p>He told me in class he had been considering my request, but had decided that since I code in C# all day at work, it wouldn&#8217;t be helpful for me to write the assignment in C#, too, so I should do it in Java since I&#8217;ve barely worked in Java before.  Then he went on to say that anyone else, however, that isn&#8217;t familiar with C# can use that over Java.  My classmates started laughing and I had to say &#8220;Damnit, that&#8217;s not what I intended at all!&#8221;  Grumble grumble.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/11/07/the-wily-c-shuffle/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>C# and Visual Studio</title>
		<link>http://www.3till7.net/2009/06/27/c-and-visual-studio/</link>
		<comments>http://www.3till7.net/2009/06/27/c-and-visual-studio/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 15:25:17 +0000</pubDate>
		<dc:creator>Sarah</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C-sharp]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[work]]></category>

		<guid isPermaLink="false">http://www.3till7.net/?p=1924</guid>
		<description><![CDATA[Yarr, so work at HP has been good; I&#8217;m enjoying my time there.  I&#8217;ve worked from home a few times, which has been nice:  there&#8217;s nothing quite like coding in your pajamas and getting paid for it.  I&#8217;ve mainly been writing PL/SQL queries and programming in C#.  I was apprehensive about [...]]]></description>
			<content:encoded><![CDATA[<p>Yarr, so work at HP has been good; I&#8217;m enjoying my time there.  I&#8217;ve worked from home a few times, which has been nice:  there&#8217;s nothing quite like coding in your pajamas and getting paid for it.  I&#8217;ve mainly been writing PL/SQL queries and programming in C#.  I was apprehensive about the job to begin with because I knew I&#8217;d be working in Windows, and that&#8217;s unpleasant for me.  It still is unpleasant, and I get pissed off at Windows at least a couple times a day.  I get most annoyed when I want to do something simple, like right-click on a file or switch tabs in Firefox, and it sluuuuuuuugs along, sometimes even freezing the screen such that mouse cursor movements aren&#8217;t even shown.  My response is always &#8220;really?  it&#8217;s that hard to show me the right-click menu and be responsive about it?&#8221;.  It&#8217;s a decently fast computer, and I know the thing would be snappy in Ubuntu.</p>
<p>Anyway, I digress; C# is actually a fun language.  I got thrown into it because I needed to implement new features on an existing C# web service.  I was reading about the lambda operator and predicates yesterday.  It&#8217;s not <em>as</em> pretty, syntactically, as Ruby, but it&#8217;s still cool.</p>
<div class="synthi_code" style="display:block;" id="styled_synthi_4c530ff7ea57f">
<h2 class="synthi_header"> CSharp</h2>
<div class="csharp" style="font-family: monospace;">List&lt;int&gt; numbers = <a href="http://www.google.com/search?q=new+msdn.microsoft.com"><span style="color: #008000;">new</span></a> List&lt;int&gt; <span style="color: #000000;">&#123;</span><span style="color: #FF0000;">1</span>, <span style="color: #FF0000;">2</span>, <span style="color: #FF0000;">3</span>, <span style="color: #FF0000;">4</span>, <span style="color: #FF0000;">5</span><span style="color: #000000;">&#125;</span>;<br />
IEnumerable&lt;int&gt; even = numbers.<span style="color: #0000FF;">Where</span><span style="color: #000000;">&#40;</span>curNum =&gt; curNum % <span style="color: #FF0000;">2</span> == <span style="color: #FF0000;">0</span><span style="color: #000000;">&#41;</span>;</div>
</div>
<p>Whereas in Ruby:</p>
<div class="synthi_code" style="display:block;" id="styled_synthi_4c530ff7eb4f6">
<h2 class="synthi_header"> Ruby</h2>
<div class="ruby" style="font-family: monospace;">numbers = <span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#006666;">1</span>, <span style="color:#006666;">2</span>, <span style="color:#006666;">3</span>, <span style="color:#006666;">4</span>, <span style="color:#006666;">5</span><span style="color:#006600; font-weight:bold;">&#93;</span><br />
even = numbers.<span style="color:#CC0066; font-weight:bold;">select</span> <span style="color:#006600; font-weight:bold;">&#123;</span> |cur_num| cur_num % <span style="color:#006666;">2</span> == <span style="color:#006666;">0</span> <span style="color:#006600; font-weight:bold;">&#125;</span></div>
</div>
<p>I&#8217;ve been working in Visual Studio 2008 and overall I like the IDE.  Intellisense is very convenient and VS&#8217;s debugger is great.  However, that hasn&#8217;t stopped me from banging my head on simple-seeming problems, such as collapsing all method definitions and then expanding all regions as soon as a file is opened.  I&#8217;ve posted <a href="http://stackoverflow.com/questions/1050944/environmentevent-macro-doesnt-complete">a question on Stack Overflow</a> about it, if you want to help out.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.3till7.net/2009/06/27/c-and-visual-studio/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
