• Stars
    star
    459
  • Rank 95,377 (Top 2 %)
  • Language
    Clojure
  • Created about 8 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A ClojureScript coding environment for beginners.

Maria

The ClojureScript coding environment for beginners.

(Part editor, part curriculum. A collaborative work by @daveliepmann, @jackrusher, and @mhuebert.)

Why?

Our work is not to teach, but to help the absorbent mind in its work of development. โ€“Maria Montessori

A recurring problem newcomers have with Clojure is that one must learn everything at once: the JVM, and stack traces, and a new editor, and functional programming, and and and.... What if we shielded folks new to Clojure from the complexity of tooling, stack traces, and programming language esoterica? What if we got out of their way and let them feel the power of programming for themselves? This project aims to delay or remove as many of these obstacles as possible so that people can explore.

The Maria editor is a code playground. There is no installation, zero configuration, and explaining how to make it work takes approximately one sentence. Clojure's sharp edges are rounded off, for instance, by wrapping stack traces so errors are presented humanely. A handful of helper functions do the same for types and SVG shapes. We use in-place evaluation because we find it the most effective and humane way to interact with a computer.

The curriculum we use alongside the editor uses progressive disclosure of the language, to prevent overwhelming folks. Instead of explaining all Clojure's many features as a functional, hosted lisp--which is a big topic--we introduce folks to programming and let language features follow. In this spirit, we named the project after pedagogical pioneer Maria Montessori, whose method "stresses the development of a [learner's] own initiative and natural abilities, especially through practical play" and "at their own pace".

Play

So...please go to maria.cloud and play around with it live! :)

Contributing

We welcome your effort to make the beginner's path to Clojure smoother. Here's how:

Contributing to fixing bugs

The most helpful thing you can do is simply play around! ๐Ÿ˜ธ and report bugs as GitHub issues.

Contributing to better error messages

While you play around, please send us any un-wrapped Clojure error you find. We track these in the Error Handling wiki. This is so helpful for making errors easier for new people!

Please edit the wiki directly to add your experience. Or, file a GitHub issue explaining what you were doing and what error came up. Our goal with this is to protect users from jargon-filled error messages, and that requires lots of eyes pointing out all the ways a particular error could cause trouble.

Contributing to the curriculum

Like Clojure itself, the Maria curriculum is open-source, but is not primarily a community effort. We've chosen a particular approach and we write with a particular voice for a particular audience. Therefore other approaches, although valid, may not belong here. With that caveat, those of us who write the curriculum are open to contributions, which have been accepted according to these rough guidelines:

  • for typos, bugs, and obvious mistakes, we actively welcome your issues and pull requests

  • if you built something cool, please show us! :) it may end up in our Gallery of examples, if you're OK with that

  • for more substantial contributions, from suggestions for phrasing up to entirely new modules, we ask that you do the following to be on the same page as us:

    With that shared understanding attained, please get in touch with us by email so we can discuss ideas in depth.

Development

First, copy to your local machine and navigate to the editor directory:

git clone https://github.com/mhuebert/maria.git;
cd maria/editor

Now, within the editor directory, install javascript dependencies and compile stylesheets:

yarn;

build in development mode, start a local server, and live-reload changes:

yarn watch;

When these builds have completed, open your web browser to https://localhost:8701 (note that dev servers are run via https)

running a REPL

The default nrepl port, configured in shadow-cljs.edn, is 7888.

Once connected, the following will print out a list of things you can do:

(require '[shadow.cljs.devtools.api :as shadow])
(shadow/help)

to directly enter the live environment (provided you've opened up your browser):

(shadow.cljs.devtools.api/repl :live)

make a production build:

yarn release;

License

The curriculum is licensed as Creative Commons Attribution 4.0 (CC BY 4.0).

The Shapes and Friendly libraries are distributed under the Eclipse Public License 2.0.

See LICENSE files in relevant subdirectories.

More Repositories

1

shadow-re-frame

Example of shadow-cljs with re-frame, re-frame-trace
Clojure
54
star
2

re-db

Clojure
53
star
3

instaparse-live

Build parsers in your browser using instaparse-cljs (ClojureScript/Reagent)
JavaScript
42
star
4

re-view

Tools for building reactive user interfaces in ClojureScript.
Clojure
42
star
5

inside-out

A Clojure forms library.
Clojure
36
star
6

shadow-env

cljc environment variables with shadow-cljs
Clojure
21
star
7

matt.is-react

Blog written with React and Firebase
JavaScript
15
star
8

chia

Clojure
14
star
9

re-frame-simple

Lightweight syntax for interacting with the re-frame db.
Clojure
14
star
10

shadow-bootstrap-example

Example of shadow-cljs bootstrap usage
Clojure
11
star
11

CodeCap

CodeCap is a tiny visual undo tree UI experiment. Every editor operation is saved, including keystrokes, cursor movements, and selections.
JavaScript
10
star
12

http2facebook

CoffeeScript
6
star
13

firebase-index-server

CoffeeScript
6
star
14

yawn

Clojure
5
star
15

figwheel-pushstate-server

PushState dev server for figwheel
Clojure
4
star
16

js-interop-example

Clojure
2
star
17

cljs-cm-editor

ClojureScript-wrapped CodeMirror editor (personal use / undocumented)
JavaScript
2
star
18

firelisp

Use Clojure(Script) to write Firebase rules
Clojure
2
star
19

cells

just another repo
Clojure
2
star
20

clerk-cljs

Clojure
2
star
21

cljs-static

Clojure
2
star
22

aws-cred-example

Google Sign-In with the AWS client-side javascript sdk in ClojureScript
JavaScript
2
star
23

gapi-example

Google Sign-In ClojureScript example
Clojure
1
star
24

Humpty

Fairy tale codes.
1
star
25

facebook-firebase-stream

CoffeeScript
1
star
26

heroku-yarn-test

JavaScript
1
star
27

KineticHeat

JavaScript
1
star
28

webdev-rethinkdb

A rethinkdb version of the project in Eric Normand's Web Development in Clojure LispCast.
Clojure
1
star
29

deps-root-test

1
star
30

re-frame-live

Clojure
1
star
31

react-fireforms

JavaScript
1
star