Python a slow programming language Or just a Myth ???????????


Python a slow programming language Or just a Myth ???????????




Many peoples hate Python becoz it’s a little bit slower programming language but guyzz it can be a bit of myth. So let’s debug it, Is python really a slow programming language ??.

The main point is that it’s not ur fault that u believe that python is a slower programming language, there so much noise Online, in the Forums and in the YouTube and almost every single place which says, Python is definitely slower language and yes it's don’t get me wrong here but u need to understand that what make’s python a slower language, what are the details behind it, and by the end of this article u’ll be able to say that no it’s not that slow programming language.

Apart from that i’ll also discuss the DOP’s of optimizing or improving the speed of the python code or any other programming language as a matter of fact. So these DOP's, Don’t, Don’t Do Yet and Do ur profiling first so these are known as DOP's abbreviations of improving the performance of ur code, we’ll talk about them by the end segment of this article. But first, let me give you  few analogies that will help u to understand that whether a programming language is fast or fast enough for u or it’s actually  slow language.

Let me tell u a fact, majority of time it’s not the python slowing down ur code or performance of ur program, it’s majorily the data structures. And offcourse I would like to put it that, have u ever thought this fact that a code which is having a time complexity of O(n2) is actually same if u write it in C or in Python. The time complexity is never measured based on the language itself. But u know this can be a great debate and u can come up with the fact that says the closer the code which is to the hardware the faster it is, then that is why Python is not that much closer to the hardware and that is why C or C++ is faster code. I have spend enough time on the community of C and C++ and there is common joke around,  that floats in that community is that the real programmer writes code in Assembly becoz that’s way closer to the hardware and it is very faster than C++. In fact u see quite a lot of people talking about the libraries, that this library in the C++ is really really slow, u should write it in Assembly. The fact is that, it’s totally admit that a code which is more closer to the hardware it’s gonna be faster but no it’s not gonna be always true. Yes, offcourse Data Structure plays a important role in optimizing the code. But let me tell u another analogy, which help u to further understand that how u can optimize ur code a bit faster regardless the programming language it is.

Once there was a plan of me and my friend for a movie named Dragon Ball Super Broly, I was the first one who reached at the movie theatre at time and waited for my friend, after 15 mins he came but u know, we were little bit late for movie, now u think we late becoz of me but no it's all becoz my friend reached a little bit late. Same thing happen in the programming world, as well u need to findout where ur bottle neck is. Most of the time whether it’s any programming language even Python is actually fast enough for ur code or anything u want to perform. The only thing that sometime the bottle neck is actually come from the traffic in network or may be hardware is little bit slower, for eg :- If u looking for someone login into a system using Python framework or Python code or however u had doing it and in that case ur database is actually running on separate instance and connecting through that instance is taking bit of time. Now at this part of code, u cannot do much about it becoz it’s gonna take sometime to reachout that server and will bring it back. So this communication, this network traffic is actually the reason for the bottle neck of ur code. So, there is one interesting thing before opting out, saying this language is totally a slow firstly u should findout where the bottle neck is and in majority of case u can actually optimize ur code to reduce those bottle necks and say that, Yes this programming language is fast enough.

If Python would be so much of pathetic language in slower terms then why do u think that people in machine learning and even in the web world using the Django and it is so much of popular programming language. We need to balance out the matter of fact that what we r giving up and opting out a slow language which is not even that much of slow, it just a myth that floating around the web.



                                       Thank You........


Comments

Popular posts from this blog

Addicted To Infinite Scrolling: The Dark Side Of Social Media

Coding for Everyone? My Personal Journey and Lessons Learned

The Dark Truth Behind Apple's Privacy Claims - Is Your Data Really Safe?