Versatile programming language

6Responses

Write your response…

This answer has received 1 appreciation.

"Node.js is an open-source, cross-platform JavaScript run-time environment for executing JavaScript code server-side."

I am a big FAN of NodeJS, Guess what you already know node.js as you have already worked on other JavaScript frameworks. node.js is nothing but a javascript framework for your server. YOHO, that means you don't need to learn node.js you already know it.

Now let me tell you what all you can do with node.js:

EVERYTHING, yes you read that right.

With node.js you can create web server, APIs, which also allows you to easily deal with all kind of databases, suitable for data analysis, doing intensive CPU task and what not.

node.js has very large communities, and due to it's popularity in the market, you can get various library to make your task easier. making web application with node.js is faster, with great performance.

Hope this answer will be helpful.

Happy coding!

Write a reply...

This answer has received 1 appreciation.

Just want to add on, although Node.js is very good for some of these, because of its single threaded nature, CPU intensive tasks can make it take a hit. Number crunching is one of the weak points of Node.js. This is because since Node.js is a single threaded application, if it is stuck resizing an image, then the server will be unable to respond to other requests. The way to get around this, is to rework the algorithm so that it is more event-based. There are various ways to do this, one of which will return a bunch of Promises with each having a small bit of the calculation to be done. This will allow Node.js to shallow the calculation a bit better. Another solution is to move the CPU intensive operation into another application/service, in which Node.js will call that. Node.js works best for small requests.

Now, allow me to talk to you about our Lord and Savior, Google. Google, in its infinite wisdom, has created a language called Go. Go is very much like C, except it has more modern concepts, such as concurrency and requests. Go handles concurrency by making it simple to create a goroutine, which can be created on a separate thread, or on the same thread, managed by the go scheduler. With that, you then use a channel to pass the calculated data back into the main routine. Also, it compiles down to machine language, instead of being interpreted, and also comes with its own garbage collector.

Node.js is very much a web server type of language, meaning it is good with quick requests. Go is a server language, as it is designed to handle concurrency a bit better, so it can handle longstanding requests.

Honestly, you should not tie yourself to one language, as they all have weak points. Do you just want to work on servers? What do you want to do on that server? I haven't even gone into application type languages, which you already have Java. There is also system languages such as C and Rust, if you need that memory control.

For me, I am currently happy with Go. JavaScript is interesting, but can be a bother, because you have to split your logic into chunks that it can shallow.

Write a reply...

For the things you mentioned, Python is a solid choice. It's known to perform really well in data analysis, has good ORMs for all common databases and has potent web frameworks. It also comes with a vibrant and productive community with very diverse fields of interest.

Write a reply...

First off something in the way you worded your post raises a concern; you mention using "Java" but then you list a bunch of stuff you've been using that is JavaSCRIPT... I'm hoping you realize that Java is to JavaScript as Ham is to Hamburger -- they share the first few letters, both are a form of meat, and that's about it! If you've been using _halfwit bloated train wrecks of how NOT to use HTML,CSS, or JavaScript _like react, angular, and vue.js you've NOT been using Java!

Two completely unrelated languages that happen to share the first few letters because of a marketing deal that duped Sun into throwing money at Netscape twenty-plus years ago.

Now that said, if you want to work in web technologies, using something OTHER than JavaScript... do you know PHP?

PHP is the go-to choice for making server-side websites for the simple fact it is ubiquitous. Try finding shared or managed hosting that doesn't provide it! THEN try and find the same thing that will let you have node.js installed/available, much less something like Python or Ruby. Unless you're self managing a VPS or dedicated, just getting access to anything other than PHP? You'll either be told "we don't do that" or "sod off".

Now, PHP has its faults, but many of those have disappeared since PHP 7 dropped, if you bother doing what we've been told to do for the past decade in terms of dropping outdated methodologies, and the language in general is pressing forward with optimizations and changes that make many other languages look like they are standing still. (yes Python and Perl, I'm looking at you when I say that!)

A few of the things you mentioned -- like image manipulation -- is offloaded onto C optimized libraries -- like GD. This means you do not see the performance impact you might see in languages that don't provide access to a graphics library. Few languages interface as cleanly or smoothly with SQL databases, particularly if like a good little doobie you use PDO (PHP Data Object) since with a bit of care you can write one codebase that can work with many different database engines! More so if you practice an older concept called "named queries" and proper separation of data from query using the prepare/execute model.

To that end if you see any tutorial for PHP saying to use mysql\ functions instead of mysqli or PDO, or that is putting variables into the query strings using double quotes or string addition? GO FIND ANOTHER TUTORIAL, you're in web-rot land!_

Finally, given the bloated train wreck of CRAP you've mentioned you've been using, I would REALLY suggest you back AWAY from the JavaScript for a while and bother learning to use HTML and CSS CORRECTLY, something it is HIGHLY unlikely you've been doing. Learn about accessibility minimums, usability, user-experience, progressive enhancement, graceful degradation, separation of presentation from content -- as until you have those down pat you have ZERO business touching client-side or server-side languages. Client side because all the garbage scripttardery you mentioned pisses on accessibility from so on-high you'd think the almighty just got back from a kegger, server side since in the majority of website development the only thing the server-side language REALLY exists to do is glue together and output HTML.

Which is why it is so disturbing to hear about people who've learned a server side language (like PHP, ASP, node.js) but clearly don't know enough about HTML or CSS to be using either to build websites. Just look at the codebase for turdpress or all the feeble minded morons singing bootcrap's praises. There's something in the kool-aid.

Like I said, I'm not trying to start a flame war here, but just wanted to offer some advice. What you do with it (and it seems like you're going to ignore it anyways) is up to you. I've spent more than enough time on this, and it's obvious you're not even going to consider it. This isn't just some "someone hurt my feelings" point, I could care less about what some stranger said on the internet about me. What I do not like is the ableist references I come across on sites I'm active on. But if using that word is SO important to you, go for it. All I ask is you think about why it's so important to you.

Write a reply...

so we got all 3 standard "RAD" languages now to something fancy just because such questions always boil down to "what do you need" :D and everyone has a different opinion :)

So lets add Ruby to the mix ;D and just because I think that programming is fun and I raise with Elixir :)

nicolasb

it uses Erlang as VM so there are other applications, they support a lot of different things ;D ....

btw fun fact gtk.php.net would've you guessed this is possible with PHP ? I love programming languages hence I spend a lot time researching them.

So yes I think elixir is fine, but in the end I could put whitespaces here to, this is about taste more than about facts :D

War of religions as I would call it ;D I write in ~ 10 different languages nowadays and I use them as I deem them practical :). So you can see me shrugging at 90% of the arguments.

Write a reply...

Load more responses

Join a friendly and inclusive Q&A network for coders

  • 🖥Pick the technologies you like & read great content through your feed.
  • 💬Ask a question when you want to learn more about anything.
  • 🚀Share what you know & build your portfolio.
Sign up nowLearn more

loading ...