CppChat[11]: Mechanical Sympathy
CppChat:
CppChat[11]: Mechanical Sympathy
with Jason Turner, Matt Godbolt, and Jon Kalb
From the chat:
Jason, Matt, and Jon discuss Compiler Explorer, other C++ shows, and writing for classic 8 bit machines.
November 14-16, Berlin, Germany
November 18-23, Wrocław, Poland
November 25, Wrocław, Poland
February 10-15, Hagenberg, Austria
March 19-21, Madrid, Spain
April 1-4, Bristol, UK
June 16-21, Sofia, Bulgaria
By Jon Kalb | Feb 18, 2017 01:51 PM | Tags: matt godbolt jon kalb jason turner cppchat cppcast compiler explorer c++ weekly c++
CppChat:
CppChat[11]: Mechanical Sympathy
with Jason Turner, Matt Godbolt, and Jon Kalb
From the chat:
Jason, Matt, and Jon discuss Compiler Explorer, other C++ shows, and writing for classic 8 bit machines.
By Thomas Young | Feb 18, 2017 07:36 AM | Tags: intermediate
Blog post about API design for objects with dependencies and lifetime management:
Who owns who
by Thomas Young
About the article
A key take-away is that a simple reference counting strategy can be the ideal way to manage lifetimes for API objects, since, as the API designer we can choose to enforce a directed acyclic graph dependency structure.
By Blog Staff | Feb 17, 2017 12:42 PM | Tags: None
A bool
or enum
by any other name:
Toggles in functions
by Andrzej Krzemieński
From the article:
Have you ever seen a function call like this?
process(true, false);We are processing something: this should be clear from the context. But what do these parameters mean? What is
We will have to stop, and take a look at the declaration, and it does give us a hint:true
and what isfalse
? From the function call we will never figure it out. The code surely isn’t self explanatory.void process(bool withValidation, bool withNewEngine);Apparently, the author of the function uses the two
bool
s as toggles...
By Blog Staff | Feb 17, 2017 12:37 PM | Tags: None
And why if you want transform_if
you'll really appreciate ranges:
std::transform
, a central algorithmby Jonathan Boccara
From the article:
The concept of
std::tranform
is so useful that there is a name for it, coming from functional programming: map (unrelated tostd::map
). In fact, we can see it the other way round: the STL takes its root in functional programming, so it is only normal that a central concept in functonal programming gets a central role in the STL...
By robwirving | Feb 17, 2017 08:07 AM | Tags: None
Episode 89 of CppCast the only podcast for C++ developers by C++ developers. In this episode Rob and Jason are joined by Alex Allain from Dropbox to talk about Dropbox's Djinni code generator and Alex's book Jumping into C++.
CppCast Episode 89: Jumping into C++ with Alex Allain
by Rob Irving and Jason Turner
About the interviewee:
Alex Allain is a Director of Engineering at Dropbox. He was one of the first engineers on the Dropbox Business product before leading Dropbox's Product Platform group, whose initiatives includes the Dropbox Sync Engine, shared mobile C++ and developer tools. Alex has run Cprogramming.com since 1998 and is the author of Jumping into C++, a book for new programmers.
By Marco Arena | Feb 17, 2017 07:08 AM | Tags: visual studio
In this episode, Marian Luparu and Iyyappa Murugandi chat with Steve about CMake support in Visual Studio:
GoingNative 56: CMake in Visual Studio
with Steve Carroll, Marian Luparu and Iyyappa Murugandi
By Jordi Mon Companys | Feb 17, 2017 03:11 AM | Tags: community c++14 c++11
Madrid's C++ meetup is organizing a Coding Dojo at Tuenti's HQ (calle Valverde, ID required).
Title: Coding "dojo" C++ moderno (C++11, C++14)
Organized by C++ Madrid
Several katas will be proposed by Manu Sánchez, Diego Rodríguez-Losada and Esteve Fernández which will be solved and discussed in common. Read more in the link above [in Spanish].
We've got a full house already!! Thanks for your interest.
By Adrien Hamelin | Feb 15, 2017 03:31 PM | Tags: intermediate c++11
Do you feel the same way?
Lambda Overdose
by Arne Mertz
From the article:
Lambdas are a nice recent addition to C++. They are cool, they are hip, and they tend to be overused and misused.
Since lambda expressions came up in C++11 and got a huge boost in usability in C++14, they have been all the rage. Don’t get me wrong. Lambdas really are useful and cool and everything. But reading blog posts, the CppLang Slack channel and other sources lately has given me the impression that some people use lambdas in ways they should not be used...
By Meeting C++ | Feb 14, 2017 04:41 AM | Tags: qt intermediate experimental advanced
An update on the HTML Text Editor I hacked with Qt and TinyMCE3:
Refactoring the HTML Text Editor for QWebEngine
by Jens Weller
From the article:
In the last post, I described my experience with using MSVC as a compiler in combination with QtCreator. The reason I set this up was, that with Qt 5.7 QWebkit isn't anymore supported, and the HTML TextEditor based on tinymce3 is a central part of my application. Instead of QWebkit there is now QWebEngine, based on chromium, a very fine solution...
By Adrien Hamelin | Feb 13, 2017 12:52 PM | Tags: community
ACCU’s Overload journal of February 2017 is out. It contains the following C++ related articles.
Overload 137 is now available
From the journal:
Mean Properties
Property based testing is all the rage. Russel Winder walks us through an example of properties an arithmetic mean function should have. by Russel Winder
The Importance of Back-of-Envelope Estimates
Guestimate questions make many people grumble. Sergey Ignatchenko reminds us why they matter. by Sergey Ignatchenko
Multiprocessing and Clusters in Python
Multiprocessing is possible in Python. Silas S. Brown shows us various ways. by Silas S. Brown
doctest – the Lightest C++ Unit Testing Framewor
C++ has many unit testing frameworks. Viktor Kirilov introduces doctest. by Viktor Kirilov
Correct Integer Operations with Minimal Runtime Penalties
Results of C++ integer operations are not guaranteed to be arithmetically correct. Robert Ramey introduces a library to enforce correct behaviour. by Robert Ramey