Skip to content

R05-T016: Document alternative solution approaches for two-fer - #116

Open
aryaprajapati66 wants to merge 1 commit into
S-AI-Projects:mainfrom
aryaprajapati66:student/e26b07f0742/R05-T016
Open

aryaprajapati66 wants to merge 1 commit into
S-AI-Projects:mainfrom
aryaprajapati66:student/e26b07f0742/R05-T016

Conversation

@aryaprajapati66

Copy link
Copy Markdown

Description

Authors and documents two idiomatic approaches for exercises/practice/two-fer: parameter expansion (${1:-you}) and positional argument count branching ($#).

Related Issue

Fixes: #20

Type of Change

  • Bug Fix
  • New Feature
  • UI/UX Improvement
  • Performance Improvement
  • Tests
  • Documentation
  • Refactoring / Maintenance
  • CI/CD

Changes Made

  • Created exercises/practice/two-fer/.approaches/parameter-expansion/ (content.md and snippet.txt).
  • Created exercises/practice/two-fer/.approaches/argument-count/ (content.md and snippet.txt).
  • Registered approaches in two-fer/.approaches/config.json with generated UUIDs and updated .docs/introduction.md.
  • Created work/R05-T016/check_snippets.sh verifying all tests pass for each snippet.
  • Authored findings in work/R05-T016/findings.md.

Screenshots / Recordings

N/A (CLI / headless track tooling and test suites)

Testing

Ran work/R05-T016/check_snippets.sh (5/5 tests pass on both snippets).
Ran bin/configlet fmt -e two-fer and bin/configlet lint.
Ran bin/validate_one_exercise exercises/practice/two-fer.

Checklist

  • I have tested my changes locally.
  • I have added or updated tests, if needed.
  • I have updated documentation, if needed.
  • I have followed the project's coding guidelines.
  • I have run the relevant tests and checks.
  • I have addressed previous review feedback, if applicable.

Additional Notes

Both approaches explain the idiomatic trade-offs between default parameter expansion and explicit argument counting in Bash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ARYA PRAJAPATI — R05-T016: Document ways to solve 'two-fer'

1 participant