Pietari Heino's personal website

  • Sample Page
  • About me
  • Reading
  • Watching

rinnakkaisuus

Be explicit

02/06/2017 / Leave a Comment

I’m just going through and grading students’ code from an exercise where they had to implement barrier synchronization in C++ using condition variables and what not. Someone wrote this: if ( ++finished_threads_ == threads_ ) { … } This pains me. It was a group of three students. Did everyone understand this? Is each and … [Read more…]

Posted in: random Tagged: explicit, precise, programming, rinnakkaisuus, tie-02500