this post was submitted on 24 Mar 2026
33 points (90.2% liked)

Programming

26206 readers
399 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

Hello,

I am thinking about teaching my students JavaScript first so that they can start creating websites and make their career, what are your thoughts?

you are viewing a single comment's thread
view the rest of the comments
[–] ghodawalaaman@programming.dev 5 points 21 hours ago (6 children)

The main reason to not including python is that students aren't particularly in the CS field, they are learning it as their "augmented skill" (I don't know what it's called bad English). That's why I don't want to force them to learn CS concept which they might not even need.

I was thinking about C so that their fundamentals gets cleared but I think it will be too much for students who aren't into CS. What do you think ?

[–] who@feddit.org 2 points 6 hours ago

The main reason to not including python is that students aren’t particularly in the CS field,

In that case, I think Python is a better choice for teaching programming. Just skip the fancy features that have been bolted onto Python over the past 15 years or so.

I might argue in favour of JavaScript if web application programming is specifically the goal. But for programming in general, I consider it a troublesome language.

[–] napkin2020@sh.itjust.works 1 points 5 hours ago

The main reason to not including python is that students aren't particularly in the CS field

If that's the case C is the very first thing they should avoid spending time on.

[–] calcopiritus@lemmy.world 4 points 9 hours ago

Idk why you are discarding python for the reason that makes python the best option. If there is a programming language that a non-programmer should know, it's python.

[–] BillyClark@piefed.social 42 points 21 hours ago

If they're not in the CS field, and you don't want to teach them CS concepts that they don't need, then you have eliminated C as an option by your own criteria.

With C, they'll have to learn about compilers, build systems, memory management, and pointers at the very least.

[–] MagicShel@lemmy.zip 8 points 17 hours ago

Python allows you to focus on a single concept in isolation (building on what you've already learned, of course). JS has a bunch of other stuff mixed in. Like the DOM. Interacting with the DOM is necessary for any browser code. You can hide it with abstractions and boilerplate, but it's always going to surface in error messages. Debugging JS can be quite a bit harder than other languages.

Caveat: beginner JS is many years behind me. It may not be as bad as corporate code full of react and angular and all kinds of requirements.

[–] grue@lemmy.world 5 points 17 hours ago

The main reason to not including python is that students aren’t particularly in the CS field, they are learning it as their “augmented skill” (I don’t know what it’s called bad English). That’s why I don’t want to force them to learn CS concept which they might not even need.

That's an even better reason to pick Python, then.