4 ms·
I'm curious : what is the use case for this utility ? If I look at the README, it says : > Modifies files when matches are found Just like sed's -i option (ex
by arcatek 14y ago
I'm curious : what is the use case for this utility ? If I look at the README, it says :
> Modifies files when matches are found
Just like sed's -i option (except that -i allows you to specify a backup extension just in case)
> Recursive search on directories with -r
I usually use find with sed, so it's not so much a problem (and it actually allows to filter the files by extension, exclude directories, etc, which is pretty handy)
> Uses JavaScript syntax for regular expressions and replacement strings
I'm not sure that it's an advantage :)
So, is there something that I missed ?
- crazytony 14y agoNot one she specifically mentioned (or possibly thought of) but it runs on windows without Cygwin. Edit: using the proper gender pronoun would help.
- lwf 14y ago*She
- orlly 14y agoYet it appears to require node.js? Six of one, half a dozen of the other
- doktrin 14y agoI've never configured Node on Windows, but apparently it requires Cygwin [1] Currently, you must use cygwin to install node. To do so, follow these steps: [1] http://howtonode.org/how-to-install-nodejs http://howtonode.org/how-to-install-nodejs
- maxerickson 14y agoNo: http://nodejs.org/download/ http://nodejs.org/download/
- jussij 14y agoIt is possible to run a version of SED on Windows without Cygwin: http://www.zeusedit.com/zforum/viewtopic.php?p=2683 http://www.zeusedit.com/zforum/viewtopic.php?p=2683
- PuerkitoBio 14y agoYes, you are missing something. The features of his utility is not the point.
- arcatek 14y agoWell, if someone says "So wrong that it doesn’t even need to be explained", I assume that saying some of the reasons which would lead to the bad reviews is relevant. However, I agree that it doesn't address the second point of the article which was the useless rudeness. But developers are (helas) known to be very rude people. That's not the first article talking about it.
- sharkbrainguy 14y agoI don't think a critique of the code in question is especially relevant to the main point of the article, i.e. the practice of mocking open-source projects. Debating the technical merits of this particular project can't really address that.
- maxerickson 14y agofind + sed complaints were somewhat anticipated: http://harthur.wordpress.com/2011/06/06/replace/ http://harthur.wordpress.com/2011/06/06/replace/
- byroot 14y agoYeah you missed the point of the article. It's not about the usefulness of the project, it's about why does notorious developers like steveklabnik (rails core team) and dcramer (lots of django related projects) are publicly bashing this project without any reason. It's rude and childish.
- randomaccount5 14y agoAnd a summary of that attitude: https://twitter.com/steveklabnik/status/293831920872194050 https://twitter.com/steveklabnik/status/293831920872194050 Why would anyone want to work with Steve?
- deleted 14y ago[deleted]
- IvyMike 14y agoWow--I was unaware of the fact that the commenting dudes were devs on actual important projects. This reminds me of the time James Cameron got on youtube and started posting mocking comments on videos with under 100 views. Oh, that's right, he never did that. Because it would be ridiculous, and would make him look like a petty bully.
- cpayne 14y agoThat's pretty clever! I like that one...
- xs_kid 14y agoklabnik isn't in rails core: http://rubyonrails.org/core http://rubyonrails.org/core
- manicdee 14y agoThe tool is simpler than sed because it misses a lot of stuff that sed actually does. That's what you and the people mocking this project have missed. Well, there's also the old idea of "if you don't have anything nice to say, don't say it." Or the idea of constructive criticism. Or the idea of contributing useful patches to the project. So yes, there is something you and the armchair experts missed: software doesn't exist in a vacuum, and the people behind the software might have some emotional investment in their work. As for the original project author, it bears mentioning that if you can't handle ridicule, don't appear in public. Someone, somewhere, will find a reason to mock you. It might be your choice of language, your formatting style, your_use_of_long_variable_names, UseOfCamelCase, too much/too little abstraction of methods, the colour of your hair, your choice of footwear, too much/too little hair, or that your name isn't common. Mocking people has never led to things getting better.
- swdunlop 14y agoI disagree, slightly. Mockery is sometimes the only way to make the powerful, oblivious or powerfully oblivious pay attention. I agree that it is not a reasonable tool against someone who isn't hurting anyone.
- arcatek 14y agoI see your point, but I slightly disagree. It could be worthy to kindly say that there is a 'standard' way to do it, since the author may not be aware of find or sed. And if they are, some readers may not.
- ollysb 14y ago$ find ./ -type f -exec sed -i 's/ugly/beautiful/g' {} \; vs $ replace 'ugly' 'beautiful' . -r I can definitely see the value here
- jussij 14y agoOne of the approaches has been used by tens of thousands of users over decades and the other by a handful over a few months. I know which approach I would choose.
- scarmig 14y agoI'm sure many people who have had to put up with the atrocity of sed over decades would love this tool... the author obviously knows about sed and found it lacking. Regardless, though, it's a tool she found useful, even if you personally don't. So what? The appropriate response is "Oh cool, I try to use sed. It has arcane syntax and portability issues, but it's a lowest common denominator that I can expect to find on all the systems I work on."
- petdance 14y agoThe problem is that being abusive and belittling to others is harmful to the open source community, especially when it revolves around someone who has gone and contributed to the community actual working code.
- chipsy 14y agoIt's wheel reinvention - same idea, different UI. But that's not always a terrible thing in programming; in fact it describes most of our software.