<div dir="ltr"><div><div>> I consider objected oriented programming to be a Bad Thing in general.<br><br></div>I personally would like to know the reasoning for that. It seems a pretty heavy handed dismissal of an approach to programming.<br>
<br></div>Will Weaver<br><div><div>
<br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 5, 2013 at 3:38 PM, Lennart Sorensen <span dir="ltr"><<a href="mailto:lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys@public.gmane.org" target="_blank">lsorense-1wCw9BSqJbv44Nm34jS7GywD8/FfD2ys@public.gmane.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Feb 05, 2013 at 02:53:40PM -0500, Scott Elcomb wrote:<br>
> I'm not really a fan of coffeescript but have to admit some interest<br>
> in Microsofts' typescript which also compiles to js:<br>
><br>
> <<a href="http://www.typescriptlang.org/" target="_blank">http://www.typescriptlang.org/</a>><br>
><br>
> As for elegant javascript, anecdotal evidence suggests it's dependent<br>
> on skill level. John Resig's simple inheritance model comes to mind as<br>
> a good example <<a href="http://ejohn.org/blog/simple-javascript-inheritance/" target="_blank">http://ejohn.org/blog/simple-javascript-inheritance/</a>>.<br>
> "Learning JavaScript Design Patterns" by Addy Osmani provides more<br>
> <<a href="http://addyosmani.com/resources/essentialjsdesignpatterns/book/" target="_blank">http://addyosmani.com/resources/essentialjsdesignpatterns/book/</a>>.<br>
<br>
</div>I consider objected oriented programming to be a Bad Thing in general.<br>
<div class="im"><br>
> Some of the node.js developers are downright awe inspiring.  While not<br>
> particularly "elegant," dnsserver.js - an authoritative DNS server -<br>
> is still one of my favorite examples of javascript outside of the<br>
> browser environment.  Clocks in at < 500 lines, comments and empty<br>
> lines included.<br>
><br>
> <<a href="https://github.com/sh1mmer/dnsserver.js" target="_blank">https://github.com/sh1mmer/dnsserver.js</a>><br>
<br>
</div>Not bad.  434 lines (including generous good comments).<br>
<br>
Not sure how much the 'use' statements add toit, but system library use<br>
is not a bad thing.<br>
<br>
OK, apparently it is possible to write pretty decent looking javascript.<br>
I still don't think I will consider it elegant, but that's personal<br>
taste too.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Len Sorensen<br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
The Toronto Linux Users Group.      Meetings: <a href="http://gtalug.org/" target="_blank">http://gtalug.org/</a><br>
TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>
How to UNSUBSCRIBE: <a href="http://gtalug.org/wiki/Mailing_lists" target="_blank">http://gtalug.org/wiki/Mailing_lists</a><br>
</div></div></blockquote></div><br></div>