Timeline for When are scripts inside HTML not considered a bad practice?
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 14, 2012 at 1:58 | comment | added | Joel Brown | @James - Don't listen to people who tell you "never do X." If your script is purely presentation logic then separating it from your HTML is not separation of concerns it is reducing cohesion. If your script can reasonably be expected to stay unique to your page and if it is related to presentation logic then go right ahead and keep it where it will be easy to find and take care of later. Just don't fall into the trap of copying and pasting the same code into dozens of pages where it will be a maintenance nightmare. | |
| Feb 14, 2012 at 1:46 | comment | added | james | It seems weird that they would supply such tools, if there is no real usefulness. are there no use cases where professional web developers might require the use of such scripts ? | |
| Feb 14, 2012 at 1:30 | history | answered | Daniel Pittman | CC BY-SA 3.0 |