4
Danial123
32d

Which is easier in your opinion? JS or Python?

Comments
  • 4
    Doing what, exactly?
  • 1
    @AtuM Which one was easier to learn in ur opinion.
  • 18
    Which is easier in your opinion? Hammer or wrench?
  • 10
    JS, because everything is a nail.
  • 5
    That’s a stupid question
  • 19
    Which is easier?
    Fucking what?

    You want to get into programming with the easiest entry point? Go learn data structures and algos in C / rust then come down to js/ Python and thank me later.

    Also, pick a sector of programming, Then use the typical languages being used in that area, not the other way around.

    I'm getting tired of incompetence in this industry, don't add to it.
  • 4
    There's no 'easiest language' and you shouldn't choose based on that anyways tbh.

    What sort of stuff do you want to make? Then choose a language that is good at doing that stuff
  • 8
    You don't chose a technology because it's easier, you chose it between it fits your needs
  • 11
    Follow @Lyniven’s and @C0D4’s advice.

    If you want mine?
    Give yourself three months learning C and then decide if you still want to be a developer. Either way, it will teach you far more about how computers (and therefore programming) works than a year doing literally anything else. If you do want to continue, that’s great! Either stay with C or learn something else used in your chosen field of development.
  • 3
    @Root yeah. I wish I did C when I started. My first was java so the computer was a magic genie to me back when I started from that high level. I remember how much easier react was going from jquery.
  • 3
    Since they focus on different use cases thats a trick question.

    Python is generally easier for machine learning but js is slightly easier in a browser :P

    Its like asking which is easiest to drive, a car or a tractor, it depends on where you are driving.
  • 1
    It depending on the dev
  • 2
    @Root when I learn C , I almost give up when I meant about the pointers.... But I managed to understand it and write a program for my hardware. Until I see there's even more confusing language like Erlang, I begin to appreciate C.
  • 2
    @johnmelodyme i once gave up on react bc I couldn’t understand reducers and redux. I couldn’t understand why they exist and why we had to go through the extra plumbing to dispatch actions. I just recently gave it another chance and am kinda sorta getting their purpose after hours of cranking my brain around vids and articles lol.
  • 3
    @TeachMeCode it is frustrating when can't understand the thing, but as soon as you know it , you will immediately proud of it... <= Life of every programmer.
  • 2
    @johnmelodyme yeah I feel somewhat better now that I feel like I’m taming that monster lol. It’s a way to abstract business logic and non local state from ui components, manage global state, avoid prop drilling and redundant rerendering, and it’s time traveling debugging is cool. I’m just super confused as to why they say it’s predictable when crazy shit can happen with async calls like race conditions.
  • 2
    @TeachMeCode the same thing happened when coding in Dart with Flutter framework.
  • 2
    @johnmelodyme it sucks learning this stuff when you never had a problem where you needed these tools to solve that problem. I never worked career wise with complex react code that needed redux bc I never worked career wise with react to begin with. But luckily I knew enough js to understand react until this weird thing came along called a reducer and even weirder thing called redux and I thought um ok are you introducing a more complex way to deal with state to show off how smart you are? Why not use context to dodge prop drilling? But I realized context doesn’t have time travel debugging, slicing for better performance or hiding state from ui components
  • 1
    @Root I agree with most of your comment but i completely disagree with "it will teach you far more about how computers .. works than a year doing literally anything else." Assembler would teach you way more. I knew people who learned C first, said they didn't understand how processors work till they did some assembler and then they understand it much better, they learned things like how the stack works, how registers work, how hardware access work and so on.
  • 2
    @happygimp0

    While you’re right, I’m not going to suggest Assembly to anyone as a first language, except maybe some electronics engineering majors. Doesn’t really apply here.

    You could also argue CPU design. But really, you’re not going to have much chance at that without some serious Assembly knowledge anyway.
  • 1
    If it's for web development, I will very much recommend you to learn JS (Node n then Angular), but please never learn Flask

    For basic programming or ML/AI - Python is the best
  • 2
    Javascript. I never officially learned the language but I work with it everyday.
  • 1
    @Eklavya what's wrong with flask?
  • 1
    Same difficulty if you start from 0.
    Go for JS, if you drop it you can still do fun stuff in websites. (example: change all divs for marquees randomly going vertically or horizontally).
  • 1
  • 4
    @rantsauce ;).

    Most do not really learn js, they just stumble into it, hence the amount of complaints :P
  • 1
  • 2
    @TeachMeCode but redux and reducers are not react, while they used to be used together react has always had its own state management.

    And having used react several years and only recently having to touch code using redux I can only agree, its very abstract and requires quite good understanding before you really understand it.

    We have kicked out redux in favor of react hooks (which also is a bit hard but at least keep state connected in code so you can follow the data)
  • 1
    Learn js because it is objectively more usefull, once you know 1 language
    , learning other is breeze.
  • 1
    I'm going to look past the word "easier" here and try to give you something constructive.

    When I started programming I also first built my passions using VisualBasicScript, so I understand the need for a simple start point

    So if for now, you're just looking for something simple to have fun with, I suggest python. It's incredibly easy to get started and it's very natural to write and read for simple software. This also gives you great power over automation of your daily tasks that JS just doesn't without wasting ton of your space and time.

    so start with Python, but once you're really curious about high performance applications then I'd say start following what @C0D4 said.

    If you want to get serious with software starting with C or C++ is extremely useful. It's a painful path, but it's *so* worth it.

    You could also smooth the transition by jumping into C# first if you're on windows (don't bother with C# or Java on linux tbh)
  • 1
    Python. JS will make youu cry :P
  • 1
    @Benutzername heha Do you write tutorials ?
  • 1
    Ini soalan nak cari gaduh ni ><
  • 1
    Shut up C# is easier.
  • 1
    @rEaL-jAsE not gonna lie, C# is amazing, but I stopped using it after I moved to linux because microsoft made it horrible to use on linux ;(
  • 2
    @Hazarth try vala you get the sexy c# syntax
  • 2
    JavaScript has more language quirks than Python.
    Python has the more complete standard library. Its documentation completeness and quality also is orders of magnitude higher.
    The 3rd-party library eco system of Python seems also to be of way higher standards than that of JavaScript.

    As that meta stuff in practice matters way more for easeness of learning and working with a language than the actual core language attributes, Python wins, looks back and sees JavaScript just exiting the starting block!
  • 2
    @Voxera it’s ok, redux can be a pain in the ass when it wants to be. For me, what sucks is designing the store itself bc you don’t want it to trigger rerendering of its subscribed components at the wrong time. I felt like I was designing a front end database which added more complexity to the project
  • 3
    @Eklavya that to me read more in regards to "i have no clue what I am doing" rather than a fault on the stack.

    Which is cool, I don't know what I am doing more than half the time. But my internal flasl projecrst are running fine, and I still don't know what I am doing
  • 1
    @Hazarth with .net core, c# on linux is much more viable since its officially supported by the Microsoft compiler team.

    And java works perfectly fine on linux, I run several java based applications on linux, and almost all minecraft servers use linux and minecraft is written in java :)
  • 1
    @Voxera oh yeah, I know that .net is officially supported now, but It's running using mono and as it turns out, the microsoft repositories for mono are the slowest, largest most verbal repos ever...

    It's not fun to run "apt update" and have mono pop up with a 500MB update, printing bunch of unwanted BS into the terminal as it installs and all of this just stops my updates for minutes (sometimes hours because my internet is bitchy)

    That's totally spoiling the otherwise fast experience with linux T_T which is why I think It's a pain to use... Or rather It's pain to keep it on the computer at all!

    As for Java yeah, Java works perfectly fine. But I wouldn't recommend starting with it for beginners, that's what I tried to say. It's very opinionated and slow to use for rapid prototypying, which I think has value for a beginner. That's why I'd rather go for python to start off and then move to C which teaches a lot of good practices and basics!
  • 0
    @Hazarth thats the thing, .netcore does not use mono but is a standalone platform with a real runtime.

    https://scientificprogrammer.net/20...
Add Comment