A Freelance DevOps doing container stuff and automating unhealthy amounts of software.
Need something automated or containerized? Feel free to hit me up :)
If I see parameters like studentID, studentName, studentAge, etc. all of these could be grabbed from a single Student object. Even dependencies like classes and fees should be retrievable by the same object via references.
A single object as parameter, where applicable, makes the whole function easier to structure
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Because of JavaScript, I feel that one Object parameter might be preferred, rather than multiple, or varargs.
It makes ordering of params not to matter.
I think you may have missed the point of the post. :)
How so?
If I see parameters like studentID, studentName, studentAge, etc. all of these could be grabbed from a single Student object. Even dependencies like classes and fees should be retrievable by the same object via references.
A single object as parameter, where applicable, makes the whole function easier to structure