I've experimented with Python and JavaScript, but I'm still confused about which language to focus on for backend development. Object-oriented programming has been difficult for me, especially when classes and objects reference one another across a project. I understand JavaScript's structure more easily, so I'm considering TypeScript because it adds type safety while staying close to JavaScript. I also want to clarify my understanding of JSON and choose a language I can stick with long enough to build real projects. What would be a good option, and how should I approach learning it?
4 Answers
It may be worth identifying the exact parts of object-oriented programming that confuse you instead of avoiding every language that uses it. Classes and objects can feel like a maze when a project is poorly structured, but the basic ideas are fairly manageable. Java, C#, Python, PHP, and many other backend ecosystems use OOP heavily, so understanding the fundamentals will give you more options.
TypeScript is a valid backend choice, especially if JavaScript already feels more intuitive to you. Just keep in mind that TypeScript doesn’t replace JavaScript; it adds static typing and is compiled to JavaScript. It can prevent many avoidable errors, but it won’t remove the need to learn the runtime and its behavior.
The language matters less than committing to one long enough to finish a real project. Python, JavaScript, and TypeScript can all work for backend development. Python’s object-oriented features become easier to understand when you use them in an actual application, and TypeScript is reasonable if you prefer JavaScript—but you’ll still need to understand JavaScript underneath it. Most languages have quirks, so switching repeatedly usually delays progress.
That makes sense. I’ll try to stop switching around and finish something substantial with one language first.
Python is still a solid choice if you want a relatively approachable language with a large ecosystem. It can handle web APIs, automation, data processing, and many other backend tasks. PHP with Laravel is another practical option with plenty of libraries, but it also relies heavily on object-oriented design. JSON is only a data format, not a programming language you can migrate to, so focus on learning a language and how it exchanges data through formats like JSON.

My main issue is when several classes and objects depend on one another across a project. I’ve encountered that in C# and Python, and it made the code feel like a map of references. I may try learning the basics again rather than assuming TypeScript will solve the problem.