DEV Community

Sam Jarman 👨🏼‍💻
Sam Jarman 👨🏼‍💻

Posted on

2

A thing that works when it shouldn't is just as bad as a thing that doesn’t work when it should (100 Bytes Of Wisdom: Day 64)

A thing that works when it shouldn't is just as bad as a thing that doesn’t work when it should

Not understanding what is going on with some code or a system you're working on is fundamentally bad. Often, this means bugs, but sometimes it means things work but you don't know how. It's incredibly tempting to call it a day there and finish on that, but a truly disciplined engineer looks further and figures out what is actually going on. You learn more that way and next time you come to that code or system, you're better equipped to change it.

Heads up: As with any terse bit of advice, there will be exceptions of course, and subtleties and nuance that can't possibly be captured in a Byte of Wisdom. This has been what I've experienced, I'd love to hear yours in the comments too!

You can catch up with all the other bytes at http://bytesofwisdom.com/

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more