Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
@HyperCoder Worse: literally the absence of tabs is treated as a piece of code in Python. It's how the parser detects and represents the end of a scope.
Oh and also Python lets you vary the number of spaces in indents, it only has to be consistent within each scope. -
But remember, that derived classes/children, cannot access their parent's privates. This is really important.
-
@AleCx04 I'll just watch, pretending that C is outdated anyway, then kill the winner from behind. :)
-
I seem to remember a post on Hackernews not too long ago essentially making fun of python programmers and that most tasks can be broken into smaller pieces and run on something like C or C++
-
@vintprox that for each logic is kinda stupid if you just want to do a loop x times. why declare a range to do that if i could just tell it to repeat until x. except I can't, because it's python
-
@darksideofyay As long as iterator from "range" is integral to language, it's an OK practice. X doesn't have to do the same as Y and Z. In fact, one can receive good lesson or two from this generator pattern.
In C++, it's bad when classes become friends, because then they show their privates.
joke/meme