Naming is Hard: Let's Do Better - Kate Gregory - NDC TechTown 2024
About
No channel description available.
Video Description
This talk was recorded at NDC TechTown in Kongsberg, Norway. #ndctechtown #ndcconferences #developer #softwaredeveloper Attend the next NDC conference near you: https://ndcconferences.com https://ndctechtown.com/ Subscribe to our YouTube channel and learn every day: / @NDC Follow our Social Media! https://www.facebook.com/ndcconferences https://twitter.com/NDC_Conferences https://www.instagram.com/ndc_conferences/ #cplusplus #code C++ developers are famously bad at naming: our idioms, guidelines, and lore are rich in examples of terrible names. For example, consider RAII, which stands for scope bound resource management, or west const which perhaps should be const west, or all the samples that feature an object called x which is an instance of a class called X, and so on. The good news is that naming well is a learned skill, and you can learn it, and start to name better right away. In this talk, I'll tell you why names matter, what benefits a good name can bring, and how to be better at naming. I'll discuss some categories of names and some common decisions within those categories. I'm not going to give you a set of rules to follow: this is about thinking and considering the meaning of the things you are naming. I will give you some questions to ask yourself and some structure that I use to help me to help those who read what I write. I'll also address renaming things in existing (legacy) code, why and when to do it, and why getting it right the first time may not even be a realistic goal. You should be a lot more confident naming things after we spend this time together.
Unleash Your Creativity
AI-recommended products based on this video

12 Colors Nail Art Pens Set, Nail Art Markers Polish Pen for 3D Nail Art, Drawing Painting Liner Brush for DIY Nail Art Beauty Adorn Manicure Tools (12Pcs)

12 Colors Nail Art Pens Set - Professional Nail Art Markers for 3D DIY Design, Quick Dry Nail Polish Pens for Painting, Dotting & Fine Liner - Precision Tip Nail Tools for Adults & Beginners

10 Herb Garden Planter Indoor Kit, 44pcs Complete Kitchen Herb Starter Set Including Burlap Pots, Markers, Soil Discs, Gardening Tools, Unique Easter/Birthday/Christmas Gift Ideas for Women, Mom

Nail Art Pens Set 12 Colors Nail Art Markers, Nail Polish Pens Drawing Painting Pen for Home Salon,Quickly Dry Nail Art Nail DIY Decoration for Adult Kids 12 gel colors (1 Set)

HQCME 9 Pack Lined Sticky Notes, 4X6 in, 9 Pastel Colors Large Ruled Stickies Colorful Super Sticking Power Memo Pads Strong Adhesive, Sticky Notes with Lines for Home, Office

12 Colors Nail Art Pens Set - Professional Nail Art Markers for 3D DIY Design, Quick Dry Nail Polish Pens for Painting, Dotting & Fine Liner - Precision Tip Nail Tools for Adults & Beginners

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Noise-Cancelling Mic and LED Display, Built-in Mic for Clear Calls, Waterproof Design for Sports

Monster N-Lite 211 Wireless Earbuds, Bluetooth 6.0 Stereo Headphones with Powerful Bass, Built-in Noise-Cancelling Mic for Clear Calls, LED Display, 36H Playtime, IPX5 Waterproof Design for Sports

HLDIRECT 47 Inch Gaming Desk with LED Lights, Home Office Gamer Desk, Ergonomic Computer Table with Large Carbon Fiber Desktop, Computer Desk with Cup Holder & Headphone Hook for Home Office, Black

FOYTOKI 2 Sets Rechargeable Hand Warmers Portable with Temperature Levels Ergonomic Design for School Office

IMGadgets 47 x 24 Inches Height Adjustable Electric Standing Desk 2024, 5th Gen Quieter Motor Ergonomic Sit Stand Up Home Office Computer Desk with Height Memory Buttons, Display, 2 Headphone Holders

SEVEN WARRIOR Gaming Desk with LED Lights & Power Outlets, 55" Computer Desk with Monitor Shelf, Home Office Desk with Cup Holder and Headphone Hook, Ergonomic, Carbon Fiber Surface Black




















