News for hackers. Stuff that matters.
Re:Show HN: Word Champions, a word game written in ClojureSc... by sc4ramouche on Wednesday February 26, 2020 @10:01AM (#22423487)
Hey, thanks for sharing this. Looks good!

How is your experience been with ClojureScript? It seems enticing to me now, considering giving it a try (I’m coming from JS realm).

Re:Show HN: Word Champions, a word game written in ClojureSc... by nathell on Wednesday February 26, 2020 @10:46AM (#22423997)
Overwhelmingly positive. There've been rough edges, and the learning curve is rather steep – especially if you haven't used Clojure before – but it's worth it.

Re-frame [0] in particular has been a joy to use; I've developed a few large apps in it and they've been quite easy to maintain.

[0]: https://github.com/day8/re-frame/

Re:Show HN: Word Champions, a word game written in ClojureSc... by thom on Wednesday February 26, 2020 @12:33PM (#22425166)
My one recommendation going through the code would be to try and separate the game logic out a bit more. There are things spread between the subs, events and db namespaces that could be abstracted out, and ideally separated from any knowledge of the re-frame db or other external concerns.

This might just be my taste, but quite often I'd like to get to the point that I can unit test all of a game's logic, or even play a version of the game in the REPL, before hooking up what are then very thin subs and event handlers.

Re:Show HN: Word Champions, a word game written in ClojureSc... by vga805 on Wednesday February 26, 2020 @11:56AM (#22424788)
I will echo the other repely. in particular, reframe has been a joy to work with and imo made me a better js & react developer