Closure Compiler - Google Code - 1 views
-
The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what's left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls.
Using jQuery with ASP.NET: Part 2 - Making Ajax Callbacks to the Server - 1 views
-
$.getJSON(url,data,callback) Similar to $.post(), but expects the result to be JSON which is automatically deserialized into a Javascript value and passed to the callback as a parameter.
-
$.getJSON() also doesn’t support JSON POST data – only POST encoded variables
-
Specifically inside of a master page you might find that the ID gets mangled by ASP.NET into: ctl00_Content_txtSymbol. I could change my code to read: { symbol: $("#ctl00_Content_txtSymbol").val() } which works, but is pretty ugly and volatile because the parent IDs might change if a container is renamed or moved around. Another option is to use a little server side script markup to embed the ClientID: { symbol: $("#<%= txtSymbol.ClientID %>").val() } This is also ugly, but reliable. But this does not work if you end up moving your code into a separate .js script file. If you use client ids like this a lot you might create a list of them as global variables: var txtSymbolId = "<%= txtSymbol.ClientID %>"; which then lets you reuse the variable a little more easily: { symbol: $("#" + txtSymbolId).val() } These variables are also visible in loaded script files.
- ...4 more annotations...
Expectations from Net .NET Framework 4.0 - 0 views
What were your expectations from Microsoft's new framework ?
Anonymous Methods (C# Programming Guide) - 0 views
-
Creating anonymous methods is essentially a way to pass a code block as a delegate parameter
Calling Synchronous Methods Asynchronously - 0 views
-
If the asynchronous call has not completed, EndInvoke blocks the calling thread until it completes
A low-level Look at the ASP.NET Architecture - 0 views
-
Most people are familiar only with the high level frameworks like WebForms and WebServices which sit at the very top level of the ASP.NET hierarchy.
-
WebForms are definitely the easiest way to build most Web interfaces, but if you’re building custom content handlers, or have special needs for processing the incoming or outgoing content, or you need to build a custom application server interface to another application, using these lower level handlers or modules can provide better performance and more control over the actual request process. With all the power that the high level implementations of WebForms and WebServices provide they also add quite a bit of overhead to requests that you can bypass by working at a lower level.
-
ASP.NET is a sophisticated engine using Managed Code for front to back processing of Web Requests.
- ...56 more annotations...
Database Design - DDL & DML - 0 views
Using the default keyword in C# - 0 views
Robust ASP.NET control referencing in JavaScript | Encosia - 0 views
-
The better solution is to use inline ASP.NET code to inject the control’s ClientID property:
-
$get('<%= TextBox1.ClientID %>')
Using complex types to make calling services less… complex | Encosia - 0 views
-
One unfortunate anti-pattern that often emerges in this situation is a service method with too many parameters:
Great programming quotes - Stack Overflow - 0 views
-
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.
-
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live
-
It works on my machine.
lock Statement (C# Reference) - 0 views
-
The lock keyword marks a statement block as a critical section by obtaining the mutual-exclusion lock for a given object, executing a statement, and then releasing the lock
-
The expression reference type in lock(expression) should not be null.
-
The lock keyword ensures that one thread does not enter a critical section of code while another thread is in the critical section. If another thread tries to enter a locked code, it will wait, block, until the object is released. The section Threading (C# Programming Guide) discusses threading. The lock keyword calls Enter at the start of the block and Exit at the end of the block.
The MSDN Library - 0 views
Lazy loading - Wikipedia, the free encyclopedia - 0 views
-
Lazy loading is a design pattern commonly used in computer programming to defer initialization of an object until the point at which it is needed. It can contribute to efficiency in the program's operation if properly and appropriately used. The opposite of lazy loading is Eager Loading.
Binary tree - Wikipedia, the free encyclopedia - 0 views
-
Not to be confused with B-tree.
-
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 - 0 views
-
Basic) methods for lazy init