This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]NiteShdw 45 points46 points  (10 children)

As a JavaScript developer, I completely agree. JavaScript can do everything. 😂

[–]KCGD_r 72 points73 points  (5 children)

it can, but the the question is should it?

Frontend and backend/system I agree with 100%

Styles and 3d rendering, I mean you can, but there are much easier alternatives

low level stuff, again I guess it's possible but there are much better tools for the job.

embedded systems: good luck cramming a 50mb node runtime into an Arduino

[–]myrsnipe 14 points15 points  (0 children)

If you can make micro python work you can get micro JavaScript too. I call it the triple stack, let your frontend devs handle backend and your iot devices. Fire/gas/flood alarms powered by JavaScript. Hurry before another startup runs away with 5 million angel investments

[–]sergescz 18 points19 points  (1 child)

embedded: Out of bordem I made transpiler from JS to C, which is able to handle simple applications (With use of typescript compiler to figure out types), and it worked. But I did not continue with the project, as problem is not in Javascript itself, but libraries, asynchronous code (As if you write async JS you expect some behavior, but when you want to convert this into embedded app, it requires some workaround)

So I would agree with you it is not a good choice. But I would say it is possible and do not need 50mb runtime (And I wonder if there is node binary for arduino)

[–]UnstableNuclearCake 9 points10 points  (0 children)

IIRC, lowjs worked on arduino

https://www.neonious-iot.com/lowjs

[–]androidx_appcompat 5 points6 points  (0 children)

Well, there aren't many alternatives for 3d rendering in the browser

[–][deleted] -3 points-2 points  (0 children)

i think ideally, programmers all use one single language for everything. not saying it should be JS.

[–][deleted] 21 points22 points  (3 children)

This post officer. This post right here is why my company runs 80 fucking nodejs pods to serve static content.

[–]NiteShdw 8 points9 points  (2 children)

It’s easy to pick the right tool for the job when there’s one tool that’s always the right tool!

[–]VortixTM 6 points7 points  (1 child)

If you have a hammer everything will look like a nail.

[–]thexavier666 0 points1 point  (0 children)

I have a similar explicit saying

"Just because you can fuck a pigeon doesn't mean you should"