| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Popcode is a simple HTML/CSS/JavaScript editing environment for use in the classroom. It's a lot like JSBin, JSFiddle, or CodePen, but it focuses on giving specific, immediate, human-friendly feedback when the code contains errors.
Popcode is the official first semester editing environment for the ScriptEd program in the 2016–2017 school year.
You can try out Popcode at https://popcode.org.
The validation system is the main point of this project. Most syntax checkers, linters, and style enforcers tend to provide feedback using language that is geared toward experienced coders, not beginners. Thus, providing a translation of error messages into plain English for students is the overriding concern of this project.
Popcode tends toward strict enforcement of lint and code style, even when enforced style decisions are arbitrary, under the philosophy that giving students one right way to do it eliminates ambiguity and aids the learning process.
Check out the Project Board.
Popcode uses React to render views, Redux to manage application state, Ace as the code editor, Webpack to package the client-side application, and Babel to compile ES2016+JSX into ES5.
Popcode detects code errors using slowparse, htmllint, HTML Inspector, Rework CSS, PrettyCSS, stylelint, jshint, and esprima.
The architecture of Popcode’s code base is best understood through the lifecycle of a user interaction:
Yes please! There are a ton of ways Popcode could be made better. Pull requests, bug reports, feature suggestions are all very very welcome.
When you’re first getting started, I recommend picking a good first issue so you can get your feet wet and make sure you can run a development environment smoothly.
Everyone is welcome to submit pull requests that implement a new feature or fix a bug that you’re particularly passionate about. But if you just want to help out and you’re looking for ideas, I recommend checking out the help wanted label and the ScriptEd Program Managers’ Roadmap, which lists the features and enhancements that the ScriptEd PMs have identified as most beneficial based on observation of hundreds of student users and feedback from dozens of instructors.
Pretty easy. Just check out the code. You’ll need Yarn, which is the cool new NPM. It’s easy to install.
Once you’ve got it just run:
$ yarnThat'll pull down the dependencies. Then run:
$ yarn run devThis will start a local static server, and open it in your browser. The first pageload will be rather slow as it compiles the bundle; after you change files, assets are recompiled incrementally and your browser automatically reloads.
When you're done, lint and make sure tests pass before opening a pull request:
$ yarn testBy default, Popcode’s JavaScript code is compiled to ES5 to support a wide array of older browsers. This can make it difficult to debug errors, however, as the compiled code in the debugger can look quite different from the original source code.
To improve the situation, you can use debug mode, which configures Babel to compile the JavaScript to target only the latest version of Chrome, which supports most modern ES features.
Popcode endeavors to use up-to-date technologies and code conventions to make development as pleasant as possible. Below are links to reference documentation on the major tools:
Popcode is distributed under the MIT license. See the attached LICENSE file for all the sordid details.
These companies generously offer Popcode access to paid tiers of their excellent services, free of charge:
|
|
Feel free to email me at mat.a.brown@gmail.com if you have any questions.
You can find our Slack team, including our #dev channel, here.
| Back | FazBrowse Home | New Git URL |