Daily 15

2025 年 5 月 19 日 星期一(已编辑)
38

Daily 15

Day 1 Common front-end job vocabulary

Word中文释义示例句子
implement实现I implemented dark mode using Tailwind CSS.
optimize优化I optimized the bundle size by removing unused code.
scalable可扩展的We designed a scalable layout system.
reusable可复用的Created reusable form components with Vue.
maintain维护,管理I maintained the dashboard project for 2 years.
collaborate协作I collaborated with backend developers remotely.
rendering渲染Improved rendering speed by using virtual lists.
responsive响应式的The site is fully responsive across devices.
performance性能Performance improved after lazy loading assets.
deploy部署We deploy via CI/CD to Vercel.
migrate迁移Migrated from Vue 2 to Vue 3 smoothly.
asynchronous异步的Used asynchronous requests with Axios.
component-based基于组件的架构Our app is built with a component-based architecture.
code review代码审查I regularly do code reviews for the team.
refactor重构Refactored the legacy code for better maintainability.

Day 2 Performance Optimization & Engineering Practice

Word中文释义示例句子
lazy load懒加载We lazy load images to improve performance.
debounce防抖The search input uses debounce to reduce API calls.
throttle节流We throttle the scroll event handler.
memoization记忆化缓存We used memoization to cache function results.
bundle size打包体积Reducing the bundle size improved load times.
tree shaking摇树优化(移除无用代码)Tree shaking removed unused exports from libraries.
code splitting代码分割Code splitting allows loading only necessary code chunks.
compression压缩Assets are compressed with Brotli for faster delivery.
critical CSS关键 CSSWe inlined critical CSS for better first paint.
minify压缩(代码)All scripts are minified in the production build.
sourcemap源映射文件Sourcemaps help us debug the production code.
environment variable环境变量We use environment variables for staging and production.
continuous integration持续集成We set up continuous integration with GitHub Actions.
deployment pipeline部署流程Our deployment pipeline includes linting and tests.
version control版本控制(Git)All changes are tracked using version control.

Day3 Debugging & Browser Tools

英文词汇中文释义示例句
debug调试I used Chrome DevTools to debug the layout issue.
breakpoint断点Set a breakpoint to inspect variable values.
console.log打印调试信息We added console.log to trace the error.
stack trace堆栈追踪The stack trace shows where the error occurred.
source map源映射Sourcemaps map minified code to the original source.
network tab网络面板The Network tab helps analyze API performance.
performance tab性能面板We used the Performance tab to check render time.
lighthouse谷歌性能分析工具We ran Lighthouse to audit page performance.
memory leak内存泄漏We debugged a memory leak in the infinite list.
watcher监视器Added a watcher to observe variable changes.
call stack调用堆栈The call stack revealed recursive function calls.
XHRXMLHttpRequestXHR requests are visible in the Network tab.
request payload请求负载I inspected the request payload in DevTools.
response headers响应头We checked CORS issues in response headers.
console error控制台错误The console error pointed to a null reference.

Day 4: HTML & Semantics

英文词汇中文释义示例句
semantic HTML语义化 HTMLUsing semantic HTML improves accessibility.
aria-labelARIA 标签aria-label helps screen readers understand the content.
alt attributealt 属性Always include alt text for images.
form element表单元素The login form uses proper form elements.
fieldset字段集Used a fieldset to group related inputs.
legend图例The legend describes the purpose of the group.
button type按钮类型Set button type to 'submit' to avoid unintended behavior.
label标签Each input should have an associated label.
placeholder占位符The placeholder shows example input.
tabindex焦点顺序Tabindex controls the focus order for keyboard users.
heading structure标题结构Maintain a logical heading structure.
main tag<main> 标签Put the main content in a <main> tag.
footer tag<footer> 标签The footer tag contains copyright info.
section段落块The page is split into sections.
article<article> 标签Each blog post is wrapped in an <article>.

Day 5: Accessibility (a11y)

英文词汇中文释义示例句
screen reader屏幕阅读器Tested our app using a screen reader.
keyboard navigation键盘导航We ensured keyboard navigation works well.
focus trap焦点陷阱Modals use a focus trap to keep focus inside.
skip link跳过链接Added a skip link to bypass nav bar.
aria-hidden隐藏 ARIA 内容Use aria-hidden on non-visible modals.
alt text替代文本Descriptive alt text improves accessibility.
contrast ratio对比度比率The text meets the required contrast ratio.
accessible name可访问名称Buttons must have an accessible name.
role角色Set role='dialog' on modal elements.
focusable可聚焦的Interactive elements should be focusable.
announce朗读提示Use aria-live to announce updates.
color blindness色盲We used patterns to support color blindness.
responsive font响应式字体Font sizes adjust for readability.
WCAG无障碍标准We follow WCAG 2.1 guidelines.
accessibility tree无障碍树Screen readers read from the accessibility tree.

Day 6: CSS Concepts & Tailwind

英文词汇中文释义示例句
utility class工具类Tailwind provides utility classes like p-4 and text-xl.
responsive design响应式设计We used breakpoints for responsive design.
flexbox弹性盒Flexbox helped align items horizontally.
grid layout网格布局CSS Grid is great for two-dimensional layouts.
z-index堆叠顺序z-index fixed the overlapping dropdown.
position absolute绝对定位The tooltip uses position: absolute.
pseudo-class伪类We styled hover states with pseudo-classes.
media query媒体查询Media queries apply styles based on screen size.
dark mode暗黑模式Dark mode is toggled with a class.
rem unitrem 单位We use rem for scalable font sizing.
line-clamp行数限制Tailwind line-clamp prevents text overflow.
aspect-ratio宽高比Set aspect-ratio for responsive images.
animation动画Used Tailwind animation utilities.
custom theme自定义主题Tailwind config allows custom themes.
hover effect悬停效果We added hover effects for buttons.

Day 7: JavaScript Fundamentals

英文词汇中文释义示例句
closure闭包Closures allow inner functions to access outer variables.
promisePromise 对象A Promise represents a value that may be available later.
async/await异步等待Async/await simplifies asynchronous code syntax.
event loop事件循环JavaScript runs on a single-threaded event loop.
callback回调函数We passed a callback to handle the response.
hoisting变量提升Function declarations are hoisted to the top.
scope作用域Variables declared inside a function have local scope.
thisthis 关键字The value of 'this' depends on how a function is called.
prototype原型JavaScript objects inherit from a prototype.
arrow function箭头函数Arrow functions have lexical 'this' binding.
destructuring解构赋值Destructuring makes extracting values cleaner.
spread operator扩展运算符We used ... to copy an array.
rest parameter剩余参数The rest parameter collects remaining args.
typeof类型检查typeof null returns 'object' (a known bug).
NaN非数字NaN is the result of invalid number operations.

Day 8: State Management

英文词汇中文释义示例句
state状态We store form input in component state.
useStateReact 状态钩子useState lets you add state to function components.
useReducer状态管理钩子useReducer is useful for complex state logic.
global state全局状态We store user info in global state.
context上下文React Context shares data without props.
ReduxRedux 状态管理Redux helps manage global state in large apps.
store状态存储All Redux state is in a single store.
dispatch派发动作We dispatch actions to update state.
selector选择器Selectors help read specific parts of state.
middleware中间件Redux middleware can intercept actions.
immer不可变处理库Immer simplifies immutable state updates.
ZustandZustand 状态管理库Zustand is a minimalist state library for React.
snapshot快照We used a snapshot to store temporary state.
devtools开发工具Redux DevTools help inspect state changes.
persistence状态持久化Persisting state helps users resume sessions.

Day 9: API & Networking

英文词汇中文释义示例句
REST APIREST 接口Our app interacts with a REST API.
GraphQLGraphQL 接口GraphQL allows flexible queries from clients.
fetch获取数据We used fetch to call the backend API.
axiosaxios 请求库Axios simplifies handling HTTP requests.
GET获取数据方法GET requests retrieve data from the server.
POST提交数据方法Use POST to send data securely.
status code状态码A 404 status code means 'Not Found'.
response body响应体The response body includes JSON data.
CORS跨域资源共享CORS errors occur when origins mismatch.
headers请求头We added authorization headers to the request.
token令牌JWT tokens are sent with each API call.
rate limit请求限制We hit the API rate limit.
retry重试机制The app retries failed API calls.
webhook网络钩子The server sends data via a webhook.
throttling限流Throttling prevents too many requests.

Day 10: TypeScript Essentials

英文词汇中文释义示例句
type类型We defined a custom type for the user.
interface接口Interfaces define the shape of an object.
enum枚举类型Enums help represent a fixed set of values.
union联合类型Union types allow multiple possible types.
literal type字面量类型We used a literal type for button variants.
type inference类型推导TypeScript infers types when possible.
type assertion类型断言We used 'as' for type assertion.
optional可选属性Optional props use a question mark.
readonly只读属性Readonly prevents accidental mutations.
generic泛型Generics allow reusable, type-safe functions.
extends类型扩展We extended the base interface.
RecordRecord 类型Record maps keys to values.
PartialPartial 类型Partial makes all properties optional.
any任意类型Use 'any' sparingly to avoid losing type safety.
unknown未知类型unknown is safer than any for unknown values.

Day 11: React Patterns & Performance

英文词汇中文解释示例句子
component组件We built a reusable Button component.
props属性Props let you pass data to components.
state lifting状态提升We lifted the state up for sharing.
memoization记忆化React.memo helps prevent unnecessary re-renders.
useCallback缓存函数钩子useCallback avoids recreating the same function.
useMemo缓存值钩子useMemo caches expensive computations.
lazy loading懒加载We used lazy loading for large components.
suspense挂起机制React Suspense handles async component loading.
error boundary错误边界Error boundaries catch render-time errors.
pure component纯组件Pure components render only when props change.
controlled component受控组件Controlled inputs derive their value from state.
custom hook自定义钩子Custom hooks abstract shared logic.
virtual DOM虚拟 DOMReact uses a virtual DOM to optimize updates.
key propkey 属性Always set a unique key when mapping lists.
fragment片段Fragments let you group children without extra nodes.

Day 12: Testing Frontend Code

英文词汇中文解释示例句子
unit test单元测试We wrote unit tests for the button component.
integration test集成测试Integration tests check interactions between components.
end-to-end (E2E)端到端测试E2E tests simulate real user behavior.
JestJest 测试框架Jest is used for unit testing in React.
Testing Library测试库React Testing Library focuses on user behavior.
mocking模拟We mocked the fetch API for testing.
snapshot test快照测试Snapshot tests catch unintended UI changes.
coverage测试覆盖率Test coverage helps track what's tested.
describe测试描述块We grouped tests with 'describe' blocks.
beforeEach测试前置函数We reset state in beforeEach.
assertion断言Assertions check expected outcomes.
render渲染函数render() simulates the component in tests.
fireEvent事件触发fireEvent simulates user interactions.
async testing异步测试We waited for async DOM updates.
CI pipeline持续集成流程Tests run automatically in the CI pipeline.

Day 13: Frontend Security Basics

英文词汇中文解释示例句子
XSS跨站脚本攻击We sanitized user input to prevent XSS.
CSP内容安全策略CSP headers mitigate XSS risks.
CSRF跨站请求伪造CSRF tokens protect POST requests.
input sanitization输入清洗We sanitize input before rendering.
output encoding输出编码Encoding output helps prevent injection.
authentication身份验证Users must authenticate before accessing data.
authorization权限控制Authorization ensures users can only access allowed data.
JWTJSON Web TokenJWTs are used for secure token-based auth.
https安全传输协议Always use HTTPS in production.
captcha验证码CAPTCHA helps prevent bot abuse.
rate limiting速率限制We implemented rate limiting for API security.
session hijacking会话劫持Secure cookies help prevent session hijacking.
secure headers安全头Set security headers like X-Frame-Options.
cookie flagsCookie 安全标志Use HttpOnly and Secure flags for cookies.
content spoofing内容欺骗Avoid unescaped user content in the UI.

Day 14: Remote Work Collaboration Tools

英文词汇中文解释示例句子
version control版本控制We use Git for version control.
pull request拉取请求Submit a pull request for code review.
issue tracking问题跟踪We use GitHub Issues to track bugs.
code review代码审查Every feature must go through code review.
SlackSlack 通讯工具We use Slack for async communication.
NotionNotion 文档工具Notion organizes our documentation.
ZoomZoom 视频会议Daily standups are done via Zoom.
TrelloTrello 看板工具Tasks are managed in Trello boards.
time zone时区Remote teams coordinate across time zones.
async update异步同步We prefer async updates over meetings.
meeting notes会议纪要We share meeting notes after calls.
daily standup每日站会Each member posts daily updates.
merge conflict合并冲突Resolve merge conflicts before merging.
documentation文档记录Clear docs reduce onboarding time.
screen sharing共享屏幕We debugged the issue via screen sharing.

Day 15: Deployment & Monitoring

英文词汇中文解释示例句子
CI/CD持续集成与部署Our project uses GitHub Actions for CI/CD.
build script构建脚本The build script compiles the frontend app.
static hosting静态托管We deployed to Vercel for static hosting.
DockerDocker 容器The frontend is packaged in a Docker image.
environment variables环境变量API keys are stored as environment variables.
log日志We inspected the deployment logs for errors.
error tracking错误追踪Sentry helps track frontend exceptions.
uptime monitoring在线监控We use Pingdom for uptime monitoring.
performance monitoring性能监控Lighthouse and New Relic track performance.
rollback回滚We rolled back to a stable version.
hotfix热修复A hotfix was deployed for the bug.
cache缓存CDN caches improve load speed.
invalidate缓存失效We invalidated the cache after deploy.
domain域名The site is hosted on a custom domain.
SSL certificateSSL 证书SSL ensures encrypted connections.

使用社交账号登录

  • Loading...
  • Loading...
  • Loading...
  • Loading...
  • Loading...