Geeks With Blogs

News profile for Aligned at Stack Overflow, Q&A for professional and enthusiast programmers

Donate Bitcoins

Check out Elapser from T3rse!
"free in Christ Jesus from the law of sin and death." Romans 8:2 (ESV) Check out the Falling Plates video on YouTube.
more about the Gospel
And then listen to Francis Chan speaking at LifeLight in SD.

Programming and Learning from SD Unit Testing
Thinking about Productive Work as a Software Developer
Since I started my career as a Software Developer about 7 years ago, I’ve realized that perception of what a valuable use of my time while at work has changed. Scott Hanselman blogged his productivity tips which got me thinking about this more. Meetings I have many times grumbled when a new meeting pops up in Outlook. I have been a part of a lot of time wasting meetings, but there are several that are very useful. Daily stand ups or Scrums are essential to keep everyone on the same page. Retrospectives ......

Posted On Thursday, April 3, 2014 11:57 AM

Notes from Jan 09, 2014 LIDNUG TDD, Where did it all go Wrong
I recently was asked by a co-worker to watch Ian Cooper talk about TDD to give my take on Mr. Cooper’s presentation on TDD. Here’s what I sent back and decided to share it with all of you as well. He's got a lot of experience and laid out things are often stated as things against TDD. Even mentions SpecFlow and problems he had with that. This turns out to validate some of my ideas on BDD. Interesting talk about refactoring too (write code quick, then refactor and write clean code). I'd suggest that ......

Posted On Monday, February 10, 2014 2:21 PM

Steps to Get MVC running with Ninject
enable package restore on solution Nuget Ninject.MVC3 (pre-release available?) * adds Ninject, Ninject.Web.Common, Ninject.Web.Mvc * App_Start/NinjectWebCommon.cs -> has WebActivator.PreApplication... attribute -> runs at startup add interface and class for testing (IBikeManager and BikeManager) add controller constructor to HomeController that takes in the interface - run website => Error "Error activating IBikeManager No matching bindings are available, and the type is not self-bindable. ......

Posted On Wednesday, November 20, 2013 10:46 AM

Dependency Injection Interview Video
In the video from Visual Studio Magazine with Miguel Castro who has some interesting things to say about Dependency Injection and Unit Testing. "It should be mainstream". "no longer do we new objects up, now = new this()". "this [new objects] used to be a no-brainer... until all of a sudden Unit testing hit the world by storm" "#1 reason for this is so we can test properly""You're writing untestable code [without DI]" "I'm a consultant, so I need to leave something maintainable and tested" ~ talking ......

Posted On Thursday, September 19, 2013 4:05 PM

Benefits of Behavior Driven Development
Continuing my previous article on BDD, I wanted to point out some benefits of BDD and since BDD is an extension of Test Driven Development (TDD), you get those as well. I’ll add another article on some possible downsides of this approach. There are many articles about the benefits of TDD and they apply to BDD. I’ve pointed out some here and copied some of the main points for each article, but there are many more including the book The Art of Unit Testing by Roy Osherove. http://geekswithblogs.net/l... ......

Posted On Friday, July 26, 2013 10:44 AM

Heartland Developers Conference 2013 Highlights
I was able to go to another great year of HDC 13 at the beginning of September (on Twitter #hdc13). Our company sent 8 of us down for the Thursday and Friday (thanks for investing in us!). The main theme I got from the conference was to get out and build an app or with the “internet of things” figure out how things work and look into Arduino and connecting for outside control. How do we use of skills for good as well? The Bing platform looks very promising. There were also some Windows 8.1 demos ......

Posted On Wednesday, October 2, 2013 11:20 AM

MVVM with Windows 8 and Window Phone 8
I just read Leveraging Windows 8 Features with MVVM by Brent Edwards in the July 2013 MSDN magazine. I had skipped it before, because I wasn't as interested in building a Windows 8 app. This article is a great walk through of how to use MVVM to achieve a unit testable application. He also introduces Charmed which is the examples in an open source library. It looks very useful.Brent also has Writing a Cross-Platform Presentation Layer with MVVM in the September 2013 MSDN magazine article. This shows ......

Posted On Friday, September 20, 2013 1:57 PM

Getting Started with Behavior Driven Development
In this post, I wanted to share some thoughts and resources that I’ve collected since learning about Behavior Driven Development (BDD) (as of June 2013). Thinking in BDD terms has really helped me in improving my software development and thinking through problems. I remember a day when it clicked. It was an exciting time for me and I don’t planning on going back to the old approach. My tendency is to dive into the code before thinking through things and that gets me into trouble. I’m also an optimistic ......

Posted On Tuesday, June 11, 2013 10:18 AM

Faking the WebApi User
I needed to unit test a WebAPI call in my MVC 4 application that checks the user's role. I'm doing this in my MVC controllers with the following code using FakeItEasy (I should do a post on that sometime): this.UserPrincipalFake = A.Fake<IPrincipal>(); A.CallTo(() => this.UserPrincipalFake.Iden... A.CallTo(() => this.UserPrincipalFake.Iden... this.HttpContextBaseFake = A.Fake<HttpContextBase&g... this.HttpContextBaseFake.User ......

Posted On Wednesday, June 5, 2013 10:29 AM

MVC Validation of a Password with a Regular Expression
I have requirement (specification) that the password has to be at least 7 characters long and contain a special character (~@#$&*()-_+=) which are all the specials in the number keyboard row. I found that using the RegularExpression DataAnnotations is really slick, but there was a point that caught me for a while. The problem is that @".*([!@#$&*()-_+=]+).*$" works in the UI, but fails in the unit test. @"[!@#$&*()-_+=]+" works in the test, but not in the UI (the MVC unobtrusive library ......

Posted On Friday, April 26, 2013 11:16 AM

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