Sam Hartman (hartmans) wrote,
Sam Hartman

C++ as an Intelligence Test

A while ago a friend mentioned he was learning C++. I told him he'd hate it. He said that so far it was being OK. Earlier this week, he commented on some annoying syntax features and said he thought he was beginning to see what I meant. I laughed to myself.

Tonight he complained that when he put a reference to foo on his list, the destructor got called when the list went out of scope. "That's a list <foo> you've got there not a list <foo &>," I said. "Now imagine if you actually had a list of references and think about how the objects would eventually get deleted." He had gone through the necessary realization and reached a state of "abject terror" within minutes. That, my friends, is how you use c++ as an intelligence test: how fast does it take someone to realize exactly how much rope they have.


  • Making our Community Safe: the FSF and rms

    I felt disgust and horror when I learned yesterday that rms had returned to the FSF board. When rms resigned back in September of 2019, I was Debian…

  • Good Job Debian: Compatibility back to 1999

    So, I needed a container of Debian Slink (2.1), released back in 1999. I expected this was going to be a long and involved process. Things didn't…

  • Forged Email

    Last night, a series of forged emails was sent to a number of places around the Debian, Ubuntu and Free Software communities. The meat of the mail…

  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.