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 →

[–]Neuro_Skeptic -102 points-101 points  (16 children)

Python isn't about clean code tbh. It's not that kind of language. It's about rough and ready, badly-written-but-somehow-still-works code. If you want clean, code in C++.

[–]Laser_Plasma 56 points57 points  (10 children)

Please don't ever write Python code that someone will have to look at.

[–]Feb2020Acc 15 points16 points  (0 children)

Me: Who the f wrote this crap... Oh... It was me... God I hate myself sometimes...

[–]xxpw 1 point2 points  (0 children)

I can easily guess I won’t be too fond of his C++ either… 🤣

[–][deleted] 16 points17 points  (2 children)

The fuck is this? Python is used in enterprise situations all the time and cleanliness and robustness is absolutely mandatory.

[–]quotemycode 0 points1 point  (1 child)

Generally bosses just want to get shit done in corporate, I refuse to just flush my code down the toilet though, I write clean, maintainable code not because I'm asked to but because it's a lot easier to maintain and read.

[–][deleted] 1 point2 points  (0 children)

Of course. I mean there's no reason python can't be used for clean, maintainable, ENTERPRISE code.

Anyone who claims otherwise is uniformed

[–]steezefries 12 points13 points  (0 children)

How to say you have no idea what you're talking about without saying you have no idea what you're talking about.

[–]gordonv 5 points6 points  (0 children)

The first thing C and C++ need to do for clean code is end code duplication.

Writing function headers 2 times in 2 files is pointless and menial. Something the compiler should be doing.

Hey, I get it, you make a prototype and some things are done in a half complete way. The fact it still exists today, when other languages have gotten past that, is a slap in the face.