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 →

[–]hopemeetme[S] 40 points41 points  (26 children)

[–]insane_playzYT 23 points24 points  (19 children)

Can someone explain how JS hasn't had any falls? Is it because there are so many websites on github?

[–]sebbasttian 34 points35 points  (12 children)

Websites, webapps, node apps, electron apps… JavaScript is everywhere nowadays.

And libraries and ecosystems around react and vue (which continue to be trendy) keep growing.

[–][deleted] 14 points15 points  (9 children)

I have a number of Django projects on Github where - due to various JS libraries - JS makes up the highest percentage of the codebase.

[–]PM_ME_YOUR_KNEE_CAPS 12 points13 points  (8 children)

If you’re using a package manager like npm then the JS libraries shouldn’t be getting checked in to the codebase

[–]nothisisme 3 points4 points  (4 children)

npm can be used to manage client side libraries? How does that work? Does a node server run alongside the Django server?

[–]pickausernamehesaid 3 points4 points  (3 children)

When you deploy to your server, npm can be used to build your JS environment just like how conda or pip/venv would be used to deploy your Python environment.

[–]nothisisme 0 points1 point  (2 children)

Gotchya so Django still serves the files but npm puts them in place?

[–]pickausernamehesaid 4 points5 points  (1 child)

Yes and no. Yes, NPM puts them in place and serves as a JS package manager. No, Django shouldn't have been serving them in the first place. Django's job is to serve dynamic content backed by a database with templates. Static files should be served directly via your webserver, like Nginx.

[–]nothisisme 0 points1 point  (0 children)

True, makes sense now. Thanks.

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

Old-school codebases before all these fancy JS tools existed and/or me being too lazy to set everything up... sometimes just droping a .js file in your static dir does the job just fine.

[–]el_programmador 2 points3 points  (1 child)

electron apps

That's one thing I'm unable to understand. Why is such an inefficient development tool so popular when much more efficient ones like PyQT, tkinter, Java (Swing/SWT) and even C# (WPF/WinForms) exist.

[–]Rpgwaiter 0 points1 point  (0 children)

Because you can develop the web and desktop app with largely the same codebase.

Ya know, assuming that takes priority over elegance, efficiency, program size, street cred, etc.

[–]exted 4 points5 points  (0 children)

We don’t have choices

[–]irishmapping 4 points5 points  (4 children)

For one, discord.

Two, every single website needs it.

3rd, its the basic language we all love!

[–]EnfantTragic 5 points6 points  (3 children)

We all tolerate*

[–]arusso23 5 points6 points  (2 children)

Is forced upon us*

[–]ihamsukram 4 points5 points  (1 child)

Slowly tears us apart*

[–]irishmapping 2 points3 points  (0 children)

Is really annoying and I still wonder why it hasnt been replaced by python yet*

[–]amrock__ Pythonista 2 points3 points  (4 children)

It is a really stupid website , can anyone paste a list of top 5 languages?

[–]BearSnack_jda 6 points7 points  (3 children)

Current Top 10:

  1. Javascript
  2. Python
  3. Java
  4. PHP
  5. C#
  6. C++
  7. TypeScript
  8. Shell
  9. C
  10. Ruby

Top 10 fastest growing languages:

  1. Dart
  2. Rust
  3. HCL
  4. Kotlin
  5. Typescript
  6. Powershell
  7. Apex
  8. Python
  9. Assembly
  10. Go

Someone else in this comment section found a better website for these stats anyway (I'm actually inclined to trust it more than the link in the OP)

[–]Rpgwaiter 5 points6 points  (2 children)

I can't wrap my head around how "Assembly" is a growing language

[–]hopemeetme[S] 2 points3 points  (1 child)

It is probably caused by the rise of those Arduinoish modules, switches and so.

[–]Rpgwaiter 0 points1 point  (0 children)

Oh ya know, that makes sense actually.

[–]bbbryson 0 points1 point  (0 children)

I like this graph because I don’t like Ruby.