Profile

Cover photo
Christian Scott
Works at Sykehuspartner
Attended Drammen Handelsgymnasium
Lives in Drammen, Norway
31 followers|3,683 views
AboutPostsPhotosYouTube

Stream

Christian Scott

commented on a video on YouTube.
Shared publicly  - 
 
Love the comments on her weight from the diet fanatics. All I can see are good core muscles that are non-flexed because of an extremely good and efficient running form, and sufficient body mass to store good levels of energy for long distance running. But since she "only" managed to qualify for the Olympic trials and not the Olympics themselves, she is probably a complete diet dunce.
2
Add a comment...

Christian Scott

commented on a video on YouTube.
Shared publicly  - 
 
How about getting someone who can actually drive to review a game that's more on the simulator side of things than arcarde? The GFX are awesome, but gameplay is 90% of a semi-simulator...
1
Add a comment...

Christian Scott

Shared publicly  - 
 
You seen this, +Pedro Vera ?
1
Pedro Vera's profile photoChristian Scott's profile photo
7 comments
 
Yes, but the ICs would be magical black boxes. These guys built their own ICs. 
Add a comment...

Christian Scott

Shared publicly  - 
 
Question to +K. Scott Allen that I put here 'cause your blog probably thinks my post is too long ;)

In your different MVC courses you often take different approaches to DI. In one of your "old" MVC3 courses "ASP.NET MVC 3.0 Fundamentals", you implement your own IDependencyResolver using Ninject. In "ASP.NET MVC 4 Fundamentals" and "Introduction to ASP.NET MVC 3" you use a specialized MVC NuGet version of StructureMap, and in "Building Applications with ASP.NET MVC 4" you use what is commonly known as "poor man's" DI. Your article on MSDN "Testability and Entity Framework 4.0" from 2010 describes 2 different approaches: abstracting EF and custom repositories. We've had some nice discussions on G+ where you said that you preferred the "custom repositories" approach, but in your MVC 4 courses you're abstracting EF.

Long intro, I know. But would you say that you're more positive to abstracting EF these days because of the way EF is evolving and making it easier than custom repositories, or is it just a "flip of the coin" thing whether you choose one over the other?

Second question: in your more elaborate in-depth "Building Applications with ASP.NET MVC 4", you do "poor man's DI". Is this because you feel you already covered creating your IDependencyResolver in a previous course? Or do you feel your that your IDependencyResolver is missing a bit (like ASP.NET optimized lifetime management). I feel the ,mvc3 NuGet packages are "hacky" and untidy using WebActivator etc. Do you just accept that and use them anyway, or think they're good implementations?

Third and final question about your latest "Building Applications with ASP.NET MVC 3": Could you, in theory, move your DbSets into a class called "OdeToFoodDbMigrator" and use that with "Enable-Migrations" so you get "internal sealed class Configuration : DbMigrationsConfiguration<OdeToFoodDbMigrator> {} and leave them our of your OdeToFoodDb class?

I guess my common theme in all these questions is: There seems to be a plethora of ways of doing the same thing in EF and EF+MVC. What are the pro's and con's of each or are they - like we say here in Norway - a choice between "pest og kolera". In English: "The Black Plague and Cholera". They're all sub-optimal - but unfortunately unavoidable - ways of building good loosely coupled applications using .Net technology?

Have a great day and keep the courses and great info coming!
1
Christian Scott's profile photoK. Scott Allen's profile photo
2 comments
 
Thanks for a quick and good response. I wrote the questions with a possible blog post in mind ;)
Add a comment...

Christian Scott

Shared publicly  - 
 
Does anyone actually take Donald Trump seriously anymore? His ridiculous lies, outbursts and offering rewards for digging up dirt on Obama are bad enough. But don't you think he would operate differently if he was genuinely concerned about his country, instead of only thinking of himself and how paying a bit more tax might ruin his chances of buying 7-8 countries?
1
Ian Stallings's profile photo
 
I take his advice about buying large buildings seriously. That's about it though.
Add a comment...
Have him in circles
31 people
Bjørn Rønnestad's profile photo
Lasse Horne's profile photo
Heidi Scott's profile photo
Myles Henderson's profile photo
Ken Morten Steen's profile photo
Harald Simonsen's profile photo

Christian Scott

commented on a video on YouTube.
Shared publicly  - 
 
I feel like Jack Black in "Shallow Hal". He was hypnotized to see women the way they were on the inside, irregardless of their actual physical appearance. Your video has hypnotized me the exact same way. I'm awestruck!
1
Add a comment...

Christian Scott

Shared publicly  - 
1
Add a comment...

Christian Scott

Shared publicly  - 
 
+K. Scott Allen 
I thought I read something somewhere (or maybe one of the instructors said it in a video), but I couldn't find any way to post course feedback on Pluralsight.

In your "Building Applications with ASP.NET MVC 4" course you use WebMatrix' simple security provider. I'm trying to combine this with Steve Smith's "Creating N-tier Applications in C#, Part 1" so I put my EF migration/seeding in a class library called "Infrastructure". The problem is that I can't run "WebSecurity.InitializeDatabaseConnection(...)" from the class library. I tried hacking it, adding <system.web.../> stuff to app.config, and adding references, but I gave up eventually and put it in the MVC project instead.

I think that's principally fine really since the WebMatrix stuff is an abstraction, but how would you solve the issue? Would you create your own simple role provider/role system? Keep on hacking to get the stuff working in your Infrastructure project? Make sure your DbContext is initialized before calling InitializeDatabaseConnection(...), so you can be certain the UserProfile table is created first? Emulate all of the WebMatrix tables using CF and seeding and turn autoCreateTables off?

Or is the answer the same you've given before: In a real life project you would script the SQL creation from scratch and not enable migrations and seeding etc?

Hope you have a great Holiday Season!
1
K. Scott Allen's profile photo
 
Well, I have created my own abstraction over membership (https://github.com/OdeToCode/Memflex), but I wouldn't say that's needed for every app. I think it is reasonable to call Initialize functions from all over during Application_Start, since application startup is really tied to starting all the infrastructure services (that's also where you'd configure a container if you are using one). 

So, to call InitiailizeDatabaseConnection from app start, or to call into the infrastructure project and tell it to initialize, either approach would be fine. 

Hope that makes some sense, 
Add a comment...

Christian Scott

Shared publicly  - 
 
:)
 
Dammit! I have no idea where my fire-proof umbrella is.
1
Add a comment...

Christian Scott

Shared publicly  - 
 
Am I the only one having trouble with the Windows website (http://www.microsoft.com/ - Click the "Windows" link) in Chrome today? Is it some kind of Google<->DNS cache related issue, or are Google trolling Microsoft on purpose on launch day? ;)
1
Add a comment...
People
Have him in circles
31 people
Bjørn Rønnestad's profile photo
Lasse Horne's profile photo
Heidi Scott's profile photo
Myles Henderson's profile photo
Ken Morten Steen's profile photo
Harald Simonsen's profile photo
Work
Occupation
Developer
Employment
  • Sykehuspartner
    Radiology Application Consultant, 2012 - present
  • Self-employed
    Developer, 2011 - present
  • TESS as
    IT Project Manager, 2001 - 2011
  • Power One/Powec
    IT worker, 1998 - 2001
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Drammen, Norway
Previously
Dubai, U.A.E. - Matlock, U.K. - Mansfield, U.K. - Watford, U.K.
Links
Story
Tagline
IT Omnivore
Introduction
I generally go by the alias carlsb3rg in most online activities. This has nothing to do with my love of the beer, though I can enjoy a nice beer, but was the first word I came up with when I started using IRC many years ago. Carlsberg were Liverpool's main sponsor back then.
Bragging rights
1 wife, 2 kids
Education
  • Drammen Handelsgymnasium
    IT, 1989 - 1993
  • BI Buskerud
    Economics, 1993 - 1994
  • Høgskolen i Buskerud
    IT Engineer, 1995 - 1998
Basic Information
Gender
Male