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
-
-
In ten years of programming I never needed to swap the value of two variables (so directly).
-
ClySuva19116y@ineptCoder Not sure why you needed the rest and extra numbers, it's just: [a, b] = [b, a]
For all those 30 000 000 times you have needed to swap variables in JS -
@Benedikt in my experience it mostly comes up to correct user input so one has not to account for some given minimum value being higher than the supposed maximum
The swag of python :D
joke/meme