Posts

Happy New Year!

It's been awhile since I last opened this blog.. Haven't started anything on this blog last year. Hopefully this year I'll be able to post some useful information to all .net coders out there.

A Review of OOP Concepts

What's OOP? Object Oriented Programming or simply OOP is a way of programming in which you think of Objects and the interrelated methods, functions or properties that each object must contain. There are four important concepts behind Object Oriented Programming these are Abstraction, Encapsulation, Polymorphism and Inheritance. Abstraction It the process of modelling wherein only the needed or the important functions of a class are shown and hide the inner workings to lessen the complexity. Encapsulation Often referred to as information hiding, encapsulation hides data from external access, in C#  access is given through access modifiers such as public, internal and protected. Polymorphism Is simply having many forms and shapes, you may ave many classes which can be used interchangeably, in .Net polymorphism is implemented through interfaces. Inheritance is the ability to create a new class from existing base class, parent class are called base class and the class t...

Decorator Pattern

Decorator

.Net Generics

Let's talk about .Net Generics, what exactly is Generics in .Net. Generics was first introduced in .Net Framework 2.0. What is Generics? "Generics allows you to to create type safe class without committing to the actual class" say that again? It only means that you may create a class that can be used with different types.

Factory Pattern

Been busy for quite some time, now I decided to go back to blogging since I cant seem to remember the tricks I did from my previous applications. So I decided to blog whatever it is that I may think relevant to blog when it comes to .Net Code, this would truly help me when trying to remember what I did in the past... I'll discuss about Factory Pattern and how we implemented it in our project.

More on HTTP Basics

This is the second part of our discussion regarding HTTP Basics. Resource Locators or simply URL is what we use to go to specific site say http://www.google.com?search='MVC'. Anatomy of a URL http://                             = URL Scheme www.google.com.ph      = Domain or Host ?search='MVC'          = URL Path or Query String About URL Encoding , not all characters are valid and accepted by the browser, invalid characters are called unsafe characters and in order for this characters to be safe  URL Encoding is done.

Understanding HTTP

What is HTTP and how does it work? This is a very basic question that every web programmer should be able to understand and explain. HTTP short for Hyper Text Transfer Protocol is the standard way for browsers and server to communicate. Web browsers sends a request while web servers return a response. Commonly used HTTP request: GET - request data from a specified resource or url. POST - submit data from specified resource or url. GET vs Post GET POST History Parameters remain in the Browser Parameters not shown in the browser Bookmark Can Be Bookmarked Cannot be bookmarked. Cached Can be Cached Can’t Be Cached Back/Reload Browser Button Clicking the Back button has no effect. Clicking the back button causes re-submitting the form. Encoding Type application/x-www-form-urlencoded multipart/form-data or applica...