• 0 Posts
  • 17 Comments
Joined 2 years ago
cake
Cake day: June 11th, 2023

help-circle






  • Modern communists do recognize the failures of attempts at socialism. They recognize that those failures directly lead to Deng Xioaping and his friends taking control of China and destroying the socialist state. Simply because China declares itself communist does not make it so. I could declare myself the king of England do I suddenly get the throne just because I’ve claimed it? China, much like the USSR before it must declare itself communist due to the popularity that Mao has in the country. Unfortunately socialism died in China shortly after Mao. The “why did socialism fail” is exactly what communists study so that they can understand the pitfalls and try to move past them in the future.

    This isn’t a case of gatekeeping. China has become exactly what it hated the Soviets for — social imperialists.




  • Maybe you should check how python compares relative to shell scripts before you comment. You’re making it very apparent that you don’t actually know what you’re talking about. Regardless of how slow python is, it is significantly faster than bash, or any other shell language purely by virtue of the fact that shell languages are primarily glue between other programs. Spawning a new process has a ton of overhead, which you would know if you were capable of doing anything other than projecting.

    You’re also woefully unaware that it is completely possible to write python bindings for C++ code, which many popular libraries do. In practice python is not as slow as you think it is. That’s not even considering the fact that python 3.12 increased performance of the language.

    It’s not perfect for everything, but this performance argument shows that you don’t know enough to understand why that isn’t really a drawback for writing scripts, which is undeniably an area that python excels at.




  • To be fair, sometimes that runtime difference matters. That’s why it’s C++ and python is a fairly common skill-combo amongst devs. But the fact that this dude is basically bragging about writing shell scripts as if that’s something an experienced dev couldn’t figure out tells me that they don’t really know anything about when you would choose either.

    If they had mentioned the Global Interpreter Lock or dynamic typing maybe they would have had some sort of real case for why you should avoid python in certain situations.


  • You should check out Click. Way more user friendly than argparse imo. I agree with all of your points though, and I’d also add if you are working on a team that it will be infinitely easier for a co-worker to decipher your python code compared to a bash script. And you can write unit tests with py test, the list goes on and on. If the environment you are deploying to has the python interpreter, you should use python over bash.





  • A lot of these cars are starting to get massive touch screens too. I’m looking at buying a Prius and several of the trims have a 12 inch touch screen. Why would I ever need that as a driver? Why would I ever possibly want that? Pedestrian and cyclist deaths keep skyrocketing and we continue to out these massive screens in cars that in many cases can’t be turned off. Lawmakers really need to make auto manufacturers responsible for the part they are playing in enabling distracted driving.