TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Do you guys still write test cases for your MVPs or hobby projects?

8 pointsby vuyanialmost 9 years ago

10 comments

bbcbasicalmost 9 years ago
Not if I am just exploring a new language or libraries. Yes if it is meant to be a complete piece of software.
评论 #12164941 未加载
mbrockalmost 9 years ago
I try to write effective tests that really help me out without being too constraining or tedious.<p>When I go back to fix something or refactor old code, I know what an anxious experience it is to do that without test coverage, so having a basic test suite makes me happy.
1_800_UNICORNalmost 9 years ago
MVPs? Absolutely. Just because it&#x27;s the first iteration doesn&#x27;t mean it&#x27;s not important to test that everything in that first iteration works.<p>Hobby projects? Less so, particularly if it&#x27;s just me writing software. However, if I&#x27;m writing a particularly hairy piece of logic I&#x27;ll absolutely write some tests for it (for example, I wrote a JS calendar plugin just to see if I could do better than the many existing ones, and I did all of the date logic myself using JS&#x27;s terrible Date library).
Piskvorrralmost 9 years ago
Yes. Especially if it&#x27;s a shared project - then I&#x27;m reasonably sure that it&#x27;s me who introduced a bug, and not the others ;)
Rannathalmost 9 years ago
Yes. It&#x27;s a bit hard to do so for games, but doing so makes it SOOOOOOO much easier to port if you have to. After all a test is basically a port to a system that has a different graphical, windowing &amp; input system (none, none, &amp; simulated).
PerfectNumberalmost 9 years ago
My friend shared tons of details in how he tested his future wife for possibility of long lasting relationship.<p>They got divorced 1 yr after marriage.<p>So much for writing a test cases. Follow your intuition.
PaulHoulealmost 9 years ago
Most of the time. I program in Java so tests and ide are my repl.
firebonesalmost 9 years ago
If I intend to share or build upon it, yes.<p>If I&#x27;m exploring an idea that I know is throwaway and won&#x27;t be foundational for anything else, no.
current_callalmost 9 years ago
If I&#x27;ve spent the time to learn the testing framework, I&#x27;ll use it for hobby projects.
cauterizedalmost 9 years ago
Yup. I get bored of click through testing pretty quickly.