0

For those who coded js for years. How hard to pickup python backend? I refer js/ts node because I don't have to do context switching

Comments
  • 2
    Not a web dev but, isnt switching from frontend to backend a context switch anyway?

    like unless you write your backend in Rust it shouldn't be all too hard to switch back and forth
  • 3
    I think the hardest part for me to get over was the gil. All other frameworks I had were async in nature until I started with python. I mean there are workarounds, asyncio, threading, etc, but it made me irritated that I had to….while writing services in flask and needed it to go and do the things…at the same time.
  • 1
    I swap between Python and Node all the time. Stupid mistakes like syntax formatting issues make me laugh. Nothing a good IDE won’t solve. I keep one IDE themed dark for backend and another themes light for frontend. It helps my brain keep them separate
  • 0
    @devphobe smart idea, why don't u use node?
  • 2
    I support 43 projects as a DevOps engineer. I’m in multiple languages almost every day.
  • 0
    Depends greatly on what you are doing. Both languages have quirks, imo JS more than Python, said quirks make sense in both languages when you sit down to study them.

    If you are writing server side code, the switch from one to the other will be pretty seamless, Python has a very small learning curve.

    I do not use Python for backend development at work, but for automation and testing purposes. Lots of small CLI tools. Plus, it is my go-to for inspecting, and maneuvering through large piles of data, it has plenty of libraries.

    Hardest and most annoying thing? Whitespace sensitivity. I can't stand it, and it is the main reason why Python is not my favorite language, if that would be removed from it then it would probably be right at the top.

    They are just tools, fun to learn, easy to get started with. Refer to the "Real Python" tutorials and articles, they put a bunch of good stuff in their website.
  • 0
    Funny thing is I *prefer* the context switching of using separate backend and frontend languages. Helps me separate out things in my head.
Add Comment