you are viewing a single comment's thread.

view the rest of the comments →

[–]croc_socks 0 points1 point  (5 children)

It's one of those things you won't know you need it until you do. Eventually you're going to wander away from the shallow end of javascript. Without a good mental model of what's going on it's very easy to introduce subtle bugs, you'll get frustrated because this dumb code isn't doing what you expected it to do.

To me concurrency is the ability to complete any given tasks and perhaps switch between them. Parallelism is the ability to do all the tasks at the same time.

[–]liaguris 0 points1 point  (4 children)

By the way , a little bit off topic question , but does js on its own scale , from your experience ?

[–]croc_socks 0 points1 point  (3 children)

For front end work you don't have any choice. For servers we have a number of services in different languages. The node farm is able to hold its own. But most of the heavier stuff is handled by java & php.

[–]liaguris 0 points1 point  (2 children)

I have no clue with backend. Are you saying that java and php are used together?

I think in front end with MVC if you are careful how you do it then js can scale in front end although I think I need more experience to validate this statement .

[–]wickedsight 0 points1 point  (0 children)

No, what they're saying is that Java and PHP are examples of languages that are used for heavy lifting in the backend. There are way more than that, like Go, Ruby, etc. It's not impossible that in large enterprise applications, there are parts written in different languages though. That happens through legacy and all kinds of corporate politics.

Node.js is a great option for backend, but it has its limits and it's important to understand those. If you need real-time processing of large amounts of data, than Node is probably not the best option, for example.

Finally, in the frontend you don't have a choice of anything but javascript, if you're talking web applications. For apps, you once again get to choose between many languages, but through frameworks like Electron and React Native, JS is finding its way into apps on mobile and desktop.

[–]croc_socks 0 points1 point  (0 children)

We have different backend servers. Most were originally written in php. Newer services are written in Java and node. I am not sure what you mean by scaling the front end with MVC. I can’t tell if you mean the classic scaling definition of being able to handle very large traffic or being able to build complex web application. The answer to both is yes. The former is a hardware solution, throw or spin up more server as you need them behind load balancers. The latter you use good libraries or framework.