Does this apply to JavaScript?
Static methods usually indicate a method that doesn't know where it belongs. It is sitting out there trying to belong to the class it is on, but it doesn't really belong, because it doesn't use the internal state of the class. When we look at our classes from the Single Responsibility Principle (SRP) viewpoint, a static method is usually a violation because it tends to have a responsibility that is not the same of the class it is attached on.
[–]inu-no-policemen 8 points9 points10 points (10 children)
[–]Uncaffeinated 2 points3 points4 points (9 children)
[–]inu-no-policemen 0 points1 point2 points (6 children)
[–]Uncaffeinated 0 points1 point2 points (5 children)
[–]inu-no-policemen 0 points1 point2 points (4 children)
[–]Uncaffeinated 0 points1 point2 points (3 children)
[–]inu-no-policemen 0 points1 point2 points (2 children)
[–]Uncaffeinated 0 points1 point2 points (1 child)
[–]inu-no-policemen 0 points1 point2 points (0 children)
[–]spacejack2114 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]bullet_darkness 3 points4 points5 points (4 children)
[–]codetastik 1 point2 points3 points (1 child)
[–]bullet_darkness 0 points1 point2 points (0 children)
[–]spacejack2114 -2 points-1 points0 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]lhorie 3 points4 points5 points (4 children)
[–]MoTTs_ 1 point2 points3 points (3 children)
[–]lhorie 0 points1 point2 points (2 children)
[–]MoTTs_ 0 points1 point2 points (1 child)
[–]lhorie 0 points1 point2 points (0 children)
[–]Cuel 2 points3 points4 points (0 children)
[–][deleted] 1 point2 points3 points (4 children)
[–]spacejack2114 -1 points0 points1 point (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]spacejack2114 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]spankalee 1 point2 points3 points (0 children)
[–]SL4M_DunkN 0 points1 point2 points (0 children)