JavaScript for modern sites [Part 1]: Unobtrusive JavaScript and object literal syntax

March 28th, 2010

In this post, I’ll discuss some of the techniques that I personally write JavaScript. There’s no right or wrong, this is all my opinion (still, feel free to flame me if you feel it’s necessary :P ). This post is aimed at people that understand basic JavaScript and HTML techniques, and want to see how I code my JavaScript. I will talk about the JavaScript of the past, how it’s changed, and some techniques used in modern JavaScript development. This will probably be a multi-part series if I ever get around to writing more posts :P   Read the rest of this entry »

Daniel15′s Introduction to Object-Oriented Programming

April 11th, 2009

Well, back to posting coding-related blog posts, for now anyways :P . Seeing as a lot of people seem to be confused by Object Oriented Programming, I thought I’d post a quick (or maybe not so quick) post about what OOP is, the main features, and how it can benefit you. This is paraphrased from an assignment I had on OOP last semester at university. I use C# code examples throughout this, but the concepts are very similar in other languages. Note that in this post, I assume you know the basics of programming, and just want to learn more about object orientation.

Now, let’s begin looking at what OOP actually means. At its core, the Object Oriented paradigm consists of classes and objects. A class is a “thing” or entity that has a purpose, and an object is an instance of this entity. For example, a Car would be a class, and my car would be an object (instance of the Car class).
Read the rest of this entry »