<?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: The Mighty Text File</title>
	<atom:link href="http://somewhatnifty.com/2009/02/16/the-mighty-text-file/feed/" rel="self" type="application/rss+xml" />
	<link>http://somewhatnifty.com/2009/02/16/the-mighty-text-file/</link>
	<description>Random Projects and Miscellaneous Thoughts by Paul Saunders</description>
	<lastBuildDate>Sat, 14 Apr 2012 21:04:59 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Paul</title>
		<link>http://somewhatnifty.com/2009/02/16/the-mighty-text-file/comment-page-1/#comment-43</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 22 Mar 2009 22:53:13 +0000</pubDate>
		<guid isPermaLink="false">http://somewhatnifty.com/?p=87#comment-43</guid>
		<description>@kometbomb: I have used SQLite a little bit and it seems like a good solution if you want a database, but for some reason can&#039;t access MySQL. It does not, however solve the problem of the need for a good CRUD interface. Most of the sites that I build are for people who are not that tech-savvy and telling them to edit the content of their site with PHPMyAdmin or similar doesn&#039;t really work. Storing all the data in a simple text file allows them to add/edit/remove content using any text editor.</description>
		<content:encoded><![CDATA[<p>@kometbomb: I have used SQLite a little bit and it seems like a good solution if you want a database, but for some reason can&#8217;t access MySQL. It does not, however solve the problem of the need for a good CRUD interface. Most of the sites that I build are for people who are not that tech-savvy and telling them to edit the content of their site with PHPMyAdmin or similar doesn&#8217;t really work. Storing all the data in a simple text file allows them to add/edit/remove content using any text editor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kometbomb</title>
		<link>http://somewhatnifty.com/2009/02/16/the-mighty-text-file/comment-page-1/#comment-42</link>
		<dc:creator>kometbomb</dc:creator>
		<pubDate>Sat, 21 Mar 2009 14:08:20 +0000</pubDate>
		<guid isPermaLink="false">http://somewhatnifty.com/?p=87#comment-42</guid>
		<description>There are two valid points in there: &quot;why see the extra work&quot; and &quot;if it works, don&#039;t touch it&quot;. However, here are some counterarguments just for the sake of discussion.

PHP comes with SQLite which pretty much is a zero-setup SQL database. That means, setting up a database and opening it for using is just one line of code. Creating the table structure above is similarly trivial: mere few lines.

You don&#039;t need an admin section since you can open the SQL console and enter the table creation stuff there. This is comparable to typing in and uploading the text file so I wouldn&#039;t think that has any overhead. In fact, you can create the database at home and the upload the file on the web server (it really is that simple - one file per database). Editing the data can be done with some third party tool similar to PHPmyadmin.

Writing queries can&#039;t be avoided. However, I can&#039;t see where&#039;s the overhead in that. The only thing different from writing some table accessing code in PHP is that it&#039;s a different language (which I think is pretty essential to master, for your own good). In the end you probably end up typing in far less SQL than PHP, thanks to the database doing things for you (e.g. checking for dupe names and numbers, not to mention if you need to do any relational stuff at all).

I think my overall point is that while you can avoid extra work by doing things in a simple way, it easily grows into something that has nothing but overhead. If you see just a tiny bit of extra work in the beginning, it might save you the most work of all compared to the full and minimal mindsets. :)</description>
		<content:encoded><![CDATA[<p>There are two valid points in there: &#8220;why see the extra work&#8221; and &#8220;if it works, don&#8217;t touch it&#8221;. However, here are some counterarguments just for the sake of discussion.</p>
<p>PHP comes with SQLite which pretty much is a zero-setup SQL database. That means, setting up a database and opening it for using is just one line of code. Creating the table structure above is similarly trivial: mere few lines.</p>
<p>You don&#8217;t need an admin section since you can open the SQL console and enter the table creation stuff there. This is comparable to typing in and uploading the text file so I wouldn&#8217;t think that has any overhead. In fact, you can create the database at home and the upload the file on the web server (it really is that simple &#8211; one file per database). Editing the data can be done with some third party tool similar to PHPmyadmin.</p>
<p>Writing queries can&#8217;t be avoided. However, I can&#8217;t see where&#8217;s the overhead in that. The only thing different from writing some table accessing code in PHP is that it&#8217;s a different language (which I think is pretty essential to master, for your own good). In the end you probably end up typing in far less SQL than PHP, thanks to the database doing things for you (e.g. checking for dupe names and numbers, not to mention if you need to do any relational stuff at all).</p>
<p>I think my overall point is that while you can avoid extra work by doing things in a simple way, it easily grows into something that has nothing but overhead. If you see just a tiny bit of extra work in the beginning, it might save you the most work of all compared to the full and minimal mindsets. <img src='http://somewhatnifty.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emperor Gum</title>
		<link>http://somewhatnifty.com/2009/02/16/the-mighty-text-file/comment-page-1/#comment-14</link>
		<dc:creator>Emperor Gum</dc:creator>
		<pubDate>Tue, 17 Feb 2009 13:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://somewhatnifty.com/?p=87#comment-14</guid>
		<description>Notepad: a great word processor, or the greatest? I stopped using Open Office writer completely about a year ago.</description>
		<content:encoded><![CDATA[<p>Notepad: a great word processor, or the greatest? I stopped using Open Office writer completely about a year ago.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://somewhatnifty.com/2009/02/16/the-mighty-text-file/comment-page-1/#comment-12</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Mon, 16 Feb 2009 23:40:32 +0000</pubDate>
		<guid isPermaLink="false">http://somewhatnifty.com/?p=87#comment-12</guid>
		<description>@King Kool: I have a real problem coming up with random names. If you look at any of my scripts for LoadingReadyRun, you will see a lot of Freds, Bobs and Johns.

These days I tend to grab random actor&#039;s names off of IMDB.</description>
		<content:encoded><![CDATA[<p>@King Kool: I have a real problem coming up with random names. If you look at any of my scripts for LoadingReadyRun, you will see a lot of Freds, Bobs and Johns.</p>
<p>These days I tend to grab random actor&#8217;s names off of IMDB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: King Kool</title>
		<link>http://somewhatnifty.com/2009/02/16/the-mighty-text-file/comment-page-1/#comment-11</link>
		<dc:creator>King Kool</dc:creator>
		<pubDate>Mon, 16 Feb 2009 22:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://somewhatnifty.com/?p=87#comment-11</guid>
		<description>I&#039;m sorry. Bob Fredson makes me laugh. I can&#039;t help it.</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry. Bob Fredson makes me laugh. I can&#8217;t help it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://somewhatnifty.com/2009/02/16/the-mighty-text-file/comment-page-1/#comment-10</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 16 Feb 2009 22:43:36 +0000</pubDate>
		<guid isPermaLink="false">http://somewhatnifty.com/?p=87#comment-10</guid>
		<description>I&#039;ve built a couple of websites using enitrely text storage and always found that implementing a database can be incredibly difficult and wasteful. If you do need all the functionality of a database though, a database is essentially just optimised text files so it can be more eficient than it looks.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve built a couple of websites using enitrely text storage and always found that implementing a database can be incredibly difficult and wasteful. If you do need all the functionality of a database though, a database is essentially just optimised text files so it can be more eficient than it looks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David</title>
		<link>http://somewhatnifty.com/2009/02/16/the-mighty-text-file/comment-page-1/#comment-9</link>
		<dc:creator>David</dc:creator>
		<pubDate>Mon, 16 Feb 2009 20:05:20 +0000</pubDate>
		<guid isPermaLink="false">http://somewhatnifty.com/?p=87#comment-9</guid>
		<description>That&#039;s a pretty neat function. I agree that all the overhead associated with a DB is undesirable when dealing with small-scale projects. I will definitely keep this little function in mind on future projects.</description>
		<content:encoded><![CDATA[<p>That&#8217;s a pretty neat function. I agree that all the overhead associated with a DB is undesirable when dealing with small-scale projects. I will definitely keep this little function in mind on future projects.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

