Category Archives: Programming

Embrace AND! in your way of living.

A good acronym might be..  Abundant  natural  decisions

Activity N___ 🙂  determination.
But I was mainly saying, try to do a little bit of both things you enjoy.

Advertisements

Testing and Craftsmanship with Scott Nimrod

Listened on commute.  Resonate with a lot!

( for tech folks)
Web player: : http://podplayer.net/#/?id=8758524
Episode: https://s3.amazonaws.com/dnr/dotnetrocks_1214_testing_and_craftsmanship.mp3

Can you be a software craftsman and not test? Scott Nimrod says no! Carl and Richard chat with Scott about his experiences using TDD practices to build software and how that affected his approach to craftsmanship. Scott talks about h.ow writing testing code to quickly test your app code is a far more efficient use of time compared to repeatedly compiling and running an application, then manually navigating to the feature in question and playing with it. Proper tests are faster, more accurate and repeatable, resulting in better code. And they’re even more important when the app gets bigger, the number of developers increase and time passes – build your software right!

Instructions for Setting up Entity Framework 6 and Data Test Project‏

I had gone through a lot of days of futzing to make this work and thought others may benefit from this as well. Instructions are included for both VS2010 (at the very end) and VS2015.

VS2015

VS2015 is much easier than VS2010, as both the Entity Model and the DBContext generator (pick either version 5 or 6, depending on your needs), as they are right in Add New Item’s dialog box under “Data” subsection.

Project settings modifications

Your DAL project will need to have the app.config set to Your unit test project then needs 2 things:

Adding a Reference to EntityFramework.dll in the Data Test project, to match the same EF reference item from your Data project.

And a post build step to bring in the config, otherwise your EF Integration tests will fail saying it can’t find the connection. Exact command that I’d used is not a perfect outcome compared to a file move, as this does a copy:

copy App.Config $(TargetName).config.

 post20build20step_zpsrrirz1ju

VS2010

If in VS2010, first add a ADO.NET Entity Data Model.
Then search for “Entity” and add the Nuget Package for EntityFramework 6.x.  Note, you won’t be able to use the designer though, so I’d highly recommend getting VS2012 or higher.

 Enjoy, and happy DAL coding!

Nice to have options

What does this mean exactly?

Well, not being so rigid and sometimes blending the best of both worlds. And also limiting options to 2-3 choices as well, so you don’t get information overload.

For music, I like ear buds and closed DJ style headphones, depending on surrounding noise.

For diet, I blend high plant based at times with Paleo, and also occasional organic cheese as well.

For a framework or layer choice, you may blend EF and stored procedure calls as well.

What options do you appreciate that are available to you?