Click here to Skip to main content
15,913,584 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Castle Windsor? No, not the real one... Pin
Ian Shlasko11-Oct-13 7:26
Ian Shlasko11-Oct-13 7:26 
GeneralRe: Castle Windsor? No, not the real one... Pin
Kent Sharkey11-Oct-13 7:55
staffKent Sharkey11-Oct-13 7:55 
GeneralRe: Castle Windsor? No, not the real one... [OT] Pin
harold aptroot11-Oct-13 7:17
harold aptroot11-Oct-13 7:17 
GeneralRe: Castle Windsor? No, not the real one... [OT] Pin
Ian Shlasko11-Oct-13 7:22
Ian Shlasko11-Oct-13 7:22 
GeneralRe: Castle Windsor? No, not the real one... Pin
_Maxxx_12-Oct-13 13:10
professional_Maxxx_12-Oct-13 13:10 
GeneralRe: Castle Windsor? No, not the real one... Pin
Ian Shlasko14-Oct-13 4:08
Ian Shlasko14-Oct-13 4:08 
GeneralRe: Castle Windsor? No, not the real one... Pin
_Maxxx_15-Oct-13 0:56
professional_Maxxx_15-Oct-13 0:56 
AnswerRe: Castle Windsor? No, not the real one... Pin
AspDotNetDev13-Oct-13 13:13
protectorAspDotNetDev13-Oct-13 13:13 
I've not used CW, but I am currently working on an MVC project that uses Ninject. As far as DI/IoC, I'd say it has helped keep me on the right track. That is, I have to think things out ahead of time, and avoid writing a function in one view that I copy/paste into another view (or action). With the logic centralized into a repository, I can easily reuse that logic without taking the easy way out and writing sloppy/unmaintainable/hard to refactor code. I was also using it at the beginning of my project to create a "fake" repository that I used to code the views without doing the plumbing in the CMS to provide real data.

It also has other hypothetical benefits which I have not yet made use of. One being that I can test to code more easily. Another being that I can reuse the views for other projects (e.g., standard widgets). I could also easily swap out components (e.g., the data store) and do some central changes (e.g., optimize performance by caching some operations).

One cool use case is that you can use it to use debug code without worrying about it making its way to your production environment. For example, if you need to ensure your CSS/JavaScript files are never cached while debugging, you simply apply a query string to the file where it is referenced. In your real repository (the one you use with release builds), the cache-buster query string is empty. In your fake repository, the cache-buster changes with each page request. You can swap out other settings in a similar fashion to ensure the development process is quicker without having to worry about scrubbing your debug values/logic when deploying to production.

GeneralRe: Castle Windsor? No, not the real one... Pin
Ian Shlasko14-Oct-13 4:16
Ian Shlasko14-Oct-13 4:16 
GeneralNormally, I don't go along with these "send it to everyone" posts... Pin
OriginalGriff11-Oct-13 5:30
mveOriginalGriff11-Oct-13 5:30 
GeneralRe: Normally, I don't go along with these "send it to everyone" posts... Pin
Nagy Vilmos11-Oct-13 5:37
professionalNagy Vilmos11-Oct-13 5:37 
GeneralRe: Normally, I don't go along with these "send it to everyone" posts... Pin
Mike Hankey11-Oct-13 5:52
mveMike Hankey11-Oct-13 5:52 
GeneralRe: Normally, I don't go along with these "send it to everyone" posts... Pin
Mladen Janković11-Oct-13 6:44
Mladen Janković11-Oct-13 6:44 
JokeRe: Normally, I don't go along with these "send it to everyone" posts... Pin
SoMad11-Oct-13 9:48
professionalSoMad11-Oct-13 9:48 
GeneralRe: Normally, I don't go along with these "send it to everyone" posts... Pin
OriginalGriff11-Oct-13 10:35
mveOriginalGriff11-Oct-13 10:35 
GeneralNew band! PinPopular
OriginalGriff11-Oct-13 5:18
mveOriginalGriff11-Oct-13 5:18 
GeneralRe: New band! Pin
Nagy Vilmos11-Oct-13 5:23
professionalNagy Vilmos11-Oct-13 5:23 
GeneralRe: New band! PinPopular
Ravi Bhavnani11-Oct-13 5:24
professionalRavi Bhavnani11-Oct-13 5:24 
GeneralRe: New band! Pin
Mike Hankey11-Oct-13 5:55
mveMike Hankey11-Oct-13 5:55 
GeneralRe: New band! Pin
Gary Wheeler11-Oct-13 7:06
Gary Wheeler11-Oct-13 7:06 
QuestionGeneral code generation template system Pin
Chris Maunder11-Oct-13 4:43
cofounderChris Maunder11-Oct-13 4:43 
AnswerRe: General code generation template system Pin
Nagy Vilmos11-Oct-13 5:22
professionalNagy Vilmos11-Oct-13 5:22 
GeneralRe: General code generation template system Pin
Chris Maunder11-Oct-13 5:31
cofounderChris Maunder11-Oct-13 5:31 
GeneralRe: General code generation template system Pin
Nagy Vilmos11-Oct-13 5:39
professionalNagy Vilmos11-Oct-13 5:39 
GeneralRe: General code generation template system Pin
Dan Neely11-Oct-13 7:19
Dan Neely11-Oct-13 7:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.