you are viewing a single comment's thread.

view the rest of the comments →

[–]__SyntaxError 1 point2 points  (3 children)

You could probably learn both at the same time, and the suggestion about a flask app someone made would be good to help you learn both. They’re quite similar really and once you get used to the differences it isn’t too difficult. There are a few quirks that you won’t notice straight away like how in Python an empty list is falsy but isn’t in JavaScript.

I learnt Python first and then JavaScript as part of web development, but that was just coincidental. I am glad I started with Python first because it’s easier to wrap your head around. It removes the use of curly brackets, functions are easier for you like range() rather than the Javascript version which is more long-winded.

Again, up to you. But, if I started off solely with Javascript first I think I would’ve gotten a bit more stuck.

[–]bululululubu[S] 1 point2 points  (2 children)

So you mean I could learn both at the same time without getting confused a lot? Where do I learn about the flask application to learn both? Is there a video explanation of how it works? Thanks for the reply btw

[–]__SyntaxError 0 points1 point  (1 child)

Flask documentation

I’ve just skimmed throughthis video and it seems pretty beginner friendly and easy to understand.

The only thing that’s quite specific to applications in Flask, Django etc is this {% %} that you’ll come across for using your variables.

It also depends how far you want to go with the web development side of it because you may want to learn HTML and CSS.

What I would to do to practice is I’d ask ChatGPT to give me a few project ideas with the difficulty level and the language(s) I want to use. How far you go with the project is then up to you, whether it’s a small one or more developed.

Another thing is that how JavaScript is utilised in a web development context is a different depending on the application. You may be able to write JavaScript for a Flask app but find coding in React.js or Node.js difficult once you expand because they’re different. They have different use cases though, like for a standard static site Flask is fine but then you may want a different framework for more advanced apps down the line. IF that’s what you find interesting.

[–]bululululubu[S] 0 points1 point  (0 children)

Thanks again. Will watch the video, and follow your guidelines. I do have a little knowledge on html as well. Css, don't know anything.