Nicer assert by replacing the macro

2016-03-29 Thread Oliver George
Hi All This is a little script to producing nicer errors from asserts and pre/post conditions in your clojure code. Examples below, gist includes a readme with some notes. I think the pre/post conditions are the biggest win. Can anyone tell me how to do a similar "assert patch" technique for

Re: Jobs in clojure.

2016-03-29 Thread Jason Basanese
Kyle, I would most definitely like to be put in touch with either or both of these companies. Keep in mind Philadelphia is a bit far from me (Canton MI) and would require relocation. However compromise to achieve great opportunities is simply a part of life. On Tuesday, March 29, 2016 at

Re: Jobs in clojure.

2016-03-29 Thread Jason Basanese
Thank you Miller! That is an extensive and encouraging list I had not run into before. On Tuesday, March 29, 2016 at 8:09:34 PM UTC-4, Alex Miller wrote: > > You can find Clojure companies at: http://clojure.org/community/companies > > There is a #jobs room on the Clojurians Slack channel that

Re: Jobs in clojure.

2016-03-29 Thread Kyle R. Burton
There are at least two companies in Philadelphia that use Clojure: * Relay Network (their engineering office is in center city Philly) * RJ Metrics I don't know if either is looking for interns, I think both are hiring. I used to be at Relay and can put you in touch with people there. I've

Re: Jobs in clojure.

2016-03-29 Thread Alex Miller
You can find Clojure companies at: http://clojure.org/community/companies There is a #jobs room on the Clojurians Slack channel that is a good place to ask about this too. http://clojurians.net/ On Tuesday, March 29, 2016 at 6:25:41 PM UTC-5, Jason Basanese wrote: > > I recently have been

Jobs in clojure.

2016-03-29 Thread Jason Basanese
I recently have been looking for summer internships. However most of the companies I find either do not know what Clojure is or are certain they want nothing to do with it as they would much rather stick to Java or Javascript. Yes I know that Clojure compiles to both of those but this seems to

Re: Reworking :pre condition to add an error message

2016-03-29 Thread Francis Avila
A wonderful hack I read about somewhere is to just use the clojure.test/is macro, which I now do all the time: (require '[clojure.test :refer [is]]) => nil (defn get-key [m k] {:pre [(is (map? m) "m is not a map!")]} (m k)) => #'user/get-key (get-key [] 0) FAIL in

my new favorite s-expr video (seriously)

2016-03-29 Thread Raoul Duke
https://www.youtube.com/watch?v=HnZipJOan54 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To

Re: Reworking :pre condition to add an error message

2016-03-29 Thread Alex Miller
(zombie thread back from the dead... :) I think enhancements on :pre/:post are interesting. http://dev.clojure.org/jira/browse/CLJ-1817 seems like a good place to work on this. On Tuesday, March 29, 2016 at 4:02:25 PM UTC-5, Colin Taylor wrote: > > Would there be interest in a ticket in this?

Re: Reworking :pre condition to add an error message

2016-03-29 Thread Colin Taylor
Would there be interest in a ticket in this? Seems simple enough if (as above) putting the message under the :pre key is acceptable? On Thursday, July 14, 2011 at 3:25:16 AM UTC+12, frye wrote: > > I do think a simple String error message is all that the user of the > function should provide.

Re: flowchart for choosing the right Clojure parallel primitives?

2016-03-29 Thread David Della Costa
Just realized that Leon linked to the slides in a comment on the youtube video itself: http://leon.barrettnexus.com/clojure-west-2015/ 2016-03-29 15:52 GMT-04:00 David Della Costa : > Hi Sergey, I don't have a direct answer for you but this talk at > Clojure/West 2015 by

Re: flowchart for choosing the right Clojure parallel primitives?

2016-03-29 Thread David Della Costa
Hi Sergey, I don't have a direct answer for you but this talk at Clojure/West 2015 by Leon Barrett went over the various options for parallelism in Clojure, and I found it pretty educational myself: https://www.youtube.com/watch?v=BzKjIk0vgzE=PLZdCLR02grLrKAOj8FJ1GGmNM5l7Okz0a=2 Hope that is

flowchart for choosing the right Clojure parallel primitives?

2016-03-29 Thread Sergey Didenko
Hi, Is there a flowchart for choosing the right Clojure parallel primitives? So that you can decide when to just use reducers/fork and when to choose core.async and etc. For example like the flowchart for data types from Chas Emerick -

Re: Render Rails templates in Clojure?

2016-03-29 Thread Erwin Kroon
We are running Clojure and Rails in the same JVM with JRuby (with our own library ring.rack [1] and Zweikopf [2]). Depending on the templates, you can probably use only Zweikopf (so you can reuse gems). Our problem was that with Rails, it is often all or nothing, which makes me wonder that

Creating clojure "stacktrace"

2016-03-29 Thread Shimon Magal
HI, I'm trying to convert a java stacktrace (generated by a clojure app) to a clojure stacktrace, just to use an internal util. That means, that I go over the stacktrace and try to assemble what they were. In the process, I was wondering what are all the ways of defining anonymous functions -