TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

8 点作者 vuyani将近 9 年前

10 条评论

bbcbasic将近 9 年前
Not if I am just exploring a new language or libraries. Yes if it is meant to be a complete piece of software.
评论 #12164941 未加载
mbrock将近 9 年前
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_UNICORN将近 9 年前
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).
Piskvorrr将近 9 年前
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 ;)
Rannath将近 9 年前
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).
PerfectNumber将近 9 年前
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.
PaulHoule将近 9 年前
Most of the time. I program in Java so tests and ide are my repl.
firebones将近 9 年前
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_call将近 9 年前
If I&#x27;ve spent the time to learn the testing framework, I&#x27;ll use it for hobby projects.
cauterized将近 9 年前
Yup. I get bored of click through testing pretty quickly.