cond-let

2013-10-05 Thread Ryan Waters
Is cond-let not part of modular contrib? If it is, where is it? All the github sources I've seen either: a) define it themselves b) use a non-contrib library c) grab it from monolithic (old) contrib clojure.org is no help, nor is dev.clojure.org. clojuredocs.org is out of date and clojure-doc.o

Re: type checking clojure.set with core.typed

2013-10-05 Thread Ambrose Bonnaire-Sergeant
Hi Stu, Please try lein-typed "0.3.1". It should fix the build issue. Thanks, Ambrose On Tue, Oct 1, 2013 at 8:42 AM, Ben Mabey wrote: > Heh, based on that my guess is that no one has used lein-typed in CI > builds. :) I've submitted a PR to Ambrose to exit with a non-zero code > when type

Re: cond-let

2013-10-05 Thread Andy Fingerhut
This wiki page can answer some questions of the form "where did contrib library X go later?", but it says nothing about clojure.contrib.cond: http://dev.clojure.org/display/community/Where+Did+Clojure.Contrib+Go It is straightforward, if a bit tedious, to 'git clone' a copy of all current con

Re: cond-let

2013-10-05 Thread Andy Fingerhut
And given your locale, I would highly recommend the #clojure IRC channel. On Sat, Oct 5, 2013 at 8:45 AM, Ryan Waters wrote: > Is cond-let not part of modular contrib? If it is, where is it? All the > github sources I've seen either: > a) define it themselves > b) use a non-contrib library >

Re: [ANN] mod-lang-clojure for Vert.x 0.2.0 released

2013-10-05 Thread Hans-J. Schmid
Hi Toby, would it be possible to have the ring-vertx-adapter as a jar that we can include as a dependency in our Clojure projects? Couldn't find anything on Clojars or Maven and the sample code uses embedded vertx. Kind regards, Hans-J. On Wednesday, September 18, 2013 1:49:38 PM UTC+2, Toby C

Re: cond-let

2013-10-05 Thread Ryan Waters
I'm glad I didn't miss anything too obvious! Sometimes it's hard to know when to continue to look on my own vs. calling out for help (but potentially wasting other people's time). Thank you for your time and good suggestions. On Sat, Oct 5, 2013 at 12:07 PM, Andy Fingerhut wrote: > And given y

Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
I am going through this Heroku tutorial https://devcenter.heroku.com/articles/clojure-web-application. I am getting the following error when I try to create a table in the local Postgresql database user=>(sql/with-connection (System/getenv "DATABASE_URL") (sql/create-table :testi

Teaching Clojure to students (how ?)

2013-10-05 Thread bernardH
Hi all, I intend to (ab)use my authority as a teacher to enlighten unsuspecting students about Clojure. On the plus side, I may give them insights that they did not even know they needed. On the minus side, I cannot expect (all of) them to be curious about Clojure. Hence, I want to make a "dema

Re: Teaching Clojure to students (how ?)

2013-10-05 Thread Moritz Ulrich
I wouldn't be too stiff about your list of novelties. It's easy to shrug off homoiconicity (e.g. the syntax) or dynamic typing as 'bad' things. Don't overwhelm starters with complex (but nice) stuff. Don't neglect the obvious: Clojure's API (clojure.core) is *super* simple. Clojure has a really n

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
I figured that I need to keep the command window where I initialized the database open. What I thought was hung autovacuum launcher, it was actually the LOG. So in another cmd window I tried to created the database "shouter" but I get databse creation failed error. What am I doing wrong? c:\>c

Re: Teaching Clojure to students (how ?)

2013-10-05 Thread Rich Morin
On Oct 5, 2013, at 15:01, bernardH wrote: > 1. identify what novelties Clojure brings to the table to Java developers A while back, I made a start on a page describing Clojure's "Key Concepts". There may be some useful stuff there; feel free to email me with comments. -r -- http://www.cfcl.c

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
It seems that the it did not create the database because it already existed! But now I am having a problem with the next command to export the database to the shell (as explained in the tutorial): c:\Users\a\CLOJURE\shouter>export DATABASE_URL=postgresql://localhost:5432/shout er 'export' is no

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Bruce Adams
(System/getenv "DATABASE_URL") is returning nil. This will happen when the system environment variable DATABASE_URL is not defined. - Bruce On Sat, Oct 5, 2013, at 04:54 PM, Zeynel wrote: I am going through this Heroku tutorial [1]https://devcenter.heroku.com/articles/clojure-web-applicati o

Re: Teaching Clojure to students (how ?)

2013-10-05 Thread zcaudate
what about teaching them how to use the tools - like emacs and light table. i find it easier to demonstrate the value of something by just using it... And explaining the language constructs as you go along... Like writing a simple web app - say with the ring stack, or doing some animations with

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
Thanks. I found this article https://devcenter.heroku.com/articles/connecting-to-relational-databases-on-heroku-with-java and I tried c:\Users\a\CLOJURE\shouter\src>heroku config !No app specified. !Run this command from an app folder or specify which app to use with --app APP. I

Re: Trying to use Heroku and Postgresql

2013-10-05 Thread Zeynel
In the tutorial they add DATABASE_URL while deploying, at the last step: https://devcenter.heroku.com/articles/clojure-web-application#deploy with this command: $ heroku addons:add heroku-postgresql:dev -> Adding heroku-postgresql:dev to stormy-fog-408... done, v2 (free) I don't understand

Re: Teaching Clojure to students (how ?)

2013-10-05 Thread Takahiro Hozumi
Hi, If I were a programming teacher, I would have students re-realize what one can achieve with programing in general at the start because people's action always come from their inner motivation. To enumerate concrete benefits and success story like TV shopping may be effective. Without motivation

Re: Teaching Clojure to students (how ?)

2013-10-05 Thread u1204
In my opinion it is probably a mistake to focus on the language features in the beginning. They will be meaningless. My approach would be to ask them to write a simple chess program. They have to learn to do conditional statements, iteration, work with data structures, and do I/O. They have to par

Re: Teaching Clojure to students (how ?)

2013-10-05 Thread Lee Spector
I teach Clojure, to beginning programmers among others. IMHO you really have to specify your audience(s) before any advice about how best to teach Clojure (or programming in general) will make much sense. FWIW in my context one of the most important things is to get them started in an environm

How to go about 'proving' why dynamically typed languages are better.

2013-10-05 Thread zcaudate
I'm a little bit miffed over this current craze of `types` and `correctness` of programs. It smells to me of the whole `object` craze of the last two decades. I agree that types (like objects) have their uses, especially in very well defined problems, but they have got me in trouble over and ov

[ANN] Leiningen 2.3.3 released

2013-10-05 Thread Phil Hagelberg
I'm happy to announce the release of Leiningen 2.3.3. * Add support for `:uberjar-merge-with`. (Marshall Bockrath-Vandegrift) * Better error message for `-m` arg in `run` task. (Aleksandar Simic) * Support stdin when using `:eval-in :nrepl`. (Phil Hagelberg) * Add directory entries to jar files. (