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

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

ACCU Conference

ACCU Conference

Күн бұрын

Пікірлер
@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!
@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.
@MrAbrazildo
@MrAbrazildo Жыл бұрын
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
@TNothingFree
@TNothingFree 2 жыл бұрын
Great talk, recommended for all people who don't think in abstractions yet!
@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
Рет қаралды 8 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Keynote: Abstraction Patterns - Kate Gregory - NDC TechTown 2022
1:02:42
NDC Conferences
Рет қаралды 11 М.
An Introduction to Multithreading in C++20 - Anthony Williams - ACCU 2022
1:27:44
The Art of Code - Dylan Beattie
1:00:49
NDC Conferences
Рет қаралды 4,7 МЛН
The Genius of RISC-V Microprocessors - Erik Engheim - ACCU 2022
1:01:17
ACCU Conference
Рет қаралды 94 М.
Modern C and What We Can Learn From It - Luca Sas [ ACCU 2021 ]
1:05:59
ACCU Conference
Рет қаралды 106 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН