Actually, after discovering functional mixins I stopped use classes in CoffeeScript.
On Thursday, November 1, 2012 6:02:49 PM UTC+4, Alexey Petrushin wrote: > > Take a look at functional mixins, it's native to JS, requires > zero-framework and looks much simpler and powerful than prototype - based. > > > https://speakerdeck.com/anguscroll/how-we-learned-to-stop-worrying-and-love-javascript > > On Thursday, November 1, 2012 2:37:33 AM UTC+4, Fredrik O wrote: >> >> Hi everyone, >> >> I have just wrote a simple lightweight OOP helper and want your thoughts >> about it, the implementation "Class" is only 15 lines of code, but I have >> included some tests, to show how it works. Any feedback is welcome. I am no >> JavaScript expert, but if I have not done anything wrong should always the >> generated class be 100% compatible with normal JavaScript prototype >> inheritance and indeed be very fast. It allows a user write somewhat more >> simple code. >> >> See gist: https://gist.github.com/3990372 >> >> What are your thoughts? Both negative and positive. And please, one >> comment is better than no one, so please comment if you read through the >> gist. >> >> Thanks in advance! >> > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
