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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Unwritten Coding Standards: Function Ordering

3 点作者 frenchie4111大约 4 年前

1 comment

cratermoon大约 4 年前
I wrote a lot of code for single-pass compilers and I still have a tendency to want to put things in reverse order. Are there any code tools that can arrange functions in a useful order like this, or do they all just manage to order alphabetically?<p>Oh one other aspect that the author doesn&#x27;t mention is for OO languages that have public&#x2F;protected&#x2F;private or other decorators like static, virtual, default, etc, what&#x27;s a good order?