Abstraction Patterns: Making Code Reliably Better Without Deep Understanding - Kate Gregory ACCU 22

  Рет қаралды 5,253

ACCU Conference

ACCU Conference

Күн бұрын

Пікірлер: 8
@MatthewChaplain
@MatthewChaplain 2 жыл бұрын
I think the DrawRect example at 20:45 is really good, because there are two valid interpretations of the four ints: DrawRect(Point, Point) and DrawRect(Point, Extent).
@ekline
@ekline 2 жыл бұрын
"load-bearing blank line" -- brilliant!
@TNothingFree
@TNothingFree 2 жыл бұрын
Great talk, recommended for all people who don't think in abstractions yet!
@MrAbrazildo
@MrAbrazildo 2 жыл бұрын
13:40, the worst bug in my life came from this. From that on, I always abstract numbers into constant names. The only exceptions is for when they represent their quantity, like a literal 0 initializing a 'sum' variable. 18:55, I guess a better solution would be to have all of that in an enum, and then pass only 1 integer to the f(): Update (Europe | Preliminary). 27:59, I often declare 2 or more variables in 1 line of a f(), even when they are not related. I think it's a line of declarations. I'm not willing to spend lines just to declare things. And I don't have this pointer issue. 41:30, this could be solved having previously recording a "binary mask" about all enum's constants true/false, related to this subject. So the switch could be smashed into 2 lines: if (r.ReportType() >= MAX_REPORT_TYPES) return false; //default. return r.get_NeedFooterMask() & 1
@ronensuperexplainer
@ronensuperexplainer 2 жыл бұрын
To quote Bjarne Stroustrup in his interview with Lex Fridman, talking about simula (first language with classes): [00:03:56] that was the language that taught me that you could have the problems [complexity] of a program grow with the size of the program instead of with the square of the size of the program.
@joesilver75
@joesilver75 2 жыл бұрын
Great talk, but we need (well I need) to develop the soft skills necessary to convince people to make the necessary changes. I see many of these horrors and more in the code base I have to maintain. Some spaghetti code that has become extremely difficult to comprehend (and clearly inefficient) but must not refactored because... "it works".
@ACCUConf
@ACCUConf 2 жыл бұрын
Thanks for sharing!
@atillakayrak4293
@atillakayrak4293 2 жыл бұрын
I would replace std::any_of by std::contains (c++20) in her exemple ;)
Tradeoffs in the Software Workflow - Titus Winters - ACCU 2022
1:21:19
ACCU Conference
Рет қаралды 9 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Enceinte et en Bazard: Les Chroniques du Nettoyage ! 🚽✨
00:21
Two More French
Рет қаралды 42 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Keynote: Abstraction Patterns - Kate Gregory - NDC TechTown 2022
1:02:42
NDC Conferences
Рет қаралды 11 М.
The Genius of RISC-V Microprocessors - Erik Engheim - ACCU 2022
1:01:17
ACCU Conference
Рет қаралды 95 М.
An Introduction to Multithreading in C++20 - Anthony Williams - ACCU 2022
1:27:44
Modern C and What We Can Learn From It - Luca Sas [ ACCU 2021 ]
1:05:59
ACCU Conference
Рет қаралды 108 М.
Clean Code - Uncle Bob / Lesson 1
1:48:42
UnityCoin
Рет қаралды 2 МЛН
How to Use C++20 Coroutines for Networking - Jim Pascoe - ACCU 2022
1:14:09
Branchless Programming in C++ - Fedor Pikus - CppCon 2021
1:03:57
Better Java Streams with Gatherers - JEP Cafe #23
1:13:32
Think Fast, Talk Smart: Communication Techniques
58:20
Stanford Graduate School of Business
Рет қаралды 44 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН