0
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.St...
let names = ["John"; "Jane"];;names  |> List.filter(String.StartsWith("J"))  |> List.iter(Console.WriteLine);;            ...
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;}      ...
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;}
Caligrafia para desenvolvedores
Caligrafia para desenvolvedores
Caligrafia para desenvolvedores
Caligrafia para desenvolvedores
Caligrafia para desenvolvedores
Caligrafia para desenvolvedores
Caligrafia para desenvolvedores
Upcoming SlideShare
Loading in...5
×

Caligrafia para desenvolvedores

783

Published on

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
783
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
16
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Caligrafia para desenvolvedores"

  1. 1. para desenvolvedoresdiogoriba@diogoriba.com
  2. 2. String name = "John"; Java
  3. 3. var name = "John";name.length // 4 javascript
  4. 4. 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#
  5. 5. let names = ["John"; "Jane"];;names |> List.filter(String.StartsWith("J")) |> List.iter(Console.WriteLine);; F#
  6. 6. switch (number){ case 1: doStuff(); case 2: doMoreStuff(); break;} C?
  7. 7. switch (number){ case 1: doStuff(); case 2: doMoreStuff(); break;} C?
  8. 8. switch (number){ case 1: doStuff(); // falling thru case 2: doMoreStuff(); break;} C?
  9. 9. try { return true;} finally { return false;} Java
  10. 10. switch (number){ case 1: x = doStuff(); case 2: x = doMoreStuff(); break;}
  11. 11. switch (number){ case 1: this.x = doStuff(); case 2: this.x = doMoreStuff(); break;}
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×