This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-15
Channels
- # aleph (5)
- # bangalore-clj (1)
- # beginners (53)
- # boot (1)
- # cljs-dev (327)
- # cljsrn (3)
- # clojure (16)
- # clojure-filipino (47)
- # clojure-nlp (4)
- # clojure-russia (1)
- # clojure-spec (3)
- # clojurescript (64)
- # core-async (6)
- # datomic (25)
- # hoplon (5)
- # jobs (5)
- # klipse (2)
- # lein-figwheel (2)
- # lumo (27)
- # om (2)
- # onyx (6)
- # parinfer (4)
- # pedestal (1)
- # protorepl (1)
- # re-frame (31)
- # ring-swagger (1)
- # specter (9)
- # unrepl (11)
is there an idiomatic way to decide if an argument is a fn? there’s fn?
but that doesn’t work for multimethods. there’s ifn?
but that works on lots of stuff like keywords / maps.. is that is good as it gets?
i suppose it is, since who are you as the provider to decide what is and is not a function.. whether it be a keyword accessor or others
Is gorilla-repl the closest Clojure has to ipython notebooks? I feel like jupyter notebooks are "more powerful repls" than most clojure repls I have seen; despite scheme having repl looks long long ago.
There are actually many of these sort of things. If you like Jupyter, there are at least a couple Clojure kernels for it. For example, https://github.com/roryk/clojupyter.
I kind of like gorilla myself, though it needs more in the graphics area. I worked on improving that (it is just Vega, which makes the connection to D3 features nice), but didn't have enough free cycles to make it pollished...
Actually, combining gyptis with gorilla renderer might be a good way to go - it is much stronger than base gorilla plotting. Actually, the right way to go about this probably would be to take gyptis and reagent/re-frame and just make a real state of the art SPA notebook...
Jupyter Clojure or ?? Notebooks are kind of nice - a bit like 'literate' programming. WRT something like emacs, I haven't seen any with the level of editor/ide support you get with things like emacs. Maybe protorepl could be used for that piece?
I can not require moment from npm-depth: $moment is not a function. Clojurescript 1.9.671 `(ns horago.screens.drawer.profile.profile (:require [moment])) (fn [date] (dispatch [:user (assoc @user :dob (.format (moment date) server-df) )]))`
but I don't understand how it can differ from simple cljs dependencies which just works
I've created an issue: https://github.com/bhauman/lein-figwheel/issues/576
I have an Om 0.8.7 project. It's running on a much older version of cljs. I want to upgrade cljs to at least 1.7+. For some reason, the act of doing this only, without touching the Om dependency, throws lots of React errors like
Uncaught Error: Invariant Violation: receiveComponent(...): Can only update a mounted component.
I also tried upgrading Om to 0.9.0 with no difference there. When upgrading to Om 1.0, I get a different error: Uncaught ReferenceError: ReactDOM is not defined
Any guidance is appreciated so I can at a minimum use a recent version of cljs with my standard Om Now codebase.those look like react errors.. react is constantly introducing breaking changes so it's a bit of a pain to upgrade.
have you tried doing the standard lein clean
& rebuild stuff? @ajs
If it doesn't work, try lein deps :tree
to see if any other lib is causing dependency conflicts (the order of deps in your project.clj matters)
i did indeed find an obscure item in my deps that was depending on an older version of Om, which causes the wrong React to load. Still trying to fix. In general, should I expect that my Om 0.8.7 code base should run under Om 1.0.0 ? I use only the om.dom and om.core namespaces, which I think I have read are compatible with 1.0.0
Hi guys, is there a good example for react native with expo using clojurescript with routing? I cloned this repo(https://github.com/vikeri/re-navigate), but nothing happens when I press the button. Is there a better example I could look at? Thanks
henshinger: This is not using expo, check out this repo for expo: https://github.com/seantempesta/expo-cljs-template
Why doesn't hiccup allow for seqs as part of it's dsl? I find it some what of burden to always have vectors.
@drewverlee at least in Reagent flavour of Hiccup sequences have a special meaning: their elements are turned into child React components. There's a nice explanation at https://presumably.de/reagent-mysteries-part-1-vectors-and-sequences.html
and it looks like the same logic is applied to seqs in the original Hiccup lib:
user=> (html [:ul
(for [x (range 1 4)]
[:li x])])
"<ul><li>1</li><li>2</li><li>3</li></ul>"
Is that why list comperhesions are so popular in hiccup? I was looking at some example code and it tended that direction
I'm not sure I understand the question
Meaning, it seems easier to construct the HTML using a list comperhensions because they keep things as vectors.
trying to use garden css with my project; with re-frame, reframe template creates a clj and cljs dir.. the clj dir contains the css.clj, can garden css use a css.cljs file
No, that wouldn't work because garden is compiled to CSS using a separate clojure (java) process.
I have tried to use two bootstrap component wrappers and both seem to be using om.tools, and with the latest cljs, om.tools seems to fail with nullpointerexception when compiling
the repositories are https://github.com/racehub/om-bootstrap and https://github.com/luxbock/bootstrap-cljs
Neither of these compile for a hello-world type of app with latest cljs and latest om
due to om-tools
does anyone else have this same problem?
I'm just looking for a component library to use with my om project
Material-UI has the unwanted proprety of generating style directly on each DOM element
creating much bloat and condemning any CSS efforts to '!important' spam
does anyone have a good component library they use
@roklenarcic polymer? 😉
@mobileink is there a cljs wrapper for it?
hm polymer seems to be more than just a component library
roklenarcic: definitely just a comppnent lib, or rather framework, maybe. but it does extend the standards, for example the data binding stuff. stiil, that's built on the standards.
@roklenarcic that's actually kind of a ticky question. i've wriiten https://miraj-project.github.io, which you could call a wrapper, but that's not the only way to do it. main point is webcomponents are very useful (poke around in https://www.webcomponents.org). but i've only just started thinking how to integrate them with reactish components. i see no reason why they should not work very well together, but i have no details yet.
I've used MaterialUI wrapper but I'm not satisfied with its styling characteristics
and it's not very pretty
the fact that it will spit out a massive style attribute on every element in a list is just terrible
I know that's just design
highly recommend http://bulma.io if you’re looking for easy styles without any Javascript opinions mixed in
i looked for a long time and never liked material / semantic because you had to accept their js. bulma was such a breeze by comparison
I'm basically looking for 2 things: styling and possibly some basic animation (like handling list item being collapsed/expanded without having to actually write that as om state atom property)
@roklenarcic e.g. the polymer paper components implement material design. but other componemts do not, so you choose.