I do a lot of writing in Python and everything seems to be nicely arranged and easy to follow and then I go to what I've written in Javascript and jQuery and it looks like a mess. It's comparatively hard to follow even much smaller tracts of code.
So here are a couple of resources on organizing Javascript code.
http://alistapart.com/article/the-design-of-code-organizing-javascript
http://addyosmani.com/resources/essentialjsdesignpatterns/book/
http://rmurphey.com/blog/2009/10/15/using-objects-to-organize-your-code/
Recursive algorithms can be slow because they end up solving the same little problems over and over again. To speed them up, you can use a technique called "memoization." Memoization allows algorithms go much more quickly by remembering solutions to problems they have already solved. I’m the recursive algorithm. This blog is my memoization.
Showing posts with label beauty. Show all posts
Showing posts with label beauty. Show all posts
Friday, May 22, 2015
More organized javascript
Thursday, November 20, 2014
Subscribe to:
Posts (Atom)