Andrew Ducker (andrewducker) wrote,
Andrew Ducker
andrewducker

Wrestling with Javascript, part 53 of an infinite series

I got to spend two hours working on my feed-posting revamp today. Which I spent turning lots of disparate bits of code into a class. Which, in any language that wasn't Javascript, would have taken me fifteen minutes. And in the case of Javascript lead to me spending around a third of that time learning about the way it binds to "this", the uses of "that", constructors, and the rest of the time carefully refactoring code to make it all work with my pseudounderstanding.

I think I now have a better grasp on things, from my playing around, of what has access to what, and how. Fascinating stuff, language design.



Original post on Dreamwidth - there are comment count unavailable comments there.
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 19 comments