Derek Yuan

A passionate 15 Year old developer from the UK

My Contributions

Open source contributions to various projects.

Open Source Contributions

Android Architecture Samples - Test Refactoring

June 2025

Refactored the TasksTest.kt file in Google's official Android Architecture Samples repository to improve code readability and maintainability. This contribution streamlined the test suite by consolidating test cases, simplifying helper methods, and removing redundant code, making it easier for Android developers to understand and extend the test suite in the future.

PR #1040: refactor TasksTest.kt to be shorter and comments to improve readability

Reviewed by: Gemini Code Assist Bot

The refactoring included several key improvements:

  • Test Case Consolidation: Combined multiple related test cases into more concise and reusable tests to reduce redundancy and improve clarity
  • Helper Method Simplification: Simplified helper methods and introduced new ones for better readability and code reuse
  • Boilerplate Reduction: Removed unnecessary setup and assertions to focus on core functionality
  • Code Formatting: Consolidated annotations and method declarations for more compact, readable code

These changes make the test suite significantly easier to maintain and extend, while still ensuring comprehensive test coverage.

Lines changed: +24 −226 Submitted: June 2025 Status: Open (Pending Approval)

MonkeyType - Chinese Simplified Quotes

June 2025

Contributed 60 famous Chinese Simplified quotes to MonkeyType, a popular typing practice website. The contribution included original Chinese text along with accurate English translations, enhancing the cultural diversity of the typing practice material and providing users with exposure to traditional Chinese wisdom and philosophy.

PR #6620: impr(quotes): 60 more famous Chinese Simplified Quotes

Merged by: Miodec (project maintainer)

Added a collection of 60 famous Chinese quotes, each with careful English translations. The quotes range from ancient Chinese proverbs and philosophical sayings to literary excerpts, covering traditional values, life wisdom, and cultural insights.

Sample quotes include:

  • "A journey of a thousand miles begins with a single step."
  • "Heaven progresses vigorously; a gentleman should persist in self-improvement."
  • "Reading a book a hundred times reveals its meaning."
  • "Those who know are not as good as those who love."
Added: +540 lines Merged: June 16, 2025 Status: Merged

MonkeyType - Typing Practice Website

June 2025

Fixed an issue with the block-style cursor being misaligned on initial page load across multiple browsers. This bug was causing the cursor to be mispositioned when users first opened MonkeyType, requiring a page refresh to correct the alignment. The fix ensures proper cursor positioning on the first page load, improving user experience for all MonkeyType users.

Issue #6639: Block-style cursor misaligned on any browser (on first opening)

Issue reported by: gokulp01

The cursor was misaligned when opening MonkeyType on a new tab in any browser. This issue was reproducible across Chrome, Brave, and Safari browsers in both normal and incognito modes. The cursor would appear correctly positioned after a single page refresh.

PR #6641 Fixed: June 2025 Status: Merged

Youthacks AHA - Add SCSS and Update README

June 2025

Introduced a modular SCSS-based styling system, enhanced project documentation, and improved IDE configuration for the Youthacks AHA project. This contribution modernized the codebase with maintainable stylesheets, a clearer README, and better development workflows.

PR #12: Add SCSS and update Readme

Merged by: mattsoh (project maintainer)

This pull request included several key improvements:

  • Implemented a new SCSS styling system for modular, responsive design
  • Restructured the README.md with a table of contents, installation instructions, and troubleshooting tips
  • Added IDE configuration files for streamlined development in IntelliJ-based IDEs
  • Organized SCSS into base, components, pages, and responsive categories
  • Defined reusable variables and mixins for consistent styling

These changes improved maintainability, developer experience, and project documentation.

Lines changed: +1,804 −10 Merged: June 2025 Status: Merged