Re: [ANN] Discontinuing 4clojure.com

2021-07-12 Thread Brandon R
Thank you Alan for all the work and time put into 4clojure, and thank those of you who've started and contributed to 4ever-clojure! Cheers, Brandon On Sun, Jul 11, 2021 at 2:38 PM Alan Malloy wrote: > I've also exported the problem data: >

Re: Routing for a non-web-app

2021-04-21 Thread Brandon R
Bidi probably would work fine for what you want, but I'll also second the reitit suggestion. On Wed, Apr 21, 2021 at 4:54 PM Harold wrote: > >> ...is intended for use with Ring middleware, HTTP servers... > > > > sorta made me think it wouldn't work in a non-web app. > > > > Understood. > > One

Re: Without breakloop not much of a REPL

2021-01-29 Thread Brandon R
This may be the talk I was thinking of: https://vimeo.com/223309989 On Fri, Jan 29, 2021 at 10:04 AM Brandon R wrote: > I believe what's described in that post is possible in Clojure, at least > to an extent. I can't remember where I saw it described, but I think it was > a talk

Re: Without breakloop not much of a REPL

2021-01-29 Thread Brandon R
I believe what's described in that post is possible in Clojure, at least to an extent. I can't remember where I saw it described, but I think it was a talk by Stuart Halloway. IIRC you can configure Clojure to run clojure.main/repl when an exception is thrown, this puts you into a new sub repl

Re: Adding value to the map in sql statement dynamically

2020-12-20 Thread Brandon R
Hey Ganesh, Just to add to the above information, you may want to check out next.jdbc as well. If you specifically want to create functions that return complete SQL, then maybe this isn't what you want, but I just wanted to point out parameterization in next.jdbc since you mentioned you're new to

Re: Idiomatic program for someone new to Clojure

2020-12-14 Thread Brandon R
Hey James, Another small suggestion is you can just pass println to map, since it takes 1 argument in your case. (map println (sort builds)) But here, since you just want to perform side effects, maybe run! would be a better function to use. (run! println (sort builds)) This would cause it to

Re: Using asynchronous clojure function

2020-12-13 Thread Brandon R
Hi Ganesh, The function called wrap-content-type takes in another function (handler) and a content-type (string), and returns a function. The function that it returns takes in a request, which is a Clojure map, that has the keys that you see in the ring docs here:

Re: Rationale behind github.com/cljctools project

2020-09-01 Thread Brandon R
Hello and welcome! Always great to have more people contributing ideas and tools. On Mon, Aug 31, 2020 at 10:52 PM Sergei Udris wrote: > Thank you! > Encore indeed is a useful tool. > > However, as of now my focus is a non-commercial dream project : > usef-facing system , a multiplayer game. I

Re: First post: how to mimic a Java List with types?

2020-08-15 Thread Brandon R
Hey Jack, Just been a fly on the wall for this convo, and aside from offering a specific solution, which others have done, I'm pretty certain this can be done with just protocols and records. Make a record (like your type) that implements the two protocols (like your interfaces). You could

Re: Cognitect joins Nubank!

2020-07-24 Thread Brandon R
> > I think this will *compound interest* in the language! > Brilliant. Also that's quite an impressive *army* of Clojure devs at Nubank. On Fri, Jul 24, 2020 at 6:17 AM David Powell wrote: > > I think this will *compound interest* in the language! >> > > Nice. And congratulations Clojure

A template for web apps with user auth using OWASP best practices and pedestal

2020-06-16 Thread Brandon R
Hello, I've recently been working on building a web app with authentication using specific libraries and tooling that I wanted to use. I separated that part out into a separate repo for my own reference later, and for anyone who might find it useful. https://github.com/bpringe/auth-template

Re: Conceptual difference between map and class

2020-04-04 Thread Brandon R
I think someone else here could give a more detailed answer, and I will just give it from my point of view. What I really like about Clojure, coming from C# and JavaScript (and toying with other languages), is the immutability, the concurrency features, the state management features, and the

Re: A Concise Guide to Getting Started with Clojure on Windows

2019-10-17 Thread Brandon R
ibuting_site > > Alex > > On Thursday, October 17, 2019 at 7:47:03 PM UTC-5, Brandon R wrote: >> >> Hello Clojure friends, >> >> I wrote this guide for a friend, and it's something I wish I had when I >> was starting. This guide focuses on Windows, VS Code,

A Concise Guide to Getting Started with Clojure on Windows

2019-10-17 Thread Brandon R
Hello Clojure friends, I wrote this guide for a friend, and it's something I wish I had when I was starting. This guide focuses on Windows, VS Code, and Calva, though much of it would be useful to non-Windows users as well. Beginner resources have come a long way since I started, but there can

A Clojure wrapper for the Coinbase Pro exchange API

2018-08-31 Thread Brandon R
I've just released a library that serves as a wrapper around the Coinbase Pro cryptocurrency exchange API. I'm still pretty new to Clojure, and took this project on partly for learning, and because I figured it was something someone would actually find useful. This is my first open source