This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-13
Channels
- # admin-announcements (6)
- # beginners (51)
- # boot (164)
- # braid-chat (49)
- # cider (10)
- # clara (17)
- # cljs-dev (13)
- # cljsjs (51)
- # cljsrn (10)
- # clojars (42)
- # clojure (195)
- # clojure-bangladesh (102)
- # clojure-berlin (8)
- # clojure-canada (1)
- # clojure-chicago (19)
- # clojure-colombia (4)
- # clojure-denmark (6)
- # clojure-russia (15)
- # clojure-ukraine (7)
- # clojurescript (257)
- # code-reviews (10)
- # community-development (292)
- # core-async (13)
- # datomic (26)
- # dirac (4)
- # dunaj (5)
- # dysphemism (5)
- # events (21)
- # funcool (15)
- # hoplon (115)
- # instaparse (31)
- # ldnclj (15)
- # mori-fork (43)
- # mount (5)
- # off-topic (18)
- # om (195)
- # onyx (13)
- # proton (9)
- # re-frame (11)
- # reagent (44)
- # slack-help (14)
- # slackpocalypse (1)
- # spacemacs (10)
- # yada (23)
Is it possible to write Clojurescript with all Javascript interop and have it spit out a standalone Javascript file?
@jeff.engebretsen: that’s just how ClojureScript works
When I look at the getting started it talks about Google closure and it has googl load my namespace. By all interop I mean no reliance on clojure functions so that the outputted .js can be given to a program expecting a vanilla js script file.
@jeff.engebretsen: what you’re saying is just how it works
What about all that google closure stuff? Do I just not declare a namespace and cljs.jar will translate my forms to js code?
Hey guys, new to Clojure, but not new to Comp Sci., however it’s been quite a while since I’ve thought about recursion/depth-first/breadth-first/trees. Anyone have any good resources?
@jeff.engebretsen: what is that google closure stuff - js code
isn't that what you are asking it to do and @dnolen is trying to tell you - that's how it works
so, maybe work up an simple program first before trying to do it differently - just do it and look at it and understand how it works by design
that is why david is always advising people to do the intro as written with no tooling - to demystify things so you understand better
@stuart-weir: you could start with something really simple like https://clojuredocs.org/clojure.walk/walk
this looks hella interesting: https://github.com/laforge49/aatree
recursion is a bit overrated and I like the into
function better - https://clojuredocs.org/clojure.core/into
@meow: I have. It produced a suite of .js files. I'm asking it to take a single .cljs file and output a single .js file. I did the simple program without tooling from the clojurescript quickstart wiki. It produced html script tags.
pretty sure when I was doing cljs with boot that I had one simple html harness and compiled to one .js file except maybe the google clojure js files
here's a half-assed app to look at https://github.com/decomplect/ing/tree/master/informing
here is what it contains:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div id="app"></div>
<script src="app.js"></script>
</body>
</html>
@jeff.engebretsen: @meow: this is in fact covered in the Quick Start - if you want a single file you need to use :advanced
or :simple
optimizations
@jeff.engebretsen: it really pays to do that quickstart a couple of times until it really makes sense - its all there
hello, I was wondering if anyone can help me out with this: https://gist.github.com/datajohnny/3b82660ba27fd80f448c
I am getting that error and I cant explain why
On line 11 are you constructing a new Person record but without the name
and age
args?
I thought I was passing the record that was being evaluated that passed the rule
> clojure.lang.ArityException: Wrong number of args (0) passed to: core/eval6101/->Person—6116
There’s only a couple of places in the code where ->Person
is being used.
Hi, I'm having an issue when trying to start up a new project. My project file is barfing on this `(defproject api-gateway "0.1.0-SNAPSHOT" :description "FIXME: write description" :url "http://example.com/FIXME" :min-lein-version "2.0.0" :dependencies [[org.clojure/clojure "1.7.0"] [compojure "1.4.0"] [ring/ring-defaults "0.1.5"] [org.clojure/data.json "0.2.6"]] :plugins [[lein-ring "0.9.7"]] :ring {:handler api-gateway.handler/app} :profiles {:dev {:dependencies [[javax.servlet/servlet-api "2.5"] [ring/ring-mock "0.3.0"]]}} {:user {:plugins [[com.palletops/uberimage "0.4.1"]]}}) `
:user is a key in :profiles
remove the } that closes :profiles after :dev, and the { before :user