Your SlideShare is downloading. ×
Getting Started with F# Web Development
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

Getting Started with F# Web Development

3,493
views

Published on

Many of the features provided by F# lend themselves well to web development. In this talk, we will quickly go over some of the basics of the F# language, then dive into four quick ways to get started …

Many of the features provided by F# lend themselves well to web development. In this talk, we will quickly go over some of the basics of the F# language, then dive into four quick ways to get started developing web application in F#. By the end, we will have built an F# and C# Silverlight application, an F# only Silverlight application, an F# and C# ASP.NET MVC 2 web application, and a web application with a platform called WebSharper.

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
3,493
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
30
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Getting Started with F# Web Development
    October 21, 2010
    1
  • 2. Daniel MohlC# MVP and F# Insider
    October 21, 2010
    2
    dmohl@yahoo.com
    www.twitter.com/dmohl
    blog.danielmohl.com
  • 3. What Are We Doing?
    Why F#?
    F# Primer/Review
    F#/C# Silverlight Example
    F# Silverlight Example
    F#/C# ASP.NET MVC 2 Example
    WebSharper Example
    What Wasn’t Covered?
    Wrap it Up
    October 21, 2010
    3
  • 4. Why F#?
    Simple Code to Solve Complex Problems
    Terse Yet Readable
    Less Errors
    Features Not In Other Mainstream Languages
    Staying Ahead of the Competition
    October 21, 2010
    4
  • 5. Why F# for Web Dev?
    Asynchronous Workflows and Reactive Programming
    F#/JavaScript Commonalities
    Easier to support next generation web development
    Silverlight
    HTML5 (Web Sockets, Canvas)
    Twitter Feed Sample (Reactive Programming)
    Web Socket Example
    Canvas Example
    October 21, 2010
    5
  • 6. F# Primer/Review
    Whitespace Matters
    The let Keyword
    Pattern Matching
    More During the Demos
    October 21, 2010
    6
  • 7. Whitespace Matters
    October 21, 2010
    7
    //F#
    open System
    let doSomethingval =
    val + val
    Console.WriteLine
    (doSomething 1)
    //C#
    using System;
    namespace ConsoleApplication1
    {
    class Program
    {
    static intdoSomething(intval)
    {
    return val + val;
    }
    static void Main(string[] args)
    {
    Console.WriteLine(
    doSomething(1));
    }
    }
    }
  • 8. The let Keyword
    October 21, 2010
    8
    //F#
    open System
    let val2 = 1
    let doSomethingval =
    val + val2
    Console.WriteLine
    (doSomething 1)
    //C#
    using System;
    namespace ConsoleApplication1
    {
    class Program
    {
    static int val2 = 1;
    static intdoSomething(intval)
    {
    return val+ val2;
    }
    static void Main(string[] args)
    {
    Console.WriteLine(
    doSomething(1));
    }
    }
    }
  • 9. Pattern Matching
    October 21, 2010
    9
    Kind of like a switch/case statement, but so much more!
  • 10. F#/C# Silverlight Example
    http://visualstudiogallery.msdn.microsoft.com/en-us/64f3d710-04c1-42d2-9e5d-4e20a19a7666
    October 21, 2010
    10
  • 11. F# Silverlight Example
    http://visualstudiogallery.msdn.microsoft.com/en-us/f0e9a557-3fd6-41d9-8518-c1735b382c73
    October 21, 2010
    11
  • 12. F#/C# ASP.NET MVC2 Example
    http://visualstudiogallery.msdn.microsoft.com/en-us/c36619e5-0d4a-4067-8ced-decd18e834c9
    October 21, 2010
    12
  • 13. WebSharper Example
    http://visualstudiogallery.msdn.microsoft.com/en-us/288b94ea-0ea7-4dde-8906-f72eb22fbe1b
    October 21, 2010
    13
  • 14. What Wasn’t Covered?
    October 21, 2010
    14
    Lots of F# Features
    Other F# Web Frameworks
    Bistro
    Suave
    Frank and Frack
  • 15. More Information
    October 21, 2010
    15
    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
  • 16. Daniel MohlC# MVP and F# Insider
    October 21, 2010
    16
    dmohl@yahoo.com
    www.twitter.com/dmohl
    blog.danielmohl.com