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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: Thinking in terms of interfaces in java

1 点作者 gajju3588超过 10 年前
Mostly i have programmed in either procedural languages or Functional. Now i have a need to put effort to implement some business logic in Java. Now i read this at lots of places, you have to program to interfaces then implementations. My approach has always been thinking of implementation first, and than designing accordingly. Being very young in this world, needs advice.<p>Is there a problem in thinking in terms of implementation first ? For example, we have to create a simple coin toss game, for me its always been solving the problem so i would create some functions to run this thing. Now thinking this in terms of interfaces is a new world for me. Would love to have some advice.<p>P.S. i have spent lot of time programming design problems, reading patterns. Still the question.

暂无评论

暂无评论