• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Caligrafia para desenvolvedores
 

Caligrafia para desenvolvedores

on

  • 471 views

 

Statistics

Views

Total Views
471
Views on SlideShare
471
Embed Views
0

Actions

Likes
0
Downloads
3
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Caligrafia para desenvolvedores Caligrafia para desenvolvedores Presentation Transcript

    • para desenvolvedoresdiogoriba@diogoriba.com
    • String name = "John"; Java
    • var name = "John";name.length // 4 javascript
    • List<string> names = new List<string>();names.Add("John");names.Add("Jane");foreach (string name in names){ if (name.StartsWith("J")) { Console.WriteLine(name); }} C#
    • let names = ["John"; "Jane"];;names |> List.filter(String.StartsWith("J")) |> List.iter(Console.WriteLine);; F#
    • switch (number){ case 1: doStuff(); case 2: doMoreStuff(); break;} C?
    • switch (number){ case 1: doStuff(); case 2: doMoreStuff(); break;} C?
    • switch (number){ case 1: doStuff(); // falling thru case 2: doMoreStuff(); break;} C?
    • try { return true;} finally { return false;} Java
    • switch (number){ case 1: x = doStuff(); case 2: x = doMoreStuff(); break;}
    • switch (number){ case 1: this.x = doStuff(); case 2: this.x = doMoreStuff(); break;}