Techno Fattie

Articles tagged with "dot-net"

Josh Carroll

The other day an interesting question was posed on Stackoverflow. Sumarizing: "How can I add methods to a type dynamically at runtime and have them be available to all other instances of that type?" That is certainly an in...

Josh Carroll

So recently Jeff Atwood quoted wrote a pretty nice article about why learning to read source code is so important for developers. I absolutely could not agree more with that post.As a tribute, I thought I would share a recent example whe...

Josh Carroll

In ancient times... at least according to web standards, I wrote a couple of posts about unit testing with declarative security attributes. It turns out that while using declarative security is pretty awesome, it's clear nobody was ...

Josh Carroll

I saw a post on Stackoverflow today that piqued my interest. The title really says it all: DataAnnotations: Recursively validating an entire object graph Using the DataAnnotations to do validation on object can be extermely useful, b...

Josh Carroll

Oren Eini (a.k.a. Ayende Rahien) is going through the joy that is trying to find good developers. The other day he posted some sample code that an interviewee had turned in to a coding challenge. The results weren't pretty!The ...

Josh Carroll

See Part 1And Part 3In a previous post I talked about using the PrincipalPermissionAttribute to achieve some last resort security that was tightly integrated into the framework.The nice thing about this approach is that you don't have to...

Josh Carroll

I'm a big fan of Stackoverflow, and I was just recently looking at this very simple question regarding changing button color. On the surface it seems this would warrant a very simple answer, and indeed Chris' Answer was simpl...

Josh Carroll

See Part 2And Part 3Security is hard. If you think it isn't your software is probably just waiting to be exploited by this guy:Knowing this, the guys who put together the .Net framework gave us a pretty brain-dead approach to adding secu...

Josh Carroll

If you regularly use TDD, then you are familiar with the concept of mocking. If you don't use TDD, then you need to slap yourself and apologize to Bob Martin, Michael Feathers and Ron Jeffries immediately. I'll wait here... Wh...

Josh Carroll

Recently I found a question about using Enums in a DataSet on StackOverflow. I was a little dissapointed at the answers people provided that were either down right wrong, or overly complicated. Sometimes I think people are so hungry for ...

Josh Carroll

So recently I was reading secretGeek (a very underated blog I enjoy), and there was this interesting post about an F# program that Mr. Bambrick tweaked a little. The variation was interesting, and it piqued my interests into the cryptic ...