4 ms·
Why is this a service and not a .js file?
by electic 14y ago
Why is this a service and not a .js file?
- dag11 14y agoThe TLD is .is, in case you thought it was .js.
- veemjeem 14y agoI think he's asking why this is a website, and not just a simple javascript library that others can use.
- joelrunyon 14y agoI figured, for people like me with no coding or programming background, a single-use website would be more useful than a library that people would have to set up themselves. Plus, while I know about GitHub, I haven't really spent too much time on it to really know how it works.
- makepanic 14y agoIt's pretty easy to do in javascript. Made a Gist with a simple example https://gist.github.com/3764261 https://gist.github.com/3764261
- platz 14y agoThe gist isn't quite as interactive.
- peacemaker 14y agoI have to agree. I mean, it's nice and all but really it's a function you can write in a few minutes. I don't think it needs a website and a submission to HN.
- platz 14y ago1. It's his first venture into a programming project 2. "var wordCount = value.trim().split(/\s+/).length" isn't much of a library. The benefit of a project like this for user's is so they can avoid building the scaffolding and deployment.
- peacemaker 14y agoFor a first venture, well done. I'm just questioning why it should be a post on the front page of HN for such a simple (sorry if that offends?!) piece of code. I'm truly not trying to discourage and probably sound like a grumpy old man but I just don't think the OP needed to post something so simple here.
- joelrunyon 14y agoThanks peacemaker. Maybe as I get better I'll get faster at programming. In the meantime, it was fun to be able to solve a problem I had by learning something I didn't know before.
- peacemaker 14y agoI agree it's good to get out and learn things like this, I'm just not sure you needed to post it here? *Thanks for the downvotes too...