r/learnpython • u/Any-Box-777 • Sep 03 '24
What other programming language goes well with Python?
Which complementary language is good to know along with Python that is well complemented both technically and from a business and jobs market perspective?
Is it Rust, Go, or older C/C++, or some exotic like Haskell, Elixir, Clojure? I can see that a lot of Python developers lean to Rust for example.
PS: please no SQL, HTML, CSS, markdown, etc querying and declerative languages, we are talking full blown programming languages here.
19
u/Asleep-Dress-3578 Sep 03 '24
Data scientist here. Honestly, JavaScript goes well with Python in case you also have to develop a frontend. Some of out products have a React frontend, and for that it is nice to know JavaScript and TypeScript.
Otherwise I think that C and C++ go well with Python to develop Python modules in them. Check nanobind for developing C++ modules. Also Cython.
2
1
6
4
3
u/GreenWoodDragon Sep 03 '24
It's about choosing the right tool for the job or, frequently, going with the existing stack at your place of work.
Programming languages are tools for solving problems. That's more important than "can I use language A with language B or D?"
2
u/riklaunim Sep 03 '24
If you want to go webdev then you will have to know HTML/CSS/JS, UX/UI, SPA JS framework, bit of SEO.
For backend also databases, Celery/RabitMQ/Redis... For data science / data processing - Snowflake, eveb more databases, Redis/Rabit/Other, networking/devops and more.
Pure language on it own, after a tutorial/bootcamp is not enough for anything, especially commercial. If you start C then you would have to learn extending Python with C, optimizing code and have a job around it. If you won't use it it will rust...
2
u/Robswc robswc Sep 03 '24
Well, I would think more in terms of "stacks" instead of languages.
Languages are pretty independent. It would be like asking "which tool goes well with a hammer." The answer would depend on what projects you're working on. A blacksmith will have a very different answer from that of a carpenter.
Generally speaking though, probably JS. Python is a scripting/backend language. If you're using python for the backend, you're probably going to be using JS for the frontend. There are a few cases where you'll use Python and rust or C but I don't see that often.
3
2
u/crashfrog02 Sep 04 '24
we are talking full blown programming languages here.
SQL is a full-blown programming language, I assure you.
1
u/Fabiolean Sep 03 '24
You'll see C and Rust a lot, because using Python as bindings to code in those other languages is relatively easy. Numpy is a python wrapper for a C/Fortran library and Pydantic V2 is now operating off of a Rust "core." There's plenty more examples for both languages.
If you want to learn a new language specifically for implementing in a solution like this it really just depends on what you're trying to accomplish. Rust is safe and fast, C is fast and highly portable, Fortran is great at math, Odin is great for graphics, etc.
1
13
u/HalfRiceNCracker Sep 03 '24
Reframe your perspective. Right tool for the right job.
If you can program then languages don't really matter. Think in terms of frameworks and stacks. Learn all the things.