Job oportunity at Biva

2015-12-17 Thread mynomoto
We have some openings for Clojure programmers at Biva, the first statup to do p2p lending on Brazil. We will build a plataform using a microservices architecture + Clojure and Datomic. Biva is located at São Paulo - Brazil. Remote is not preferred but we could make an exception for the right

Re: Some guidance on how to write good property tests with test.check?

2015-03-29 Thread mynomoto
] (is (valid-vector? d (deftest invalid-vector-test (checking data with less 2 elements in :vec 100 [d gen-data-invalid] (is (not (valid-vector? d) ``` HTH, mynomoto On Friday, March 27, 2015 at 4:13:53 AM UTC-3, John Louis Del Rosario wrote: I have a function I want to try out

Re: How to unit test (defn-) functions?

2014-06-12 Thread mynomoto
You can use a macro. Look how on http://nakkaya.com/2009/11/18/unit-testing-in-clojure/ On Thursday, June 12, 2014 5:44:21 AM UTC-3, Hussein B. wrote: Hi, I like to use (defn-) when it comes to internal implementation functions. But since they aren't exposed, how to unit test them? Of

Re: Why does `lein new` default to clojure 1.5.1?

2014-05-05 Thread mynomoto
The default lein template has clojure 1.5.1 hardcoded. It will only change when it's updated there. You can check the lein ancient help with `lein help ancient`. There you will find how to include clojure on the verification. HTH, Marcelo On Monday, May 5, 2014 4:10:38 PM UTC-3, g vim wrote:

Re: why is this failing on a list

2014-05-04 Thread mynomoto
Roelof, The whole point of something like 4clojure is for you to try to understand how things work and learn how to fix the errors that happen along the way. Open a repl and see what the error tells you. Also, you should have the clojure cheat sheet open to help you find what each function

Re: unconditional append to end

2014-02-10 Thread mynomoto
UTC-2, Alan Thompson wrote: Thank you for the cheat sheet refs. Definitely helpful. Anybody have any insight into the current state of clojuredocs.org? Alan On Sun, Feb 9, 2014 at 9:38 PM, mynomoto myno...@gmail.com javascript:wrote: +1 to the Cheat Sheet although I prefer this version

Re: unconditional append to end

2014-02-09 Thread mynomoto
+1 to the Cheat Sheet although I prefer this version: http://jafingerhut.github.io/cheatsheet-clj-1.3/cheatsheet-tiptip-cdocs-summary.html After you go though the cheat sheet you can try http://clojure.github.io/clojure It's more complete but way less nice. On Monday, February 10, 2014

Re: unconditional append to end

2014-02-08 Thread mynomoto
Maybe you could use mapv and filterv? This way you will always get a vector and conj apends in the end. On Friday, February 7, 2014 10:20:09 PM UTC-2, t x wrote: Consider the following: (cons 1 '(2 3 4)) == (1 2 3 4) (cons 1 [2 3 4]) == (1 2 3 4) (conj '(a b c) 1) == (1 a b c) (conj

Clojure tutorial for Light Table

2014-02-08 Thread mynomoto
Hello, I ported the Light Table ClojureScript Tutorial [1] by David Nolen to Clojure. Also added sections about refs and agents. You can see it on https://github.com/mynomoto/lt-clojure-tutorial If you find some mistake, typo or want to contribute let me know or open an issue or pull request

Re: a problem about Redis client: com.taoensso/carmine

2014-02-08 Thread mynomoto
You can use: (into {} (map (fn [[k v]] [(keyword k) v]) {pass yy, yyy yyy})) On Saturday, February 8, 2014 2:34:44 PM UTC-2, Tao Zhou wrote: lein try com.taoensso/carmine ;; try is from https://github.com/rkneufeld/lein-try (def server-connection {:pool {:max-active 8}

Re: Integration testing in Clojure

2014-01-31 Thread mynomoto
You could also use https://github.com/semperos/clj-webdriver for integration testing. On Wednesday, January 29, 2014 1:47:15 PM UTC-2, Conan Cook wrote: Hi, I'm trying to decide how we should go about testing our services that are written in Clojure. I'm used to doing this using Maven,

Re: [ANN] clojure.java.jdbc 0.3.3 released

2014-01-31 Thread mynomoto
The docs are in http://clojure-doc.org/articles/ecosystem/java_jdbc/home.html. There is also a group: https://groups.google.com/forum/#!forum/clojure-java-jdbc On Friday, January 31, 2014 8:54:12 PM UTC-2, puzzler wrote: I've been having trouble figuring out how to use clojure.java.jdbc

Re: Read file contents as map

2014-01-26 Thread mynomoto
If you are sure that the file doesn't contain malicious code you can use: (read-string (slurp file)) On Sunday, January 26, 2014 11:24:30 AM UTC-2, Paul Smith wrote: Hi, I have a config file that contains a Clojure map. If I slurp that file it obviously returns a string. Is it possible

Re: ANN: Om 0.3.0

2014-01-26 Thread mynomoto
Hi wuqi...@gmail.com, You can just open the file. I got some blank pages when for some reason I wasn't able to reach fb.me. Check your Network tab in the developer tools. On Sunday, January 26, 2014 6:12:52 AM UTC-2, wuqi...@gmail.com wrote: On Saturday, January 25, 2014 8:16:15 AM UTC+8,

Re: [ClojureScript] Re: ANN: Om 0.3.0

2014-01-26 Thread mynomoto
: Everything in the atom should be an associative data structure - either a ClojureScript map or indexed sequential data structure such as a vector, list and lazy sequences are not allowed. On Jan 26, 2014, at 11:19 AM, mynomoto myno...@gmail.com wrote: Hi wuqi

Re: Security implications of code is data/data is code

2014-01-22 Thread mynomoto
this is not a problem. Every user input is a string and you chose how to parse it. There is a edn reader that is safe, but you can use specific parsers depending on the input. Of course if you read and eval the string anything could happen, but nobody would do that. Best, mynomoto

Re: Security implications of code is data/data is code

2014-01-21 Thread mynomoto
, but nobody would do that. Best, mynomoto On Tuesday, January 21, 2014 10:22:11 PM UTC-2, Daniel Compton wrote: I've been thinking for a while about what the security implications are for a homoiconic language like Clojure where code is data and data is code. What protections do you have

Re: Good learning resources for Clojure novice but with a long background i programming, both OO and some Fp?

2014-01-10 Thread mynomoto
With that background I would go with Joy of Clojure by Michael Fogus and Chris Houser. http://manning.com/fogus2/ On Friday, January 10, 2014 10:52:53 AM UTC-2, christian jacobsen wrote: I have +10 years experience of OO programming (C++, C# and a little Java) and a couple of years of FP

Re: [ClojureScript] [ANN] cljs-start 0.0.5

2013-11-27 Thread mynomoto
Then the solution should be the same. As Magomimmo wrote: you need to upgrade to leiningen = 2.2.0 lein upgrade # from the terminal On Wednesday, November 27, 2013 8:40:24 AM UTC-2, bernardH wrote: On Monday, November 25, 2013 7:59:00 PM UTC+1, Magomimmo wrote: what are: - you

[ANN] repetition-hunter 1.0.0

2013-11-01 Thread mynomoto
I released repetition-hunter v1.0.0 - https://github.com/mynomoto/repetition-hunter repetition-hunter is a library to find repetitions in your code. It works in multiple namespaces and gives you the repeated code and it's location on file. You can sort the repetitions by complexity or number

Re: [ANN] repetition-hunter

2013-04-30 Thread mynomoto
Now you can find repetitions in your code across multiple namespaces, Alex. And filter the results. https://github.com/mynomoto/repetition-hunter On Sunday, April 28, 2013 5:45:06 PM UTC-3, mynomoto wrote: Not yet, but doesn't look hard to do. Will put in the todo list. On 4/28/13, Alex

[ANN] repetition-hunter

2013-04-28 Thread mynomoto
Repetition hunter is a library to find repetitions in your code https://github.com/mynomoto/repetition-hunter Happy hunting! mynomoto https://github.com/mynomoto -- -- You received this message because you are subscribed to the Google Groups Clojure group. To post to this group, send email

Re: [ANN] java.jdbc 0.3.0-alpha1

2013-04-19 Thread mynomoto
I also like the new api design. You can just jdbc/execute! and jdbc/query everything. Or almost. I was trying: (jdbc/execute! [INSERT INTO fruits (name, color, flavor) VALUES (?, ?, ?) [apple red sweet] [pear yellow sweet]]) But that doesn't work. Should it? I know that jdbc/insert! works