Cygon

Stories kicked by Cygon

How to Rig a Model in 3ds Max(www.nuclex.org)

submitted by CygonCygon(134) 1 year, 5 months ago

Detailed guide teaching you how to add bones to an existing model and then use those bones to animate the model through vertex skinning, a technique where each vertex is associated with one or more bones by a weight factor that controls how much the vertex will be affected by movements of that bone. read more...

add a comment |category: |Views: 22

tags: another

Implementing Object Comparison(nuclex.org)

submitted by CygonCygon(134) 2 years, 5 months ago

Comparison operators are often implemented poorly in .NET, in the sense that they contain duplicate code or perform certain checks, like a null reference test, multiple times. This article demonstrates a pattern that you can use to implement object comparison in a way that causes zero redundant code and achieves perfect efficiency (no comparison, not even a null check, is performed twice). It also provides a solution for comparison in inherited classes and integrates well with the == and != operators - all again without any redundant code and achieving optimal efficiency. read more...

add a comment |category: |Views: 10

tags: another

The Meaning of 100% Test Coverage(nuclex.org)

submitted by CygonCygon(134) 2 years, 5 months ago

The Myth that 100% test coverage means code is completely bug-free has been busted thoroughly. So much in fact, that it is almost risqué to add complete test coverage to your agenda. But is 100% test coverage really 100% useless, or are there some advantages worth striving for still? This article discusses the advantages and disadvantages of aiming for 100% test coverage. read more...

add a comment |category: |Views: 16

tags: another

The Disposable Pattern(nuclex.org)

submitted by CygonCygon(134) 2 years, 5 months ago

Simple explanation of the Disposable Pattern in .NET for developers new to garbage collection. Explains when to implement the IDisposable interface only, where a finalizer is required and why you mustn't call into other objects from the finalizer thread. Also shows common use cases illustrating when to implement IDisposable and when to implement the full Disposable Pattern. read more...

add a comment |category: |Views: 17

tags: another

Quick Introduction to Dependency Injection(nuclex.org)

submitted by CygonCygon(134) 2 years, 5 months ago

An easy to understand introduction to dependency injection in .NET using the Ninject inversion of control container. The dependency injection principle is a design concept by which classes and entire software components can be designed to be isolatable, reducing tight coupling, promoting reusability and allowing for unit tests to mock the dependencies of a class or component. read more...

add a comment |category: |Views: 48

tags: another

Design Patterns – Chain of Responsibility Pattern(atanashristov.blogspot.com)

submitted by atanashristovatanashristov(85) 2 years, 5 months ago

Imagine you have complicated decision logic and you’ve got a big if-then-else like structure in your code which you want to simplify. The Chain of Responsibility Pattern is a good way for code refactoring in such situation. It will make the code more flexible and easy to support and modify in the future. read more...

add a comment |category: |Views: 18

tags: another

Design Patterns – Abstract Factory Pattern(atanashristov.blogspot.com)

submitted by atanashristovatanashristov(85) 2 years, 5 months ago

Factories are objects that encapsulate the logic for creating other objects. Factory object could create one or another object based on some configuration parameters. Or the factory could decide what kind of concrete object to create based on a parameter to some object creational method. For example if the method received post-code the factory creates City object and when the parameter is an email address the factory creates Customer object. In that way one might create factory to select one or another kind of object from database based on the user input. read more...

add a comment |category: |Views: 35

tags: another

Memento Design Pattern(atanashristov.blogspot.com)

submitted by atanashristovatanashristov(85) 2 years, 5 months ago

An example of memento design pattern with in-memory storage read more...

add a comment |category: |Views: 17

tags: another

Free .NET Profilers and Some Paid Ones Too(devcurry.com)

submitted by mopenmopen(3596) 2 years, 5 months ago

Profiling is an important part of your software development process and allows you to determine improvements in your applications. In simple words, it is tuning your application to increase its performance. Here are some free and paid .NET profilers to do the job for you read more...

1 comment |category: |Views: 675

tags: another

131 jQuery Snippets for Visual Studio 2010(john-sheehan.com)

submitted by johnsheehanjohnsheehan(4785) 2 years, 5 months ago

I've started a new project to create jQuery Code Snippets for Visual Studio 2010 now that it supports HTML and JavaScript snippets. There are 131 so far. read more...

1 comment |category: |Views: 685

tags: another

The concept of Covariance and Contravariance in .Net 4.0(codedigest.com)

submitted by satheeshbabusatheeshbabu(1565) 2 years, 6 months ago

With .NET 4.0, the CLR supports covariance and contravariance of types in generic interfaces and delegates. Before dwelling into these new changes, let us get a quick view on the concept of variances in simple terms. read more...

1 comment |category: |Views: 362

tags: another

A Deque Implementation for .NET(cygon.nuclex.org)

submitted by CygonCygon(134) 2 years, 8 months ago

Collection class using the 'deque' data structure as it is implemented in the standard C++ library to C#. Beats System.Collections.Generic.List<> and System.Collections.Generic.LinkedList<> in nearly all categories and produces much less garbage (garbage as in garbage collection inducing) than both. read more...

add a comment |category: |Views: 62

tags: another

Nuclex Framework on CodePlex(nuclex.org)

submitted by CygonCygon(134) 2 years, 8 months ago

Nuclex.org has finally published their Nuclex Framework, a library of advanced building blocks for XNA game programming, as Open Source on CodePlex! Just some of the features: 3D Vector font rendering, multi-threaded particle system simulation, 3D SpriteBatch replacement, content compression using LZMA (7-Zip), graphical user interfaces with skin support, texture atlas creation, game state management, collision detection, C++' deque ported to C#, debug overlay renderer, automatic vertex declaration creator, game state management and more, all organized into neatly isolated building blocks you can pick from. The code has more than 1,400 unit tests with some assemblies achieving 100.0% test coverage and is thoroughly and completely documented. read more...

1 comment |category: |Views: 256

tags: another

Thread Pool using Core-Affine Threads(cygon.nuclex.org)

submitted by CygonCygon(134) 2 years, 8 months ago

Article with source code for a ThreadPool replacement which uses the XBox 360's hardware threads (which are only used when threads are assigned to them explicitly). Common problems with manually assigned processor affinity on desktop PCs are highlighted and the author shows a solution that allows the operating system to reschedule threads while still yielding comparable behavior to the explicit affinity model used by the XBox 360. read more...

add a comment |category: |Views: 105

tags: another

Windows Ribbon for WinForms, Part 2 – Basic Ribbon Wrapper(blogs.microsoft.co.il)

submitted by arikparikp(1204) 2 years, 8 months ago

Today we will start looking at some code, but before we begin you might want to know where to find it. The most updated version of "Windows Ribbon for WinForms" code will be at http://windowsribbon.codeplex.com/ It will include the latest version of the project code and samples of how to use its different features. Note that it is based on the Windows API Code Pack, so make sure you have it if you plan to compile the code. Let's get started. read more...

add a comment |category: |Views: 21

tags: another

Unit Testing and Code Coverage - A Powerful Duo(thevalerios.net)

submitted by mattman206mattman206(305) 4 years ago

Unit testing (using NUnit) and code coverage (using NCoverExplorer) make an amazing combination to not only run unit tests, but see how well your tests execute your code. All of this is made even easier by the TestDriven.net Add-in for Visual Studio. read more...

add a comment |category: |Views: 54

tags: another