|
|
-
|
|
One common question about ASP.Net MVC is how to make “default” controller. Most websites will have a Home controller with actions like About, FAQ, Privacy, or similar pages. Ordinarily, these actions can only be accessed through URLs like ~/Home/About. Most people would prefer to put th......
|
|
-
|
|
One common question about ASP.Net MVC is how to make “default” controller. Most websites will have a Home controller with actions like About, FAQ, Privacy, or similar pages. Ordinarily, these actions can only be accessed through URLs like ~/Home...
|
|
-
|
|
XRegExp is an open source JavaScript library that provides an augmented, extensible, cross-browser implementation of regular expressions, including support for additional syntax, flags, and methods. It’s used by the popular SyntaxHighlighter script, which is in turn used by many websites (including......
|
|
-
|
|
XRegExp is an open source JavaScript library that provides an augmented, extensible, cross-browser implementation of regular expressions, including support for additional syntax, flags, and methods. It’s used by the popular SyntaxHighlighter script, which...
|
|
-
|
|
Part 1 is here Some languages have better ways to pass boolean parameters. C# 4.0, and all versions of VB, allow parameters to be passed by name. This allows us to write much clearer code: //C# 4.0:
UpdateLayout(doFullLayout: false)
'VB.Net:
UpdateLayout(doFullLayout:=False)
......
|
|
-
|
|
Part 1 is here Some languages have better ways to pass boolean parameters. C# 4.0, and all versions of VB, allow parameters to be passed by name. This allows us to write much clearer code: //C# 4.0:
UpdateLayout(doFullLayout: false) ...
|
|
-
|
|
Have you ever written code like this: public void UpdateLayout(bool doFullLayout) {
//Code
if (doFullLayout) {
//Expensive code
}
//More code
}
This pattern is commonly used when some operation has a “cheap” mode and an “expensive” mode. Other code will have c......
|
|
-
|
|
Have you ever written code like this: public void UpdateLayout(bool doFullLayout) {
//Code
if (doFullLayout) {
//Expensive code
}
//More code
}
This pattern is commonly used when some operation has a “cheap” mode and an “expensive...
|
|
-
|
|
C# is usually touted as a type-safe language. However, it is not actually fully type-safe! To examine this claim, we must first provide a strict definition of type-safety Wikipedia says: In computer science, type safety is the extent to which a programming language discourages or pr......
|
|
-
|
|
C# is usually touted as a type-safe language. However, it is not actually fully type-safe! To examine this claim, we must first provide a strict definition of type-safety Wikipedia says: In computer science, type safety is the exte...
|
|