r/learnprogramming • • 25d ago

Should i countinue or switch with js?

ive been only coding in js for a month now (its my first language) so i can probably switch to something else right now but i dont really know if i should, so do i countinue with javascript or switch to a new coding language?

EDIT: i am probably switching to c# or python because im not really interested in web development, feel free to ask me any questions

1 Upvotes

28 comments sorted by

2

u/canarydev 25d ago

what is your goal here for learning languages?

also people use js for over a year and still dont fully get it. a month is barely a start, id stick with it unless your goal needs something else.

0

u/idkilikephilosophy 25d ago

My goal is to be a ai engineer and maybe make interfaces

3

u/Dazzling_Music_2411 25d ago

Requirements for AI engineering are mainly a reasonable level of mathematics: linear algebra, calculus and statistics, computer languages are a pretty secondary consideration.

Have you studied any of these maths subjects in school yet?

2

u/idkilikephilosophy 25d ago

Yeah a bit, i know gradients, vectors, matrices and derivatives

Math was really the reason i started coding

1

u/Dazzling_Music_2411 25d ago edited 25d ago

Then you are off to a good start. Start on linear algebra too. Multidimensional matrices, generally known as tensors are the heart of AI (OK, I'm simplifying a bit). Get a book on the basics of AI, then maybe do a basic course like Andrew Ng's.

It's good that you are starting young.

1

u/DanKegel 25d ago

Define AI engineer.

If you want to use AI to make user interfaces, that's one thing.  Phone UI is often in very different language than web UI, BTW, so you might also want to see what developers use on Android and iPhone.

1

u/idkilikephilosophy 25d ago

A engineer that makes AI

1

u/DanKegel 25d ago

That's more interesting:-) 

Study harnesses like https://github.com/swival/swival ! Maybe submit enhancements, or try porting them to go or rust.

2

u/Stickhtot 25d ago

JS is the wrong language for AI

You want to go with python, or for the backend of AI, C/CPP/Rust

1

u/canarydev 25d ago

just focus on being good at one thing first and not mediocre in two.

1

u/boykotue 25d ago

If you want to do specific things, for example games, then you can switch to C#, or whatever language is the best for your interests, but for web apps it doesn’t really matter. JS is okay, just learn building actual apps and focus on universal things like design patterns

1

u/idkilikephilosophy 25d ago

What about c++?

1

u/boykotue 25d ago

Why are you asking about this specific language?

1

u/idkilikephilosophy 25d ago

Actually for no apparent reason other than the fact i see people use this language and create insane stuff with it

1

u/boykotue 25d ago

You can create insane stuff with every language. Just think what you actually want to do and check what language has the best community and support around this. If you aim for web apps JS is fine

1

u/KarimMaged 25d ago

A language is only a tool. Ask yourself, what is my goal ? why would I switch ?

If you changed your goal and you are now more into ML for example, switching to python makes sense. But if you are just switching for no real reason then don't.

Remember that being very good at one tool, is much better than knowing many tools but only on the surface.

Don't hop between things, stick to something, be good at it, and only change it if it doesn't satisfy your current goals.

1

u/I12Db8U 25d ago

If you wanna be able to make something faster with javaScript, download Squiffy, the text adventure engine. You can make a simple game almost immediately without knowing anything, but you can add cool functions and gizmos with whatever js you do know.

1

u/No-Land-5913 25d ago

I wouldn’t recommend anyone use JS to learn to code unless they are adamant they want to do web only and aren’t particularly ambitious about what they want to do. Plus, vanilla JS is just kinda an awful language.

1

u/betarage 22d ago

I am not sure js is great for a lot of things but not great for some other things. so I think it could be worth trying out another language too. I am not sure what language to reccomend

0

u/Dazzling_Music_2411 25d ago

You've also been doing programming for about a month now. Do you think it's time to change to a different activity?

You sound very young, if you actually want to be successful in your goals start getting serious. JS can be a fine and very useful language if learned properly, plus it drives just about all the front-end of the Web. Do you even understand what that means? (Serious question, please try answering).

You have so much work ahead of you...

2

u/idkilikephilosophy 25d ago

I know frontend which is just about the interface stuff and backend is about making that stuff work and respond

And i know javascript basically powers every website but the enviroment isnt really what im interested in, im just interested in what interests me

And yeah im pretty young

0

u/Dazzling_Music_2411 25d ago

backend is about making that stuff work and respond

JS is about making stuff work and respond too! 😂
Especially as the attention is now shifting to localized execution, and the compiler has become so fast. Completely different animal from old-school JS. (BTW, Backend is mainly about handling vast amounts of data that you probably don't even want to pass to the client, E.g. company databases)

I'd stick with JS if I was you, maybe learn one of the fantastic 3D math-graphing libraries available, but perhaps also start with a bit of Python. In particular try to understand the philosophy of the numpy library (very important) as well as pandas and then later one of the AI libraries like Tensorflow or whatever.

You have to understand that Python is mainly a glue language used for scripting, once you start using its libraries it is NOT Python "all the way down".

Do NOT even contemplate learning C++ yet, way too technical and it will bog you down with unnecessary details. Learn the basics first with JS and Python, then once you start your studies seriously, in a few years time, you can decide if you need C++ or not. Probably not, since you are asking.

2

u/idkilikephilosophy 25d ago

So stick with js and learn tensorflow && maybe use a 3d graphing library, While also learning python and numpy?

1

u/Dazzling_Music_2411 25d ago edited 25d ago

Numpy first. Then Pandas. You don't need to learn Python in depth, just the basics to operate the libraries. I'd say Tensorflow last - after (or as part of) a course on ML.

I'm guessing you still know next to nothing of JS. Browse some of the amazing 3D libraries and see if you can build some sort of demo project. Maybe a demo of a simple backprop, or similar. JS has the best math graphing libraries at the moment, by a mile.

You may also want to start a bit on OpenGL/shaders. You might think, hang on, they don't have much to do with AI... but the way they use math is the same (working/thinking in parallel). Read up about the SIMD model.

Enjoy the journey!

1

u/idkilikephilosophy 25d ago

Better than pythons graphing libraries?

2

u/Dazzling_Music_2411 25d ago

IMHO, by miles. Python is useful, but pretty bog-standard stuff.

Plus, most of them aren't even written in Python anyway, it's C or C++ under the hood.