It's interesting to compare the game play and design. My game is written in Elm and open source if anyone is interested. This website has keyboard inputs (y or n) which is a good idea. My game only does click/touch inputs.
17 karma · joined March 1, 2012
website: http://chrisandrejewski.com/
email: christopher.andrejewski@gmail.com
github: https://github.com/andrejewski/
twitter: https://twitter.com/compooter
It's interesting to compare the game play and design. My game is written in Elm and open source if anyone is interested. This website has keyboard inputs (y or n) which is a good idea. My game only does click/touch inputs.
- Having a global registry of machines does not scale. Anyone building an app won't want to deal with the name conflicts. Having a `displayName` for debugging is fine but that's all. Having people pass the Machine instance to transitions directly is much more reliable/scalable.
- This [...rest] for event handlers is not good. Put those in a dedicated object because if you don't any new prop you add has the potential to break users. It's also bad because it looks like memory gets merged with those methods, making it likely the keys will conflict in view().
- Find a better name for T, it's confusing with Transition. Since it looks like a simple struct, maybe just have people pass {name, to} as plain data.
- You don't provide a rejected Promise example. I am interested how that works since it is something people tend to overlook.
- How the heck do I test my machines?
- A micro-framework that doesn't mention byte-size? Probably worth adding that statistic. My idea of a micro-framework is one that fits in a tweet.
- Write up how you expect this to be used. I don't think you could use this to build a real app because there's no way compose machines, only switch between them. You'd end up with huge machines because UIs are trees.
Happy to discuss more.
I spent over a year building the framework and a set of libraries around it so that the architecture feels natural to JavaScript developers.
There's only a few of us building apps with it right now, but the stories for doing most anything are covered and as of 2 months ago the framework hit 1.0. It is a safe foundation to build on as I don't plan to ever change it.
http://subtweet.co/ http://chrisandrejewski.com/2015/02/07/subtweet-postmortem.h...
Also I just noticed with Go's Unicode support we can write `const π = 3.14..` if we really wanted.
Just a note: I don't think it is fair to say Go has absolutely no immutability as it was defined, it does have "const". See http://golang.org/ref/spec#Constant_expressions
It takes away a lot of the data-binding cruft that you find in Backbone.View and works well with React without making you switch languages, design paradigms, or add new libraries. The Backbone component makes it easier to build data hierarchies than with plain JS, but I assume other MVC frameworks could be retrofitted to work with React.
[Edit] I found your site, cafecoders.us and would also recommend getting your SEO in place so it is easier to find you. I was using Google and your Whois lookup came before your actual site did. In fact, this submission is ranked higher. I like the idea and would be willing to help if you ever need it, http://bit.ly/MCnWmq (free).
Don't learn Java. The applet is dead. [Java Hate]
It will be interesting to see what becomes of this.
Problems with the sub-system of databasing are too many transactions (I/O) and the speed of getting the data and acting on it is very inefficient.
If you want to talk to me about it in more detail, message me on Twitter: @compooter or get my email at mayorpear.com