• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
CodeCamp Iasi 10 march 2012 - Micro web frameworks in net
 

CodeCamp Iasi 10 march 2012 - Micro web frameworks in net

on

  • 809 views

 

Statistics

Views

Total Views
809
Views on SlideShare
809
Embed Views
0

Actions

Likes
0
Downloads
1
Comments
1

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel

11 of 1 previous next

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
  • The correctly formatted version is available here http://speakerdeck.com/u/vladiliescu/p/micro-web-frameworks-in-net
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Adaugat logo-urile
  • Am intelegemai bine printr-un exemplu => enter Sinatra
  • Sinatra started it all. A aparut in 2007 si a fostprezentatapubliculuilarg in 2008.Sinatra focuses on “quickly creating web-applications in Ruby with minimal effort”.
  • Este folosit in cadrulunorcompaniimari. Astainseamnacasiei au vazutbeneficiileunui framework simplu in anumitecazuri.LinkedIn – rapid prototyping via JrubyGitHub – pentru pre/post commit hooks
  • De ex: ce stack web am puteafolosipentru a scrieinterfata web a Google? MVC? RoR? Web Services? Sharepoint?Simple. Lightweight. Fexible.For simpler use cases (micro-sites and prototyping).Ceavantajeavemcandilfolosim? Cedezavantaje?
  • Initial ma gandeamsafac o comparatieintre framework-uriledisponibile in .netDar astaeste oprezentare de .net – haisavedemce alternative sunt.Mentionezalternativelesimotivulalegerii (nu au fostactualizate de mult, putinicontribuitori, etc).
  • To me frameworks like ASP.NET MVC are really great but sometimes a bit too bulky and too much ceremony to get you going.MentionatalternativelePot spuneaicimotivulalegeriiei (foarteactiv, celmai mare numar de contribuitori, etc)Nancy is a lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono. The goal of the framework is to stay out of the way as much as possible and provide a super-duper-happy-path to all interactions.
  • Privireinitialaasupracodului. Subliniez cat de conciseste, revinmaitarziu la detalii.
  • To me frameworks like ASP.NET MVC are really great but sometimes a bit too bulky and too much ceremony to get you going.It just worksEasily customisableLow ceremonyLow frictionDI by default * “It just works” - you should be able to pick things up and use them without any mucking about. Added a new module? That’s automatically discovered for you. Brought in a new View Engine? All wired up and ready to go without you having to do anything else. Even if you add a new dependency to your module, by default we’ll locate that and inject it for you - no configuration required. * “Easily customisable” - even though “it just works”, there shouldn’t be any barriers that get in the way of customisation should you want to work the way you want to work with the components that you want to use. Want to use another container? No problem! Want to tweak the way routes are selected? Go ahead! Through our bootstrapper approach all of these things should be a piece of cake. * “Low ceremony” - the amount of “Nancy code” you should need in your application should be minimal. The important part of any Nancy application is your code - our code should get out of your way and let you get on with building awesome applications. As a testament to this it’s actually possible to fit a functional Nancy application into a single Tweet :-) * “Low friction” - when building software with Nancy the APIs should help you get where you want to go, rather than getting in your way. Naming should be obvious, required configuration should be minimal, but power and extensibility should still be there when you need it.
  • Mentionezvariantelealternative de hostingMentionezPost/Put/DeleteTrebuiedoarsamosteneasca din NancyModulePotiintoarcemaimultelucruri -> string, int, httpcode, view, json, xml, etc, redirect
  • Demo

CodeCamp Iasi 10 march 2012 - Micro web frameworks in net CodeCamp Iasi 10 march 2012 - Micro web frameworks in net Presentation Transcript

  • require sinatraget hi do "Hello World!"end
  • using Nancy;public class HelloModule : NancyModule{ public HelloModule() { Get["/"] = r => "Hello CodeCamp!"; }}
  • PM> Install-Package Nancy.Hosting.Aspnetusing Nancy;public class HelloModule : NancyModule{ public HelloModule() { Get["/"] = r => "Hello CodeCamp!"; }}