Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fallacies of Doom - RivieraDEV 19

Fallacies of Doom - RivieraDEV 19

Mahmoud Abdelghany

May 16, 2019
Tweet

More Decks by Mahmoud Abdelghany

Other Decks in Programming

Transcript

  1. @blackbeard0x14e @blackbeard0x14e Boring intro: history • id Software: Unusual company

    creating ‘innovative’ games ◦ (Rover, Dave, Keen, Wolf3D, Doom, Quake...etc • Self taught era, efficient coding style(s) ◦ Nerd rage anecdote • Djoom3==fun • So why the boring awesome intro?
  2. @blackbeard0x14e @blackbeard0x14e Boring intro: history • id Software: Unusual company

    creating ‘innovative’ games ◦ (Rover, Dave, Keen, Wolf3D, Doom, Quake...etc • Self taught era, efficient coding style(s) ◦ Nerd rage anecdote • Djoom3==fun • So why the boring awesome intro?
  3. @blackbeard0x14e @blackbeard0x14e Operator overloading cout << ”Total price: “ <<

    price*quantity << endl; p2 = anchor + 32.0f * coneVector - master->GetWorldOrigin(); p2 = anchor.oPlus(coneVector.oMultiply(32.0f).oMinus(master.GetWorldOrigin())); p2 = anchor.oPlus(coneVector.oMultiply(32.0f)).oMinus(master.GetWorldOrigin()); [2] https://www.cs.virginia.edu/~evans/cs655/readings/steele.pdf
  4. @blackbeard0x14e @blackbeard0x14e Operator overloading idMat3 a, b, c, z; z

    = a + b * c; z = a.oPlus(b).oMultiply(c); z = b.oMultiply(c).oPlus(a);//technically correct
  5. @blackbeard0x14e weird(tips...tricks...pitfalls) -list Integer a = 42; Integer b =

    42; System.out.println(a == b); Integer c = 666; Integer d = 666; System.out.println(c == d); String e = “666”; String f = “666”; String g = new String(“666”); System.out.println(e == f); System.out.println(f == g);