Fork me on GitHub
#beginners
<
2023-06-21
>
Sturm00:06:07

Is there a more idiomatic way to add a key to every map in a collection than: (map #(assoc % :new-key true) list-of-maps) ?

M00:06:22

I don't think so. Take your data types. A list of something needs to be mapped over. A map needs an assoc to set a new key / value. This seem perfectly reasonable with those to types in mind.

Sturm00:06:24

Thanks Matt!

M00:06:38

Its a good thing to think about though. Clojure is awesome with how simple code can be written. (Preface with me not being the best clojure coder that exists). I do encourage new folks to take that chance to think through the options because simpler code options do exist here where they don't in other languages. But there is a floor.

Nim Sadeh02:06:38

Is there a good video of someone developing Clojure using REPL-driven development? This style is new to me and I want to learn how to do it well

M02:06:56

You can't beat Rich Hickey who wrote the language. Youtube is an easy start there.

M02:06:23

As for an actual course for new developers, I have not found one.

Bob B02:06:13

there's a Sean Corfield demo where he shows off stuff working at the REPL: <https://www.youtube.com/watch?v=gIoadGfm5T8> and a talk by Stuart Halloway that's sort of about the REPL and ideas for using it: <https://vimeo.com/223309989> and I like "Running with Scissors", again not exactly a demo, but just sort of ideas: <https://www.youtube.com/watch?v=Qx0-pViyIDU>

keychera03:06:33

I think “Show me your REPL” episodes would be helpful, you can search the term in this slack to find some links. I haven’t watched them myself though

Colin (fosskers)03:06:31

One thing to get used to is to testing things directly in the buffer

Colin (fosskers)03:06:42

The comment special form can help with this

Colin (fosskers)03:06:42

My code is filled with those. They make it so I can do quick visual tests of my functions, and they're entirely ignored at normal runtime

Bobbi Towers03:06:58

not video, but the #CKKPVDX53 explains it really well https://clojuredesign.club/

seancorfield03:06:07

@U05D3EAA6FM If you watch any of my videos about REPL-driven development and have any Qs about what you see or hear, feel free to hit me up on DM. Some Qs I may suggest bringing back up in channel so others can chime in.

🙌 2
❤️ 2
Jason Bullers14:06:30

Two that I've found helpful are: https://youtube.com/@emacsrocks (Especially their excellent parens of the dead series) and https://youtube.com/playlist?list=PLhYmIiHOMWoGIMCmCRwMSrWkHJg12vevR

🙌 1
Nim Sadeh14:06:55

thanks - I use VS Code will the emacs tutorial still be applicable?

Nim Sadeh14:06:14

So many good resources!

Jason Bullers15:06:35

Calva in vscode has a lot of the same features as cider for emacs, so I think it translates well enough (different key bindings, similar features). The main takeaway is seeing how people work, though

👍 1
abarylko16:06:09

Two days ago I recorded this https://www.twitch.tv/videos/1850363054 for the Exercism live stream (shameless plug)

kennytilton23:06:25

This is me implementing a missing TodoMVC feature, in the ClojureDart/Flutter/Matrix world. https://www.youtube.com/watch?v=OkotzUNKkUE Note that CLJD has no repl (yet!), but when we save the system recompiles in a second and we see new print output immediately. hth

Aleix Morgadas20:06:41

Hi there! New to the community here

👋 16
2
1