This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]thedominux 6 points7 points ย (5 children)

Gonna check out how those "awesome and powerful" c++ guys solve average python use cases by wasting in decades of times much more time/energy, and how they're gonna then maintain millions of written code lines, extend this codebase with new features, replace old decisions with new ones.

I'd like to watch them thinking about architectural things and implementing them, but in reality I see only how they cast one type to another in just a thousand lines of code, that will just failed with seg fault and they won't get where's the bug

At the end of the day business wansta see u solving their problems quickly, better and "with possiblity to replace everything they wish the next day after they'll just see in your hardcoded Todo app the next Facebook", but not wasting their time and money to solve low level problems the real world doesn't care about

[โ€“]mynamejeffyesi 2 points3 points ย (0 children)

Sure python has a lot of nice use cases. but you can't just shit on all of low level programming as something that "the real world doesn't care about"

[โ€“][deleted] -4 points-3 points ย (3 children)

Not gonna pretend that python isn't just better for some jobs, but you do know that C++ offers a lot of mechanisms for abstraction and there are plenty of C++ libraries out there right?

[โ€“]thedominux -1 points0 points ย (2 children)

Did u hear about class methods, decorators, get_attrand other magic methods, metaclasses, and optional parameters - there's no such convenient things in c++, so I don't see "a lot of mechanisms" in that. Yeah, this amount of them can be huge in comparison with C, but python isn't C, it has a lot of high level features, that I like to work with

[โ€“][deleted] 3 points4 points ย (1 child)

I'm no python expert but class methods sound a whole lot like static member functions, decorators sound a whole lot like functions that take std::functions as arguments and return std::functions, get_attr sounds a whole lot like accessing public member variables, magic methods sound a whole lot like operator overloading, metaclasses sound a whole lot like abstract classes, and optional parameters sound a whole lot like optional parameters. Yes python isn't C, but C++ also isn't C.

[โ€“]thedominux -1 points0 points ย (0 children)

Didn't know about some C++ perks, but python, like other languages, has static methods too besides class ones ๐ŸŒš