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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Latest guidelines on how to set up a project in X langauge

2 点作者 rrishi10 个月前
Hey HN,<p>A lot of you are probably acquainted with the resource learnxinyminutes. It provides a decently wide peep into a language&#x27;s syntax and basics.<p>But often that&#x27;s not sufficient to build anything decent by the latest guidelines&#x2F;conventions of the language&#x27;s community.<p>For example, look at this https:&#x2F;&#x2F;matt.sh&#x2F;python-project-structure-2024. The author has done an excellent job of distilling the best practices associated with python.<p>Is there a resource like this for other languages ? Ideally something like learnxinyminutes for setting up projects in a language and idioms etc.

1 comment

austin-cheney10 个月前
I don&#x27;t mess with tech stacks, so I immediately jump to the business end of things.<p>1. Start with a specific goal. What is the thing I want to build and what 1 problem does it solve. Other features can come later.<p>2. Backwards plan. You generally know what you need to make this 1 thing work and some vague idea of how to organize the pieces. What ever is missing then becomes either a gap or a dependency. If you have written a lot of original software you are in a fantastic place because you can butcher from prior projects.<p>3. Start with the entry point. In Rust its <i>fn main</i>. As a TypeScript lover I just create some arbitrary file.<p>4. Build the platform code required by your language. In Rust its a crates file and in Node its a package.json file.<p>5. Bring in only the dependencies requires to build the minimal code.<p>6. Get as far as you can before you need additional dependencies.<p>This is how to get up and running doing real automation as quickly as possible.