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.

Put your bash code in functions

23 pointsby polyrandalmost 5 years ago

2 comments

flatfilefanalmost 5 years ago
“makepdf & makedoc & openapp” Suddenly the choice of & to send a job into background makes total sense!
评论 #23589349 未加载
_bxg1almost 5 years ago
This is one reason I have reservations about async&#x2F;await syntax in JavaScript. Promises are parallel by default; you have to go out of your way to make them &quot;synchronous&quot;. The synchronous way of doing things may be clunky, but I&#x27;m not so sure that isn&#x27;t a feature. In my experience it&#x27;s uncommon that synchronicity is what you want. But with async&#x2F;await, you&#x27;re doing things sequentially <i>by default</i>. This means it&#x27;s really easy to accidentally make things take longer than they need to.
评论 #23588294 未加载