Falcons — Assignment5----Code Standards, Sprint Tasks and Plans
Falcons — Code Standards, Sprint Tasks and Plans
| Item | Content |
|---|---|
| Course | EE308FZ Software Engineering — CSDN community 2601_FZU-MU_SE |
| Assignment Requirement | Fifth Assignment — Alpha Sprint |
| Team Name | Falcons (Group 12) |
| Project | Sports Buddy — a sports matchmaking platform for university students |
| Sprint | 2026-11-21 to 2026-11-28 (8 days, 4 two-day logs) |
| Sprint Goal | Deliver a runnable Alpha version of the core flow: login → discover → create/join an activity → check in → review, with persistent data and a first automated test suite. |
| References | The Method of Construction (Zou Xin); Alibaba Java Development Manual v1.3.0; Huawei internal code standards; ESLint + Prettier; FastAPI and SQLAlchemy documentation |
Team and Repository
| Group | Members | Responsibility in this sprint |
|---|---|---|
| Project Management | Huang Zhiyuan (Team Lead) | Schedule, sprint issues, blog collection, integration and submission |
| Product Requirements | Zhang Zile, Ye Yifan | Acceptance criteria, requirement/implementation alignment, sprint log 1 |
| Frontend Development | Lin Zijun, Li Zhenhao, Li Haoze, He Jinghao | 11 pages, interaction, screenshots, PPT layout |
| Backend Development | Zhang Jingtian, Yu Chenghao, Zhang Xinyu, Xu Boyu | APIs, persistence, deployment |
| Algorithm | Cai Yaohua | Credit score rules, test support |
| Testing | Wang Shaojie | Test cases, E2E, defect management, testing essay |
- Repository: Falcons-FZU-MU-SE-GROUP12/SportsBuddy
- Sprint issues: Issues #4–#19
- Contributing guide: CONTRIBUTING.md
- Work log: WORKLOG.md
1. Code Standards
1.1 References
- Alibaba Java Development Manual v1.3.0 — naming, constants, collections, exception handling, concurrency.
- Huawei internal code standards — readability, function length, comment discipline.
- Frontend: ESLint (recommended rules) + Prettier.
- Backend: PEP 8 + type hints (Python 3.11+, FastAPI).
1.2 Naming
| Item | Rule | Example |
|---|---|---|
| Python module / file | lower_snake_case | activity_service.py |
| Python class | PascalCase | ActivityService |
| Python function / variable | lower_snake_case | create_activity() |
| Constant | UPPER_SNAKE_CASE | MAX_ACTIVITY_SIZE |
| JS file | kebab-case | activity-manage.js |
| JS function | camelCase | loadActivity() |
| CSS class | BEM-ish, lowercase | sm-btn--primary |
| Database table | lower_snake_case, plural | activities, registrations |
| API path | plural nouns, lower-case | /activities/{id} |
1.3 Formatting
- Indentation: 4 spaces (Python), 2 spaces (JS/CSS/HTML).
- Max line length: 100 characters.
- One statement per line; no trailing whitespace.
- Imports grouped: standard library → third party → local, alphabetically.
- Always use braces / explicit blocks; avoid deeply nested code (max 3 levels).
1.4 Comments and documentation
- Comments explain why, not what.
- Every public API endpoint has a docstring: purpose, parameters, response, errors.
- Every module has a short header comment describing its responsibility.
- No commented-out dead code in
main; delete it or keep it in a branch.
1.5 Error handling and logging
- Never swallow exceptions: catch, log, and return a meaningful error.
- API errors use one format:
{"code": "...", "message": "...", "detail": ...}. - HTTP status codes: 200/201 success, 400 validation, 401 unauthenticated, 403 forbidden, 404 not found, 409 conflict, 500 server error.
- Log at the boundary (router/service); no
print()in production code.
1.6 Security
- No secrets, tokens or real connection strings in the repository; use
.env.exampleplaceholders. - Passwords are hashed; tokens are stored only client-side and never logged.
- Validate and sanitise all input; never build SQL by string concatenation.
- Least privilege for database and deployment credentials.
1.7 Frontend standards
- Mobile-first; layouts must not overflow horizontally at 320 / 390 / 768 / 1280 px.
- One primary action per screen; explicit feedback after every action.
- All user-visible text is consistent (product name: Sports Buddy).
- Use the shared design tokens in
app.css; no ad-hoc colours. - Every page has a loading state, an empty state and an error state.
1.8 Backend standards
- Layered structure:
routers(HTTP) →services(business rules) →models/db(persistence). - Request/response models are explicit Pydantic schemas; no raw dicts across layers.
- Business rules (capacity, credit score, cancellation penalty) live in services, not routers.
- All list endpoints support pagination and stable ordering.
1.9 API and database conventions
- REST resources:
/auth,/users,/activities,/registrations,/reviews. - JSON fields use lower_snake_case.
- Every table has
id,created_at,updated_at. - Foreign keys are explicit; deletions are soft where history matters (e.g., reviews).
1.10 Tooling and enforcement
- Backend:
ruff check .andpytest -qmust pass before a PR. - Frontend:
npx eslint .andnpx prettier --check .must pass before a PR. - CI / PR check: lint + tests run on every pull request; a PR with failing checks cannot be merged.
- Review checklist: naming, error handling, security, tests and documentation are checked in every review.
2. Git and Collaboration Conventions
2.1 Branches
main— always runnable, protected.dev— integration branch for the sprint.feat/<member>-<task>— one task per branch.
2.2 Commit messages
<type>(<scope>): <subject>
type: feat | fix | docs | test | refactor | chore
- Reference the issue:
feat(activity): add sign-up API (#12). - One logical change per commit; no "update" or "fix bug" messages.
2.3 Issues and review
- Every sprint task has a GitHub Issue with owner, points and acceptance criteria.
- Every PR references its issue and is reviewed by at least one teammate before merge.
- The work log (
WORKLOG.md) records every change.
3. Sprint Tasks
Total: 63 story points.
| ID | Task | Owner | Points | Priority | Issue |
|---|---|---|---|---|---|
| S1 | Auth: login / register API + token persistence | Yu Chenghao | 5 | P0 | #4 |
| S2 | User profile API + UI | Yu Chenghao, Li Haoze | 3 | P0 | #5 |
| S3 | Create activity API + form UI | Zhang Jingtian, Lin Zijun | 5 | P0 | #6 |
| S4 | Activity list + filters (sport / time / level / campus) | Zhang Jingtian, Li Zhenhao | 5 | P0 | #7 |
| S5 | Activity detail API + UI | Zhang Jingtian, Lin Zijun | 3 | P0 | #8 |
| S6 | Sign up / cancel sign-up | Zhang Jingtian, Li Zhenhao | 5 | P0 | #9 |
| S7 | Data persistence + seed data | Xu Boyu | 3 | P0 | #10 |
| S8 | Check-in (4-digit code / location) | Zhang Xinyu, Li Zhenhao | 5 | P1 | #11 |
| S9 | Manage activity (attendance) | Zhang Xinyu, Li Haoze | 3 | P1 | #12 |
| S10 | My activities (organized / joined) | Yu Chenghao, He Jinghao | 3 | P1 | #13 |
| S11 | Reviews after activity | Zhang Xinyu, He Jinghao | 5 | P1 | #14 |
| S12 | Credit score rules (initial 80, +2 / −10 / −2) | Cai Yaohua | 5 | P1 | #15 |
| S13 | Simplified in-app reminders | Xu Boyu | 3 | P1 | #16 |
| S14 | Automated E2E + test report | Wang Shaojie | 5 | Cross | #17 |
| S15 | Bug-fix buffer | All | 3 | Cross | #18 |
| S16 | Demo environment / deployment | Xu Boyu | 2 | Cross | #19 |
4. Sprint Plan
| Day | Date | Planned work | Deliverable |
|---|---|---|---|
| 1 | 11/21 | Auth, profile, data layer; sprint issues created | Login works end to end |
| 2 | 11/22 | Create activity, list + filters | Create and browse activities |
| 3 | 11/23 | Activity detail, sign up / cancel | Join and leave an activity |
| 4 | 11/24 | Check-in, manage activity | Attendance recorded |
| 5 | 11/25 | My activities, reviews | Review flow works |
| 6 | 11/26 | Credit score, reminders | Credit updates after events |
| 7 | 11/27 | Integration, bug fixing, E2E tests | Stable runnable version |
| 8 | 11/28 | Regression, demo environment, summary | Alpha release + report |
Each two-day window produces one sprint log with a burn-up chart, running screenshots, commit/issue links and test results.
5. Definition of Done
- Feature works end to end in a real browser
- Unit / API tests pass; no console errors
- Code reviewed and merged with the issue reference
- Docs updated (API or README)
- Running screenshot or GIF captured for the sprint log
6. Risks and Mitigation
| Risk | Mitigation |
|---|---|
| Sprint kickoff alignment | All sprint issues were created at the start of the sprint; every commit references its issue so the evidence chain stays complete |
| Frontend/backend integration drift | Freeze the API contract in the SRS; daily integration check |
| Data loss across restarts | SQLite persistence + seed script; test restart behaviour |
| Burn-up chart inconsistent with reality | Update remaining points at the end of every day |
| Blog review delay | Publish each log on the scheduled day, not at the end |
相关推荐
Claude Code CLI 生态:10 个让命令行变成智能协作者的工具
命令行(CLI)是开发者最原始也最强大的工作界面,而大模型与 CLI 的深度协同正催生新一代智能开发范式。其核心原理在于将自然语言意图映射为可执行、可审计、可迭代的结构化命令流,并通过上下文感知实现环境自适应与错误自愈。这种技术价值体现在显著降低复杂工具链(如 FFmpeg 参数地狱、Stripe 状态盲区、Playwright 浏览器黑盒)的使用门槛,同时保障工程可靠性。典型应用场景覆盖音视频处理自动化、支付故障根因分析、端到端测试诊断、跨语言依赖治理及设计资产语义化检索。本文聚焦 Claude Code
Claude Code:从代码补全到深度理解的AI编程代理实践指南
AI编程助手作为现代软件开发的重要工具,其核心原理是基于大语言模型的代码理解与生成能力。通过分析项目结构、理解代码语义,这类工具能够显著提升开发效率。在技术价值层面,AI编程助手不仅提供代码补全,更能实现多文件重构、自动化测试和智能调试等复杂任务。应用场景涵盖从个人项目开发到大型团队协作,特别是在处理陌生代码库和复杂业务逻辑时优势明显。以Claude Code为代表的AI编程代理,通过深度代码库理解和终端命令执行等热词功能,将AI编程从辅助工具升级为真正的智能协作伙伴,实现了从被动响应到主动规划的代际跨越。
Claude Code AI编程助手完整配置与连接问题解决方案
AI编程助手是基于大语言模型的智能代码生成工具,通过深度学习技术理解编程语言和开发逻辑。其核心原理是利用预训练模型分析代码上下文,生成符合语法规范的功能代码。这类工具的技术价值在于显著提升开发效率,减少重复性编码工作,特别适用于代码补全、Bug修复和项目理解等场景。在实际应用中,开发者常遇到网络连接和配置问题,比如unable to connect to anthropic services等错误。本文针对Claude Code这一热门AI编程助手,详细解析其代理式编程能力,并提供从环境配置到网络连接的全套
AI协同开发流水线:Claude Code、Codex CLI与Hermes自动化代码生成实践
AI代码生成技术通过大语言模型理解自然语言需求,自动转化为可执行代码。其原理是基于深度学习模型学习海量代码库的模式,根据上下文生成符合语法规范的代码。这项技术的核心价值在于显著提升开发效率,减少重复编码工作。在实际工程实践中,AI代码生成广泛应用于项目初始化、CRUD接口开发、单元测试生成等场景。本文介绍的AI协同开发流水线方案,结合Claude Code的代码生成能力和Hermes的智能调度,为开发团队提供完整的自动化开发解决方案,特别适合需要频繁迭代的敏捷开发环境。
Claude Code主动型AI工作流:从安装到高级自动化开发实战
AI编程助手正从传统的问答模式向主动协作演进,其核心原理是通过上下文感知和工具集成实现智能化开发支持。在软件工程实践中,主动型AI工作流能够显著提升开发效率,通过自动化代码审查、智能监控和预测性维护等技术价值,广泛应用于持续集成、多项目管理、智能调试等场景。Claude Code作为新一代AI编程工具,通过Routines自动化流水线、Worktrees并行开发和Subagents分布式任务处理等热词技术,构建了完整的主动协作生态。本文聚焦于如何利用这些热词特性,从基础环境搭建到高级工作流设计,实现AI从被


