Hacker Newsnew | past | comments | ask | show | jobs | submit | djblue's commentslogin

I think most programming communities experience fragmentation as they grow. I would say the javascript ecosystem has had an order of magnitude more fragmentation at every layer: package management, server, client, module specification. IMO this is the cost of progress.


True, but the JS community is huge. Sure, not by its own merit, but because of browsers. Still, can afford to be fragmented.

For smaller languages like Clojure the consequences are way worse.


I would say so, I have implemented a pwa https://djblue.github.io/portal/ hosted via github pages for people to browse through their data-structures. You can also connect the ui to a live host and send it data directly with tap> (kinda like console.log in js).


For me the real advantage is the shared information model with the backend that is trivial to serialize/de-serialize with something like transit-clj(s). It's like the benefit of js/node but with richer data structures: keywords, symbols, sets, maps with arbitrary keys, instants, uuids and extensibility via tagging. JSON is great, but EDN is so much better!


https://github.com/mfikes/esprit targets espruino from clojurescript.


Thanks!


Thanks!


https://github.com/djblue/portal - link to the source and usage instructions.


Sweet! Thanks for sharing. I see you're using pure-store to manage your game state. My implementation also uses a redux pattern for state management :)


Thank you too! It's fun seeing the different ways we implemented the same things, even pieces and rotation.

pure-store is a library I made for very simple but efficient state management. The entire source is this file: https://github.com/gunn/pure-store/blob/master/src/index.ts


Your project is substantially superior to mine. It looks so goooooood!


Thanks! I really enjoyed the data modeling aspect of this project. I also ended up modeling the board as a mapping of [row, column] -> color which might be different from the traditional 2D array representation.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: