This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-10
Channels
- # beginners (140)
- # boot (18)
- # cider (4)
- # cljs-dev (28)
- # clojure (191)
- # clojure-greece (51)
- # clojure-russia (1)
- # clojure-spec (13)
- # clojure-uk (2)
- # clojurescript (38)
- # community-development (26)
- # core-logic (16)
- # cursive (6)
- # datomic (3)
- # defnpodcast (9)
- # editors (1)
- # emacs (1)
- # fulcro (10)
- # immutant (3)
- # jobs-discuss (2)
- # leiningen (17)
- # lumo (24)
- # off-topic (30)
- # quil (12)
- # re-frame (11)
- # reagent (103)
- # remote-jobs (2)
- # shadow-cljs (157)
- # spacemacs (4)
- # unrepl (18)
- # yada (2)
Is there a site similar to https://webglfundamentals.org/ , except written in CLJS instead ?
I would absolutely love it if folks could kick the tires and see if it works in their terminal of choice.
Coming soon: “What’s your favorite Clojure dev environment?” “zsh, why?”
Well, instead of testing out in my favorite terminal, I fired up a spot EC2 instance and connected to it with Prompt 2 on my iPad. After remembering that you still, in the year of our Lord the two thousand eighteenth, have to manually upgrade to JDK8, I can report that Prompt 2 -> Amazon Linux AMI -> lein trampoline run
with the sample repl launcher in -main
allows you to do all the things in the README (apropos, doc, source, inline eval) perfectly.
Hi, I'm new to cljs. Do you think AWS-Amplify can be used with cljs, re-frame or reagent https://github.com/aws/aws-amplify
@quang yes, cljs interoperates just fine with javascript libraries. reagent is a cljs binding to react, so you can interoperate with react-based libraries, though it can be a bit tricky to learn the details of react interop
if you are just starting out and don’t have a lot of existing baggage, I’d recommend going straight to shadow-cljs, which makes interop much easier and also lets you drop the baggage of a dependency management tool like lein or boot, at least initially
so shadow-cljs will help me interop aws-amplify with reagent, and that's how I can use cljs with aws-amplify?
not quite. shadow-cljs will make it easier to import any npm module. in fact, you just use npm to install the module, and then import it. it’s not always 100% perfect, but it is really smooth for most modules. reagent interop is just a skill you have to learn--there are a set of functions you need to call to when you are using a javascript-provided react component in a reagent project
do you think aws-amplify will work with re-frame? I was going to use re-frame before I heard about aws-amplify
i don’t see why not. i messed around with re-frame and decided i don’t need the complexity involved in it. i just use straight reagent
I'm glad it could be possible to use cljs with aws-amplify. Thanks for pointing me in the right direction. @lee.justin.m
The other thing to keep in mind @quang is that you can always start out using the “raw” AWS javascript SDK and then move to Amplify later as a DRY/cleanup refactoring
in much the same way you might first write out a more-verbose form where every piece is explicit, and then once you’re happy with it, make another pass or two replacing (fn [x] ...)
with #(...)
, reordering forms with ->
, and so forth
you could always start with the uglier-but-less-intrusive stock SDK and then go back and put in Amplify goodness later
yeah I'm not sure what Amplify is, it seems kind of like create-react-app
which is like webpack
... and it also seems to wrap the SDK?
you can definitely use HOCs with cljs/reagent. join #reagent too if you start going that way because it’s hella confusing just reading the docs. i just worked through this problem with someone today in #reagent and we talked about how somebody oughta write a blog post 🙂
yeah, I too am new to Amplify but it appears to me to be just a bunch of syntactic sugar to ease the process of using AWS services in React apps
which, speaking as someone who prototyped getting Cognito and per-user S3 running in a React Native app the sugar-free way a few months back, is super welcome
but I don’t think it’s giving you any net-new capabilities, it’s just wrapping AWS services for you