<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Can you make small changes in an unknown language?</title>
	<atom:link href="http://polymathprogrammer.com/2008/07/30/can-you-make-small-changes-in-unknown-language/feed/" rel="self" type="application/rss+xml" />
	<link>http://polymathprogrammer.com/2008/07/30/can-you-make-small-changes-in-unknown-language/</link>
	<description>Where entrepreneurship, mathematics and programming meet</description>
	<lastBuildDate>Wed, 28 Mar 2012 04:44:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<item>
		<title>By: Simple excerpts in WordPress &#124; Polymath Programmer</title>
		<link>http://polymathprogrammer.com/2008/07/30/can-you-make-small-changes-in-unknown-language/comment-page-1/#comment-3448</link>
		<dc:creator>Simple excerpts in WordPress &#124; Polymath Programmer</dc:creator>
		<pubDate>Wed, 06 Aug 2008 09:01:09 +0000</pubDate>
		<guid isPermaLink="false">http://polymathprogrammer.com/?p=300#comment-3448</guid>
		<description>[...] First, I want to say that I have never learnt PHP. I&#8217;m also unfamiliar with the innards of WordPress. But I&#8217;m a programmer. The code doesn&#8217;t look too hard&#8230; so I&#8217;m still capable of making small changes. [...]</description>
		<content:encoded><![CDATA[<p>[...] First, I want to say that I have never learnt PHP. I&#8217;m also unfamiliar with the innards of WordPress. But I&#8217;m a programmer. The code doesn&#8217;t look too hard&#8230; so I&#8217;m still capable of making small changes. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vincent Tan</title>
		<link>http://polymathprogrammer.com/2008/07/30/can-you-make-small-changes-in-unknown-language/comment-page-1/#comment-3427</link>
		<dc:creator>Vincent Tan</dc:creator>
		<pubDate>Wed, 30 Jul 2008 13:15:47 +0000</pubDate>
		<guid isPermaLink="false">http://polymathprogrammer.com/?p=300#comment-3427</guid>
		<description>Replication of existing faults is unavoidable if you just use the existing code as a learning template. I sometimes come across this situation when maintaining legacy code. My colleague and I discussed on it, and the best solution, other than rewriting large chunks of hard-to-find or hidden-in-obscure-places code, is to let it be.

Our rationale? Be &lt;a href=&quot;http://polymathprogrammer.com/2008/03/12/be-consistently-wrong/&quot; rel=&quot;nofollow&quot;&gt;consistently wrong&lt;/a&gt;. This way, if we ever put our minds to go on a mass code correction rampage, the editing process is idiotically and mechanically consistent.

As for your second point, it &lt;em&gt;is&lt;/em&gt; hard to write something new with only a small code sample, a subset of its &quot;true&quot; language. In your example, I&#039;d probably go learn the Windows API and use an existing system function if there is. I wouldn&#039;t know I have to write a new function if I didn&#039;t learn the ins and outs of the API.

I was actually thinking of minor changes when I wrote the post. Code changes that can be extrapolated and intuited from surrounding code. This tests one&#039;s understanding of basic programming skills and grasp of business logic.</description>
		<content:encoded><![CDATA[<p>Replication of existing faults is unavoidable if you just use the existing code as a learning template. I sometimes come across this situation when maintaining legacy code. My colleague and I discussed on it, and the best solution, other than rewriting large chunks of hard-to-find or hidden-in-obscure-places code, is to let it be.</p>
<p>Our rationale? Be <a href="http://polymathprogrammer.com/2008/03/12/be-consistently-wrong/" rel="nofollow">consistently wrong</a>. This way, if we ever put our minds to go on a mass code correction rampage, the editing process is idiotically and mechanically consistent.</p>
<p>As for your second point, it <em>is</em> hard to write something new with only a small code sample, a subset of its &#8220;true&#8221; language. In your example, I&#8217;d probably go learn the Windows API and use an existing system function if there is. I wouldn&#8217;t know I have to write a new function if I didn&#8217;t learn the ins and outs of the API.</p>
<p>I was actually thinking of minor changes when I wrote the post. Code changes that can be extrapolated and intuited from surrounding code. This tests one&#8217;s understanding of basic programming skills and grasp of business logic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Barden</title>
		<link>http://polymathprogrammer.com/2008/07/30/can-you-make-small-changes-in-unknown-language/comment-page-1/#comment-3425</link>
		<dc:creator>Ben Barden</dc:creator>
		<pubDate>Wed, 30 Jul 2008 12:20:56 +0000</pubDate>
		<guid isPermaLink="false">http://polymathprogrammer.com/?p=300#comment-3425</guid>
		<description>Depending on the language, I might be able to do it, but creating new code based on existing code has a couple of drawbacks. First, you may replicate any faults or bad practices that are present in the existing code. Second, if you&#039;re writing something that isn&#039;t already written for the system you&#039;re working on, you might have difficulties finding other code that will accomplish what you want.

The second point really depends on what you&#039;re doing, but what if - to give a specific example - you need to access the Windows API in VB6 and no other function has done that yet? You can&#039;t do that in &quot;pure&quot; code.

On the other hand, writing code in the same style as existing code keeps things consistent, even if it continues with bad practices that have been used in the past.</description>
		<content:encoded><![CDATA[<p>Depending on the language, I might be able to do it, but creating new code based on existing code has a couple of drawbacks. First, you may replicate any faults or bad practices that are present in the existing code. Second, if you&#8217;re writing something that isn&#8217;t already written for the system you&#8217;re working on, you might have difficulties finding other code that will accomplish what you want.</p>
<p>The second point really depends on what you&#8217;re doing, but what if &#8211; to give a specific example &#8211; you need to access the Windows API in VB6 and no other function has done that yet? You can&#8217;t do that in &#8220;pure&#8221; code.</p>
<p>On the other hand, writing code in the same style as existing code keeps things consistent, even if it continues with bad practices that have been used in the past.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

