Skip to content

Commit

Permalink
Now with formatting
Browse files Browse the repository at this point in the history
Trying to write an FAQ
  • Loading branch information
Benjaminsen committed Sep 21, 2013
1 parent e271d48 commit 3f74915
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,27 @@ Full info at http://extendjs.org

FAQ:
-------------------------
JavaScript has great prototypical class inheritance, so why write this?

<dl>
<dt>JavaScript has great prototypical class inheritance, so why write this?</dt>
<dd>
While writing, a yet to be released HTML5 game engine, I felt a need for a better way to re-use and extend basic primitives. Over the past years I also spend a large amounts of time working with C# and ActionScript 3 and I really missed the more powerful class system from those languages.

ExtendJS started out as a simple scope hack, allowing for code execution during prototypical class instantiation. From there it was trivial to add method and value copying and overloading and the project took of from there.

For more than a year I revisited the project multiple times, fixing bugs and making the syntax simpler. The version existing today is far from the original version and I must have rewritten it more than five times from scratch in an attempt to simplify and resolve issues.
</dd>
<dt>I still don't understand why JavaScript needs this?</dt>
<dd>Granted, by itself ExtendJS does not do much, however it's a great base on which to build larger, JavaScript heavy, projects such as games and web applications.</dd>

I still don't understand why JavaScript needs this?
------------
Granted, by itself ExtendJS does not do much, however it's a great base on which to build larger, JavaScript heavy, projects such as games and web applications.

You are using the reserved word super in your code and it won't run in older browsers!
------------
Neither will the HTML5 game engine I am working on and I am perfectly happy with this choice. Do a search replace for super to sup and it will happily run in IE6.
<dt>You are using the reserved word super in your code and it won't run in older browsers!</dt>
<dd>Neither will the HTML5 game engine I am working on and I am perfectly happy with this choice. Do a search replace for super to sup and it will happily run in IE6.</dd>

I tried running it in strict mode, it does not work.
------------
The code relies on arguments.callee as part of inheritance, I sadly see no pretty way to fix this. Suggestions are welcome!
<dt>I tried running it in strict mode, it does not work.</dt>
<dd>The code relies on arguments.callee as part of inheritance, I sadly see no pretty way to fix this. Suggestions are welcome!</dd>

I don't like how it automatically adds classes to the global scope.
------------
A simple design choice, if you update the class to return child you can assign the classes however you like.
<dt>I don't like how it automatically adds classes to the global scope.</dt>
<dd>A simple design choice, if you update the class to return child you can assign the classes however you like.</dd>

Your CDN is useless, it does not even support HTTPS!
------------
I am aware; I have yet to collect the community support to put it on CDNJS. Stay tuned for updates.
<dt>Your CDN is useless, it does not even support HTTPS!</dt>
<dd>I am aware; I have yet to collect the community support to put it on CDNJS. Stay tuned for updates.</dd>
</dl>

0 comments on commit 3f74915

Please sign in to comment.