Posts Tagged ‘best practices’

Object Oriented Programming Concepts

These are some concepts and principles object oriented programming, basic ones.

Concepts

Object
An abstraction of a domain-problem entity
Class
Programmatic representation of an object. A class is the blueprint from which individual objects are created.
Instance
Instance is a particular ‘occurrence’ of a class in runtime.

Principles

Principle Reference
Information Hiding
Information hiding in computer science is the principle of segregation of design decisions in a computer program that are most likely to change, thus protecting other parts of the program from extensive modification if the design decision is changed. The protection involves providing a stable interface which protects the remainder of the program from the implementation http://bit.ly/7HgfrJ
Polymorphism In the context of object-oriented programming, is the ability of one type, A, to appear as and be used like another type, B. Polymorphism is not the same as method overloading or method overriding. Polymorphism is only concerned with the application of specific implementations to an interface or a more generic base class. Method overloading refers to methods that have the same name but different signatures inside the same class. Method overriding is where a subclass replaces the implementation of one or more of its parent’s methods. Neither method overloading nor method overriding are by themselves implementations of polymorphism.
http://bit.ly/90rX6
Decoupling Basically, it’s interdependence between systems. In simple terms, if you have class A that uses class B then that’s coupling. Class A can’t work without class B. If there is a common interface between the two, then you could theoretically change class B and still have it work with class A as long as the interface is still there.
http://bit.ly/91Vx2D
Data encapsulation
It´s the mechanism whereby details of implementation are kept hidden from the user. http://bit.ly/5XXJG6


IT: Little things can have massive results

Time ago I heard about some ESPN & CSS thing going on. I remember something about ESPN saving terabytes a day in bandwitdh usage by using CSS for layout instead of tables.

So know I did some research and long story short:

  • ESPN website gets about 1 to 1.3 billion page views per month.
  • By using CSS…
  • Page reduction (estimate) 50 KB
  • Page views/day 40,000,000
  • Projected bandwidth savings:

So… switching from Tables to CSS styling is not such a little thing, and it takes tons of work when you change some existing website and try to migrate it to CSS layout. But the concept of just presentation and content-structure separation can make such an impact can tell you that you don’t need some costly data mining algorithms for getting some nice returns on investment.

Sources:
http://www.mikeindustries.com/blog/archive/2003/06/espn-interview

Mootools scripts for enhancing your html forms

In the past, I wrote about the importance of forms and how to build them properly. In this article, from catswhocode.com , are presented some little but key features that can change user experience when using forms.

Some of them are:

  • Calendar
  • Web 2.0 form
  • Resizable textarea
  • Ajax login form
  • Mootools Form Validation
  • Custom checkboxes, radio buttons and select lists
  • Multiple select
  • Form Validator
  • Textboxlist with autocompletion
Return top

Information

Lacoste Shoes Saletory burch flatsNike Dunk Highchristian louboutin pumpstory burch bagsCheap Air max shoesnike air max 2010air force 1christian louboutin uktory burch shoeslebron shoesLacoste Shoes 2010