[personal profile] hartmans
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.

Date: 2006-09-23 12:31 am (UTC)
From: [identity profile] chocorua.livejournal.com
I decided C++ had too much syntactic sugar when I discovered you had to look at the function prototype, not the call, to determine if an argument could be modified or not. I don't use it a lot, but since a repeating feature of my career has debugging/completing projects that were too hairy for their original designers/developers, I dread encountering something begun by someone with a taste for the cute and esoteric.

Profile

Sam Hartman

October 2025

S M T W T F S
   1234
567891011
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 29th, 2025 09:54 pm
Powered by Dreamwidth Studios