rupa / sprunge

command line pastebin for google appengine
http://sprunge.us
724 stars 70 forks source link

Fix uuoc (Useless use of ''cat'' from frontpage) #6

Closed ghost closed 10 years ago

ghost commented 11 years ago

http://partmaps.org/era/unix/award.html

haneefmubarak commented 10 years ago

@joshcartwright It helps those who just use the shell (and therefore may not be familiar with curl) understand what it going on.

haneefmubarak commented 10 years ago

@rupa I vote to close without merging.

ghost commented 10 years ago

I'm honestly not that opinionated about this change, and am okay with dropping it... :)

However, @haneefmubarak , using '<' to for redirection is a feature of the shell, and not a feature of curl, so I think that invalidates your argument.

haneefmubarak commented 10 years ago

Oh. Didn't see the < (never really learned the HTML bs). Still, most newbies still find piping a lot easier then file IO redirection, and when you start to stack it heavily, file IO redirection can get a bit confusing, whereas piping is still relatively straightforward (always left to right, code goes into next program, etc.)...

rupa commented 10 years ago

This is a UUOC, but the intent is just to show how to use the thing, and eliminating it obscures that a bit, IMHO. I considered switching the example to ls but that's silly too :smile:

haneefmubarak commented 10 years ago

ls?

You sir, have made a dangerous move. You have piqued my curiosity. How would you use ls in the example?

ghost commented 10 years ago

@haneefmubarak Presumably just as ls | <curl command>

@rupa Thanks for at least giving the UUOC a thought :)