Live data from Hacker News

ClojureScript beginners' home page

clojure-script.org

21–30 of 82 posts

Re: ClojureScript beginners' home page

#21

I've been learning Clojure and ClojureScript in my spare time. I can honestly say that one thing that would make adoption a lot more wide-spread is a better way to include NPM modules in the project. I know that there is a new feature for it, but the documentation was a little cryptic. Ended up just adding some CLJSJS dependencies to my project and giving up on using the NPM module I _really_ wanted to use. In the en…

Try shadow-cljs https://news.ycombinator.com/item?id=16866085 you want npm modules in ClojureScript and you get npm modules in your ClojureScript. If not, then I'm quite sure you can get help from thheller who created shadow-cljs.

I'll have to look at that. It may provide a solution to my problems.

Does shadow-cljs integrate well into an existing figwheel/reagent project?

Re: ClojureScript beginners' home page

#22

I could not get leiningen to install under Win10 a week ago, was quite a sobering experience. Some site that was linked to download from got a 404, then I got directed towards some bat script, which complained about HTTPS certification issues (lol)? Took less than 5 minutes under a linux server though, so thats something, I guess. But still, its kinda mind-blowing how much Win users are ignored.

[deleted]

Re: ClojureScript beginners' home page

#23

I could not get leiningen to install under Win10 a week ago, was quite a sobering experience. Some site that was linked to download from got a 404, then I got directed towards some bat script, which complained about HTTPS certification issues (lol)? Took less than 5 minutes under a linux server though, so thats something, I guess. But still, its kinda mind-blowing how much Win users are ignored.

I saw David adding commands that Windows users need in the docs. Personally I don't like treating Windows users like how I treated Linux/macOS users. You chose Windows, you chose the hard way, you have to figure it out on you own. Post your question to http://clojureverse.org/ see if others can help.

This kind of thinking is not helpful in maximizing adoption for any technology, period.

Re: ClojureScript beginners' home page

#24

Earlier quoted context omitted.

Try shadow-cljs https://news.ycombinator.com/item?id=16866085 you want npm modules in ClojureScript and you get npm modules in your ClojureScript. If not, then I'm quite sure you can get help from thheller who created shadow-cljs.

I'll have to look at that. It may provide a solution to my problems. Does shadow-cljs integrate well into an existing figwheel/reagent project?

I use shadow-cljs as a replacement of figwheel. shadow-cljs is quite powerful already, in development and bundling.

Re: ClojureScript beginners' home page

#25
I haven't found a place that explains the big picture and how everything fits together. Is there a good resource to learn clojurescript for someone who's never done web programming and without having to learn JS?

I'm learning Clojure now (coming from years of C++) and I love it. There is a bit of black magic (lein/cider make cmake look like a shell script) but CJS is a bit daunting b/c it has so many layers. CJS on Lumo on React on JS on the DOM ... I don't actually know what any of those words mean :P

Re: ClojureScript beginners' home page

#26
post #14

Earlier quoted context omitted.

Been working on a cljs project and took me a solid week to get npm integration working. The documentation is either wrong or incomplete on both the official site and the wikis for lein/boot.

Still, please try shadow-cljs https://news.ycombinator.com/item?id=16866085 and join us on Slack.

Yep, that's what I ended up discovering and going with.

However, shadow-cljs REPL integration was also pretty hard to get working with my editor (spacemacs), because most of the tutorials assume you're using lein to build your project.

shadow-cljs is pretty dope though. Almost instantaneous rebuild times and basically no setup besides a small, understandable config file.

Re: ClojureScript beginners' home page

#27

Earlier quoted context omitted.

I saw David adding commands that Windows users need in the docs. Personally I don't like treating Windows users like how I treated Linux/macOS users. You chose Windows, you chose the hard way, you have to figure it out on you own. Post your question to http://clojureverse.org/ see if others can help.

This kind of thinking is not helpful in maximizing adoption for any technology, period.

Agreed. David definitely knows that.

Re: ClojureScript beginners' home page

#28

Earlier quoted context omitted.

I saw David adding commands that Windows users need in the docs. Personally I don't like treating Windows users like how I treated Linux/macOS users. You chose Windows, you chose the hard way, you have to figure it out on you own. Post your question to http://clojureverse.org/ see if others can help.

This kind of thinking is not helpful in maximizing adoption for any technology, period.

Lead developer of ClojureScript here. Agreed, we take Windows support quite seriously.

Re: ClojureScript beginners' home page

#29
post #14

I've been learning Clojure and ClojureScript in my spare time. I can honestly say that one thing that would make adoption a lot more wide-spread is a better way to include NPM modules in the project. I know that there is a new feature for it, but the documentation was a little cryptic. Ended up just adding some CLJSJS dependencies to my project and giving up on using the NPM module I _really_ wanted to use. In the en…

Been working on a cljs project and took me a solid week to get npm integration working. The documentation is either wrong or incomplete on both the official site and the wikis for lein/boot.

It's helpful to post doc problems / questions on the clojurescript-site issues so that it can be improved.

https://github.com/clojure/clojurescript-site/issues

Re: ClojureScript beginners' home page

#30
You might think from the URL or logo that this is some kind of official ClojureScript page, but it's not. The official page is clojurescript.org (no hyphen).

I don't speak in any official way for ClojureScript, but as an enthusiast, I wish this author had chosen a different URL to make that more clear.

Other ideas to mitigate the confusion: using a different logo in the corner; prefixing the html with "unofficial"; and adding a more prominent link to clojurescript.org titled "Official ClojureScript Page".

Post reply on HN