This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-07-28
Channels
- # admin-announcements (28)
- # beginners (30)
- # boot (6)
- # cljs-dev (48)
- # clojure (72)
- # clojure-android (8)
- # clojure-australia (1)
- # clojure-italy (9)
- # clojure-japan (12)
- # clojure-russia (21)
- # clojure-sg (1)
- # clojurescript (109)
- # core-async (11)
- # core-logic (17)
- # cursive (33)
- # datascript (1)
- # datomic (30)
- # dunaj (4)
- # editors (38)
- # events (1)
- # ldnclj (17)
- # off-topic (156)
- # om (2)
- # overtone (1)
- # re-frame (2)
- # reagent (63)
Does anyone have the 'Web development with Clojure' book? I've hit a wall pretty quick in the book where I can't get the results from the exercise.
I think so, let me check - what is the wall?
@grounded_sage: yep - shoot
@colin.yates: Chapter 1 -> Your first Project -> Adding some functionality. The println's are not occurring when submitting a comment.
Can you copy / paste the code as you have it?
are you seeing any printlns_? Can you add some (printlns) in the main (server side) handler and ensure they appear (to make sure you are looking in the right place)
@colin.yates: not quite sure where to put the printlns in the handler haha
so put a (println “I CAN SEE THIS”) at line 5
then restart the server
It just says this after hitting the comment button - Navigated to http://localhost:8080/
consider a println atop save-message
line 34 before the cond
(println {:name name :message message})
@colin.yates: @mj_langford not seeing any printlns at all
I'm suspecting that is is the 'form-to' on line 23
You’re not seing any printlns if you do our suggested tests
I was getting errors evaluating the form in lighttable earlier but it seems to have decided that it's fine now
or with the code you presented?
with the suggested tests
is the project code downloadable somewhere?
I may own the book, but if you know it’s on github somewhere, checking out what’s up would be easier
oh hang on a sec
never mind me. I was looking in the wrong place. Feel like such a noob now haha. Definitely need some sleep 😛
sleep is the power animal for learning
glad you’re right side up now
I can sleep now
thanks !
@grounded_sage: I have learnt many many times to assume it is my fault first and check the basics, hence the println to check the assumptions Glad it’s working now.
if I remember that it’s always my fault, occasionally it’s not my fault. If I forget that it’s always my fault it’s always my fault
@chris - and that’s the recipe for a great marriage as well (or so my wife tells me!)