107

That weird moment when you don't understand what ++ or -- means in devRant cause you Python developer

Comments
  • 0
    @demiko IKR! XD

    Thankfully I C++ developer too
  • 2
    Welcome (:
  • 4
    I'm a COBOL developer and still don't know :(
  • 0
    @AndSoWeCode COBOL Devs are in hot demand these days eh
  • 9
    @JsonC11 yeah, COBOL microservices, COBOL native, COBOL game development, responsive COBOL, etc. It's everywhere.
  • 3
    @AndSoWeCode Nah, its not used in that many places, but since almost everyone who knows cobol have retired (or died from old age) the demand is significantly higher than the supply.
  • 0
    @ItsNotMyFault I was beginning to loose hope with this community. You just restored my faith
  • 0
    Feelsbadman
  • 1
    Holy Crows there isn't a ++ or -- in Python?
  • 7
    @randomr Nope, you'd use any of the following

    a += b
    a -= b
    a *= b
    a /= b

    "There should be one, and preferably only one, obvious way to do anything, although that way may not be obvious unless you're Dutch."
  • 7
    @nmunro well, even in Python, there are 2 ways then to increment:

    a+=1
    a=a+1
  • 2
    @demiko yep. And ++a is syntactic sugar for a+=1.
  • 0
    @AndSoWeCode I didn't say there wasn't another way, I was just quoting the zen of python.
  • 0
    Well, if you want to earn a lot of money you are almost guaranteed to do so by learning/mastering COBOL
  • 0
    I learned the difference between --i and i-- the hard way in C++. Now I do Python and don't care anymore.
Add Comment