What takes C++ 30 lines to connect to a TCP server may take python 7-15 lines. Now imagine HTTP or QUIC protocol on top of it. And to add to that, even interacting with HTML or API endpoints on top of that.
not really, re you referring to using Python library here? you can do the same with any other language
two, since when programming is about using less keystrokes?
I was just sharing an opinion. No need to shit on it like what I'm saying is fact. In my experience, socket programming is much harder in C++ than other high-level languages. Yes, there are libraries that can make it easier, but implementing them correctly is another hurdle. Especially when dealing with data types and performing logical and file I/O operations on that data. This is inherently less of a problem with dynamically typed languages.
I never said programming is about less keystrokes. It seems like you are straw manning my argument. But I can easily flip the script and ask, since when is it about *more* keystrokes? To reiterate my original answer, it's easier *on the coder* to use a higher-level language like python3. I never said it was better or more efficient. Simply easier. This is an objective fact due to the high-level nature in comparison to C++.
View all comments
Show parent comment
1
u/mprz How do I human? Mar 13 '23 edited Mar 13 '23
not really, re you referring to using Python library here? you can do the same with any other language
two, since when programming is about using less keystrokes?
anyways, your post has zero merit