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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Ask HN: What should the technical design for a front end feature include?

31 点作者 flapjackfritz将近 7 年前
What should the front end part of an applications technical design represent and consider? With back end, there's the database schema, API endpoints, flow charts for processes. But with the front end, only recently has it become somewhat data heavy. What do you do when asked to submit a technical design as a front end engineer? For reference, at my employment design is a large part of being a senior developer, so I have to do something, I'm not sure what though, and have not been successful in finding examples online.

7 条评论

davidjnelson将近 7 年前
A few ideas. The data model. How to map and continually re-map the server side model to the client side model. The design patterns appropriate to the problem, for instance using redux middleware to implement an interceptor, and leveraging any number of message based programming patterns from the Patterns Of Enterprise Application Architecture book. The communication mechanism from client to server. The data serialization format. Establishing testing patterns that are reliable in preventing bugs and regressions.
评论 #17379936 未加载
eigen-vector将近 7 年前
Define the customer experience. If you have a Product Manager who is involved with the project, you would ideally meet with them ahead of putting together a technical design document and discuss what the customer experience is going to look like. Try to finalize as many details as possible—APIs, latencies, accessibility etc. This should be an important part of your technical design as it defines the problem you're trying to solve. Your design should then be an answer to the customer experience problem you've formulated.
yisheng将近 7 年前
I use this when designing a redux application:<p>1. Define function signatures of selectors and action creators. 2. Define the state tree shape.<p>Action Creators and Selectors translate to the &quot;API endpoints&quot; as it&#x27;s the public interface to your frontend data model.<p>The state tree translates to the &quot;database schema&quot;.<p>I would also consider what the data model for client-side persistence (localstorage, cookies) is.
icedchai将近 7 年前
Haven&#x27;t you heard? We do agile now. Nobody designs anything anymore - they just fix it in the next sprint!
评论 #17400304 未加载
ShMcK将近 7 年前
Statecharts can be especially helpful. <a href="https:&#x2F;&#x2F;statecharts.github.io" rel="nofollow">https:&#x2F;&#x2F;statecharts.github.io</a>
javierluraschi将近 7 年前
I would say: Controls, events, views, view-data bindings, data-server bindings, state, authentication, telemetry and error handling.
评论 #17382720 未加载
zygotic12将近 7 年前
Copy an old one.