I love bugs. (No, not like that.) It's always interesting to see how things go wrong; as a language designer I want to learn how to make languages less bug-prone, and as a creator of static analysis tools, I want to learn how to detect hard-to-find-but-real bugs.
As I mentioned a while back, we're starting a new series on the Coverity Development Testing blog to share knowledge of interesting bugs, language quirks and so on. The first episode of Ask The Bug Guys is posted now. In this episode I take on two questions: first, why can't you declare a const field of type parameter type? And second, why does overload resolution sometimes choose an unexpected method when an extension method on strings is available? Thanks to contributors Marcin and Adam for two interesting questions.
If you have questions about strange behavior in your C, C++, C# or Java programs, please email your questions (along with a concise reproducer of the problem) to
TheBugGuys@coverity.com. We’ll be posting our next set of responses in about two weeks.
(And speaking of Coverity, I was pleased to see this morning that Coverity is #73 on Outside Magazine's "100 Best Places to Work" list. Indeed, we computer types do occasionally go outside! I never thought I'd get a photo of my hat on Outside Magazine's web site, but stranger things have happened. You can see my Tilley Endurables T3G hat in the background there.)
And with that, I'm taking a vacation from blogging for a month. I'll be relaxing on the beaver-shark infested shores of Lake Huron for two weeks in August and then busy with other projects for a couple of weeks after that. We'll pick up in September. Have a lovely rest of your summer and we'll see you for more fabulous adventures in coding in the autumn.1
- Substitute winter and spring for readers in the southern hemisphere of course. ↩