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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What new tool or application could be designed by SHELL/BASH coding?

1 点作者 ankitvad将近 10 年前
SHELL Scripting is a really interesting way to design new applications or tools. I would really like some ideas as to what someone could make. Domain is not an issue, MAC/Linux portability is.

1 comment

informatimago将近 10 年前
Anything.<p>There are bash libraries to do OO programming. Obviously, you can do text and screen based UI, but with things like tcl&#x2F;tk and canvas, you can also do some GUI programming. bash has the virtual devices &#x2F;dev&#x2F;tcp and &#x2F;dev&#x2F;udp to do network programming in it (there are smtp, http pop3 imap3 and others protocols implemented in bash). There are shell and bash compilers to generate native code executables from bash sources.<p>So you can write any kind of application in bash.<p>Some big programs have started as shell programs.<p>But then, the question is why? For soon, very soon, you reach the limits of bash, with the lack of advanced data structures, the difficulty to write algorithms in it, the awkward syntax, the quotation hell, the lack of good debuggers, and so on.<p>When you could have the same interactive and script-like kind of development with other programming languages, like Common Lisp (or Smalltalk, scheme, or even ruby and python), and with better ways to interface with libraries and GUI frameworks, and more delivery choices.<p>Any programming language having implementations providing an interactive REPL and a decent debugger will provide you with a better programming experience than bash.