News for hackers. Stuff that matters.
Re:Why I love text files by StavrosK on Sunday October 17, 2010 @06:14PM (#1801578)
I'm sorry, I know one shouldn't criticise if it's not constructive, but this must be the piece with the largest text/content ratio I've ever read, and I've read a Stephen King novel.
Re:Why I love text files by tspiteri on Monday October 18, 2010 @09:02AM (#1803280)
Maybe the author just loves text.
Re:Why I love text files by frou_dh on Sunday October 17, 2010 @05:49PM (#1801537)
He uses a text file for his TODO list so that mankind will be able to read it in 1000 years! I wish my work were that important.

When I was younger and first using a computer, I would "Open with Notepad" all sorts of files to see if anything about the structure was readable. That's why I liked text files then, these days I like them because they are often indicators of the mindset of simplicity.

Re:Why I love text files by sprout on Sunday October 17, 2010 @08:15PM (#1801832)
Actually he uses it, I imagine, so that he will be able to read it next year.

I haven't even tried to use any todo apps, (the text file has always served me well) but what experience I have with proprietary formats is that they're a poor choice for storing data, since either they're poorly designed or the designer is constantly redesigning them and invalidating your data.

Re:Why I love text files by frou_dh on Sunday October 17, 2010 @08:52PM (#1801912)
That's why the statement was doubly odd, because todos are pretty transient.

I like Things for Mac myself because it automates repeating and scheduled todo items, and has a distinction between completable projects and areas of upkeep. A programmer can leave any time they want by processing its XML file.

Re:Why I love text files by al_james on Sunday October 17, 2010 @05:54PM (#1801544)
Assuming they still use ASCII (or an ASCII extended character set) in those days.
Re:Why I love text files by harpastum on Sunday October 17, 2010 @06:02PM (#1801561)
As long as people still use English (or letter-based languages), ASCII would be pretty straightforward to decipher — especially compared to a straight binary dump.
Re:Why I love text files by jedwhite on Sunday October 17, 2010 @09:54PM (#1802036)
There is a great chapter in The Pragmatic Programmer on why you should stick with text files for everything possible. Section 3 / Chapter 14 "The Power of Plain Text". It argues that as programmers, our base material as craftspeople isn't wood or metal, but knowledge, and with plain text we have the ability to manipulate knowledge with virtually every tool at our disposal.

http://www.amazon.com/Pragmatic-Programmer-Journeyman-Master...

This blog post doesn't express things nearly so well as the book, but the argument has validity.

Re:Why I love text files by aufreak3 on Sunday October 17, 2010 @11:27PM (#1802254)
Interesting higher level questions arise from this -

Is it because we've built so many tools around text that text seems so powerful, or is it because text is powerful that we've built all these tools?

Knowledge is of the mind+brain+body+environs. Text is just data. Just as machine code is "just data" if you don't have a processor that "understands" it. Remember - it took 20 years to decipher the hieroglyphics on the rosetta stone. Also, good luck with storing images in plain text.

Moral of the story - don't get too attached to anything :)

If you can't and are paranoid about losing your digital stuff, maybe DSpace will help - http://www.dspace.org/

Re:Why I love text files by runjake on Monday October 18, 2010 @12:04AM (#1802336)
The blog post and his comment have nothing to do with backups. They point out the flexibility and human readability of text files, as they are used in numerous different formats (xml, yaml, html, ics, csv, sql, etc etc etc) which can be easily parsed.

Binary data isn't as easily human readable or parsable. Images can be stored in text when base64 encoded, or when a text-based image format is used, such as XPM (old hackers may remember using vi as their X11 image editor of choice, back in the day) and SVG.

Re:Why I love text files by aufreak3 on Monday October 18, 2010 @01:43AM (#1802504)
DSpace is not about backups indeed. Its about problems like this one -

An acquaintance of mine has a true blue 5.25 inch "floppy" disk with text data of his research that he can't recover - 'cos the disk's format is inaccessible, the text is not in ASCII (probably EBCDIC), drives that read it aren't available now, the OS that knows the file system (CP/M I think) isn't available, the cpu that the OS ran on isn't available now .

I'll grant that you can recover it, but only with great difficulty - sort of a Rosetta problem.

Re:Why I love text files by num1 on Monday October 18, 2010 @01:22AM (#1802467)
It's an interesting question, but I think it can be answered by pointing out just how much effort we've put into trying to build tools around other forms of information. Audio Processing, Image Processing, have all come a long way but they're nowhere near as powerful as sed/grep/awk/etc.

I agree with you though, tools like netcat, ssh, and dd are super powerful without implying any kind of formatting Text works with these by virtue of being representable as a stream of bytes.

Re:Why I love text files by djacobs on Sunday October 17, 2010 @11:35PM (#1802270)
The Art of Unix Programming also has a section on why text trumps binary formats almost every time.
Re:Why I love text files by silentbicycle on Monday October 18, 2010 @09:41AM (#1803433)
There's also a good chapter on self-documenting data formats in Jon Bentley's _More Programming Pearls_, and don't forget http://c2.com/cgi/wiki?PowerOfPlainText .
Re:Why I love text files by pavel_lishin on Sunday October 17, 2010 @05:41PM (#1801511)
I look forward to his next post, "Why I love bits."
Re:Why I love text files by stretchwithme on Sunday October 17, 2010 @07:10PM (#1801700)
I think bytes are next. Then bits. Then the glory of square waves.

Seriously, I can understand the fascination with something so fundamental to programming. I'm just surprised the favorite editor wasn't mentioned.

Re:Why I love text files by heyrhett on Sunday October 17, 2010 @07:56PM (#1801803)
Have I told you guys how much i love electrons lately?
Re:Why I love text files by awakeasleep on Sunday October 17, 2010 @10:10PM (#1802069)
Square waves and electrons are seriously some of the most beautiful, incredible things.

But for my money, how about logic? Why the hell do logical operators make sense, how have ideas with absolutely no physical basis taken a life of their own and woven all this magic around us?

Re:Why I love text files by pavel_lishin on Sunday October 17, 2010 @10:47PM (#1802172)
You ought to read Stephenson's Anathem.
Re:Why I love text files by stretchwithme on Monday October 18, 2010 @02:22AM (#1802559)
Blame Aristotle.
Re:Why I love text files by sliverstorm on Monday October 18, 2010 @04:12AM (#1802703)
I usually think of logic as rigorously defined language, rather than built-up math. (Math being based in the physical world, and language being purely ephemeral)

From that point of view, 'or' 'and' 'not' and 'xor' make perfect sense.

Re:Why I love text files by dctoedt on Monday October 18, 2010 @02:36PM (#1804572)
> I'm just surprised the favorite editor wasn't mentioned.

It was, at least inferentially: Emacs.

Re:Why I love text files by sliverstorm on Monday October 18, 2010 @04:17AM (#1802709)
> I think bytes are next. Then bits. Then the glory of square waves.

It's hard to really quite grasp just how crazy computers are without mucking about in some square waves for a few hours :)

Re:Why I love text files by techbio on Sunday October 17, 2010 @09:03PM (#1801934)
Text became what it is to me today after my first revelatory experiences with Linux/bash--something like being six years old and realizing the alphabet is all I ever need to describe anything and everything.

Indescribable feeling.

Re:Why I love text files by TorKlingberg on Monday October 18, 2010 @03:48AM (#1802671)
Go ahead and use text files, but make sure you specify exactly what encoding is used. Saying it's "just plain text" is not enough. UTF-8 is fine and convenient, just make sure your code actually encodes/decodes it when it should.
Re:Why I love text files by kleiba on Monday October 18, 2010 @04:49AM (#1802741)
From the quote at the end of the article: "The continued dominance of the command line among experts [...]" -- is that even true anymore? I certainly live in the shell, but looking at my younger co-workers who are in their 20's, they hardly ever use the command line.

The IDE is the new command line, it seems.

Re:Why I love text files by mdwrigh2 on Monday October 18, 2010 @08:55AM (#1803249)
As a young 20-something (20, actually, to be exact), I'd say that the best programmers I know still use the command line to a significant degree. Though we are small in number compared to the number of people who live in some IDE.
Re:Why I love text files by frou_dh on Monday October 18, 2010 @12:29PM (#1804096)
I was under the impression that living in the IDE was only popular for certain languages (Java, C#, MSVC++, ...)

Not necessarily a bad thing - I like using Visual Studio when doing C#.

Re:Why I love text files by alnayyir on Monday October 18, 2010 @02:44PM (#1804605)
Virtually everyone at the startup I work for uses vim in a terminal.

I don't, because while I know vim verbiage, I've never found it more productive than having a big fookin' screen with TextMate and some terminals floating around.

I'd probably feel differently if I went back to working on Linux.

Re:Why I love text files by dreaming on Monday October 18, 2010 @02:13AM (#1802542)
The concept seems obvious, but it hasn't stopped a slow sapping of functionality and permutability of data in the face of 'easy to use' solely GUI based tools. To say nothing of the rather difficult task of automating software without a CLI component...
Re:Why I love text files by TedBlosser on Monday October 18, 2010 @12:41PM (#1804158)
i run my life off my todo.txt file as well. i also recently discovered the plaintext iphone app that syncs this to my dropbox - highly recommend it if you run your life out of txt docs too.
Re:Why I love text files by meatsock on Sunday October 17, 2010 @06:57PM (#1801675)
well you couldn't fit all of human knowledge in a text file like he claims, not to mention how hard it'd be to give it a proper filename.
Re:Why I love text files by flipper on Sunday October 17, 2010 @09:40PM (#1802004)
You could create a text file called alpha2omega.txt, which contains the line:

Look at the binary representation of pi; you'll find the sum of all human knowledge encoded there in ASCII, EBCDIC or any other code ever invented. You just need Google to index it all for you so it's useful.

Re:Why I love text files by meatsock on Sunday October 17, 2010 @10:58PM (#1802197)
i don't know if i believe its possible to represent all of everything in text, downvote or no. Besides it'd fork at least once before it got finished.
Re:Why I love text files by frou_dh on Sunday October 17, 2010 @07:08PM (#1801695)
Space Ruler Xzorganax, I present to you: misc.txt
Re:Why I love text files by robgough on Sunday October 17, 2010 @07:52PM (#1801788)
and if you run out of space in misc.txt, there's always stuff.txt too.
Re:Why I love text files by satori99 on Monday October 18, 2010 @02:06AM (#1802533)
You just named two of the files i currently have on my desktop.
Re:Why I love text files by freakwit on Tuesday October 19, 2010 @06:37AM (#1806695)
I think we have the same desktop.
Re:Why I love text files by leif on Sunday October 17, 2010 @08:19PM (#1801840)
Util.pm?
Re:Why I love text files by KC8ZKF on Sunday October 17, 2010 @08:14PM (#1801830)
42.txt
Re:Why I love text files by sliverstorm on Monday October 18, 2010 @04:15AM (#1802706)
Nah, you could. ASCII art covers most of your non-text bases.

And, if you're stuck for 3D video or textures or audio, you can cheat a little and define a 'container' and then use that 'container' within the text file. For example, imagine an XML file containing the rules on how to parse it- that is just another text file. You could do the same with any form of data. Binary data can be represented in ASCII too, they would just be 7x as large as a binary file.

Re:Why I love text files by meatsock on Monday October 18, 2010 @05:56AM (#1802833)
pok good point but even ascii cant represent meditative, religious, or otherwise universal truths, not to mention that finishing the text file (or even getting close) would have such a cultural impact that otherwise normal history recording would be shifted.
Re:Why I love text files by Tycho on Monday October 18, 2010 @08:40AM (#1803210)
Love the design of that website.