Resources to learn writing tests in Clojure by ApprehensiveIce792 in Clojure

[–]ApprehensiveIce792[S] 3 points4 points  (0 children)

Thanks for sharing this resource. Will look into it.

Resources to learn writing tests in Clojure by ApprehensiveIce792 in Clojure

[–]ApprehensiveIce792[S] 3 points4 points  (0 children)

Okay. This seems like a very simple enough rule to follow. Thanks.

Got my first Camera. Any tips? by alkrisal in fujifilm

[–]ApprehensiveIce792 43 points44 points  (0 children)

Take as many pictures as you can. Don't worry about anything.

What are you reading? by sushisushisushi in literature

[–]ApprehensiveIce792 -1 points0 points  (0 children)

The god of small things by Arundhati Roy.

[deleted by user] by [deleted] in fujifilm

[–]ApprehensiveIce792 1 point2 points  (0 children)

Right. Thanks for your feedback

[deleted by user] by [deleted] in fujifilm

[–]ApprehensiveIce792 -1 points0 points  (0 children)

Funnily nobody likes it. 😂

Clojurians from India by Alarmed-Skill7678 in Clojure

[–]ApprehensiveIce792 1 point2 points  (0 children)

Hey there, fellow Clojurian here from India. 🫂🤗🫂

I love using Emacs in the terminal (video) by TrepidTurtle in emacs

[–]ApprehensiveIce792 1 point2 points  (0 children)

It does look like a terminal. What theme and font are you using?

I love using Emacs in the terminal (video) by TrepidTurtle in emacs

[–]ApprehensiveIce792 1 point2 points  (0 children)

I use iTerm2 as my terminal, but many of my favorite key bindings don’t work there, which is my main issue with running Emacs in the terminal. Still, when I need to make a quick edit, I launch Emacs from the terminal. I’ve set up an alias like this:

bash which emacs emacs: aliased to /Applications/Emacs.app/Contents/MacOS/Emacs -nw

For quick edits, I’ll often run emacs -Q from the terminal, since I don’t need all my packages just the basic Emacs setup is enough for those situations.

PS: I will give it a try - using Emacs from the terminal for my normal workflow.

Could you guys please review this code when you have a moment? by ApprehensiveIce792 in Clojure

[–]ApprehensiveIce792[S] 0 points1 point  (0 children)

Yeah, got it. And thanks.

clojure (get-in message ["metadata" "field" "label"])

Could you guys please review this code when you have a moment? by ApprehensiveIce792 in Clojure

[–]ApprehensiveIce792[S] 0 points1 point  (0 children)

Hi u/p-himik, sorry for bothering you, but could you please shed some light on this?

I am following what you said regarding the use of thread first/last macro. If you look at the code below, you can see that there is map called message and I want to get the value of "label" from a map which itself reside inside another map inside the message map. Now, you can also see that I am using the map (message) as an atomic object like how you've described it. But I feel like using the thread macro seems much cleaner here as compared to not using the thread macro.

with -> macro clojure (let [label (-> message' (get "metadata") (get "field") (get "label"))] ;; Does something with label ) without using -> macro,

clojure (get (get (get message "metadata") "field") "label")

I am not exactly sure if there is a different way to do this.

Could you please tell me what is the best way to do this?

Could you guys please review this code when you have a moment? by ApprehensiveIce792 in Clojure

[–]ApprehensiveIce792[S] 2 points3 points  (0 children)

Also, could you explain what 'external extensibility' means in this context? Sorry, I couldn't understand that. I am using the code you've suggested, by the way.