The World Through the Eyes of John Brennan
If it was 1999 and you were telling you’re friends to visit your web site then this post probably wouldn’t fit you.
Luckily for us, it’s not 1999 and calling what I do “building a website” frankly just hurts my feelings (I much prefer web app because web sites were always static pages without much business logic behind it.)
I haven’t lived on this planet long enough to see many programming languages evolve… that is until JavaScript. When I first started building web sites (yes, I called it that back then), the JavaScript I wrote looked like this:
<html> <head> <title>Party like it was 1999</title> <script language="javascript"> <!-- function changeBg(obj, newColor) { obj.style.backgroundColor = newColor; } --> </script> </head> <body> <a href="#" onClick="changeBg(this, '#00aaff'); return false;">change background</a> ...
This code makes me cringe! For several reasons. Let me explain…
Thanks to guys like Paul Buchheit (G-Mail), we have been able to uncover other extremely useful aspects of JavaScript. As JavaScript comes into its own we need to embrace best practices and write beautiful code.
At work, I’ve noticed that while other engineers write great Java code, their JavaScript sometimes looks like a last minute thought. I don’t think this is due to laziness, but rather that they are unaware of the fact that you can apply design patterns to JavaScript just as you would other languages. Usually.
As I started to write this post I found a bunch of other bloggers already felt the itch and wrote very informative articles on this same topic. So to avoid reinventing the wheel…
Code. Design. Explore. is the blog of John Brennan, a web developer/designer, entrepreneur, and avid world traveler. I currently live in Brooklyn, NY.
I am the Co-Founder of OpenAction and lead Product Development. We are a open platform social enterprise that helps organizations engage with donors, share knowledge with other non profits and empower the community to get involved to create positive impact on our planet.
This blog will mostly be around building cool things, although I will surely include my travel experiences when I am abroad. Feel free to subscribe to a specific category if that is only what interests you. And please connect with me. I always enjoy meeting new, interesting people!
Leave a reply