<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0">
			<channel>
			<title>Tales From The Trenches - C++</title>
			<link>http://www.southofshasta.com/blog/index.cfm</link>
			<description></description>
			<language>en-us</language>
			<pubDate>Sun, 05 Sep 2010 07:23:07 -0700</pubDate>
			<lastBuildDate>Fri, 28 Mar 2008 15:31:00 -0700</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>nolan.erck@gmail.com</managingEditor>
			<webMaster>nolan.erck@gmail.com</webMaster>
			
			
			
			
			
			<item>
				<title>To Framework, or Not To Framework? It depends!</title>
				<link>http://www.southofshasta.com/blog/index.cfm/2008/3/28/To-Framework-or-Not-To-Framework-It-depends</link>
				<description>
				
				I just responded to a post over on &lt;a href=&quot;http://www.alagad.com/go/blog-entry/the-great-plague-unframeworked-frameworks&quot;&gt;Alagad.com&lt;/a&gt; about using &quot;homegrown&quot; frameworks vs. using &quot;regular&quot; frameworks, and my comment quickly became a catalyst for a blog post of my own on that same topic.

Frameworks are a pretty common holy war these days.  The phrases &quot;always use frameworks!&quot;, and &quot;which framework is best?&quot; are both seen pretty regularly on blogs, message boards, or overheard at various user group meetings.

As a contractor, I don&apos;t always get to determine the requirements, or time lines, or technology stack that I have to be responsible for. And as such, I sometimes need to make difficult decisions.
				 [More]
				</description>
						
				
				<category>Programming</category>				
				
				<category>C++</category>				
				
				<category>ColdFusion MX</category>				
				
				<category>Flex</category>				
				
				<pubDate>Fri, 28 Mar 2008 15:31:00 -0700</pubDate>
				<guid>http://www.southofshasta.com/blog/index.cfm/2008/3/28/To-Framework-or-Not-To-Framework-It-depends</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Overloaded functions in C++</title>
				<link>http://www.southofshasta.com/blog/index.cfm/2008/3/7/Overloaded-functions-in-C</link>
				<description>
				
				My teammate and I just spent a couple hours debugging an overloaded function:

We had a method foo( int num ) that was called passed a (char*):

foo( (char*)&quot;test&quot; );

...yet the &lt;i&gt;integer&lt;/i&gt; version of the method was still being called, and quite happily at that! Huh!?  It turned out to be the same issue noted &lt;a href=&quot;http://www.parashift.com/c++-faq-lite/strange-inheritance.html#faq-23.9&quot;&gt;here&lt;/a&gt;:

&lt;blockquote&gt;
&lt;em&gt;
Here&apos;s the mess you&apos;re in: if Base declares a member function f(double x), and Derived declares a member function f(char c) (same name but different parameter types and/or constness), then the Base f(double x) is &quot;hidden&quot; rather than &quot;overloaded&quot; or &quot;overridden&quot; (even if the Base f(double x) is virtual).
&lt;/em&gt;
&lt;/blockquote&gt;

Alas, my compiler doesn&apos;t like the noted &quot;using&quot; syntax, so I have to go about solving things the &quot;long way&quot; (either re-defining all the methods in my derived class, or renaming the derived methods so overloading no longer happens).

I can&apos;t believe I&apos;ve never run into this &quot;feature&quot; of C++ before! And I can&apos;t believe this is how they chose to implement things! :)

It seems to me that if the method has a unique signature that&apos;s not redefined in the derived class, the compiler should happily look in the base class for that implementation.  If I have foo(char) in my base class, but happen to have a redefined foo(int) in the derived class...why should it care?  Assuming the data is always cast to the correct type, I fail to see why C++ requires we go through all this extra work.  

If anyone can offer more insight, I&apos;m very curious as to why C++ is wired this way.

--n
				
				</description>
						
				
				<category>Programming</category>				
				
				<category>C++</category>				
				
				<pubDate>Fri, 07 Mar 2008 10:06:00 -0700</pubDate>
				<guid>http://www.southofshasta.com/blog/index.cfm/2008/3/7/Overloaded-functions-in-C</guid>
				
			</item>
			
		 	
			
			
			<item>
				<title>Delving (back) into C++</title>
				<link>http://www.southofshasta.com/blog/index.cfm/2008/2/22/Delving-back-into-C</link>
				<description>
				
				One of my main projects did a pretty big 180 last week.  After demoing some functionality for a potential customer, the customer informed us that they&apos;d prefer a command line tool over a web app (for use within various scripts and batch files they&apos;re running).

So for the next few months, I&apos;ll be switching gears and diving back into C++ work.  It&apos;s been a while since I&apos;ve worked on &lt;a href=&quot;http://en.wikipedia.org/wiki/SimSafari&quot;&gt;anything&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/SimPark&quot;&gt;substantial&lt;/a&gt; in C++.  This will definitely be a challenge for me over the next few months, getting (back) up to speed on the Boost library, and various other goodies.

Fortunately I have a few ColdFusion projects still in the works to help balance things out, and keep me sane. :)
				
				</description>
						
				
				<category>Programming</category>				
				
				<category>C++</category>				
				
				<category>ColdFusion MX</category>				
				
				<category>General</category>				
				
				<pubDate>Fri, 22 Feb 2008 14:41:00 -0700</pubDate>
				<guid>http://www.southofshasta.com/blog/index.cfm/2008/2/22/Delving-back-into-C</guid>
				
			</item>
			
		 	
			</channel></rss>