12/20/2023 0 Comments Should i learn java or python reddit![]() ![]() C++ is the defacto language of programming contests, with great speed and STL already has a lot of DS functionality built-in. If you need to switch languages for leetcoding, I would strongly suggest python.Ī lot of people also use C++, and most of them come from competitive programming. You have to write way less code than most of the other languages. The more I know the more Im leaning towards. The only difference is that most people recommend JS because its faster to learn, but even I still dont know if Python or JavaScript. I guess people use Java because most of them use Java in their daily job.įurthermore, python is almost like sudo-code. From what Ive found JavaScript is more web development and Python allows for a slightly wider scope within programming and AI and games along with web app and such. But I was using PHP anyway until I discovered on Amazon's OA that they don't support PHP. Python has gradually risen to become the most popular choice. The problem with python is then you're part of the python community, and they're the vegans of programming. Python is a bit more volatile since it doesn't have the enterprise stranglehold that java currently does, but it will be around for some time as well. Also, you have to write a lot of code compared to python. Java will be around for many decades to come. Other than that PHP has inconsistency in the naming of function names and parameter orders. It was fine, but PHP has some problems, especially if you want to store something like a tree or linked list node in a hashmap or array. Both languages are very complex and somewhat hard to learn (even when knowing other languages), but in Rust this difficulty is upfront, while in C++ it is more hidden. I mostly use php at my work, so I started leetcoding in PHP also. C++ is more widespread, so it will give you more job opportunities, while Rusts complier will teach you good practices in both of them. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |