Mar092008

MIX08-The Recapping the love that was.

Published by mikedopp at 10:05 AM under Mix08

   This past MIX was my sophomore year. I had the chance to go to MIX07 last year. In fact have a glance at my RSS feed for that. I traveled once again with Joe Levi, courtesy of Lifetime Products.

The great things about MIX was the sessions. I did however enjoy the keynotes as they do always get you fired up for the rest of the conference as well as giving you a chance to see what and where Microsoft is going with the .NET framework as well as ASP.NET.

My feet are still blistered and I still am morning the loss of my Hacked Zune.

However the experience was awesome. I am hoping to be at MIX09 for my Junior year there.

I can’t forget to give a friendly shout out to my new friends in the .NET community. I even made some friends from company’s like:

WeatherBug  Tamir Melamed

Godaddy David Koopman

Jinx.com Scott "Brolo" Benner

Yahoo! Joshua Jacobson

CodeSmith Eric Smith

MotionCloud Pureum Kim

Koda Software  Tor Langlo

RogerGuess

Geoffrey Emery

Alec Bryte

And More...

Favorite Session:

ASP.NET MVC - Scott Hanselman

Least Favorite:

  WPF Development. Not because it was bad but it was the last session and I was exhausted.

Overall it was a great experience.

By the way check out a great Elvis/Johnny Cash impersonator

 

Thanks again Lifetime and Microsoft.



[KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

Mar072008

MIX08-Using the Microsoft Sync Framework and FeedSync

Published by mikedopp at 6:55 PM under Mix08

Download Video

FeedSync (Project)

Astoria Offline (Project)

Take Data offline?

Alter Remote Offline Data and use FeedSync to update when connected.

Reasons:

  • App availability
  • Network Utilization
  • Lower costs
  • Leverage client UI
  • Leverage Service
  • Extend for collaboration

Flexible:

 Write a provider for

  •    Service
  •    Desktop
  •    Devices

Protocols extensions

  •   Metadata

Handles arbitrary topology

  •   peer to peer mesh and point to point

Layers:

End to End Solutions

  •    Ado.NET Sync
  •    Astoria Offline

Protocol and Store Providers

  •    Relational
  •    Astoria offline
  •    File Sync Provider
  •    FeedSync
  •    3rd Party

Make it Simple Services

  •   Metadata Store
  •   Anchor Providers
  •   Simple Prov

Common Sync Metadata runtime

  • Knowledge
  •   Versions
  •   Change Enumeration

CTP2  http://msdn.com/sync

Support for MSIL

 

Possibilities:

  • Offline
  • Peer to peer/Roaming
  • collaboration/sharing

 

Bring all your data to all applications by syncing the data.

No long running app on desktop to do this? huh?

 

FeedSync is CC license is a set of extensions to RSS/ATOM

Type of change:

  • Create update delete
  • Where changes happened.

 

 Astoria Services Offline:

  Point to a data service and "Take it offline"

  Use SQL Server compact.

  Very Beta just doing a exploration at this time.

 

What is the difference between this and Foldershare?

Have yet to answer this...

 

SyncToy updated.

 



[KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

Mar072008

MIX08- Developing ASP.NET Applications Using the Model View Controller Pattern.

Published by mikedopp at 12:52 AM under Mix08

http://www.hanselman.com

scotths@microsoft.com

  • New web project type for asp.net
  • More control over your </html>
  • Testable framework
  • Not for everyone

Master Cheif GU!

.NET 3.5 MVC web application template.

Options:

  • Enable testing right out the gate. NVUnit or any Unit.
  • No testing option

System.Web.MVC  System.Web.Extension System.Web.Routing [Namespace]

Controllers Models and Views

   Controller is a base class Index and about public class’s {controller/action}  Direct relationship.

Flexible Fundamental, Plays well with others, Dry or Simple don’t repeat yourself.

 

Clean Separation of Concerns

  •     Easy Testing
  •     Red/Green TDD
  •     Highly maintainable applications by default

Extensible and Pluggable

  •    Support replacing any component of the system

Driving Goals:

Enable clean URLS and HTML

   -SEO and REST freindly URL structures

Great integration within ASP.NET

MVP vs. MVC

Presenter: Up front presentation

Controller: Component

AJAX with MVC? Cannot Drag the ajax controls to the page.

-AJAX can be used but all code behind.

MVC RTM: When Duke Nukem Forever comes out.

 

Security: Is it safe? Same as ASP.NET!

Performance/Scalability Only as good as you write it.

MVC what is it?

  • Browser requests /Products/
  • Route is determined
  • Controller is activated
  • Method on Controller is invoke
  • Controller does some stuff
  • Renders View, passing in custom ViewData
  • URLs are rendered, pointing to other Controllers

Request->HTTP Routing->Route->Route Handler->Http Handler-> Controller-> View Engine-> View-> Response

Clean code!

URL Routing Pretty URIs -Developer adds routes to a global RouteTable -Mapping creates a RouteData -a bag of key/values

Route Testing for URLs Very SEO friendly.

Views

Controllers

Models

Routes

are all Pluggable

ViewEngineBase

   View Engine render output

    You get WebForms by default

Implement your own.

  •   MVCContrib Brail Nvelocity
  • NHaml

View Engines can be used to offer new DSLs to make Html easier.

Making Microformats.

 

<% { %>

code between

<%}%>

Mockable Intrinsics:

HttpContextBase, HttpResponseBase, HttpRequestBase

Extensibility:

IController, IControllerFactory, IRouteHandler,ViewEngineBase

RhinoMocks or TypeMock

Create Tests of the runtime.

For loop on front end?

 



[KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

Mar062008

MIX08- Second Keynote(Steve Ballmer Style)

Published by mikedopp at 9:58 PM under Mix08

 

 *Update: before I get flamed this is just the notes taken from the keynote. Not the official transcript.

March 18-20 2009 next year. MIX09

Guy Kawasaki and Steve  Ballmer

IMAGE_00092

 

Yahoo is another step to get Microsoft into the advertisement and search game.

Apple: Steve barks at Guy Kawasaki

Vigor and Energy! - Steve Ballmer

Facebook? Whats up? Looking for an advertisement platform

Microsoft $60 billion a year.

Passion for Developers - Steve Ballmer

Steve is right we have Passion!

IMAGE_00093

Three kinds of day:

  1.    Out of redmond sales and such
  2.    Doctors in his office. Meetings boom boom boom!
  3.    Research (Steve’s Day)

60 pieces of email. A day. Steveb at microsoft dot com. Human beings are not abusive.

Guy  is giving Steve kudos about Microsoft products.

10 to 11million xbox live members. Wow!

No compromises for connectivity and making life easier.

Guy questions about Vista: Steve goes after Guy and his apple. Where is the dvd drive.

Steve talks about Microsoft loss of focus? No loss of focus just broadening horizons. Multiple products and services.

Vista talk. Steve keeps a positive aspect of windows vista.

Ah Firefox and IE talk. Microsoft working hard to catch up using IE8.

Social Networking: Fad? Using Internet to make new friends and create contacts.

Opening up API for msn live. Share point and Active Directory has open API now.

Guy mentions that Microsoft is much more now approachable.

The Adobe question: What about adobe and silverlight? Huge competitor.

Audience Questions:

Yahoo using PHP how will Microsoft transition into Asp.net?

Microsoft will  become a php and asp.net shop.

Google has the market share. Microsoft is working hard and purchasing companies to catch up.

Fast Search product purchased by Microsoft and what is the future.

HyperV integrated into windows server. Will Microsoft make storage available in the cloud.

Windows mobile platform is very large. What is future? Danger is going to be a stack. Service application experience.

When is Silverlight coming for hotmail? Microsoft.com has it and the platforms will change.

Health Solutions Plan? Health care industry is going to be a huge jump. Consumer health side need to find out how to make individual records available.

Format wars. Will xbox360 support BlueRay eventually as well as windows.

Web Developers Need Dance monkey boy.

This was cool! 

Very good Keynote. Thanks Steve and Guy!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 



[KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses

Mar062008

MIX08-Building Applications and Services with .NET Framework 3.5

Published by mikedopp at 7:02 PM under Mix08

Using new features in .NET 3.5 Framework. blogs.msdn.com/justinsmith

IMAGE_00090

IMAGE_00091

 

What in .NET 3.5 for services:

 

  • The New HTTP Programming model:
  • New support JSON Services
  • Syndication in .NET 3.5

Service Stack Evolution

-Sockets->HttpListener->ASP.net->ASMX->WCF

WCF

one stop shop for services

Myth:WCF is only for enterprise services

Reality:WCF gets around(enterprise and web)

.NET 3.5 WCF web-centric upgrades:

  •    Make REST a 1st class citizenish
  •    Embrace SOAP-less representations
  •      JSON messaging capabilities
  •      Simple working with POX
  •     RSS & Atom syndication support

Run in partial trust (hosting) cool!

Promote web concepts to top status by simplifying the (mapping URIs to application logic, working with HTTP methods and working with Response codes & HTTP Headers)

Support for SOAP/RPC & REST from one or same application.

 

.NET 3.5 additions:

System.UriTemplate

  •    Type for modeling URI to app semantics
  •     Bind Data to a template, output to URI
  •    Match a URI to a template, retrieve data

System.UriTemplateMatch

  •     Returned from UriTemplate "match"
  •    Get relative paths

System.UriTemplateTable

 

Simple URI-to-application mapping -Defaults to query string parameters

 

Http verbs in WCF Contracts

  •    All HTTP GET POST PUT DELETE
  •    View it vs Do it separation mimics web

Specify Data Format in WCF:

WebOperationContext.Current provides access to incoming request headers

  • Can also set outgoing response headers

Bindings and ServiceHosts:

WebHttpBinding and WebServiceHost

  • Use WebServiceHost/Factory in most cases

WebHttpBinding endpoint on a ServiceHost

  • Add webhttpBehavior to the endpoint

Interpretive dance of solution for DEMO.

Cassini for services. Sounds fun.

How to reverse a string demo. *you need to know this if you want a job at Microsoft.

public string someMethod(string, input)

{

char[] chars = input.ToCharArray();

Array.Reverse(chars);

return new string(chars);

}

Go ahead and cheat. its ok.

0 config setup. Service host holds your config info.

use imperative 'approach"or web.config is by default.

 

JSON-centric Types:

  • JsonReaderWriterFactory

  -creates XmlDictionaryReader/Writer objects

  • DataContractJsonSerializer

  -Bridges objects & JSON

JSON messaging:

  Set requestsFormat/ ResponseFormat

WebHttpBehavior to endpoint

Intergrates with ASP.net AJAX

  WebScriptEnablingBehavior to endpoint

                      or

Use WebScriptServiceHost/Factory for automatic endpoint creation (0 config)

 

I have got to get working on this.

 



[KickIt] [Dzone] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Tags:

E-mail | Permalink | Trackback | Post RSSRSS comment feed 0 Responses