• Detecting in C++ whether a type is defined: Predeclaring things you want to probe

      Last time, we used SFINAE to detect whether a type had a definition, and we used that in combination with if constexpr and generic lambdas so that code could use the type if it is defined, while still being accepted by the compiler (and being discarded) if the type is not defined.

      However, our usage had a few issues, some minor annoyance, some more frustrating.

      • You had to say struct all the time.
      • If the type didn’t exist, the act of naming it caused the type to be injected into the current namespace, not the namespace you expected the type to be in.
      • You must use the struct technique with an unqualified name. You can’t use it to probe a type that you didn’t import into the current namespace.

      We can fix all three of the problems with a single solution: Predeclare the type in the desired namespace.

      Read more →
    • What is a coding bootcamp?

      A coding bootcamp is a program of technical training teaching the programming skills that employers are looking for. Coding bootcamps allow students with low skills to concentrate on the most significant coding aspects and apply their new coding skills to solve real-world problems.

      The goal of many bootcamp coding attendants is to move into a web development career. They do this by learning to build applications at a professional level – providing the foundation they need to build applications that are ready for production and demonstrating the skills they have to add real value to a potential employer.
      Read more →
    • I lost faith in the industry, burned out, but the cult of the tool saved me

      • Translation


      I often rail at technologies I find inadequate, and in response I receive (along with arguments) sheer anger and pain. Sometimes physical.

      Developers take critique of their favorite technologies very personally for some reason. This “cult of the tool” is such a strange phenomenon I can’t explain it logically. Some say everyone’s prone to it, because a coder’s thinking processes intertwine very deeply with his programming language. Some say it’s a junior’s fallacy — you write something for the first time, it works, and you start treating your language like something divine.

      Whatever it is, I never understood it.

      I always considered cultists as imbeciles. But I always try to understand why imbeciles became them, why I’ve avoided that fate. I start thinking and bam! — it turned out I’m also an imbecile. I’m a cultist who worships F#. And, of course, there’s a story behind it.
      Read more →
      • +24
      • 33.4k
      • 2