falsey)
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Occasional consulting on Agile
www.exampler.com, www.twitter.com/marick
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email
walks.
Mileage varies.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Occasional consulting on Agile
www.exampler.com, www.twitter.com/marick
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send
)
(throw-exception hi) = (throws Error #h.))
You could use what's already built in, since conditions are built on top of
exceptions. Alternately, you could write condition-specific checkers
specialized to clojure.contrib.condition. I could help you with that.
-
Brian Marick, Artisanal Labrador
) =streams= (range)))
https://github.com/marick/Midje/wiki/Using-stateful-functions-as-prerequisites
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://exampler.com/tmp/ring.pdf)
www.exampler.com, www.exampler.com/blog
or failed. I have it on my list to make such a connection,
just because people expect it.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Occasional consulting on Agile
www.exampler.com, www.twitter.com/marick
--
You received this message because you are subscribed
://www.vimeo.com/20798376
http://www.vimeo.com/20963938
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://exampler.com/tmp/ring.pdf)
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received
in the tracker if it turns out you were right but Midje was
wrong.)
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://exampler.com/tmp/ring.pdf)
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received
'clojure.contrib.condition) in the repl and in your program?
Thanks for the offer of help. I decided that going monadic would be cleaner.
I'll revisit this if I turn out to be wrong.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http
like semantic versioning myself, but I think considerations are different for
peripheral libraries like mine than they are for the foundational core of the
whole shebang.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http
. If that's a style you like, you may be interested in this:
http://www.vimeo.com/19404746
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://exampler.com/tmp/ring.pdf)
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
for a 2.0.
I agree. My gut tells me 2.0 implies promises about the ecosystem and
ease-of-adoption. Clojure 2.0 would be overpromising. Better to underpromise
and overdeliver, as they say.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming
or something else I'm doing wrong.
Please enlighten.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://exampler.com/tmp/ring.pdf)
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message
clojure.test to Midje:
http://www.youtube.com/watch?v=a7YtkcIiLGI (8 minutes)
The entry point to the documentation is here:
https://github.com/marick/Midje/blob/master/README.md
Thank you.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample
In the absence of #'record?, what's the safest way to tell whether a particular
object is a true map or a record?
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://exampler.com/tmp/ring.pdf)
www.exampler.com
)) = (throws Error #Boom)))
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://exampler.com/tmp/ring.pdf)
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message because you are subscribed
On Jan 18, 2011, at 11:29 AM, Brian Marick wrote:
f this were my problem, I'd wonder if I could make the computation accept
functions. Then you could do something like this:
That was a lame solution except in the special case where the first element
must be computed. Here's a better
I'm working on a short book on Ring for the Pragmatic Bookshelf. The first two
chapters are here:
http://exampler.com/tmp/ring.pdf
If you'd like to be a reviewer, send me mail.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample
movies.core (list? (apply list (map identity [1 2 3])))
true
Makes sense to me!
movies.core (list? (list* (map identity [1 2 3])))
false
Huh?
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://bit.ly
] :in-any-order :gaps-ok))
true
;; You can use checkers within checkers:
user (fact {:a 1 :b 3 :c 5} = (just {:a odd? :b odd? :c odd?}))
true
... and so on. You can find a complete description here:
https://github.com/marick/Midje/wiki/Checkers-for-collections-and-strings
-
Brian Marick
!))
(remove-patch ...patch...) = :nothing-of-interest)
@visible-evidence-of-a-side-effect = :happened!))
1855 $ lein midje midje.util.git
All claimed facts (2) have been confirmed.
1856 $
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring
!
visible-evidence-of-a-side-effect :happened!))
(remove-patch ...patch...) = :nothing-of-interest)
@visible-evidence-of-a-side-effect = :happened!))
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://bit.ly/hfdf9T
of the features of other clojure.test alternatives. For
example, it doesn't have the auto-runner that LazyTest does, and it doesn't
have the trimmed stack traces of Expectations. I plan to keep stealing ideas,
though.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author
when I use chatty
checkers (which was inspired by Phlip's assert{2.0} for Ruby
http://www.oreillynet.com/ruby/blog/2008/02/assert2.html)
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://bit.ly/hfdf9T)
www.exampler.com
and change old tests to the new format at your leisure.
(The downside is that if you want the test summaries to be right, you have to
wrap the Midje tests in #'deftest. Otherwise fact successes and failures aren't
counted when you do 'lein test'.)
-
Brian Marick, Artisanal Labrador
Contract
this output:
a
b
c
(nil nil nil)
(See also #'dorun.)
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://bit.ly/hfdf9T)
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message because you
dec) = -1)
(background (around :facts (sql/with-connection db ?form)))
I've worked up an emacs interface, and there are features I'd like other test
frameworks to steal (like chatty checkers).
It will make me happy if you try Midje.
-
Brian Marick, Artisanal Labrador
Contract
/Background-prerequisites
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://bit.ly/hfdf9T)
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message because you are subscribed to the Google
silently spin forever.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://bit.ly/hfdf9T)
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message because you are subscribed to the Google
Groups
.)
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring/ (forthcoming; sample: http://bit.ly/hfdf9T)
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post
On Dec 5, 2010, at 3:32 PM, Alex Osborne wrote:
Is there any way to get the original call form? Something like env? Some
hook into the reader?
Try form
I should have guessed. Thanks.
-
Brian Marick, Artisanal Labrador
Contract programming in Ruby and Clojure
Author of /Ring
.)
-
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author of /Programming Cocoa with Ruby/
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post
the same time, would be happy to join.
-
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author of /Programming Cocoa with Ruby/
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message because you are subscribed to the Google
if I can live on top of lazytest's reporting.
If you want normal reporting, you can wrap Midje facts in deftest:
(deftest numerical-reverser-tests
(fact
(numerical-reverser 103) = 301
(provided
(string-reverser 103) = 301)))
I do that in Midje's tests for itself.
-
Brian
his blog posts illuminating.
I'll be doing a talk on this at Strange Loop, and would also be happy to show
people at clojure-conj.
-
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author of /Programming Cocoa with Ruby/
www.exampler.com, www.exampler.com
it annotate it
with the correct line numbers. That way, a simple keyboard gesture will take me
to the failing line.
Better ideas for fallbacks?
-
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author of /Programming Cocoa with Ruby/
www.exampler.com
it to be good style to make helper functions only as
visible as needed, e.g. by using letfn.
But when I want to test my code, I just dont see a way to access these
local functions for tests.
-
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author
Well, I'll be there even though they've inexplicably scheduled the birthday
party for the day before my birthday.
-
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author of /Programming Cocoa with Ruby/
www.exampler.com, www.exampler.com/blog
I've written a short tutorial for clojure.zip:
http://www.exampler.com/blog/2010/09/01/editing-trees-in-clojure-with-clojurezip/
-
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author of /Programming Cocoa with Ruby/
www.exampler.com, www.exampler.com/blog
with 1 quarter, 2 dimes, 2 nickels, and 10 pennies baked in. Thanks!
-
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author of /Programming Cocoa with Ruby/
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message because
.
-
Brian Marick, independent consultant
Mostly on agile methods with a testing slant
Author of /Programming Cocoa with Ruby/
www.exampler.com, www.exampler.com/blog, www.twitter.com/marick
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post
201 - 240 of 240 matches
Mail list logo