<?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: Code Reuse&#8230; Yeah, No Thanks</title>
	<atom:link href="http://jacobsantos.com/2006/general/code-reuse-yeah-no-thanks/feed/" rel="self" type="application/rss+xml" />
	<link>http://jacobsantos.com/2006/general/code-reuse-yeah-no-thanks/</link>
	<description>Rumblings, rants, essays, stories by Jacob Santos about Web Site Development, Persistent Browser-Based Games, personal journal, and Programming.</description>
	<lastBuildDate>Wed, 08 Feb 2012 15:54:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3-aortic-dissection</generator>
	<item>
		<title>By: Ergose</title>
		<link>http://jacobsantos.com/2006/general/code-reuse-yeah-no-thanks/comment-page-1/#comment-20655</link>
		<dc:creator>Ergose</dc:creator>
		<pubDate>Thu, 18 Oct 2007 05:42:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.santosj.name/?p=246#comment-20655</guid>
		<description>Reuse and Modularity on any project is always a hard call, be it a PHP program or designing a businesses network infrastructure. If you have time then it never hurts to add to the quality of your work. If pushed for time, get the job done and reap what you can. For me in most cases I try to spend a good amount of time making things modular to help keep things organized and aid in tracking bugs...

If it&#039;s something simple I&#039;ll make a function.
If there are many functions that start to relate to one another I&#039;ll see if there is a set of them that would quickly and easily make a usefull class. 

Only if it&#039;s obvious the use of some part of code can be used on a majority of my projects, or if I find myself redoing something quite often that I didn&#039;t foresee, then and only then will I bother with really fleshing something out, and only in free time... like at the coffee shop on paper or if I have maybe an hour left alloted for the day on a project I finished/got to a good stopping point early.

That way, your time is not wasted on details that may end up being irrelevant for a long time anyway, and the process is more &quot;organic&quot; by &quot;evolving&quot; in a manner that tends to be the path of least resistance.

I have seen the advantages of a large design stage, but unless the programmer is working on a huge project that may be split to multiple teams of coders, and they are the one overseeing most of that... or at least fleshing out the parts so management can split it up, it just doesn&#039;t appear justifiable from a more financial/business sense. If that is the scenario however, reuse and modularity is almost a necessity for organization&#039;s and sanity&#039;s sake.

Well, there&#039;s my two scents, hope it helps.</description>
		<content:encoded><![CDATA[<p>Reuse and Modularity on any project is always a hard call, be it a PHP program or designing a businesses network infrastructure. If you have time then it never hurts to add to the quality of your work. If pushed for time, get the job done and reap what you can. For me in most cases I try to spend a good amount of time making things modular to help keep things organized and aid in tracking bugs&#8230;</p>
<p>If it&#8217;s something simple I&#8217;ll make a function.<br />
If there are many functions that start to relate to one another I&#8217;ll see if there is a set of them that would quickly and easily make a usefull class. </p>
<p>Only if it&#8217;s obvious the use of some part of code can be used on a majority of my projects, or if I find myself redoing something quite often that I didn&#8217;t foresee, then and only then will I bother with really fleshing something out, and only in free time&#8230; like at the coffee shop on paper or if I have maybe an hour left alloted for the day on a project I finished/got to a good stopping point early.</p>
<p>That way, your time is not wasted on details that may end up being irrelevant for a long time anyway, and the process is more &quot;organic&quot; by &quot;evolving&quot; in a manner that tends to be the path of least resistance.</p>
<p>I have seen the advantages of a large design stage, but unless the programmer is working on a huge project that may be split to multiple teams of coders, and they are the one overseeing most of that&#8230; or at least fleshing out the parts so management can split it up, it just doesn&#8217;t appear justifiable from a more financial/business sense. If that is the scenario however, reuse and modularity is almost a necessity for organization&#8217;s and sanity&#8217;s sake.</p>
<p>Well, there&#8217;s my two scents, hope it helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacob Santos</title>
		<link>http://jacobsantos.com/2006/general/code-reuse-yeah-no-thanks/comment-page-1/#comment-6</link>
		<dc:creator>Jacob Santos</dc:creator>
		<pubDate>Sun, 23 Jul 2006 03:38:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.santosj.name/?p=246#comment-6</guid>
		<description>A little clarity would be to say:

Try to code projects, so that you can reuse the code later, whether using functions or objects, but don&#039;t lose sight of the original goal. If you don&#039;t have a deadline, then it is all good.

I&#039;m a hard advocate for code reuse and OOP. Sometimes, you just have to say to yourself, do I want to do this done &lt;strong&gt;right&lt;/strong&gt; or do I want it &lt;strong&gt;finished quickly&lt;/strong&gt;. It is a hard decision and you can&#039;t have it both ways every time.

Embedded Mysql queries can be maintainable if you separate the content out. If you are looking at a huge blob of text with queries, then it does tend to hurt your eyes.</description>
		<content:encoded><![CDATA[<p>A little clarity would be to say:</p>
<p>Try to code projects, so that you can reuse the code later, whether using functions or objects, but don&#8217;t lose sight of the original goal. If you don&#8217;t have a deadline, then it is all good.</p>
<p>I&#8217;m a hard advocate for code reuse and OOP. Sometimes, you just have to say to yourself, do I want to do this done <strong>right</strong> or do I want it <strong>finished quickly</strong>. It is a hard decision and you can&#8217;t have it both ways every time.</p>
<p>Embedded Mysql queries can be maintainable if you separate the content out. If you are looking at a huge blob of text with queries, then it does tend to hurt your eyes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Roderik</title>
		<link>http://jacobsantos.com/2006/general/code-reuse-yeah-no-thanks/comment-page-1/#comment-5</link>
		<dc:creator>Roderik</dc:creator>
		<pubDate>Sat, 22 Jul 2006 20:45:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.santosj.name/?p=246#comment-5</guid>
		<description>while i agree that initial development while using &quot;dirty&quot; code can be a lot quicker, maintaining a project after a few months with ever changing requirements as the site or buisiness behind it grows, will get difficult.

It&#039;s even more difficult if the project spans a few major php releases (i&#039;m still working with a website that was developped when php 4 was just a new kid on the block) and contains a lot of code. 

The programming world also changes, in 1999, in the php world, not a lot of ppl were working with OO. Database good practices for mysql also changed since v3 etc etc.

I strongly believe, that a site build by complying to the latest trends (OO, patterns, database abstraction, unittesting etc) will be a lot easyer to maintain over the years. Butalas, it&#039;s true, writing unittests, or phpdocs, etc takes a shitload of time, mabe better used adding features :)</description>
		<content:encoded><![CDATA[<p>while i agree that initial development while using &#8220;dirty&#8221; code can be a lot quicker, maintaining a project after a few months with ever changing requirements as the site or buisiness behind it grows, will get difficult.</p>
<p>It&#8217;s even more difficult if the project spans a few major php releases (i&#8217;m still working with a website that was developped when php 4 was just a new kid on the block) and contains a lot of code. </p>
<p>The programming world also changes, in 1999, in the php world, not a lot of ppl were working with OO. Database good practices for mysql also changed since v3 etc etc.</p>
<p>I strongly believe, that a site build by complying to the latest trends (OO, patterns, database abstraction, unittesting etc) will be a lot easyer to maintain over the years. Butalas, it&#8217;s true, writing unittests, or phpdocs, etc takes a shitload of time, mabe better used adding features <img src='http://jacobsantos.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
</channel>
</rss>

