|
| 1 | +--- |
| 2 | +title: "DMP ’25 Week 01 Update by Justin Charles" |
| 3 | +excerpt: "Week 01 focused on understanding and creating the path file to render the outlines for the Svg Paths for different brick types." |
| 4 | +category: "DEVELOPER NEWS" |
| 5 | +date: "2025-06-09" |
| 6 | +slug: "dmp-25-justin212407-week01" |
| 7 | +author: "Justin Charles" |
| 8 | +description: "Member and DMP'25 Contributor at SugarLabs" |
| 9 | +tags: "dmp25,sugarlabs,week01,justin212407" |
| 10 | +--- |
| 11 | + |
| 12 | +<!-- markdownlint-disable --> |
| 13 | + |
| 14 | +# Week 01 Progress Report by Justin Charles |
| 15 | + |
| 16 | +**Project:** [Music Blocks 4 Masonry Module](https://github.com/sugarlabs/musicblocks-v4/issues/430) |
| 17 | +**Mentors:** [Anindya Kundu](https://github.com/meganindya/) |
| 18 | +**Assisting Mentors:** [Walter Bender](https://github.com/walterbender/), [Devin Ulibarri](https://github.com/pikurasa) |
| 19 | +**Reporting Period:** 2025-06-02 - 2025-06-08 |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## Goals for This Week |
| 24 | + |
| 25 | +- **Goal 1:** Figure out the constants required for building the outline of the different brick svgs. |
| 26 | +- **Goal 2:** Find out formulae for creation of dynamic parts for the creation of the brick outlines. |
| 27 | +- **Goal 3:** Creating functions for rendering different brick types given a set of parameters. |
| 28 | + |
| 29 | +--- |
| 30 | + |
| 31 | +## This Week’s Achievements |
| 32 | + |
| 33 | +1. **Identified core constants for SVG brick outlines** |
| 34 | + - Analyzed existing functions to extract constants and segment lengths. |
| 35 | + - Documented fixed edge sizes and arc parameters required for rendering base brick structure. Here is the doc regarding the same - https://docs.google.com/document/d/1AUlA2leDJIfV3ZXceLhCaITftExq6c5BcUBMZOtZBvE/edit?usp=sharing |
| 36 | +2. **Derived dynamic formulae for brick segments** |
| 37 | + - Broke down SVG path logic to understand variable-dependent segments (e.g., based on presence of notches or arguments). |
| 38 | + - Reverse-engineered svg paths into configurable logic blocks. |
| 39 | + |
| 40 | +3. **Implemented param-based render logic for brick types** |
| 41 | + - Created functions to output valid SVG paths. |
| 42 | + - Ensured functions deliver the correct kind of brick based on the parameters given to it. |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +## Challenges & How I Overcame Them |
| 47 | + |
| 48 | +- **Challenge:** Understanding how fixed and dynamic SVG path parts interac |
| 49 | + **Solution:** Visually inspected path output, compared it to expected segments, and mapped patterns to conditional logic. |
| 50 | + |
| 51 | +- **Challenge:** Ensuring proper rendering across all brick types |
| 52 | + **Solution:** Used example bricks for side-by-side validation; gradually modularized logic to support extensibility. |
| 53 | + |
| 54 | +--- |
| 55 | + |
| 56 | +## Key Learnings |
| 57 | + |
| 58 | +- Gained clarity on **brick geometry constants** and their significance in SVG construction. |
| 59 | +- Improved ability to **translate SVG paths into conditional logic functions**. |
| 60 | +- Strengthened understanding of **segment chaining**, **arc-to-curve translations**, and **parametric shape rendering**. |
| 61 | + |
| 62 | +--- |
| 63 | + |
| 64 | +## Next Week’s Roadmap |
| 65 | + |
| 66 | +- Complete the path file to begin rendering bricks dynamically via input-driven SVG generation. |
| 67 | +- Create React components for different brick types. |
| 68 | +- Collaborate with mentors to refine design and implementation plans. |
| 69 | + |
| 70 | +--- |
| 71 | + |
| 72 | +## Acknowledgments |
| 73 | + |
| 74 | +Thank you to my mentors, the Sugar Labs community, and fellow contributors for your continued guidance and support! |
| 75 | + |
| 76 | +--- |
| 77 | + |
| 78 | +## Connect with Me |
| 79 | + |
| 80 | +- GitHub: [@justin212407](https://github.com/justin212407) |
| 81 | + |
| 82 | +- LinkedIn: [Justin Charles](https://www.linkedin.com/in/justin-c-663840297/) |
0 commit comments