Fork me on GitHub
#beginners
<
2019-04-20
>
tabidots01:04:28

Speaking of Parinfer/Paredit… does anyone have an Atom Parinfer/Paredit cheat sheet specifically for Mac with the keys written out? I have a few pet commands that I’ve managed to remember, but I generally find the shortcut key symbols pretty hard to read. Plus I know there must be plenty of commands that I don’t even know exist.

seancorfield01:04:33

@tabidots I got used to having the hot keys for paredit turned off (since several clashed with ProtoREPL) and then defining my own keymap for the commands I wanted to use. I thought the Paredit keys were listed on the extension's website tho'?

tabidots02:04:16

Thanks! It seems like the ones that use the comma key require the comma key to be pressed twice, which is why I initially got thrown off and thought I was reading the symbols wrong (I was working from this http://danmidwood.com/content/2014/11/21/animated-paredit.html and the symbols in Atom’s command finder)

seancorfield02:04:52

If you have ProtoREPL installed with its default keymap in place, it conflicts with several Paredit ones. I've since switched to Chlorine instead of ProtoREPL and that has no default keymap -- but I never got around to removing my customization and going back to Paredit's defaults... until now. So I'll have to get used to the (original) key bindings for slurp/barf again now 🙂

tabidots02:04:23

I’m a bit reluctant to conceive and implement keybindings from scratch, but what are the benefits of Chlorine?

seancorfield02:04:18

Much will depend on your preferred workflow. I prefer a minimal set of dev dependencies and we use Socket REPLs in a lot of our processes -- so we don't use nREPL.

seancorfield02:04:01

I also use Cognitect's REBL as a key part of my workflow, and we use clj/`deps.edn` for running stuff/managing dependencies. So I tend to start REBL in a project, with a Socket REPL, and then connect Atom/Chlorine to that, and run Atom and REBL side-by-side (so I can "inspect" expressions from Atom's editor into REBL and then drill into them).

m373h4n13:04:39

i've created keys as above but still gives this error. why

sirromdev13:04:09

Hey, new to clojure/(script) and coming from a js background, how do I go about creating ui-components? Is there a standard library/framework that would emulate the likes of css in js coming from react?

codestar816:04:32

Have you looked at Vue JS or Web components. I am trying to avoid the dependency stuff in React JS.

codestar816:04:09

I am preparing to try Vue JS and Web components with Clojurescript. However, I made mistake of locking myself into using Haml with framework helpers. So my views are tightly coupled.

m373h4n13:04:38

@sirromdev I started yesterday so I am also newcomer but this tutorial helped alot -> https://www.jacekschae.com/courses/learn-reagent-free

sirromdev13:04:57

Thanks @m373h4n

naomarik14:04:12

Why does the second thread macro cause an exception in the latest clojurescript?

k.i.o15:04:41

@naomarik i think you better ask that question in #clojurescript

naomarik15:04:01

@k.i.o I have, got no bites 😉

alexcatalina20:04:59

is there a quick way of installing libraries or everything should be project-dependent?

lilactown20:04:08

typically everything is defined in a project's deps.edn / project.clj / etc.

alexcatalina20:04:50

let’s fire cider up then

didibus22:04:48

@alexcatalina Basically, libraries in Clojure are lazy installed. In that, they are downloaded and installed on first run. So say P1 declares a dependency on X1 in deps.edn, when launching P1 the first time, X1 will be downloaded and installed in the global cache. Now later, if P2 declares a dependency on X1, when launched, it will just use the already downloaded X1 from the global cache.

didibus22:04:02

But Clojure on its own does not look for sources in the global cache. It will always look for them from the project classpath.

didibus22:04:28

deps.edn can be used to add some of the libs in the global cache on the classpath