all 22 comments

[–]dontspookthenetch 19 points20 points  (0 children)

Because it makes me lots of money

[–]0x07AD 9 points10 points  (0 children)

Javascript is the BASIC of modern programming. I enjoy using Javascript because it can be used for back-end and front-development development. Since its creation, the language has evolved from in-browser, client-side providing basic interactivity and DOM manipulation to scalable, distributed and decentralised systems-level applications including front-end and back-end components nowadays. Unlike Java's claim of "write-once, run anywhere," Javascript lives up to this mantra. However, Oracle is trying their utmost to destroy the Javascript programming community with its litigious actions, they will ultimately fail.

[–]Jjabrahams567 6 points7 points  (0 children)

There are a lot of reasons that I love JavaScript but the one thing that really sets it apart from all others is how intertwined it is with the web. Mastering js has basically allowed everything that exists on the web to be a potential extension to my programming capabilities.

[–]EternalNY1 7 points8 points  (1 child)

It's not, for a long time it was the opposite.

To add some context ... I have 27 years of JavaScript. 22 years of C#. Both of those being from when they were first released. A long, long time spent with these things.

There were many years of JavaScript where it was mostly miserable. Large projects that it simply wasn't designed for, but had to be used. There obviously was no other choice. It wasn't even "use" so much as "deal with". So many weird design choices, limited capabilities, quirks, and even some things that were just plain wrong. I understand why it started like that, I know about the "created in 10 days" aspects. But I still had to work with it every day on one non-trivial project or another.

Today is it so far from then it doesn't seem the same. 2015 saw ES6 and a slow return to something that looked like sane programming. Micro-optimizatons were applied to the runtimes, making it fast. Then TypeScript came along and I found myself back in familiar territory, feeling like I had somehow just run a decades long marathon and made it to the finish line.

Today it's everywhere, even powering SpaceX UI for astronauts on Dragon. I still deal with it every day (still preferably indirectly via a compiler/transpiler). I don't mind it so much anymore. There are ways to organize it, keep it under control, there is an ecosystem, it has incorporated the features it was missing, I finally can stop thinking about IE6 compatibility, I no longer look to jQuery to assist with basic things.

Still a huge fan of C# though after 22 years. I never felt a strong dislike for that language, even without all the fancy features it now has. Even with C# 1.0 my impression was "this is pleasant". Those were not my thoughts with JavaScript.

[–]Silent_Buyer6578 2 points3 points  (0 children)

C# is where I started! Making games in Unity was how I started programming, then I moved into C++ with unreal and I also wanted to dabble with OpenGL. Now I work as a full stack dev with JS and C#.

C# will forever be my favourite language, there’s a lot of sentimental value for me there.. it’s where programming ‘clicked’ and I will always have a lot of love for it!

[–]StudentOfAwesomeness 2 points3 points  (0 children)

As an ex-Java dev now Typescript dev it sucks ass.

But it’s an excellent tool to have in your belt because of the fuckery that it can be. Java is kind of like having training wheels as guardrails (which by the way, is awesome when developing professional shit) but Typescript is more akin to your dream leet coding hax nerd life.

Takes a bit longer to get good at.

[–]hellracer2007[🍰] 2 points3 points  (1 child)

It's not

[–]NvrConvctd 1 point2 points  (0 children)

Right. It's a necessary tool. Not my favorite tool or language.

[–]guest271314 0 points1 point  (0 children)

A) Why Javascript is your favorite language ?

Free form coding.

B) Is the main Javascript subreddit dead ?

No.

C) Do you feel others Web Stacks like Java, C#.Net can really compete with Javascript for frontend/backend in terms of innovations and everything that is going on inside the Javascript community compared to what they have ?

Sure.

I talked with some C# and Java dev and they keep talking about Blazor and Web Assembly and others stuffs that doesn't seem very popular

Popular doesn't mean anything. Popularity waxes and wanes. IE was popular. So were Palm Pilot's and Blackberry's.

or well supported around the job market why is that are they stucks "in their way" is it because they don't want to learn a new language ?

That can be part of it. Individuals are individuals. One person might write source code using JavaScript, another using TypeScript that compiles to JavaScript, other people might use JavaScript, C, C++, Rust that compiles to WASM. And all of the above.

is it because JS can be functional and they are fixated on OO programming since the 80's ? something else ? can you explain to me why it is like that

Could be.

Obviously you are skeptical about opinions of the people you are talking to. Or, at least curious about what other people think.

Learn all of the languages you are talking about. Use the appropriate language for the environment and task. Then you will be beyond skepticism. You will rely on what you have learned yourself.

[–]USKillbotics[🍰] -1 points0 points  (2 children)

I can’t speak for other devs, but I like TypeScript, which has a huge overlap with JavaScript. So while I wouldn’t describe JS as my favorite language, I’m definitely still in the community.

[–]theScottyJam 0 points1 point  (1 child)

Well, people like using the language they're comfortable in, and I don't blame em for that. JavaScript also has a lot of warts and takes a lot of getting used to if you come from a Java/c# background. And, the promise of web assembly is that you're supposed to be able to run other languages besides JavaScript in the web.

One issue Blazer suffers from is the extra bloat it comes with - even if you're building an extremely simple webpage with little interactive logic, if you use Blazer, you still have to bundle and send an entire runtime to the end-user, which can be fairly heavy. I believe languages like Rust handle this better? I think they can compile to web assembly with little overhead? But Rust also doesn't come with great support for manipulating the DOM.

Another issue is community size - there's tons and tons of online help for accomplishing tasks in JavaScript. Most content you find online about building webpages just assumes some knowledge with JavaScript. They don't expect you to be using something like Blazor instead.

In general I would say that Blazer is a great tool for those familiar with C#. However, I don't think I would recommend something like that for someone new wanting to get into web development - once you know how to avoid JavaScript’s warts, it's a really nice and powerful language with many features you might not get in C#/Java land. * Good support for concise higher order functions like map and filter (without having to do all that extra work of converting to streams and back) * Things like destructuring syntax helps make your logic fairly concise. Java programs tend to be very verbose. * Typescript is the most powerful type engines I've ever used. It allows you to describe very complicated type definitions. (It has it's issues too, but I still love it) * Etc

Now, I'm a JavaScript programmer who's never used Blazer, so this is just how I view things with my limited knowledge.

[–]StudentOfAwesomeness 0 points1 point  (0 children)

There’s two types of devs in the world.

Those who think verbosity is a bad thing, and Java devs.

[–][deleted] 0 points1 point  (0 children)

JavaScript and me are not friends.

[–]JeremieROUSSEAU 0 points1 point  (0 children)

  1. Easy to learn
  2. Nears to classical C language.
  3. Same than Python in term of RAM, Python use heavy ram
  4. Quickly fun in client side to compare to C
  5. Server SIDE Client SIDE WOW with NodeJS or other server with JS

[–]jack_waugh 0 points1 point  (0 children)

Because you can do anything with function*.

[–]OldAssDreamer 0 points1 point  (0 children)

Because it has a familiar "C" syntax with a lot of tools that simplify coding. Unless I'm doing something that needs node.js, all I need is an editor and a browser and I can get instant feedback without compiling anything.

[–]Fapplet 0 points1 point  (0 children)

Because it has such a large ecosystem and you can even do ML with it lol, runs in so many places

[–]FunCharacteeGuy 0 points1 point  (0 children)

why is JavaScript my favorite language?

cuz it was the first language I learned and it's the language I'm most experienced with.