Share Learning Area
Learning new stuff and reviewing old stuff about .Net, about programming, about developing web and windows programs, databases and anything to do with computers.
Inversion of Control is based on the idea of flow control. When you start programming, you learn to write code in classes and methods that control the flow of the program. Your code calls methods that do something and answer back to your code. In Inversion of Control, your central classes wait for the phone call that tells them things they need to know to perform their own activities.
posted @ Sunday, July 26, 2009 10:04 AM |
Since "Art of Unit Testing" is out and everyone is talking about it, I've decided to catch up on some reading about Unit Testing in general before I buy the book. Tech training & rewriting MS labs tends to suck my brain dry. And MS courses are not known for going over things like Unit Testing. After a year of rewriting labs for the LOD, my brain is mush except for debugging MOC labs. Nows as good a time as ever to compile of list of must reads on Unit Testing. So without further ado, here's the list so far:
...
posted @ Tuesday, July 07, 2009 10:26 AM |
There are times when you may find yourself writing code to move data from a type you defined to another type either predefined or user defined. Of course we are all aware of polymorphism between derived types. This isn't always possible or practical depending on your intentions. It is particularly hard when you're converting between a primiritive type and a user defined type. The answer to this dilemma is to define your own cast.
posted @ Sunday, July 05, 2009 11:17 AM |
Here’s just a few notes on preprocessor directives.
They’re never terminated by a semi-colon.
They can never be translated to any commands in code
They affect the compilation process
They can prevent compilation of positions of source code. This is great for having 2 release versions of your application. It’s also great for eliminating debug information source code.
# define identifier
This directive tells the compiler that the identifier or symbol exists. It does not define a valid you for that identifier. These symbols work as a true or false designator.
# undef identifier
This directive tells the compiler that the identifier or symbol should...
posted @ Tuesday, April 14, 2009 8:48 PM |
I found this question over at stackoverflow.com about what are the best articles on programming. I've compiled the list of suggestions here for easy reference. I'm guessing it will take some time to get through all of these articles myself.
Teach Yourself Programming in Ten Years
Painless Functional Specifications, by Joel Spolsky.
Why Bother?
What's a Spec?
But... How?
Tips
The Programmer Competency Matrix is an excellent reference to gauge your development skills.
...
posted @ Tuesday, January 06, 2009 9:48 PM |
It's important to first understand what defines a service contract. Basically a service contract defines the group of operations in a service, the operation's signatures and message datatypes. It also defines the location of the operations and the specific protocols and serialization formats that support communication with the service.
In WCF, we define a service contracts with method and class attributes. The following is a simple service with it's associated attributes:
// Step 1 Import the necessary namespaceusing System;using System.ServiceModel;namespace myHoakyService{
//Step 2 Use the ServiceContract attribute to //identify a class or interface that defines a ...
posted @ Wednesday, December 03, 2008 8:04 AM |
So I was working on this Windows Communication Foundation tutorial. The tutorial came as a pre-existing solution that you would update via WCF tasks. I'd successfully done the C# version after many attempts. Most of my problems stemmed from typos during the tutorial. Then came the VB version of the tutorial. Well, there actually wasn't much VB or C# in the labs so I can't use the excuse that I work mostly in C#. That sucks.
So what was the error? I kept running the lab and got an error that the Internet endpoint did not exist. I'd run it...
posted @ Tuesday, December 02, 2008 9:17 PM |
What we're looking at is at it's basic level a Service Oriented Architecture. It basically allows you to write services for other applications to use. It combines COM, COM+, and MSMQ, .NET Remoting, ASMX, System.Messaging, and .NET Enterprise Services. The basic concepts of interoperability, performance, transactional support as well as security differ from client application to client application. WCF strives to meet the needs of different client applications.
Basically a WCF client and a WCF service use the WCF which addresses communication challenges between a service and a diverse range of client requirements. Microsoft identifies the following as the most important aspects...
posted @ Monday, December 01, 2008 12:25 PM |
The more I learn, the more I know I don't know. As an MCT, it's my job to continually update my skills. To that end, I've been delving into things that aren't covered in the courses I teach. Things like Unit Testing.
What's A Unit Test?
With Visual Studio 2005 and 2008, you get the ability in some versions like Team System to create a Test Project to do Unit Testing. Before I start talking about creating a unit test, let's review the basics. A unit test verifies that a function actually performs it's duties. Now, there are black box and white...
posted @ Monday, December 01, 2008 12:50 AM |