164
社区成员
发帖
与我相关
我的任务
分享| Course | 2501_MU_SE_FZU |
|---|---|
| Assignment Requirement | Sixth Assignment - Beta Sprint |
| Team Name | Focus_2025 |
| Goal of this assignment | Clarify Code Standards, Sprint Tasks, and Plans for the team Beta Sprint |
| Other references | IEEE Std 830-1998, GB/T 8567-2006 |
To ensure the code quality, maintainability, and collaborative efficiency of the FocusFlow project, our team has established and unanimously agreed to adhere to the following code standards. These standards encompass syntax style, engineering practices, and collaboration workflows. They represent a key improvement distilled from our "learning by doing" experience in the Alpha phase.
snake_case (e.g., calculate_session_duration)CamelCase (e.g., UserProfileManager)ALL_CAPS_WITH_UNDERSCORES (e.g., MAX_FOCUS_BLOCK)#) sparingly for complex logic only.with statement) or explicit try...except...finally blocks for resource management (files, DB connections).bcrypt, passlib) before storage.camelCase (e.g., formatTimerDisplay)PascalCase (e.g., TaskCard, FocusTimer)ALL_CAPS_WITH_UNDERSCORES for true constants.') for strings, backticks (`) for template literals.apiClient.js) built on axios or fetch.useEffect cleanup function to prevent memory leaks (e.g., clear timers, unsubscribe).<header>, <main>, <section>, <article>).href="...")..task-card, .task-card__title, .task-card--completed).!important and overly specific selectors (e.g., div#id .class). Aim for low specificity.This section directly addresses a key failure from our Alpha retrospective.
Branch Strategy:
main: Always deployable. Direct commits are forbidden.develop: Integration branch for features. Most PRs target here.feature/*: Branches for new development (e.g., feature/password-reset, feature/task-cards).hotfix/*: Branches for critical bugs in main.Commit Convention:
<type>(<scope>): <subject> (Based on Conventional Commits).feat, fix, docs, style, refactor, test, chore.feat(F1): implement new password reset confirmation screen or fix(F3): align task card layout on mobile.Pull Request (PR) Process:
Closes #12).Before any PR can be merged, the author must confirm the following:
These standards are not static rules but a living agreement. They are enforced through peer review in our PR process and serve as our shared foundation for writing clean, secure, and collaborative code. By adhering to them, we aim to eliminate the chaos of the Alpha phase and build FocusFlow into a robust, professional application.