News for hackers. Stuff that matters.
Re:Substituting JavaScript with HTML by userbinator on Saturday October 14, 2017 @07:53PM (#15474994)
If I were to guess, it's probably because you learned HTML before JS. Those who learned JS first, or were never exposed fully to HTML, are unlikely to see the simpler solution first, because they're tempted to use JS for everything. An excellent example of the "when all you have is a hammer, everything looks like a nail" principle.
Re:Substituting JavaScript with HTML by Can_Not on Monday October 16, 2017 @09:01AM (#15482858)
The simpler solution, being that it is what it is, can't do everything that the advanced solution can do. So it's another misuse of the hammer and nail quote. This is a good example of 2 hammers that are optimized for 2 different use cases.
Re:Substituting JavaScript with HTML by uuuyyy111 on Sunday October 15, 2017 @05:40PM (#15479457)
Explains node.js to some degree too. Very glad I didn't enter the scene now with what I see in JS development.