• 13 Posts
  • 205 Comments
Joined 1 year ago
cake
Cake day: June 2nd, 2024

help-circle






  • When you add TypeScript on top and with EcmaScript finally caving in to classism, and with all the new shiny APIs (fetch, Temporal, Set and the like), I really don’t get the hate for JavaScript anymore.

    Especially TypeScript’s type system is so awesome that I’ve found my self cursing at Java for not doing types well enough.





  • This only works if the cancel button looks like a specialized button. If it doesn’t (for instance, if it looks like the usual “×” symbol), you’re in for a lot of style overrides.

    Oh, and guess what: Your suggestion is exactly what bootstrap does. .btn.primary is for the default action, .btn.secondary I usually use for aborting and going back, .btn.danger shows that bad things will happen. The only difference is that if doesn’t force its default styles on all plain <button> elements that might be present on the page.