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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Suggestions for an exemplar Java project to showcase in class

5 点作者 DSpinellis超过 6 年前
Turbo Pascal included the source code of a working spreadsheet written in Pascal. Reading it was a revelation for me: I quickly understood how to structure code in small procedures and functions.<p>I see that my students have trouble structuring their code in classes and methods, and I think that going through an exemplar project in classroom would help them a lot. Which projects would you recommend?<p>Ideally, I&#x27;d want something: non-trivial in size (tens of classes) and structure (use of composition, inheritance, dynamic dispatch, containers, enumerations, maybe interfaces, threads, generics, streams); useful in everyday situations that the students can readily appreciate; easy to build; written with impeccable style in terms of structure, naming, commenting, and formatting; accompanied with unit tests; not dauntingly complex (this made me rule out the JDK libraries); of manageable size (&lt; 100k LoC, ideally &lt; 10k LoC).

2 条评论

marcuskaufmann超过 6 年前
If your stundents have trouble with the most basic part of programmging I would suggest that they should do more exercice to gain experience. Just by seeing &quot;good code&quot; doesn&#x27;t teach them anything.<p>A couple of years ago I had a lot of fun solving problems (e.g. <a href="https:&#x2F;&#x2F;projecteuler.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;projecteuler.net&#x2F;</a>) with friends and to compare and discuss the solutions we&#x27;ve chosen.
评论 #18562666 未加载
johny_bee超过 6 年前
Not strictly adhering to you ideal needs, check out: - Apache Commons lib - OpenJDK - JabRef