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
-
Voxera113808y@DucksCanCode it would return 2 but since the function only takes one parameter its not a solution to the problem stated.
-
But it's understandable to mess up when the function has to do something so simple that can be done with an operator..
-
fyroc58608yThis remind me of the shit my colleges do on our current project.
They just make a service call with one argument and pass in the entire local scope variable.
What this does is pass in all of the variables you defined on whatever controller method you called that service, as a struct. So if you have queries... arrays... lists.. strings... anything defined in that controller... it's being passed in to that service method whether you're using it or not.
Related Rants
When I was trying to learn about parameters 😂
undefined
learning to code
fail
python
funny