Hacker Newsnew | past | comments | ask | show | jobs | submit | prototype56's commentslogin

Now use the same sytax to query yahoo weather. Get the point?


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.


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.


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/


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.


For illustration (probably wrong again):

    curl 'http://weather.yahooapis.com/forecastrss?w=615702&u=c' | \
        xmlstarlet sel -N 'y=http://xml.weather.yahoo.com/ns/rss/1.0' \
              -t -m '//y:forecast' -v '@text'
edit: corrected xml line


I'm sorry, but you're still missing the point. The point is that the syntax with LINQ is actually the same. Saying you have a program to do X in bash is the equivalent to saying you've got a library to do X in C# or Java.

LINQ, on the other hand, can work with arbitrary runtime objects and arbitrary backend implementations. Haskell's still cooler, though.


I am not sure if i would take back someone who is anyway planning to leave.Even if they do they will fire after they are sure you are redundant, that will mess up your visa status. Search and take up any job for the time being and keep looking.


Feels like a rant. Which doesnt even point out what exactly is wrong and how could have been done right.


That was one of the Gladwell's points in his famous book outliers.


We have a lot of decent developers on our team. But management is still stuck in 90's where everything is done as huge framework building waterfall exercise. The word YAGNI doesnt mean anything to anyone here. So yea lot of skilled devs are writing useless frameworks when they could have producing real business value. So I would say the most important thing is the process once you have a decently skilled team.


Yeah that list only holds for successful projects. A broken process can quickly move to the top of the list of reasons for failure.


Clojure also seems to have lot more momentum behind it.


I am going to get this just for zune integration .


This i found to be the biggest drawback of squat toilets . When you pee from standing position you pee all over the steps .


TDD has nothing to do with testing.


US still favors family based immigration system . So "highest" doest count in this context when compared to points ( skill) based system in other countries like UK.


Depends on how you look at it. With "family" based immigration, someone has basically vouched for your character. In the US, family means you are financially responsible for this person being let in this country. If they can't fend for themself, you shelter, clothe, and feed them. They are really serious about it and it requires you meet income, savings, and property thresholds.

The UK sort of has both, family and skills can get you in. Recently, they have started to de-emphasize the family visas.

With points, you are at the mercy of the market of the host country. The UK has, recently, restricted the high-tech industry in some areas, but hairdressers are still in demand under the points system. So someone with a BSc may actually be less qualified than someone that went to beautician's school under this scheme.


I always wondered how that works. For example, my great-grandmother from my father's side was born in Brooklyn. And then they have decided to return to Europe. I must be one of the few that has heritage reversed.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: