TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

31 pointsby flapjackfritzalmost 7 years ago
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 comments

davidjnelsonalmost 7 years ago
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-vectoralmost 7 years ago
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.
yishengalmost 7 years ago
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.
icedchaialmost 7 years ago
Haven&#x27;t you heard? We do agile now. Nobody designs anything anymore - they just fix it in the next sprint!
评论 #17400304 未加载
ShMcKalmost 7 years ago
Statecharts can be especially helpful. <a href="https:&#x2F;&#x2F;statecharts.github.io" rel="nofollow">https:&#x2F;&#x2F;statecharts.github.io</a>
javierluraschialmost 7 years ago
I would say: Controls, events, views, view-data bindings, data-server bindings, state, authentication, telemetry and error handling.
评论 #17382720 未加载
zygotic12almost 7 years ago
Copy an old one.