r/programming • • Oct 03 '16

How it feels to learn Javascript in 2016 [x-post from /r/javascript]

https://medium.com/@jjperezaguinaga/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f#.758uh588b
3.5k Upvotes

852 comments sorted by

View all comments

Show parent comments

10

u/yogthos Oct 03 '16 edited Oct 04 '16

I recently open sourced a Clojure/Script app my team uses internally. Might be useful as a reference. My team has been working with ClojureScript for about a year now, and it's been a great experience.

Only things you need to get running are a copy of the JDK and Leiningen. ClojureScript has some really nice tooling such as Figwheel that does hot code loading in the browser. We're using the Reagent library that's based on React and it's been working very well for us especially coupled with re-frame.

All you need to get started once you have the JDK and Leiningen installed is the following:

lein new reagent-frontend myapp

This will create a new project using the reagent-frontend-template. You can now navigate to the project and run the incremental compiler:

cd myapp
lein figwheel

Then open up public/index.html to see the rendered page. You can now edit the code in src/myapp/core.cljs and see the changes live on the page.

4

u/[deleted] Oct 03 '16

Thanks <3

4

u/bschwind Oct 04 '16

Seriously give it a try. ClojureScript is a joy to work with.

4

u/PancakeInvaders Oct 04 '16

starts reading comment

Okay I know what open source is, don't have to follow the link

Leiningen, what is that ? clicks link

Leiningen is the easiest way to use Clojure

Clojure, what is that ? clicks link

Clojure is a dialect of Lisp, and shares with Lisp the code-as-data philosophy and a powerful macro system

opens 2 tabs and googles 'Lisp' and 'code-as-data philosophy'

read this SO thread about code as data, thinks it seems cool

Lisp is the oldest language family of languages both imperative and functional

googles functional programming

gets told to read Functional Programming For The Rest of Us. Reads it

is tired, decides to stop here for the day

1

u/yogthos Oct 04 '16

Honestly, I recommend just making a project using the steps above and then try some of the examples from here in it. You don't really have to worry about any abstract points to start using the language. Also recommend this free book as an intro to Clojure.

7

u/toula_from_fat_pizza Oct 04 '16

It's as if I just read the article again...

1

u/yogthos Oct 04 '16

How is that?

1

u/[deleted] Oct 07 '16
lein new reagent-frontend myapp

This is Vogon poetry of the JS world.

2

u/yogthos Oct 07 '16

The whole JS world is Vogon poetry if you ask me.