This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-05-06
Channels
- # admin-announcements (6)
- # beginners (147)
- # boot (9)
- # braveandtrue (5)
- # cider (11)
- # cljsjs (1)
- # cljsrn (4)
- # clojure (82)
- # clojure-greece (9)
- # clojure-poland (9)
- # clojure-russia (288)
- # clojure-taiwan (2)
- # clojure-uk (73)
- # clojurescript (123)
- # consulting (3)
- # cursive (26)
- # datascript (4)
- # datomic (32)
- # dirac (56)
- # emacs (11)
- # flambo (2)
- # hoplon (425)
- # jobs-rus (1)
- # lein-figwheel (3)
- # leiningen (16)
- # luminus (42)
- # mount (7)
- # om (1)
- # om-next (2)
- # onyx (8)
- # other-languages (146)
- # quil (3)
- # re-frame (17)
- # reagent (6)
- # spacemacs (2)
- # uncomplicate (8)
- # untangled (71)
- # vim (2)
- # yada (49)
maw ning
> There was a young person in london > whose programs contained mostly functions > they wanted to know > the types that did flow > but in clojure it's all just assumption
Could have added in the rest of the RIPEMD digests, but will see how this one goes first
What do people normally do for properties that are exterrnalised, but need to be "injected" at runtime? e.g., changing a URL from a development URL to a production URL?
there is environ: https://github.com/weavejester/environ
but i seen something like
(def some-url
(if porduction?
āprod-urlā
ādev-urlā))
as well.i usually hide it behind a config namespace, just so I donāt have env var lookups all over the place
so like .... config/url
and config/username
where config is a namespace that pulls in the env stuff?
@glenjamin: Can you give an example?
I do something like:
(ns myapp.config
(:require [environ.core :refer [env]]))
(def config {:url1 (get env "URL" "default")
:url2 (get-or-throw env "URL2")})
The python community seems to be working on typed python: http://mypy-lang.blogspot.co.uk/2016/05/mypy-04-released.html
I was wondering, I'm coercing the response into a json map, and wondering if this is idomatic?
the response is a json structure, but at that stage, just a string in the response from the server.
snake case vs dashed case (lisp case?!) is an interesting question too. you might want to banish snake case from the insides of your clojure application
CamelCase (but not camelCase) gets used for defining things like plumatic/schema things
CamelCase is used for defrecord
and deftype
too as they end up being Java classes or Javascript objects.
@mccraigmccraig: I have a question following on from your presentation this week.
pm me, or in here is fine if you think others might be interested
@agile_geek: my condolencesā¦ pom files suck big time IMHO.
never had the opportunity to use Gradleā¦ but it sounds like it is a very sensible thing to use.
mixture of pom.xml hacks and groovy script/Jenkins DSL. Hugely complicated!
mind it's better than being unable to touch any code except for gerrit reviewing for 10 months out of last 14!
No it's a very complex build pipeline that I've been changing and the dependencies in the pom's needed changing for over 30 projects none of which I have any knowledge of... just my lot atm.
I don't think I've ever succeeded in doing a build using maven that didn't fail at least once the first time it's run.
I have but I start with very small project and first thing I do is build. Then I layer on complexity. It always breaks at some point of course.
Issue is my current role means I don't get involved in the code but I get called in when something breaks or some complex re-engineering is required. This is the pits cos I never have context, and usually there's not even any tests to guide me.
I just hope nobody on this channel banks with the bank I'm currently working for!
Watching @dnolen presenting about Om.next on train atm https://www.youtube.com/watch?v=MDZpSIngwm4 second time I've watched this but few months in between and I'm beginning to see the advantages of the architectural approach.
I used to work for a bank and think the same thing, now I wonder if itās the same bank...
@djanus: I suspect they are all the same!