Ad/iklan :







Search.Pencarian Menu

Add text send email to rh3252705.adda@blogger.com or Click this (Text porn Will delete) | Tambah teks kirim email ke rh3252705.adda@blogger.com atau Klik ini (Teks porno akan dihapus)
Total post.pos : 13631+

[Go Make Things] A line of code saved is a line of code earned

Yesterday, I wrote about how every dependency is a potential vulnerability. But really, every line of code written is a potential point of failure.

When you own that code, you have more control over how and when to fix it, but every line of code is a liability.

This is a big reason why I recommend leaning on the web platform as much as possible when working with clients.

  • It's often faster, easier, and safer to use <details> and <summary> than write your own disclosure pattern script.
  • It's better to use scroll-behavior: smooth than write JavaScript to animate scrolling.
  • It's better to use <dialog> than write your own custom modal.
  • It's better to use CSS than JavaScript if it can do the same thing (accessibly).
  • It's better to use HTML if a native element exists.

There are exceptions and edge cases, of course!

But if the goal is to build software that works well and requires as little maintenance as possible to run, less code is nearly always better.

If you need help doing that, get in touch. I'd love to help you with your next project.

Cheers,
Chris

Want to share this with others or read it later? View it in a browser.

Share :

Facebook Twitter Google+
0 Komentar untuk "[Go Make Things] A line of code saved is a line of code earned"

Back To Top