
⌨️ Software Engineer at @DeepLcom 🧑🏻💻 🌐 ISO C++ committee member for Iceland 🇮🇸 On Mastodon: https://xitter.cf/t.co/timKUbUytg
- Tweets2.2K
- Following26
- Followers279
- Likes1K

ALT A Hubble image of a black, deep-space field is speckled with white, yellow and reddish galaxies. At the lower left corner, one, lone star with four, prominent spikes appears. In the center of the image is a small, white-bordered, boxed area that contains one, long, thin, diagonal streak of whitish-blue stars. The diagonal line looks like a scratch on the photograph. It is positioned from near the bottom, left corner to the top right corner of the box. Two galaxies also reside within the box. One irregular-looking galaxy, in the top right corner, appears to be connected to the line. Another elliptical-looking galaxy appears in the bottom, right corner of the box. To the right of the small box is a larger white-bordered box that contains a magnified view of the contents of the smaller box. In this magnified view, a white knot appears prominently at the bottom tip of the stream of stars.

ALT This illustration shows a black field speckled with white, yellow and red galaxies. A black hole near the bottom left corner of the image plows through space, leaving a diagonal trail of newborn stars stretching back to the black hole’s parent galaxy in the upper right corner. The black hole is represented by a black half-sphere. It is encircled by an elongated disk of material compressed on the lower left side and trailing off on the upper right side. The material closest to the black hole appears pink, white and streaky. Beyond this, the leading edge of the disk, near the bottom, left corner, is milky violet. The disk trails off behind the black hole, becoming black. Beyond the disk, a diagonal “contrail” of blue and pink stars extends toward the blue-and-pink parent galaxy. The bridge of stars trails off, becoming narrower as it approaches the galaxy.

ALT When designing library code, one often wonders: “Are these all the parameters this function will ever need?” and “How can a user conveniently change one parameter without specifying the rest?” This post introduces some Modern C++ techniques you can use to make passing configuration options easy for your users, while allowing you to add more options later on.





















