Getting Started    with F# Web    Development•    Daniel Mohl•    @dmohl•    blog.danielmohl.com•    github.com/dmohl1
2             June 16, 2012 DanielMohl  @dmohl  blog.danielmohl.com  github.com/dmohl Getting   Started with F# Web D...
3   June 16, 2012
4   June 16, 2012
5              June 16, 2012Daniel MohlF# MVP and C# Insider        danmohl@gmail.com        www.twitter.com/dmohl        ...
6              June 16, 2012What Are We Doing? Why  F#? F# Primer/Review F#/C# ASP.NET MVC 4 Example ASP.NET Web API, ...
7                  June 16, 2012Why Functional? Why F#?   Simple Code to Solve Complex Problems       Terse Yet Readable...
8                  June 16, 2012Why F# for Web Dev?   Asynchronous Workflows and Reactive    Programming   F#/JavaScript...
9    June 16, 2012F# Primer/Review Whitespace  Matters The let Keyword Pattern Matching More During the Demos
10               June 16, 2012    Whitespace Matters//F#                    //C#open System             using System;let d...
11               June 16, 2012    The let Keyword//F#                    //C#open System             using System;let val2...
12                  June 16, 2012Pattern MatchingKind of like a switch/case statement, but somuch more!Example 1:let boolV...
13               June 16, 2012A Few General Examples Sample   F# Script (Simple Strategy Pattern  Example) Fetch Museum ...
14              June 16, 2012F#/C# ASP.NET MVC 4Examplehttp://visualstudiogallery.msdn.microsoft.com/3d2bf938-fc9e-403c-90...
15              June 16, 2012F#/C# ASP.NET Web APIhttp://visualstudiogallery.msdn.microsoft.com/3d2bf938-fc9e-403c-90b3-8d...
16      June 16, 2012Sidebar          Windows 9?
17   June 16, 2012Windows 8
18   June 16, 2012Windows 9?
19   June 16, 2012Other Web Frameworks-   Service Stack-   Nancy-   Frank
20               June 16, 2012F# and Azure-   Fog - https://github.com/dmohl/Fog
21              June 16, 2012WebSharper Examplehttp://visualstudiogallery.msdn.microsoft.com/en-us/288b94ea-0ea7-4dde-8906...
22                  June 16, 2012More Information   Books - http://msdn.microsoft.com/en-    us/fsharp/gg262865.aspx   F...
23             June 16, 2012Daniel MohlF# MVP and C# Insider        danmohl@gmail.com        www.twitter.com/dmohl        ...
Upcoming SlideShare
Loading in …5
×

Getting+started+with+f#+web+development

3,183 views
2,829 views

Published on

Getting Started with F# Web Development (CodeStock 2012)

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
3,183
On SlideShare
0
From Embeds
0
Number of Embeds
1,205
Actions
Shares
0
Downloads
20
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Getting+started+with+f#+web+development

  1. Getting Started with F# Web Development• Daniel Mohl• @dmohl• blog.danielmohl.com• github.com/dmohl1
  2. 2 June 16, 2012 DanielMohl  @dmohl  blog.danielmohl.com  github.com/dmohl Getting Started with F# Web Development
  3. 3 June 16, 2012
  4. 4 June 16, 2012
  5. 5 June 16, 2012Daniel MohlF# MVP and C# Insider danmohl@gmail.com www.twitter.com/dmohl blog.danielmohl.com
  6. 6 June 16, 2012What Are We Doing? Why F#? F# Primer/Review F#/C# ASP.NET MVC 4 Example ASP.NET Web API, Service Stack, Nancy, Frank Windows Azure WebSharper Example
  7. 7 June 16, 2012Why Functional? Why F#? Simple Code to Solve Complex Problems  Terse Yet Readable  Less Errors The Move to Multi-core (immutable by default) Programming in the Small (Single Responsibility Principle) Higher Level Language Provides Optimization Opportunities Code That is Correct More Often Features Not In Other Mainstream Languages Staying Ahead of the Competition Why Functional Programming Matters F# in the Enterprise
  8. 8 June 16, 2012Why F# for Web Dev? Asynchronous Workflows and Reactive Programming F#/JavaScript Commonalities Easier to support next generation web development  HTML5 (Web Sockets, Canvas)  Asynchronous and Reactive ProgrammingWeb Socket ExampleCanvas ExampleTwitter Feed Sample (Reactive Programming)
  9. 9 June 16, 2012F# Primer/Review Whitespace Matters The let Keyword Pattern Matching More During the Demos
  10. 10 June 16, 2012 Whitespace Matters//F# //C#open System using System;let doSomething val = namespace ConsoleApplication1 val + val {Console.WriteLine class Program (doSomething 1) { static int doSomething(int val) { return val + val; } static void Main(string[] args) { Console.WriteLine( doSomething(1)); } } }
  11. 11 June 16, 2012 The let Keyword//F# //C#open System using System;let val2 = 1 namespace ConsoleApplication1let doSomething val = { val + val2 class ProgramConsole.WriteLine { (doSomething 1) static int val2 = 1; static int doSomething(int val) { return val + val2; } static void Main(string[] args) { Console.WriteLine( doSomething(1)); } }
  12. 12 June 16, 2012Pattern MatchingKind of like a switch/case statement, but somuch more!Example 1:let boolVal = truematch boolVal with| true -> printf “was true”| _ -> printf “was not true”Example 2:let name = "Dan", "Mohl"match name with| _, "Smith" -> printf "Found a Smith"| "Don", _ -> printf "Found a Don"| "Dan", "Mohl" -> printf "Found Dan Mohl"| _ -> printf "Name not found"
  13. 13 June 16, 2012A Few General Examples Sample F# Script (Simple Strategy Pattern Example) Fetch Museum List (Async Example) Twitter Feed (Reactive Programming Example) Interactive DirectX
  14. 14 June 16, 2012F#/C# ASP.NET MVC 4Examplehttp://visualstudiogallery.msdn.microsoft.com/3d2bf938-fc9e-403c-90b3-8de27dc23095
  15. 15 June 16, 2012F#/C# ASP.NET Web APIhttp://visualstudiogallery.msdn.microsoft.com/3d2bf938-fc9e-403c-90b3-8de27dc23095
  16. 16 June 16, 2012Sidebar Windows 9?
  17. 17 June 16, 2012Windows 8
  18. 18 June 16, 2012Windows 9?
  19. 19 June 16, 2012Other Web Frameworks- Service Stack- Nancy- Frank
  20. 20 June 16, 2012F# and Azure- Fog - https://github.com/dmohl/Fog
  21. 21 June 16, 2012WebSharper Examplehttp://visualstudiogallery.msdn.microsoft.com/en-us/288b94ea-0ea7-4dde-8906-f72eb22fbe1bCheck out http://fpish.net for an exampleof a live site built with WebSharper.
  22. 22 June 16, 2012More Information Books - http://msdn.microsoft.com/en- us/fsharp/gg262865.aspx F# MSDN - http://msdn.microsoft.com/en- us/fsharp/gg262865.aspx Blogs Twitter Ask – F# has the greatest community around
  23. 23 June 16, 2012Daniel MohlF# MVP and C# Insider danmohl@gmail.com www.twitter.com/dmohl blog.danielmohl.com

×