Project doing in mvc pattern using cairngorm framework - apache-flex

hii ..
I wish to do my project in mvc pattern. so I chose cairngorm framework and just read some of the document about this framework.But I cant understand deeply to do project using this framework. Have any methods or examples to study doing project in cairngorm framework??
If u can pleas help me.

You might want to check out the Cairngorm Diagram Explorer. It is an interactive app that carries you though the Cairngorm process. The example in this case being a contact list. Click on any object in the diagram to see the as code equivalent.

Related

Action Script Project : Tutorials for Action Script Project using flex sdk

I need to work on Action Script project. I need to generate a swiff file by creating an action script project using flex sdk . I dont know how to start this thing. I have installed flex 4.5.1 and I know how to create flex project. Can u please suggest me some tutorials for working with action script project using flex sdk.
Thanks.....
well, there are lots of free tutorials in the internet, for example on youtube. you wouldn't be able to really learn actionscript but you will understand basics, so learning will be much easier. here, take a look. also, i can strongly recommend lynda's training courses -- yes, you have to pay for them, but they've got free trial membership. also, take a look at google, you know... you don't expect someone actually to teach you personally, don't you?...

Whats a recommended solution structure for a somewhat large website in asp.net

Im currently trying to refactor a project(asp.net mvc) that doesnt have any separation at all. just folders :s
The project has a bunch of EF Code First classes (People.cs, Exam.cs,
Message.cs, etc)
The project has several repositories (which all use EF Data
Context)
And of course a lot of controllers and viewmodels
We have a Tests Project but we arent very good at TDD so its not something we are really working on as of now.
I would like to have a clearer separation on the different responsibilities that the project has to address and would appreciate some advice on a good project structure that achieves this.
Please help.
thanks in advance
I would suggest following a Domain Driven Design (DDD) and one suggested way of laying this out would be creating the following projects:
Company.Project.Web <-- Your MVC Application, though you can still use WebForms
Company.Project.Domain <-- Data Transfer Objects (DTO's), ViewModels, Business Logic, Events
Company.Project.Data <-- Repository Interfaces
Company.Project.Data.EF <-- EntityFramework Specific Implementation of Repositories
Company.Project.Model <-- Your EF CodeFirst Classes
Company.Common <-- A common project of utilities and/or extensions
I would suggest you take a look at Project Silk http://silk.codeplex.com/ from the patterns and practices team. Great reference implementation of DDD, Repository, and MVC as well as mixing in HTML 5 and jQuery (vNext).
We use a similar design to that mentioned by jdmonty but a bit simpler. We do the following:
ApplicationName.Web - MVC Application
ApplicationName.Services - Business logic
ApplicationName.Domain - EF CodeFirst classes and the repositories
that act on them
ApplicationName.Common - Classes and utilities used by multiple
projects
ApplicationName.Tests - Test for the various projects
The Web project is dependent upon the Services project. The Services project is dependent upon the Domain project.

ASP.NET MVC 3: can I combine C# Razor Views with F# Controllers?

I figure this is a straight forward question, and I think there is a good chance the answer is "yes" (while mixed-language projects are generally not possible, it seems to me that the View Engine gets special treatment). I know I could also try this out pretty easily myself, but for the record, and to save myself some time, I'd like to know if this combination is possible (I've not used ASP.NET MVC or Razor myself yet, I'm considering options for a new project at work).
Edit: I am particularly interested in whether this combination is possible within a single project. Or more specifically whether there are any feature losses using this combination (even if the two project setup is the way to go).
You can definitely mix a C# Razor code with F# controllers. It may be possible to do this in a single project (by modifying the web project to use F#). An easier alternative is to create a standard C# Razor Web project and a separate F# project (containing model and controller code).
I created a Visual Studio template that allows you to do exactly this.
Unfortunatelly, the template is not yet available on Visual Studio Gallery (so you cannot see it from "Online Templates" tab in "New Project" dialog). There is some issue with their upload mechanism, that I'm trying to resolve, so it should hopefully appear there soon. There are also several ASP.NET MVC templates by Daniel Mohl on Visual Studio Gallery, but I'm not sure if any of them uses Razor.

ASP.NET, DDD, IoC, Repository Pattern - simple demo app?

I am fresh out of college and I've been put on a project using the technologies/techniques mentioned in the title. It's all a bit mind boggling to learn these new patterns on such a large codebase so I was wondering if there is a sample app somewhere (something ridiculously basic like a phonebook maybe?) that will demo these patterns. Thanks!
(Castle Windsor is the framework in use and then there's a custom built ORM library)
"Who can help me" is a nice reference web app using Sharp Architecture (ASP.NET MVC, NHibernate, Windsor, repositories). It's not a trivial app though, but in a trivial app you wouldn't see how these technologies fit together anyway.
I liked the sharparchitecture.net Tutorial. Although it is a tutorial about sharparchitecture it covers testdrivendevelopment(TDD), ASP.NET, DDD, Repository Pattern and the use of Interfaces which is the base of IoC.

cairngorm 3 architecture

I heared the cairngorm is not a framework and parsely framework is inbuilt(IOC container). So we here no need to use the frontcontroler to control the request to respose. Can any one please send ma clear architecture of the cairngorm3.
I had searched documents for cairngorm 3 architecture but not found anywhere.
Is it necessary to know the cairngorm2 or parsely framework (IoC container) or design patterns for learning cairngorm3 architecture.?
Thanks,
ravi
Everything you need is written here :
http://opensource.adobe.com/wiki/display/cairngorm/CairngormGuidelines
As already said , Cairngorm3 is not a framework, it's more like an architecture blueprint, guidelines and some libraries. So you can use CG3 with a "standard" MVC framework. I would stay away from Cairngorm2 if I were you.
Adobe uses mainly Parsley, but you can use CG3 with Swiz, Spring Source, Robotlegs, ...

Resources