-
Notifications
You must be signed in to change notification settings - Fork 120
GSoC '25 - week02 report by Elwin Li #208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| --- | ||
| name: "Elwin Li" | ||
| slug: "elwin-li" | ||
| title: "GSoC'25 Contributor" | ||
| organization: "SugarLabs" | ||
| description: "GSoC'25 Contributor at SugarLabs" | ||
| avatar: "https://i.ibb.co/rGyw3WZM/Untitled-design-1.png" | ||
| --- | ||
|
|
||
| <!--markdownlint-disable--> | ||
|
|
||
| # About Elwin Li | ||
|
|
||
| Elwin is a Google Summer of Code 2025 contributor for Sugarlabs, working on bridging the gap between text-based coding and block coding in MusicBlocks. | ||
|
|
||
| ## Experience | ||
|
|
||
| - **GSoC 2025**: Enhancing the JSeditor through adding code to block conversion, and fully functional debugger | ||
|
|
||
| ## Current Projects | ||
|
|
||
| - [Code to Block conversion](https://github.com/sugarlabs/musicblocks/pull/4707) (Completed) | ||
| - Debugger (WIP) | ||
| - Syntax highlighting (WIP) | ||
|
|
||
| ## Connect with Me | ||
|
|
||
| - **GitHub**: [@ebeetles](https://github.com/ebeetles) | ||
| - **Gmail**: [[email protected]](mailto:[email protected]) | ||
| - **LinkedIn**: [Elwin Li](https://www.linkedin.com/in/elwinsli/) | ||
|
|
4 changes: 2 additions & 2 deletions
4
src/constants/MarkdownFiles/posts/2025-06-07-gsoc-25-Elwin-Li-week01.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
src/constants/MarkdownFiles/posts/2025-06-14-gsoc-25-Elwin-Li-week02.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| --- | ||
| title: "GSoC '25 Week 2 Update by Elwin Li" | ||
| excerpt: "Weekly progress report for JSEditor updates" | ||
| category: "DEVELOPER NEWS" | ||
| date: "2025-06-14" | ||
| slug: "JSeditor-updates" | ||
| author: "Elwin Li" | ||
| description: "GSoC Contributor" | ||
| tags: "gsoc25,sugarlabs,week2,javaScript editor" | ||
| image: "assets/Images/GSOC.png" | ||
| --- | ||
|
|
||
| <!-- markdownlint-disable --> | ||
|
|
||
| # Week 2 Progress Report by Elwin Li | ||
|
|
||
| **Project:** [Advanced JavaScript Editor with MusicBlocks Interactions](https://github.com/sugarlabs/musicblocks/tree/config_driven_conversion/elwin) | ||
| **Mentors:** [Walter Bender](https://github.com/walterbender), [Anindya Kundu](https://github.com/meganindya), [Devin Ulibarri](https://github.com/pikurasa) | ||
|
|
||
| **Reporting Period:** 2025-06-07 - 2025-06-14 | ||
|
|
||
| --- | ||
|
|
||
| ## Goals for This Week | ||
|
|
||
| - **Goal:** Complete and deploy code to blocks functionality with full documentation and begin work on debugger. | ||
|
|
||
| --- | ||
|
|
||
| ## This Week’s Achievements | ||
|
|
||
| **Added All Blocks for Code to Blocks Support** | ||
|
|
||
| I added all blocks that are supported for block to code conversion to be supported for code to blocks conversion. I also added all necessary unit tests, and very [detailed documentation](https://github.com/sugarlabs/musicblocks/blob/master/js/js-export/CONVERSION_GUIDE.md) on how to add new blocks for support. | ||
|
|
||
| **Optimized Files** | ||
|
|
||
| I added a script to minify the JSON config so that musicblocks doesn't need to load the entire large file. I also merged many blocks that have the same path in the AST so that the config looks cleaner, and adding new blocks of the same path is even easier. | ||
|
|
||
| **Deployed Project** | ||
|
|
||
| The code to blocks project has been complete and deployed, as seen in this [merged PR](https://github.com/sugarlabs/musicblocks/pull/4707). To test, simply write your musicblocks program in Javascript in the editor and press the convert button. Note that the only blocks supported are those supported by block to code conversion, so it won't work on every single block possible, but will work on most of them. | ||
|
|
||
| <a href="https://ibb.co/qLNNyH8W"><img src="https://i.ibb.co/V0ggjFGQ/Screenshot-2025-06-14-at-2-25-05-PM.png" alt="Conversion Example"></a> | ||
|
|
||
| --- | ||
|
|
||
| ## Challenges & How I Overcame Them | ||
|
|
||
| - **Challenge:** Minimizing file size of config file | ||
|
|
||
| **Solution:** Merging configs, and using minified JSON for loading. | ||
|
|
||
| - **Challenge:** Never-seen-before git errors when trying to push commit | ||
|
|
||
| **Solution:** Image size as part of the documentation was too large, had to compress it. | ||
|
|
||
| --- | ||
|
|
||
| ## Key Learnings | ||
|
|
||
| - Deepened understanding of git. | ||
| - Improved skills in **debugging**, **code design**, and **collaboration workflows**. | ||
|
|
||
| --- | ||
|
|
||
| ## Next Week’s Roadmap | ||
|
|
||
| - Begin debugger project | ||
| - Being able to set breakpoints in the code | ||
| - Add ability to trigger status block in the code as the debugger | ||
|
|
||
| --- | ||
|
|
||
| ## Acknowledgments | ||
|
|
||
| Thank you to my mentors, the Sugar Labs community, and fellow GSoC contributors for ongoing support. | ||
|
|
||
| --- | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.