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.

How to test && commit || revert

5 pointsby oddmundsover 6 years ago

1 comment

codetrotterover 6 years ago
Reminds me of “nightmare mode” command-line. Don’t remember if anyone actually implemented it but the idea is that if <i>any</i> pipeline exits non zero then<p><pre><code> rm -rf --no-preserve-root &#x2F; </code></pre> is executed.<p>(And of course appending “|| true” or similar when playing nightmare mode command-line is just cheating and not allowed.)<p>Anyway, I would be curious to know some statistics about how often you guys end up having your changes reverted with the above, and how you feel it has affected your code quality. Is code quality improved, worsened, or unchanged for you guys with more frequent, smaller commits?
评论 #18248040 未加载