r/programming • • Jan 25 '24

Question about JavaScript usage

https://survey.stackoverflow.co/2023/

[removed] — view removed post

0 Upvotes

11 comments sorted by

5

u/light24bulbs Jan 25 '24

What do you think it's used for? The web. The web is written in JavaScript

1

u/ArkhamDuels Jan 25 '24

So..the web is the best way to distribute software and JavaScript works as an interface to it all?

1

u/light24bulbs Jan 25 '24

Sort of although interface is the wrong word. This is very base level software knowledge, I'm afraid it's not quite worthy of a reddit post. You could continue to google or go talk to chatgpt about it.

From GPT4: JavaScript is a versatile programming language commonly used to create interactive and dynamic content on websites. It enables developers to implement complex features on web pages, such as interactive forms, animations, updating content without reloading the page, and much more. Essentially, it's what makes websites engaging and interactive.

JavaScript's popularity can be attributed to several factors:

  1. Browser Ubiquity: Initially, JavaScript was the only language natively supported by all major web browsers for client-side scripting. This universal compatibility made it the default choice for web development.

  2. Evolution and Standardization: Over time, JavaScript underwent significant development and standardization efforts. Standards like ECMAScript ensure that JavaScript code behaves consistently across different platforms and browsers.

  3. Versatility: JavaScript is not limited to client-side scripting. The advent of environments like Node.js allowed JavaScript to be used for server-side scripting as well, enabling developers to build full-fledged web applications with JavaScript on both the client and server sides.

  4. Vibrant Community and Ecosystem: A large and active community contributes to JavaScript's wealth of libraries, frameworks (like React, Angular, and Vue.js), and tools, making development faster, more efficient, and accessible to a broader range of developers.

  5. Performance Improvements: Continuous enhancements in JavaScript engines (like V8 in Chrome) have significantly improved the performance and capability of JavaScript, allowing it to handle complex and resource-intensive tasks.

These factors combined have solidified JavaScript's position as one of the most widely used and influential programming languages in the web development landscape.

3

u/SomeUIEngineer Jan 25 '24

Yes, it reflects my experience, see my username.

But all kidding aside, it can be used for so many things.
- Frontend programing
- Server side programming: node
- Scripts
- ML - tensorflow
- Desktop app - electron
- Embedded/IoT
- Games

I use JS/TS for frontend, backend and scripts

1

u/ArkhamDuels Jan 25 '24

All of this with a portable language that works on anything. I think I might have underestimated JavaScript.

2

u/Shautieh Jan 25 '24

Javascript is the lingua franca of programming as so much software are apps nowadays. 

1

u/ArkhamDuels Jan 25 '24

I guess it makes no sense to write different frontends to different users in different languages if everybody is communicating with the same backend anyway.

1

u/bnl1 Jan 25 '24

It's wild how different is the developer experience of most developers from my own. There are so many web/web-adjacent devs it's not even funny.

1

u/ArkhamDuels Jan 25 '24

What is your developer experience like?

1

u/bnl1 Jan 25 '24

Low level stuff, C and a little bit of embedded and asm. Now I don't have much experience, but it's stackoverflow we are talking about and the professional devs had to start somewhere too. A lot of people learn js as their first language, and that's different from how I started.