News for hackers. Stuff that matters.
Re:JavaScript right on the hardware by marssaxman on Wednesday August 14, 2013 @08:16PM (#6215373)
Not sure what you mean by that. I meant exactly what I said: I feel sorry for anyone whose linguistic toolbox is so limited that Javascript is their best option for writing low-level code for manipulating electronic devices. It is hard to imagine a more profound mismatch between the tool and the problem it is supposed to solve.
Re:JavaScript right on the hardware by diydsp on Wednesday August 14, 2013 @10:21PM (#6215817)
They're not going to be manipulating low-level devices directly. They're going to be communicating via device drivers from JS. I'll bet $100 the device drivers will all be written in C.

The thing people need to learn about Arduino is that it's not important that it's a microcontroller. It's important that it lets you drive and read electrical signals from a PC environment. This lets people do that. Sure, it's like visiting a gated resort in Jamaica on vacation instead of being on your own, but many people like to feel safe and get things done without having to learn too many new skills.

Re:JavaScript right on the hardware by lifeformed on Wednesday August 14, 2013 @08:36PM (#6215441)
I just want to program a little thingy to do fun stuff, and this is it. I don't care about languages, I already know js.
Re:JavaScript right on the hardware by PommeDeTerre on Thursday August 15, 2013 @08:28AM (#6217354)
I think that your "I don't care about languages, I already know js." attitude perfectly describes the problem with many JavaScript programmers.

This sort of proud basking in ignorance is shameful, and should be considered unacceptable.

It is absurd to limit yourself to learning about just one programming language, especially when that language is so rife with flaws, and perhaps the worst widely-used programming language ever.

It is also harmful to create code of any sort when holding such an attitude, even when done as a hobby. It shows a complete lack of care about doing things even remotely correctly.

I have to admit, I'm very disappointed to read a sentence like, "I don't care about languages, I already know js." here.

Re:JavaScript right on the hardware by lifeformed on Thursday August 15, 2013 @11:19AM (#6218320)
I don't care about the tools at all, I just want to make things. If I can have something up and running in 5 minutes, great. I might enjoy it enough to dig deeper and learn something more complicated (maybe even a new language!). But if it takes an hour just to hello world, I probably wouldn't bother. These are just toys I might have fun with.

And I do know many other languages, I just don't want to learn a whole new one just so I can play with a new toy. Not everyone needs to be a programmer. Just because someone happens to know js doesn't mean they're interested in being the best programmer in the world.

Just because I enjoy brewing my own cup of coffee once in a while, doesn't mean I need to perfect the art of grinding my own beans by hand and crafting the perfect espresso.

I got into programming by playing with Lego Mindstorms when I was a kid. The building block coding interface was really fun and intuitive. "Oh no," a purist would sneer, "you can't code like that, it's horrible. Here, read this tome on C and microcontroller programming before you start." No thanks. I got to enjoy the end result immediately (making a fun robot), and then from there I could look further into making something more complicated, which ignited my programming journey.

Re:JavaScript right on the hardware by test-it on Wednesday August 14, 2013 @10:24PM (#6215832)
I feel sorry you lack basic understanding of linguistics. Any major programming platform today is too complex for a single individual to understand completely. One can spend his time learning several languages (and the platform they run on) or concentrate on a single language. I'd say it's obvious the second choice leads to higher productivity.

You don't see professional musicians trying to play 10 different instruments on world level. Or olympic athletes competing in 10 disciplines. Or lawyer practising 10 domains. But some programmers like to pretend they have 10 languages in their "linguistic toolbox".

Re:JavaScript right on the hardware by zhemao on Thursday August 15, 2013 @02:10AM (#6216402)
> You don't see professional musicians trying to play 10 different instruments on world level.

Yeah, but a violinist wanting to learn how to play the piano doesn't try to rub the keys with a bow. If you are a Javascript Web Developer, picking up a microcontroller is already going pretty far out of your domain. You might as well learn how to use the tools that were already suited for that task.

Re:JavaScript right on the hardware by marssaxman on Thursday August 15, 2013 @01:33PM (#6219383)
It is not obvious to me; in fact I would argue the opposite. Each new language generally has an interesting new idea or two, and learning a new language can expand your conceptual toolbox even if you never write enough code in it to consider yourself a master.

I don't know how I'd count the languages I've used so far, but it is certainly more than ten. I'm not fluent in all of them, but almost every one has taught me something. For the most extreme example, I still can't even read Haskell code, and I've never written a lick of it, but in reading about Haskell I picked up some ideas which have had a profound influence on the way I write code in other languages.

One of the reasons I am not a fan of Javascript is that I didn't learn anything from it. All of its bits were obviously cribbed together in haste from other languages. This is no slight on Brendan Eich, who was given something like two weeks to design it, but it's a shame that the most widely used programming language of all time has to be such a mess.

Re:JavaScript right on the hardware by cenhyperion on Thursday August 15, 2013 @11:17AM (#6218308)
>You don't see professional musicians trying to play 10 different instruments on world level.

That's funny because most of the full time musicians I know can play 3-6 instruments really really well. Kind of like how most of the full time programmers I know can program in multiple languages really well.

Re:JavaScript right on the hardware by pjmlp on Thursday August 15, 2013 @03:38AM (#6216591)
All the professional musicians I know master more than one instrument, even if they show up with just one of them.
Re:JavaScript right on the hardware by Widdershin on Wednesday August 14, 2013 @08:37PM (#6215447)
I suppose that's a fair comment. That said, I highly doubt there are many people who would need this, but definitely some that would want it.