Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
@joshuamck bad for understanding == slowdown. the point is to go faster, right?
thinking about creating an automappercontrib project - not for use in projects as a library, but a code snippet / example repository
nerddinner's viewmodelprofile: http://gist.github.com/140174
i wouldnt use automapper in nerddinner - it's just too small. but if it grew beyond two entities, would be definitely useful
nerddinner has very few screens, so removing larger duplication isn't really an issue.
then that method can be automapped to a dto property (and tested)
do it in the containing entity.
but even simpler changes to the domain model have resulted in greater gains. instead of checking the length of a collection in the view,
2: removing method calls on model objects from the view into value resolvers. 3. string casting 4. date time formatting cod
so far, in nerddinner, i have used automapper to the following purposes: removing from the view duplicative prerendering like html encoding
@dagda1 .. allows us to take a guid Property and map it to an entity property using the appropriate converter
@dagda1 what might help is how we conventionally map those operations.. stuff like this: http://gist.github.com/140166
@dagda1 .. and those operations are handled by classes that do stuff like saving, associating, regular event handling stuff ..
@dagda1 mapping from dto to domain objects isn't something we do at all - we map to 'domain-typed messages' (made up term)..
sent a #tumblr support email, but i'll try here. can delete my account (@ gmail.com ) plz?
automapper is best suited for object orientation and the "inversion of control lifestyle"
let me rephrase: it's overkill.
it worked really well. but for a teeny small project like nerddinner it may be overkill.
took @shanselman 's suggestion and used automapper in nerddinner.
r @joshuamck unused members, inconsistent style (see braces), unnecessary keywords (extra 'else', 'this'), regions: viscosity
@joshuamck good call.
@lazycoder purely asthetics, purely subjective, purely silly
you know what's awesome about nerddinner? the tests. love to see that in a sample. i wish i had that when i was looking @ samples from ms
i would like to just come out and say it, it's been bothering me, but this code was not invented here and that's unacceptable. =)
i want to teach them the flyweight pattern so they can drop the current PhoneValidator implementation.
reading nerddinner source code. not awful or anything. i want them to use resharper SO BAD. my heart breaks for every grayed out using
finally got the sln to open clean.
@scottcreynolds after complaining on twitter for 2 and a half years i thought i'd say something nice. i can tell that wont be well recvd
@scottcreynolds you got me. =s
@scottcreynolds poweriso is free
Other ways to read this feed:Feed readerFacebook