CppCon 2019: Kate Gregory “Naming is Hard: Let's Do Better”
Video Statistics and Information
Channel: CppCon
Views: 27,149
Rating: 4.8764043 out of 5
Keywords: Kate Gregory, CppCon 2019, Computer Science (Field), + C (Programming Language), Bash Films, conference video recording services, conference recording services, nationwide conference recording services, conference videography services, conference video recording, conference filming services, conference services, conference recording, event videographers, capture presentation slides, record presentation slides, event video recording, video services
Id: MBRoCdtZOYg
Channel Id: undefined
Length: 59min 35sec (3575 seconds)
Published: Tue Oct 08 2019
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.
Looking at you,
std::monostate
. (and you too,std::remove()
)"naming requires empathy"
I might quote this.
Maybe as "writing code requires empathy". That sums up so much of applied software engineering very succinctly!
In C++ the constructor and the destructor has a name, but these name are not used. C++ uses the class name for the constructor, and overload it for completely different uses (copy constructor, move constructor). The special member functions all have a name for teaching. I would have no problem if the move constuctor is not an overloaded constructor, but having a name "move_constructor", and "copy_constructor" for the copy constructor. The two names are easier to read, rather than counting the reference characters (& or &&). This would help correcting the code, if the programmer uses the wrong reference type.
Another great talk from Kate Gregory; slides are available.
Kate is great
Without watching the (hopefully great) talk, first my mind went to: naming is hard, let's just not name things.
There is nothing wrong with
I didn't get much out of this talk since most things discussed are obvious to me ¯\_(ツ)_/¯