Fork me on GitHub
#off-topic
<
2021-07-26
>
greg08:07:06

I'm using Clojure for two years now, and still, from time to time I have some wow moments and I talk to my wife about some Clojure features and its superiority (she is a pharmacist, not a programmer, but she understands programming basics and can write very simple Python scripts). Last year I gave her a Ayn Rand's Fountainhead and she finished it a couple months ago. Yesterday she said that Clojure must be like the architecture solutions designed by Roark - practical, robust, simpler and cheaper, and still overlooked or even slurred over by most of the industry 😄

3
👌 6
Ben Sless10:07:23

Does that mean Rich will be put on trial eventually? "Why can't you just use Golang?"

😂 2
Joe12:07:52

That bit in the Fountainhead when Roark re-draws Keating's blueprints, getting rid of his cramped corridors and dark corners, using the space simply and effectively with giant rooms appearing out of nowhere always stuck with me as great description of 'harmonious' design. Clojure reminds me of that a lot.

jjttjj17:07:23

Is there a term for the style of authentication on a web api where a user signs an api request with an api key but doesn't actually send over any sensitive data? Like this: https://docs.pro.coinbase.com/#signing-a-message Also, as a stretch goal, any examples of this done on clojure/jvm?

hiredman17:07:43

to some degree jwt's are an attempt to standardize that pattern

hiredman17:07:15

no, I guess that is not quit right, jwts aren't really about signing a request

jjttjj17:07:21

Yeah I vaguely understood jwts to be just a "password-like thing" sent over the wire rather than signing something and sending that

ghadi17:07:36

authenticates a request without sending credentials

ghadi17:07:14

pretty much ~= HMAC(secret_key, canonicalized request)

hiredman17:07:19

jwts are signed things you exchange, so you could use them for something like that above, but typically you exchange them for some kind of excess token instead

ghadi17:07:46

coinbase's API looks like AWS HMAC

ghadi17:07:56

it's much better than JWT

jjttjj17:07:30

Yup that seems to be it, thanks

hiredman17:07:35

I meant just, well, you could do it with a jwt, not that you should

hiredman17:07:13

yeah, maybe hmac is the right generic term for it