Homepage: https://codepen.io/cosmic-plus / Follow on Twitter • Follow on GalacticTalk
Pens of the Week use Codepen to host interactive code snippets crafted to maximize their pedagogic impact.
The end-goal is to provide a wide collection of examples that support developers in coding their applications; And to trigger community discussions around the showcased features.
While it was initially intended as a way to exemplify Cosmic.plus libraries, it is gradually growing in scope to teach about various independent libraries & standard features as well.
Documentation, along with open-source libraries, is fundamental for a developer ecosystem to thrive.
If a library makes developers win about 50 hours of work, and 200 persons are using it, then it is 10,000 hours of development time that can be invested into something else. And that's about $500,000 saved.
That's how powerful open-source development can be for crypto communities. And for this to work, good documentation & howtos are required.
Published so Far
- ledger-wallet, Get Public Key
- ledger-wallet, Sign Transaction
- cosmic-lib, Transfer Request Form
- cosmic-lib, Transaction Request
- html-only, Transfer Request
- html-only, Open Trustline Button
- html-only, Sell Token Form
- cosmic-lib, Contract Template
- cosmic-lib, XDR to SEP7 & CosmicLink
- loopcall, Lumen Distribution Explorer
Making the Best of It
You can take full advantage of those pens pedagogic value by going through those steps:
Read the description & play with the interactive content.
Read the keypoints, take time to fully grasp the provided information.
Play with the code, and see if you can create something on your own.
Look at the documentation if some question is buzzing your mind.
Look at the challenges, and see if you can solve one.
Fire a discussion on GalacticTalk if you have anything to ask or to say.
It is important that you challenge your creativity & your ability to make sense of the code on your own. Besides being important programmer skills, those are good ways to improve your understanding & memorization.
Each Pen of The Week contains two challenges. You can solve the easy one using the information provided by the pen, but you'll need to dig in the linked documentation to solve the hard one.
Challenges are first of all a way to learn by doing. The first to share the solution of a challenge can also claim a reward in GILS.
How to Claim the Reward
- Fork a pen.
- Find an elegant solution for one of the challenges.
- Open a trustline to GILS:gils*cosmic.plus.
- Post your solution in the GalacticTalk thread linked from the pen, as well as your public key.
The easy challenge is worth
1000 GILS, and the hard one
GILS are exclusively minted for Pen of the Week challenges (issued by gils*cosmic.plus). For now, GILS have no intrinsic value and should be kept safely in your wallet.
At a later time, Cosmic.plus will release a service that makes use of them - giving them a market value that you'll be able to claim for yourself.
Note that GILS are not expected to hype or to become a speculation vehicle of any sort, but to be a pleasant reward for having written a neat piece of code.
[x] Release cdn.cosmic.plus to link versioned web libraries.
[x] Create a custom Codepen profile for Cosmic.plus.
[x] Come up with a nice format.
[x] Figure out a release process.
[...] Release 100 Pens of the Week over 2 years.
[...] Exemplify Cosmic.plus libraries.
[ ] Exemplify SEPs: 01, 05, 06, 07, 10.
[ ] Exemplify Stellar libraries: stellar-wallet, kelp, ...
[ ] Exemplify ecosystem libraries: stellar-guard, stellar-vanity-address, pubkey avatars, ...
[ ] Exemplify security features: Content-Security-Policy, TweetNaCl secret boxes, ...
About the prize
How the funds will be spent?
Part of the funds will be set aside to finance my work on the series for the next two years. The remaining funds will help to finance the ongoing development on Cosmic.plus libraries.
What if it doesn't get a prize?
I enjoy making those pens. As developers, we're often overwhelmed by many tasks, so taking time to fully search how much a given problem can be simplified is quite refreshing.
I'll continue this series no matter what. I probably won't enlist it again to SCF, as I'm more interested into presenting software; but SCF opened the possibility to do something new and I wanted to play the game, at least for once.
The series is new and still need some traction. Please come by & show us your skills!
The format I use for those pens is entirely new, so I'm interested in your comments about it.
I'm also interested in which libraries you would like to see showcased in this series. Let me know if you have any suggestion.
Thank you for reading 🙂