This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # aatree (23)
- # admin-announcements (13)
- # announcements (3)
- # beginners (49)
- # boot (50)
- # braid-chat (1)
- # braveandtrue (37)
- # cider (72)
- # cljs-dev (25)
- # cljsjs (6)
- # cljsrn (37)
- # clojure (78)
- # clojure-berlin (8)
- # clojure-greece (1)
- # clojure-ireland (2)
- # clojure-madison (14)
- # clojure-new-zealand (2)
- # clojure-poland (10)
- # clojure-russia (149)
- # clojured (2)
- # clojurescript (49)
- # community-development (6)
- # core-async (37)
- # cursive (1)
- # data-science (1)
- # datomic (30)
- # emacs (4)
- # euroclojure (1)
- # funcool (1)
- # graclj (1)
- # hoplon (17)
- # jobs (2)
- # jobs-rus (45)
- # ldnclj (6)
- # mount (12)
- # off-topic (124)
- # om (270)
- # onyx (131)
- # parinfer (70)
- # perun (2)
- # proton (168)
- # re-frame (32)
- # reagent (29)
- # ring-swagger (8)
- # testing (9)
- # yada (39)
hey @olegakbarov, can you say more? maybe you want a variant of partial? memoize will return a function that you can call like your original function, but it will use the parameter you pass on calls to that function as a key to cache the results. it will return the cached value on subsequent calls with that same parameter value. it sounds like perhaps you want to ensure that subsequent calls to a function are made with the same parameter value- which is a common use case for partial
Learning Clojure is so frustrating!!! I feel like I just suck at it
@joshua.d.horwitz keep at it, it's worth it! What are you having problems with?
Sometimes there can be quite a "hump" and it can be frustrating until the next light bulb moment.
hello, small question: if in a repl I do
(use 'name-of-namespace.core :reload, how do i make libraries required in that namespace available in the repl? For example, I required selmer.parser :as selmer, but am getting a
CompilerException java.lang.RuntimeException: No such namespace: selmer error.. What am I overlooking?
@timaeus: please show us exactly what you typed in, just to rule out a typo
@timaeus: then you probably want to
otherwise, you'd have to recreate the require and use clauses in the user namespace
@val_waeselynck: ah ok, is this for any particular reason?
let me be clearer: require is not transitive in what it makes available in your scope
html-templating.core won't give you the aliases defined in it
So to wrap up:
1. if you just want to call selmer, stay in your user namespace and just
(require '[selmer.parser :as selmer])
2. if you want to recreate the experience of writing html_templating/core.clj in the REPL,
I’ve learned the syntax, and different functions etc.. but trying to think the Clojure way or functional way is for some reason being incredibly hard.
Or even reading and seeing what a program is doing is difficult
@joshua.d.horwitz: Read other functional books, like The Little Schemer
@meow: Thanks! I do have that, but haven’t worked all the way through it
I could maybe do a blog about working through it in Clojure
@joshua.d.horwitz: something that helped me get in the functional mindset was the Programming Language course in Coursera
@joshua.d.horwitz: Do a blog. And use Perun - it will help you learn functional thinking.
that link only has the ML portion, you might be able to get the Racket part also. He does a great job of showing the strengths and weaknesses of both.
@roberto: I'll be at Clojure/west - what kind of drink am I buying you for your birthday?
I really appreciate it
What do you guys use as far as blogging?
I use cryogen http://cryogenweb.org/
but you should use whatever you feel comfortable with. Wordpress is a fine to start off with.
@joshua.d.horwitz, I rolled my own. It’s my favorite way to learn a new language.
I have used Cryogen a little bit, seemed pretty cool
Great! I’ll start on that tonight
@meow: Perun seems quite complicated
@joshua.d.horwitz: So? Go to the #C053K90BR channel for support.