News for hackers. Stuff that matters.
Re:Erik Meijer: The World According to LINQ by epistasis on Saturday September 03, 2011 @05:22PM (#2958145)
I don't really get the point. Unix has been fantastic at scraping and munging text for decades.

  curl http://weather.yahoo.com/united-states/california/san-jose-2488042/ | sed '/Current conditions/s/.*id="yw-temp">\([0-9]\+\).*/\1/'
It may be fragile, but any method of extracting data out of HTML is going to be fragile when the provider changes design or layout.

A tiny bit of knowledge of grep, sed, and awk, and other simple unix text utilities such as join, comm, cut, paste, goes a long long way.

Re:Erik Meijer: The World According to LINQ by Jacob4u2 on Saturday September 03, 2011 @05:33PM (#2958165)
The example happens to use "munging" text, but I think the GP is trying to make the point that you can't use sed (effectively) to parse, for instance, a collection of database entries from an SQL server in the same way that LINQ would be able to do so.

The tl;dr I got from the article was LINQ is effective at working with sets of data; not just sets of text data from a text file.

Re:Erik Meijer: The World According to LINQ by _delirium on Saturday September 03, 2011 @05:54PM (#2958211)
True, although Plan9 pushed that part of the Unix philosophy even further, towards where it arguably handles some of those more general cases as well, with "structural regexes" that work on things other than collections of lines: http://doc.cat-v.org/bell_labs/structural_regexps/
Re:Erik Meijer: The World According to LINQ by Jacob4u2 on Saturday September 03, 2011 @06:22PM (#2958272)
Isn't the general consensus that regexes are hard to maintain and debug? I'm not sure that "structural regexes" are solving the right problem.

I think maybe we're not shooting at the same baskets though (basketball reference, apologies if you're not from US); I'm trying to write software applications, not shell scripts.