A corollary on overloading
Summary:1) You can extend or adapt other people's code with overloading.2) It's easy to accidentally eliminate overloads from overload resolution (the set of overloads the compiler considers when...
View ArticleCode reuse series: Two fundamental implementations for one conceptual task...
Introduction:Today we will be answering the fundamental question: When writing code that can be instantiated with many types, how do I reuse code for some types but select different fundamental...
View ArticleCode reuse series: Two fundamental implementations for one conceptual object
Topic:In the last article we talked about how to have multiple fundamental implementations for a single conceptual task. The notion being, if we can use type information to optimize a particular use...
View ArticleCode reuse series: Two fundamental implementations for one conceptual object...
Introduction:Today's fundamental question is the same as last time's, with one alteration: we'll be focusing on techniques for implementing structs and classes rather than functions. The big question...
View ArticleCode reuse series: When half is the same and half is different
Topic:In the last article we talked about how to have multiple fundamental implementations for a single conceptual struct. Essentially, if we wanted to change the behavior of a struct depending on what...
View ArticleTech Talk: Fundamentals of Type-Dependent Code Reuse
As I prepare my abstract for this year's NDC Oslo conference, I remembered that I never got around to posting the videos from my talks last year. I gave a talk based on the code reuse series featured...
View ArticleTech Talk: Exploring C++ 17 & Beyond
Gave a tech talk at NDC Oslo 2016 that I'm really excited to share. It's a talk about playing with things that don't exist yet. The fun part, is that almost all of it is possible in C++ today. You...
View ArticleTech Talk: Developing Correct C++ @ Scale
At this years NDC Oslo conference I spoke about helping other engineers develop C++ effectively when you're at massive scale. This talk is about the tooling that goes into helping a single engineer...
View Article