Today's Piece Of Advice For Programmers


https://www.incimages.com/uploaded_files/image/970x450/Homer-Simpson_33041.jpg

If you're going to add a static method to a class that takes as input an instance of the class and some data to update the state of that instance, then why no make it an instance method? That way, when someone needs to refactor the code, they won't sit and wonder why you did such a thing and question your abilities as a developer.

Comments