I found this article helpful. I was very surprised by the quality of the code in the replace.js repo given the vitriol that surrounded it. I'm not a big contributor to open source, but I've recently made some modifications (improvements?) to a Haskell library I use and was planning to make a pull request soon. This event gave me pause. As someone who couldn't tell what was so eye-bleedingly bad about the replace.js c…
Likewise, I've been meaning to convert my local projects at some point and post them to one of the newfangled online git repos. I was going to use GitHub or Bitbucket to avoid saddling my crap on the git hosting I have available from the open source project I develop for, but now I'm not so sure GitHub is the best place for that. I don't mind the code being publically-accessible as the price for free hosting but I ha…
If You Call Out Bad Code, Make Sure It's Bad First
61–70 of 134 posts
Re: If You Call Out Bad Code, Make Sure It's Bad First
#62I was with him until he said he'd didn't know what YAML was :(.
Re: If You Call Out Bad Code, Make Sure It's Bad First
#63I propose a solidarity movement: Heather Arthur day: On this special day we post useful code that we might otherwise be unwilling to post because of what other people might think of it. Because some people have the courage to do this anyway and when they do, it makes the world a better place. If just a few people do this, they might be considered crazy and laughed at, but if all of us do it, why then we'd have a move…
We'd run out of calendar days if we had a "solidarity day" made up everytime something like this happened.
Re: If You Call Out Bad Code, Make Sure It's Bad First
#64Another issue in the "is Node right for this" is that it's very very portable, significantly more so that shell scripts (Mac uses BSD utilities, windows has nothing unless you have cygwin), and even slightly more portable than python.
slightly more portable than python Can you elaborate on this?
Re: If You Call Out Bad Code, Make Sure It's Bad First
#65Earlier quoted context omitted.
Bullshit, sorry. I can't help feeling that this kind of attitude is what caused Heather to feel bad in the first place. I agree with your points, but the way you present them leaves a lot (of politeness) to desire.
Politeness? The reply might have be forceful, might have use the word bullshit, but it what way did he offend anyone? I thought he hit the nail on the head. It's no body else’s business but your own what you choose to put in GitHub.
Those that claim the genesis of this whole issue is offensive should take equal offense to the "bullshit" line.
Re: If You Call Out Bad Code, Make Sure It's Bad First
#66I found this article helpful. I was very surprised by the quality of the code in the replace.js repo given the vitriol that surrounded it. I'm not a big contributor to open source, but I've recently made some modifications (improvements?) to a Haskell library I use and was planning to make a pull request soon. This event gave me pause. As someone who couldn't tell what was so eye-bleedingly bad about the replace.js c…
Likewise, I've been meaning to convert my local projects at some point and post them to one of the newfangled online git repos. I was going to use GitHub or Bitbucket to avoid saddling my crap on the git hosting I have available from the open source project I develop for, but now I'm not so sure GitHub is the best place for that. I don't mind the code being publically-accessible as the price for free hosting but I ha…
Re: If You Call Out Bad Code, Make Sure It's Bad First
#67I'd still like to know how these jerks even came across Heather's code in the first place. I suppose I should be grateful for obscurity. I even have a command-line utility written in C to count from 1 to 10. (Well it does a little more than that, but that's the general idea.) I'd hate to hear what they think of it. I'm not really a C coder so I'm sure it's fairly ugly, and I suppose they'd say it "shouldn't exist at…
Well, now I'm curious for that CLI. Why do you need an utility to count from 1 to 10?
https://github.com/pjungwir/range
[0] "What is your dumbest project on Github?": https://news.ycombinator.com/item?id=5112546
Re: If You Call Out Bad Code, Make Sure It's Bad First
#68Another issue in the "is Node right for this" is that it's very very portable, significantly more so that shell scripts (Mac uses BSD utilities, windows has nothing unless you have cygwin), and even slightly more portable than python.
A lot of the Unix tools (including SED) run just fine on Windows without cygwin:
Re: If You Call Out Bad Code, Make Sure It's Bad First
#69I just gave the code a quick look and I find this `eval` usage not too cool: https://github.com/harthur/replace/blob/master/replace.js#L4... It relies on the fact that you can provide javascripts String#replace a "replace function" (1). The author just evals the contents of a command line provided file into a variable called `replaceFunc`. Beside that, there's not a lot that can be pointed out as "bad", at least by j…
Re: If You Call Out Bad Code, Make Sure It's Bad First
#70I see a lot of people saying you're going to keep personal projects to yourself (instead of putting them on GitHub or similar) because of this fracas. Please don't. The Twitter snark isn't normal, it's an exceptional case. It wouldn't be on the front page of HN if that kind of behavior were the norm. And it's the jerks on Twitter who came out looking bad here, not the author of the code. I really like how GitHub has…
Heh, I must not be following the right persons then cause it's pretty common among the people I follow.