18 items | 5 visits
This list contains programming sample codes, instructions and documents.
Updated on Mar 10, 10
Created on Oct 30, 09
Category: Computers & Internet
URL:
In software engineering,
the singleton pattern is a design pattern that is used to restrict instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system. The concept is sometimes generalized to systems that operate more efficiently when only one object exists, or that restrict the instantiation to a certain number of objects (say, five). Some consider it an anti-pattern, judging that it is overused, introduces unnecessary limitations in situations where a sole instance of a class is not actually required, and introduces global state into an application.
Static constructors in C# programming language.
In computer science, a binary tree is a tree data structure in which each node has at most two children. Typically the first node is known as the parent and the child nodes are called left and right. In type theory, a binary tree with nodes of type A is defined inductively as TA = μα. 1 + A × α × α. Binary trees are commonly used to implement binary search trees and binary heaps.
Lazy initialization is primarily used to improve performance, avoid wasteful computation, and reduce program memory requirements
Hidden features of Javascript, the popular client side programming language.
Complete XMLHttpRequest reference.
XMLHttpRequest object, which lets you open a connection, send the request, then handle the data returned by the server seamlessly in the background.Dave Ward shows us how to pass json Objects to Asp.net and create their counterparts on server which makes creating things easily on asp.net part.
How to get ClientID property in asp.net inline scripting to avoid complex asp.net clientid scheme.
How to pass anon methods via Delegate. This article shows this in an easy way.
Creating custom Events in Javascript to decouple your projects code.
This article simply shows how to call Synchronous methods Asyncly.
Different use of 'default' keyword in C#. It is also used for distinguishing whether a type is value type or reference type and also getting the default value of a variable by its type.
With the number of publicly offered Web service APIs, it's now much easier to get content from different Web sources and to build mashups—if you have access to the right APIs and tools. Discover how you can combine an obscure cross-domain call technique (JSONP) and a flexible JavaScript library (jQuery) to build powerful mashups surprisingly quickly.
One relatively simple way to overcome this limitation is to have the Web page request data from the Web server it originates from, and to have the Web server behave as a proxy relaying the request to the actual third-party servers. Although widely used, this technique isn't scalable. Another way is to use frame elements to create new areas in the current Web page, and to fetch any third-party content using GET requests. After being fetched, however, the content in the frames would be subject to the same-origin policy limitations.
A more promising way to overcome this limitation is to insert a dynamic script element in the Web page, one whose source is pointing to the service URL in the other domain and gets the data in the script itself. When the script loads, it executes. It works because the same-origin policy doesn't prevent dynamic script insertions and treats the scripts as if they were loaded from the domain that provided the Web page. But if this script tries to load a document from yet another domain, it will fail. Fortunately, you can improve this technique by adding JavaScript Object Notation (JSON) to the mix.
18 items | 5 visits
This list contains programming sample codes, instructions and documents.
Updated on Mar 10, 10
Created on Oct 30, 09
Category: Computers & Internet
URL: