Falcons — Assignment5----Code Standards, Sprint Tasks and Plans

Falcons_Group12 Falcons_Group12 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区

Falcons — Code Standards, Sprint Tasks and Plans

ItemContent
CourseEE308FZ Software Engineering — CSDN community 2601_FZU-MU_SE
Assignment RequirementFifth Assignment — Alpha Sprint
Team NameFalcons (Group 12)
ProjectSports Buddy — a sports matchmaking platform for university students
Sprint2026-11-21 to 2026-11-28 (8 days, 4 two-day logs)
Sprint GoalDeliver 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.
ReferencesThe 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

GroupMembersResponsibility in this sprint
Project ManagementHuang Zhiyuan (Team Lead)Schedule, sprint issues, blog collection, integration and submission
Product RequirementsZhang Zile, Ye YifanAcceptance criteria, requirement/implementation alignment, sprint log 1
Frontend DevelopmentLin Zijun, Li Zhenhao, Li Haoze, He Jinghao11 pages, interaction, screenshots, PPT layout
Backend DevelopmentZhang Jingtian, Yu Chenghao, Zhang Xinyu, Xu BoyuAPIs, persistence, deployment
AlgorithmCai YaohuaCredit score rules, test support
TestingWang ShaojieTest cases, E2E, defect management, testing essay

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

ItemRuleExample
Python module / filelower_snake_caseactivity_service.py
Python classPascalCaseActivityService
Python function / variablelower_snake_casecreate_activity()
ConstantUPPER_SNAKE_CASEMAX_ACTIVITY_SIZE
JS filekebab-caseactivity-manage.js
JS functioncamelCaseloadActivity()
CSS classBEM-ish, lowercasesm-btn--primary
Database tablelower_snake_case, pluralactivities, registrations
API pathplural 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.example placeholders.
  • 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 . and pytest -q must pass before a PR.
  • Frontend: npx eslint . and npx 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.

IDTaskOwnerPointsPriorityIssue
S1Auth: login / register API + token persistenceYu Chenghao5P0#4
S2User profile API + UIYu Chenghao, Li Haoze3P0#5
S3Create activity API + form UIZhang Jingtian, Lin Zijun5P0#6
S4Activity list + filters (sport / time / level / campus)Zhang Jingtian, Li Zhenhao5P0#7
S5Activity detail API + UIZhang Jingtian, Lin Zijun3P0#8
S6Sign up / cancel sign-upZhang Jingtian, Li Zhenhao5P0#9
S7Data persistence + seed dataXu Boyu3P0#10
S8Check-in (4-digit code / location)Zhang Xinyu, Li Zhenhao5P1#11
S9Manage activity (attendance)Zhang Xinyu, Li Haoze3P1#12
S10My activities (organized / joined)Yu Chenghao, He Jinghao3P1#13
S11Reviews after activityZhang Xinyu, He Jinghao5P1#14
S12Credit score rules (initial 80, +2 / −10 / −2)Cai Yaohua5P1#15
S13Simplified in-app remindersXu Boyu3P1#16
S14Automated E2E + test reportWang Shaojie5Cross#17
S15Bug-fix bufferAll3Cross#18
S16Demo environment / deploymentXu Boyu2Cross#19

4. Sprint Plan

DayDatePlanned workDeliverable
111/21Auth, profile, data layer; sprint issues createdLogin works end to end
211/22Create activity, list + filtersCreate and browse activities
311/23Activity detail, sign up / cancelJoin and leave an activity
411/24Check-in, manage activityAttendance recorded
511/25My activities, reviewsReview flow works
611/26Credit score, remindersCredit updates after events
711/27Integration, bug fixing, E2E testsStable runnable version
811/28Regression, demo environment, summaryAlpha 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

RiskMitigation
Sprint kickoff alignmentAll sprint issues were created at the start of the sprint; every commit references its issue so the evidence chain stays complete
Frontend/backend integration driftFreeze the API contract in the SRS; daily integration check
Data loss across restartsSQLite persistence + seed script; test restart behaviour
Burn-up chart inconsistent with realityUpdate remaining points at the end of every day
Blog review delayPublish each log on the scheduled day, not at the end
...全文

相关推荐

Claude Code CLI 生态:10 个让命令行变成智能协作者的工具

命令行(CLI)是开发者最原始也最强大的工作界面,而大模型与 CLI 的深度协同正催生新一代智能开发范式。其核心原理在于将自然语言意图映射为可执行、可审计、可迭代的结构化命令流,并通过上下文感知实现环境自适应与错误自愈。这种技术价值体现在显著降低复杂工具链(如 FFmpeg 参数地狱、Stripe 状态盲区、Playwright 浏览器黑盒)的使用门槛,同时保障工程可靠性。典型应用场景覆盖音视频处理自动化、支付故障根因分析、端到端测试诊断、跨语言依赖治理及设计资产语义化检索。本文聚焦 Claude Code

weixin_30632883

Claude Code:从代码补全到深度理解的AI编程代理实践指南

AI编程助手作为现代软件开发的重要工具,其核心原理是基于大语言模型的代码理解与生成能力。通过分析项目结构、理解代码语义,这类工具能够显著提升开发效率。在技术价值层面,AI编程助手不仅提供代码补全,更能实现多文件重构、自动化测试和智能调试等复杂任务。应用场景涵盖从个人项目开发到大型团队协作,特别是在处理陌生代码库和复杂业务逻辑时优势明显。以Claude Code为代表的AI编程代理,通过深度代码库理解和终端命令执行等热词功能,将AI编程从辅助工具升级为真正的智能协作伙伴,实现了从被动响应到主动规划的代际跨越。

zhengdl126

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的智能调度,为开发团队提供完整的自动化开发解决方案,特别适合需要频繁迭代的敏捷开发环境。

???111

Claude Code主动型AI工作流:从安装到高级自动化开发实战

AI编程助手正从传统的问答模式向主动协作演进,其核心原理是通过上下文感知和工具集成实现智能化开发支持。在软件工程实践中,主动型AI工作流能够显著提升开发效率,通过自动化代码审查、智能监控和预测性维护等技术价值,广泛应用于持续集成、多项目管理、智能调试等场景。Claude Code作为新一代AI编程工具,通过Routines自动化流水线、Worktrees并行开发和Subagents分布式任务处理等热词技术,构建了完整的主动协作生态。本文聚焦于如何利用这些热词特性,从基础环境搭建到高级工作流设计,实现AI从被

cuml0912
评论
收藏 已收藏
分享
返回顶部