Geeks With Blogs
Sharpoverride The road to becomming a good programmer is paved with bad scripts August 2009 Entries
IoC Containers in .NET part 6: Unity Container
Hello, this is the 6th part of the IoC Containers series. This is the last container I’ll explore. I’ve been using it at work because it’s got the “Made by Microsoft” insignia and it seems the policy is that anything done at Microsoft is good for use. Bet that happens to you also. I’ve downloaded what I hope is the latest version from codeplex. Our Bootstrapper code is now public class Bootstrap { public static IUnityContainer Components() { IUnityContainer container = new UnityContainer(); container.RegisterType<I... ......

Posted On Thursday, August 20, 2009 9:35 AM

Welcome to the stage: Universum
I blogged a while ago about creating a series of posts on building an ASP.NET MVC application. To be honest I had already built one. It took me three months. And I haven’t touched it for about two months, so I thought at least I can share it with you geek readers. The main difference between MVC in Rails and MVC in ASP.NET is that Rails generates the infrastructure from the commands you type, as for the ASP.NET MVC part you are responsible for building the infrastructure. What do I mean when I say ......

Posted On Tuesday, August 18, 2009 3:54 PM

XNA Quest: Learning to model
I have to say this is the part I hate the most: MODELING. In preparation for the series of blog post I want to write that will cover building a simple 3d game I started downloading different free tools to help me build simple models. Blender 3D although nice ( it even runs on a remote connection if you can believe that :D ) was and will probably continue to be too much for me to learn. Truespace 7.6 Still beautifull and free but a bit too much, although I would love to learn it. And SoftImage XSI ......

Posted On Tuesday, August 18, 2009 9:47 AM

IoC in .NET part4: Spring.NET
Hi, nice to have you read this again. This is part 4 of the series I’m doing on the existing .Net IoC Containers that I found interesting. After a brief introduction of what is an IoC in my option, I presented Autofac,,StructureMap and Ninject2. In this post we’ll be exploring the Spring.NET IoC container. This is a xml configurable IoC by design. I’m using the latest version of it Spring.NET 1.3 RC1, hopefully it’s stable enough and that it brings something new to the table, by new I mean it uses ......

Posted On Tuesday, August 18, 2009 4:36 AM

IoC in .NET part 3: Ninject 2 beta
I wanted to use Ninject 1.0 but I discovered that it didn’t support named binding, and didn’t know how to resolve multiple bindings to an array. Luckily I found the Ninject 2 post it’s way better than the previous version, and the changes were almost a no brainer. Hy, this continues the series of posts on IoC Containers in .NET. We are using these continers on a simple console application that autocompletes it’s functions. I’m mostly displaying the configuration part of the IoC, an overview of this ......

Posted On Monday, August 17, 2009 6:50 AM

IoC in .NET part 5: Using CastleWindsor container
Hi, this is part 5 of our series on IoC containers in .NET. I’m only using them on a simple console application that provides autocompletion for the functions that the application exposes. We started with an introductory article, then we used Autofac, StructureMap, Ninject 2 beta and Spring.NET. In this article I’ll cover CastleWindsor a bit. These files can be found on sourceforge at the following address http://sourceforge.net/proj... Like StructureMap ......

Posted On Monday, August 17, 2009 5:32 AM

IoC in .NET part2: StructureMap
In our first part of the series we saw what Autofac had to offer us in order to get the simple console application that provides code completion capabilities. In this part I’ll use StructureMap and we’ll see how this product does. First let’s download it from http://sourceforge.net/proj... The latest version is StructureMap2.5.3. StructureMap is configured through a static ObjectFactory class. Usually you end up creating such a global class yourself, at least it comes already ......

Posted On Sunday, August 16, 2009 1:03 PM

IoC in .NET part 1: Autofac
This is an interesting IoC project that I used in a couple of occasions, nothing big, but I sure enjoyed it immensely. Autofac is wrist friendly so to speak and it tries to solve your configuration problems in a simple and concise manner. Without further ado go at http://code.google.com/p/au... to get the latest version. Next I’ll try to create a simple example that I hope we’ll use for the most part of this series. In learning the inner workings of IoC containers we’ll develop a console application ......

Posted On Saturday, August 15, 2009 2:16 PM

What is an IoC ?
Disclaimer: This is a series of posts in which we’ll go through the IoC’s that are used in today’s applications The most simple answer I can give you is this: It’s an abstraction over Factory Method. It helps, in my opinion to think of this as a factory method, because then you know what to expect of it, since it constructs/resolves a specific implementation based on the configuration you provide it. In a factory method you write, aka “hard code”, the implementation you will be using. In an IoC container ......

Posted On Thursday, August 13, 2009 12:59 AM

Javascript gotcha
Usually the style you organize code is just that A MATTER OF STYLE, in javascript however it’s not. If by any chance you end up writing the following code: var display = function() { this.x = 10; return { alert: function(message) { window.alert(message); } } } you might be in for a surprise but it won’t return anything because by default the javascript interpreter inserts ; after every line that doesn’t already contain it or }. Instead you should write: var display = function() { this.x = 10; return ......

Posted On Wednesday, August 12, 2009 1:34 PM

Checkout the Windows 7 API Code Pack for .NET
The individual features supported in this version (v1.0) of the library are: Windows 7 Taskbar Jump Lists, Icon Overlay, Progress Bar, Tabbed Thumbnails, and Thumbnail Toolbars. Windows 7 Libraries, Known Folders, non-file system containers. Windows Shell Search API support, a hierarchy of Shell Namespace entities, and Drag and Drop functionality for Shell Objects. Explorer Browser Control. Shell property system. Windows Vista and Windows 7 Common File Dialogs, including custom controls. Windows ......

Posted On Wednesday, August 12, 2009 10:46 AM

XNA Tip: Changing the frequency for the Update() and Draw() methods in your game
Need to know: In your XNA game by default the framework tries to invoke the Update() method 60 times per frame and the Draw() method as many times as possible. You can however change this behavior by changing the values of the static properties TargetElapsedTime and IsFixedTimeStep on the Game class and the SynchronizeWithVerticalRetrace property on the GraphicsDevice class. In your game you can adjust the call to the Update() method like so this.TargetElapsedTime = TimeSpan.FromSeconds(1.0f / 100.0f); ......

Posted On Saturday, August 8, 2009 6:11 AM

Quest: Learning XNA to build your own game
Disclaimer: This is the first in a series of post from which we'll learn the bare minimum needed to build games by using the XNA framework. The guide assumes you have a good grasp of the C# programming language and some good understanding of the .NET Framework ecosystem. Before we do anything else we need to go to http://creators.xna.com/en-... Here we'll download the XNA Game Studio 3.1. Note: I have Microsoft Visual Studio Team Edition as part of the Microsoft Student partner program, ......

Posted On Saturday, August 8, 2009 5:51 AM

Copyright © Sharpoverride | Powered by: GeeksWithBlogs.net | Join free