Dmitriy Nagirnyak's Image

Dmitriy Nagirnyak

http://dnagir.blogspot.com/
More about this blog
Latest Post
21 Feb 2010
Total Posts
27
Readers
384
Liked
0
Disliked
0
Views-Per-Post
14.22
vote up
0
vote down

Agile Manifesto - Reminder

Just a reminder about the agile manifesto. The purpose of this post is to read and write all that again and keep in mind both left and right parts of it. Just remember to value in the items on the right, … value the items on the left more Individuals and
 
Dmitriy Nagirnyak
Feb 22 2010 04:41 AM
vote up
0
vote down

There is Such a Thing as Too Much Testing

Have been watching the RubyConf 2009 video. And I liked the matrix which is based on 3 dimensions to determine level of testing. The questions you have to ask to determine how much testing you need should include: Did your tests stop/find bugs? How
 
Dmitriy Nagirnyak
Feb 18 2010 06:08 PM
vote up
0
vote down

Vici MVC - simple .NET implementation

I have been found the ViciMVC project and it caught my interest. What I can observe - it is really simple implementation of the MVC pattern for .NET (ASP.NET). The key points I should mention about it are: It is very lightweight. It is very similar to
 
Dmitriy Nagirnyak
tags: devtools
Dec 02 2009 11:44 AM
vote up
0
vote down

Content Management/Publishing System Problems

Reading the Treating user Myopia I remembered one thing I has been thinking about lately: the problems of all Content Management Systems. Please note that I will be talking about Web Content Publishing which produces (as an end result) a web page
 
Dmitriy Nagirnyak
Oct 23 2009 07:50 PM
vote up
0
vote down

Testing expected exception, revisited

I have been using NUnit for a long time and really got used to it. Nowadays it is very sweet, especially with NUnitEx. It does have a simple syntax for testing exception. Pretty much what I did long time ago. It looks like this: [Test] public void
 
Dmitriy Nagirnyak
Oct 16 2009 10:06 AM
vote up
0
vote down

Dividing integers in C# are evil

If you have ever worked with arithmetical operations in C# you probably know this. But it is the thing that can easily be slept from you and not even mentioned. What do you think the code will print? True or False? Console.WriteLine(5/2 > 2); // True
 
Dmitriy Nagirnyak
Oct 08 2009 05:45 AM
vote up
0
vote down

IT holidays (Official and not)

It turns out there are a lot IT holidays out there. So we can make celebration pretty often :) Here is the list: International Day without Internet (last Sunday of January). It is intended to have one day with no computer, internet. Just be offline and
 
Dmitriy Nagirnyak
tags: personal
Oct 02 2009 06:27 AM
vote up
0
vote down

Image.GetBounds always returns value in Pixels

Ok. Looking at the method Image.GetBounds I see: Return value: The RectangleF that represents the bounds of the image, in the specified unit. So far so good. But please notice the signature of the method: public RectangleF GetBounds(ref GraphicsUnit
 
Dmitriy Nagirnyak
Oct 01 2009 09:50 AM
vote up
0
vote down

ASP.NET MVC Most annoying issues

No support for SSL in routing  (no URL generation configured in a single place). One big hack is here. No support for (non)SSL redirect using RedirectToRoute (so it is not possible to redirect to (non)SSL page from controller action, except
 
Dmitriy Nagirnyak
tags: devtools
Sep 29 2009 09:05 AM
vote up
0
vote down

Embarrassment with .NET URI

I need to work with the URI in .NET. What I need to do is: Parse URI from a poor string to be able to extracts its parts name/value pairs of a query; scheme host path Generate URI based on name/value pairs of a query; scheme host scheme + host parts path
 
Dmitriy Nagirnyak
Sep 29 2009 06:10 AM
vote up
0
vote down

Fake wild-card mapping in Graffiti CMS

I have just installed Graffiti CMS to play with it. After the installation I created a test post and only after that noticed the URL: http://localhost/Graffiti/first-post Notice there is not any extension and the URL looks very clear. But HOW? I did not
 
Dmitriy Nagirnyak
tags: software
Sep 25 2009 06:12 AM
vote up
0
vote down

Shame on me: AI with ApplicationException

I have just found a piece of code which is probably about 3 years old. This is active project that I work on it almost day by day. The method below is a helper utility for unit testing (and for that matter is used only for unit testing) to compare 2
 
Dmitriy Nagirnyak
Sep 23 2009 11:07 AM
vote up
0
vote down

Prefer C# cast but not AS operator

I see misuse of these 2 operators on every and each forum approximately at least couple of times a week. People don't know/realise (or don't want to) that there is significant difference in two code snippets below (I found similar on one of the forums):
 
Dmitriy Nagirnyak
Sep 22 2009 05:02 AM
vote up
0
vote down

WebForms Validate and Validate with group

.NET 2.0 introduced a new method Validate on the page. It has additional parameter: validation group. As we all know and name suggests it indicates the group the validation should be applied to. But how do old Validate and new Validate(validationGroup)
 
Dmitriy Nagirnyak
Sep 09 2009 05:43 AM
vote up
0
vote down

Prototype Game

Last weekend I've got the Prototype Game. I like it a lot and the game play is very enjoying. But all that came did not come such simple. After I installed the game and tried it on me Athlon XP 64 6000+ and GeForce 6500 512 MB system I had probably about
 
Dmitriy Nagirnyak
tags: misc
Sep 08 2009 09:19 AM
vote up
0
vote down

Parameterised partials in NHAML - first thought

Thinking about parameterised partial views in NHAML. User perspective (view) How I want to use the partials: _ TextBox("FirstName", "Given Name") _ TextBox("FirstName") _ TextBox   User perspective (partial) Define the _TextBox partial: ! (string
 
Dmitriy Nagirnyak
Sep 04 2009 09:51 AM
vote up
0
vote down

Benefits of using ReSharper

Please do not laugh at me now after reading the next sentence. I am evaluating the ReSharper now.  I should do it years ago as I have always been aware of it, but just didn't get my hands on to it. I tried CodeRush and Refactor! from DevExpress too.
 
Dmitriy Nagirnyak
tags: devtools
Sep 04 2009 09:36 AM
vote up
0
vote down

Simplify Iteration in MVC Views with NHAML

This post is inspired by the one from Steve Sanderson. He wants to improve the table generation on the WebForms engine in ASP.NET MVC. I definitely recommend to switch to NHAML instead. This is how it would look: (there is no tbody - must be Steve's
 
Dmitriy Nagirnyak
Sep 01 2009 04:46 PM
vote up
0
vote down

ASP.NET MVC empty values and string binding

I have mentioned that empty strings never have null values during data binding. Instead they are empty strings. If we don't do anything with it, it will propagate to the database. I don't really want to have empty strings in there. Nulls should be in the
 
Dmitriy Nagirnyak
Sep 01 2009 12:21 PM
vote up
0
vote down

Migrating Eco3 to Eco5

Just sharing my experience migrating large project (~170 classes in Business Objects ONLY) from Eco3 (Borland C# Builder and Together Modeler) to Eco5. This outlines the problems I faced, I don't want to dig into details and try to reproduce each case as
 
Dmitriy Nagirnyak
Aug 14 2009 04:57 AM
vote up
0
vote down

Impression on ASP.NET MVC 2

  You probably already know that ASP.NET MVC Preview 1 has been released. You can quickly watch the video to get the impression. Overall, I must admit, I like it. Things I like the most: Display and Edit Templates - I did workaround it in MVC 1 by
 
Dmitriy Nagirnyak
Aug 04 2009 04:28 AM
vote up
0
vote down

NHAML - scripts and styles, code block

Another useful tip for NHAML users that I came up with. I am assuming the site with following technical description: Every page has common CSS. Every page has common scripts. Some page may include up to 2 additional CSS files. Some pages may include up
 
Dmitriy Nagirnyak
Jul 14 2009 03:58 PM
vote up
0
vote down

NHAML - impressions

I have introduced the NHAML into a new project. Just can't silently ignore it. This is great thing. Really great. It does save time and helps to concentrate on the presentation of the view in ASP.NET MVC. I just love. Additionally it has great coverage
 
Dmitriy Nagirnyak
tags: devtools
Jul 08 2009 08:06 AM
vote up
0
vote down

NHAML - Tips

I've working with NHAML for some time. I just love it. Now I want to share some issues that I have faced and how I solved them. This is small Question/Answer list: Q1: What is NHAML analogue of <%= Html.ActionLink("Home", "Index",
 
Dmitriy Nagirnyak
Jul 08 2009 06:41 AM
vote up
0
vote down

How a guy was promoting a web site

I got a friendly email from a guy (I don't know him) who was trying to promote his web site. It looked pretty new and was about sharing the developer resources. He asked me to contribute. There are plenty of similar sites. Next day I saw the guys is
 
Dmitriy Nagirnyak
tags: personal
Jul 01 2009 12:44 PM
vote up
0
vote down

Simplicity

I like a lot the post by Rob Conery here. Be simpler. Just must quote him: You're Not Your Data Access.   Just do what is needed and. Let. It. Go. All this is so true: Simplicity is beautiful. Simple doesn't mean hard-coding, it doesn't mean cutting
 
Dmitriy Nagirnyak
Jul 01 2009 07:21 AM
vote up
0
vote down

MvcIntegrationTestFramework

Have a look at the interesting topic: Integration Testing Your ASP.NET MVC Application. Not sure how mature all the stuff is but it's definitely the thing I was missing in ASP.NET for a long time. We'll see if I have a chance to try it.
 
Dmitriy Nagirnyak
tags: devtools
Jun 30 2009 11:32 AM