Fork me on GitHub
#admin-announcements
<
2015-08-18
>
magnars13:08:44

I made a screencast making a game with Clojure and ClojureScript: http://parens-of-the-dead.com hopefully it'll show how quick and fun it can be to use our language of choice. simple_smile

fogus (Clojure Team)13:08:12

Clojure + Zombies == Win

pxlpnk14:08:14

@magnars: I loved it. when will the next part be released?

magnars14:08:42

glad to hear that simple_smile I'm aiming for a release every weekend until the game is done.

cored14:08:16

magnars: that's awesome, do people need to have previous experience with the language?

magnars14:08:25

it is not a tutorial by any means - I'm moving at a brisk pace. It does show how quickly you can get stuff done with a powerful language tho.

cored14:08:07

magnars: powerful language? hm that's sounds kinda vague. Don't you think?

cored14:08:11

measure by what exactly?

magnars14:08:56

"stuff" is vague too. That's fine - I'm not here to provide scientific proofs. I'm just here to entertain and hopefully inspire.

cored14:08:59

magnars: got it

sveri14:08:01

@cored: have you read "out of the tar pit"?

cored14:08:26

sveri: nop

cored14:08:58

tranchis: thanks

tranchis15:08:18

until page 20 more or less, the rest is not really necessary

sveri15:08:19

@cored: Well then, go ahead, one of the best papers I think on the topic of power or, better, the opposite and then come back and answer the question yourself 😉

cored15:08:42

sveri:cool

jonas15:08:24

@magnars: Have you played Zombies!!! the board game? It’s a great game http://www.twilightcreationsinc.com/en/boardgames/zombies.html

magnars15:08:07

while I have quite the sizable boardgame collection, I haven't had a chance to play Zombies!!! yet. Thanks for the tip simple_smile

magnars15:08:18

@jonas: I think my favourite boardgame at the moment is Catacombs https://boardgamegeek.com/boardgame/57390/catacombs - which also features Zombies, but not as prominently.

jonas15:08:38

@magnars: Looks great!

nullptr15:08:15

magnars: did you do the art yourself? really polished.

magnars15:08:42

The web design on http://www.parens-of-the-dead.com is done by a friend. simple_smile The pictures on the tiles is google image search tho.

nullptr15:08:54

Yes, was referring to the web / social presence stuff — your friend did a great job

paulb15:08:56

Observing your workflow in those screencasts is very helpful to me, thanks for making them!

magnars15:08:12

glad to hear that, thanks simple_smile

crisptrutski16:08:35

@magnars: awesome videos! some of the most fluid workflow i’ve seen, certainly inspire me to pimp and master my emacs further simple_smile

crisptrutski16:08:10

one thing noticed in first video is the use of dissoc in your lifecycle - that’ll actually downgrade to a regular map without the lifecycle

crisptrutski16:08:09

not a problem with how you’re using it, but probably better not to spread anti patterns - heard that stuart sierra shames antipatterns on his blog so a bad combination 😉

magnars16:08:46

oh, that is excellent feedback - I'll add that to a clean-up episode for sure. Thanks! How should this be done then?

crisptrutski16:08:55

(assoc this :server nil)

malabarba16:08:59

Now I'm curious. Why is dissoc worse than assoc nil?

tcrayford16:08:09

dissoc on a record returns a map

tcrayford16:08:12

assoc nil returns the record

nullptr16:08:04

and this is why people like type systems...

malabarba16:08:22

I see... Good to know!

andrewhr17:08:01

anyone knows the reason to keep this divergent behaviors on records?

swizzard17:08:16

i think the idea is that there’s no guarantee that (dissoc k my-record) won’t dissoc one of the record’s ‘core fields'

juhoteperi17:08:32

@andrewhr: https://github.com/clojure/clojure/blob/6f4a49b9618e63ad24df430ea7a48830958f9c58/src/clj/clojure/core_deftype.clj#L226-L229 Fields can’t be removed from a class so if a base field is disassociated from the record the data can’t be represented as such record anymore

swizzard17:08:44

well there you go simple_smile

andrewhr17:08:45

@juhoteperi: makes pretty much sense... thanks!

cored18:08:05

what do you guys think about the book Living Clojure ?

Alex Miller (Clojure team)18:08:40

you should buy 5 copies

andrewhr19:08:36

I guess they are so awesome that you end up literally eating the books

cored19:08:16

alexmiller: because ...

cored19:08:24

alexmiller: you are totally right, ordering

profil20:08:10

@magnars: That's some sick emacs kung fu! I'm jealous of your workflow

nberger20:08:37

@magnars: Nice workflow indeed. Are you using slamhound to add missing namespaces, or something else?

nberger21:08:53

Seems like it's clj-refactor.el ... well, I'll stick with slamhound in my vim, which is awesome, but slower

val_waeselynck21:08:35

@magnars: I wish you had filmed you keyboard while doing this

magnars21:08:26

hehe, thanks for the kind words simple_smile you should know it didn't go so smooth on the first attempt. I did all the coding for an episode in one take, so, well, I had to restart over a few times.

nullptr22:08:35

i’d never seen ido-vertical-mode, might have to try that

juhoteperi22:08:39

I was nearly able to implement resolve-missing using refactor-nrepl in Vim: https://github.com/Deraen/vim-cider/compare/38a79fa63ddc5c01afba0feddb502ed5bb782799...master Just needs a way to modify ns form