Saturday, January 21, 2012

Some geolocation objects in html5

Here is a model representing position and coordinates in Geolocation API that can be used in HTML 5

Position

Coords: the coordinates in the position class
Timestamp: The time when the location was traced

The Coordinates class varies on browser support

Reference:
Head First HTML5 Programming by Eric Freeman & Elisabeth Robson.

Monday, January 16, 2012

Web Design Navigation Notes

Cederholm(2008) informs several tips in making more flexible navigation using CSS.

  • Imaged based navigation make it impossible for people with poor eyesight to adjust text-size
  • An Unordered or definition list list can be used as a markup for text based navigation to organize navigation items
  • Those kinds of navigation items can be accessed by a wide range of browsers mobile or desktop
  • The text based navigation can be easily modified with out adding or removing images
  • Placing background images creatively can add detail to the navigation design without compromising flexibility
  • Scalability can attained by using ems for font-size, margins, paddings and etc...

For more information on web design:
http://www.webdesign.org/
Headfirst web design
Tips for novices

Reference:

Cederholm, D. (2007). Bulletproof web design, improving flexibility and protecting against worst-case scenarios with xhtml and css. (2nd ed.). Berkeley: New Riders Pub.

Thursday, January 5, 2012

4 Principles of OOP

Encapsulation
Objects keep track of its state internally. Objects have characteristics that should not interact with other objects
Inheritance
Objects can get characteristics from other objects and interfaces.
An objects characteristics can be passed down to other objects similar to the class
Polymorphisim
Object can have many forms to take for different situations
Abstraction
Putting classes in a general to most specific hierarchy. Some characteristics are hidden and do not need to be changed but it can still they can still be modified.
Group objects base on what they can do

Wednesday, January 4, 2012

OOP Encapsulation

Encapsulation in Object Oriented Programming is about keeping data in classes private. The object or data are figuratively placed in a capsule where what is observed by other objects is the capsule not the object or data. inside. This also means that the characteristics of the objects are hidden from direct access. This can mean that the code in the class wont be that affected much with changes in the code made by other people

Purpose:
Protect Object Characteristics from unwanted changes.


Reference:

Head First C#