Back to Basics: Design Patterns - Mike Shah - CppCon 2020

  Рет қаралды 40,678

CppCon

CppCon

Күн бұрын

Пікірлер: 23
@lefteriseleftheriades7381
@lefteriseleftheriades7381 3 жыл бұрын
I feel the wrong patterns were picked. singleton is borderline an anti-pattern. adapter is simple, and iterator is built-in
@jhbonarius
@jhbonarius 3 жыл бұрын
Singleton: The window size values were constexpr... he just casually removes it, preventing compile time substitution. Why not put the global values into a separate namespace if you're worried about symbol collision? Adapter: he's just modifying the data of some object. That's not the adapter pattern. Iterator: why is he getting the window size over and over in the inner loop?
@njussakka
@njussakka 3 жыл бұрын
Exactly my thoughts when I was watching this. How this got to CppCon in the first place?
@helen13angel
@helen13angel 9 ай бұрын
It's a very good talk! Very clean and the presentation is very well organized for this amount of time. People who criticize should read the title: it's back to basic, that's why it's not covering all the things they wanted to talk about.
@jamessilva8331
@jamessilva8331 3 жыл бұрын
Maybe this wasn't perfect (as the KZfaq comment experts below let you know), but I found this helpful
@lukaszmmaciejewski
@lukaszmmaciejewski 3 жыл бұрын
Planning to show three design patterns and choosing singleton as one of them seems like a very surprising choice. Especially when you don't even mention that it's widely considered to be an anti-pattern.
@antonfernando8409
@antonfernando8409 Жыл бұрын
Didn't watch but listened to it while driving from Ottawa to Toronto lol. Didn't see any of those cool screen saver circles you mentioned.
@koronisneilos6983
@koronisneilos6983 3 жыл бұрын
In the adapter pattern: I whould put the code from AdapterText::AdapterText(sf::Text text) in a free function and and add some parameters like color and size to it.
@yjc149
@yjc149 Жыл бұрын
great presentation.. thanks!
@PedrosoJr
@PedrosoJr 2 жыл бұрын
Awesome! Excellent presentation.
@CppCon
@CppCon 2 жыл бұрын
Glad you liked it!
@pengsenmao4643
@pengsenmao4643 9 ай бұрын
Since this is a 2020 talk, I believe C++17 should already be published at that time, doesn't C++11 and later guarantee that only one thread can access the object initiallsation? So singleton is thread-safe.
@gm_000
@gm_000 Жыл бұрын
I don't suggest this tutorial if you already have a minimal knowledge about programming. It doesn't give any good insight either on C++ or Design Pattern.
@pengdu7751
@pengdu7751 2 жыл бұрын
this is a mostly a tutorial introducing design patterns. look at all the big egos in the comments. if you are an expert already, go watch something else that fit your level.
@koronisneilos6983
@koronisneilos6983 3 жыл бұрын
In the singleton class m_WindowWidth and m_WindowHeight are not initialized
@minhbt2709
@minhbt2709 3 жыл бұрын
I just wonder why do you promote Singleton? Erich was once mentioned in favor of dropping Singleton because it is a design smell. I think, we should stay away from Singleton because it is difficult to test. Furthermore, there are many ways to solve issues without using Singleton.
@nourmammeri8129
@nourmammeri8129 3 жыл бұрын
Thank you !!
@CppCon
@CppCon 3 жыл бұрын
You're welcome!
@babgab
@babgab 3 жыл бұрын
Singletons :(
Back to Basics: Move Semantics - David Olsen - CppCon 2020
59:08
The Observer Design Pattern in Cpp - Mike Shah - CppCon 2022
1:02:17
艾莎撒娇得到王子的原谅#艾莎
00:24
在逃的公主
Рет қаралды 50 МЛН
123 GO! Houseによる偽の舌ドッキリ 😂👅
00:20
123 GO! HOUSE Japanese
Рет қаралды 5 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 1,1 МЛН
Why Use Design Patterns When Python Has Functions?
23:23
ArjanCodes
Рет қаралды 103 М.
Back to Basics: Exceptions - Klaus Iglberger - CppCon 2020
1:01:45
Andrew Kelley   Practical Data Oriented Design (DoD)
46:40
ChimiChanga
Рет қаралды 82 М.
Back to Basics: Pointers and Memory - Ben Saks - CppCon 2020
1:00:56
Электронный звонок #shorts
0:26
TheBestBike
Рет қаралды 409 М.
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 9 МЛН
Самый крепкий телефон в мире. Какой? 🤯 #шортс
0:25
Антон Сошников
Рет қаралды 67 М.
Как противодействовать FPV дронам
44:34
Стратег Диванного Легиона
Рет қаралды 227 М.