Archives
-
Software Development, Typing, Playing Music And Assembling Cars
Reading John D. Cook’s blog post about how much does typing speed matter in software development, the way John compares software development to writing a book and not typing the book text or composing music and not playing music, made me think about the usual comparisons made between software development and other activities.
-
LINQ: Implementing The SkipLastWhile Operator
Following my last posts (>)(>), in this post I’ll introduce the implementation of the SkipLastWhile operator.
-
LINQ: Implementing The SkipLast Operator
-
LINQ: Introducing The Skip Last Operators
-
LINQ: Implementing The TakeLastWhile Operator
Following my last posts (>)(>), in this post I’ll introduce the implementation of the TakeLastWhile operator.
-
LINQ: Implementing The TakeLast Operator
-
LINQ: Introducing The Take Last Operators
-
PauloMorgado.Linq Project On CodePlex
-
Patch For ASP.NET Vulnerability Available
Microsoft has published a Security Advisory (2416728) about a security vulnerability in ASP.NET on Saturday, September 18th. This vulnerability exists in all versions of ASP.NET and was publically disclosed late Friday at a security conference.
-
Hydrating Objects With Expression Trees - Part III
To finalize this series on object hydration, I’ll show some performance comparisons between the different methods of hydrating objects.
-
Hydrating Objects With Expression Trees - Part II
-
Hydrating Objects With Expression Trees - Part I
-
Mastering Expression Trees With .NET Reflector
Following my last post, I received lots of enquiries about how got to master the creation of expression trees.
-
Dumping Objects Using Expression Trees
-
C#: More On Array Variance
In a previous post, I went through how arrays have are covariant in relation to the type of its elements, but not safely covariant.
-
O Estranho Caso Do Computador Que Acordava Sozinho Misteriosamente
Normalmente, quando eu vou dormir, também ponho o meu computador a dormir.
-
The Strange Case Of The Mysterious Self Awaking Computer
Usually, when I go to sleep, I also put my desktop computer to sleep.
-
How To Add And Remove SQL Server 2008 / 2008R2 Instances
After installing Visual Studio 2010 I, inadvertently ended up with SQL Server 2008 Express having already installed SQL Server 2008 Developer. Only when I was going to upgrade to SQL Server 2008R2 I found out I had two instances installed.
-
Fixing Windows Virtual PC Missing “Create Virtual Machine” Folder Option
Some of my Windows 7 systems, after installing Windows Virtual PC, were missing the Create virtual machine option.
-
Is Your ASP.NET Development Server Not Working?
Since Visual Studio 2005, Visual Studio comes with a development web server: the ASP.NET Development Server.
-
Detecting User Regional Settings In The Web Browser
Recently, a friend of mine asked me something like: “How do I get the user’s regional settings for a request to a web server?”
-
TechDays 2010: What’s New On C# 4.0
I would like to thank those that attended my session at TechDays 2010 and I hope that I was able to pass the message of what’s new on C#.
-
New Book From Luís Abreu: ASP.NET 4.0 – The Complete Course (Portuguese)
Thsi book, with several practical examples, presents how to build web applications using ASP.NET 4.0.
-
C# 4.0: COM Interop Improvements
Dynamic resolution as well as named and optional arguments greatly improve the experience of interoperating with COM APIs such as Office Automation Primary Interop Assemblies (PIAs). But, in order to alleviate even more COM Interop development, a few COM-specific features were also added to C# 4.0.
-
C# 4.0: Dynamic Programming
The major feature of C# 4.0 is dynamic programming. Not just dynamic typing, but dynamic in broader sense, which means talking to anything that is not statically typed to be a .NET object.
-
C# 4.0: Alternative To Optional Arguments
Like I mentioned in my last post, exposing publicly methods with optional arguments is a bad practice (that’s why C# has resisted to having it, until now).
-
C# 4.0: Named And Optional Arguments
As part of the co-evolution effort of C# and Visual Basic, C# 4.0 introduces Named and Optional Arguments.
-
C# 4.0: Covariance And Contravariance In Generics Made Easy
In my last post, I went through what is variance in .NET 4.0 and C# 4.0 in a rather theoretical way.
-
C# 4.0: Covariance And Contravariance In Generics
C# 4.0 (and .NET 4.0) introduced covariance and contravariance to generic interfaces and delegates. But what is this variance thing?
-
The Evolution Of C#
The first release of C# (C# 1.0) was all about building a new language for managed code that appealed, mostly, to C++ and Java programmers.
-
LINQ: Enhancing Distinct With The SelectorEqualityComparer
On my last post, I introduced the PredicateEqualityComparer and a Distinct extension method that receives a predicate to internally create a PredicateEqualityComparer to filter elements.
-
LINQ: Enhancing Distinct With The PredicateEqualityComparer
Today I was writing a LINQ query and I needed to select distinct values based on a comparison criteria.
-
CodeIt.Right Code File Header Template For StyleCop Rules
I like to use both StyleCop and CodeIt.Right to validate my code – StyleCop because it’s free and CodeIt.Right because it’s really good.
-
Defining Document Compatibility In Internet Explorer 8
The procedures to define document compatibility in Internet Explorer 8 are well documented here, but I’ve seem many developers and system administrators that are not aware of this.
-
Windows Home Server "Unknown network error has occurred during PC Restore" Problem
This week I had to restore my son’s PC due to a game he had installed that rendered Windows 7 in a state it was unable to reboot or recover from.
-
LINQ: Single vs. SingleOrDefault
Like other LINQ API methods that extract a scalar value from a sequence, Single has a companion SingleOrDefault.
-
LINQ: Single vs. First
I’ve witnessed and been involved in several discussions around the correctness or usefulness of the Single method in the LINQ API.
-
Visual Studio: Setting Up The Current Project And Run
When I’m building a demo solution I usually have several projects to demo different features.
-
C# Proposal: Compile Time Static Checking Of Dynamic Objects
C# 4.0 introduces a new type: dynamic. dynamic is a static type that bypasses static type checking.
-
Free e-Book: Programming Windows Phone 7 Series by Charles Petzold
-
Web Site Globalization With ASP.NET Routing
For those who don’t know, I have this web site http://PauloMorgado.NET/ that I use both as a web presence besides my blogs and a playfield.
-
Coupling ASP.NET Session State With Forms Authentication
Today I was talking with João about a way to couple the lifetime of the ASP.NET session state with the lifetime of Forms Authentication ticket.
-
Playing With LINQ: Getting Interface Property Implementations
Today, my friend Nuno was writing some code to get the PropertyInfos of a class implementation of an interface.
-
A TraceListener For Tests
In my code, I make extensive use of debug assertions (see System.Diagnostics.Debug.Assert). These assertions are very helpful while debugging because you don’t need to step into every line of code to see if all pre-conditions are met. As soon as a pre-condition fails, an assertion failed window will pop up and will allow us to either abort, ignore or go to the assertion instruction (retry).
-
How To Set Elements Of An Array Of A Private Type Using Visual Studio Shadows
Visual Studio uses Publicize to create accessors public for private members and types of a type.