/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

eli.thegreenplace.net
| | www.bfilipek.com

Variadic Templates from C++11 is probably not a feature that you use on a daily basis. But recently, I've come across one refactoring example where I've decided to give a try and apply variadics. Intro When I was doing some work in some old UI code I've noticed several similar lines of code that looked like that:
0.8 parsecs

Travel
| |
| | studiofreya.org

[AI summary] A C++11 variadic template example demonstrating perfect forwarding to wrap constructor calls for a structure.
0.8 parsecs

Travel
| |
| | www.fluentcpp.com

Variadic templates allow any number of template parameters of any type. In this article we see how to do a variadic number of parameters of the SAME type.
1.3 parsecs

Travel
| |
| | mbuffett.com

The Commonplace blog has been writing a lot on tacit knowledge recently. As someone who's been programming for a long time (8ish years), these articles resonated deeply. I won't go into too much detail what tacit knowledge is about, since the above posts do such a good job with it. If you're not familiar, check them out. Explicit knowledge vs tacit knowledge Essentially, explicit knowledge is that which can be transferred verbally. For example, I could tell someone the method name for pushing to an array in JavaScript, what version of Python print went from a keyword to a function, and the range of HTTP status codes that represent success. Maybe they'd need to do some spaced repetition learning or something, but they can just memorize these bits.
21.7 parsecs

Travel
|