- Feature Articles
- CodeSOD
- Error'd
-
Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Edit Admin
It's almost like they tried to invent reflection. You can query properties of the class to dynamically learn about the class.
Serious brain damage there.
The fact the OP tells us this idiom is used inconsistently everywhere suggests one "genius" had invented this at some prior job, brought it here, proselytized it to the unwashed mass of ordinary devs, most of whom never understood it well enough to use it right (or at least as rightly as such insanity could be used), then moved on to the next company & next project. Or was promoted to some executive manager of dev roles here and so was able to insist it be used, but not pay attention to how it was used.
Edit Admin
Observation: An incorrect dynamic_cast on pointers returns NULL instead of throwing bad_cast.
Edit Admin
According to S5.iii it can indeed throw a bad cast.