No video

Thinking Functionally in C++ - Brian Ruth - CppCon 2023

  Рет қаралды 13,001

CppCon

CppCon

Күн бұрын

Пікірлер: 13
@Voltra_
@Voltra_ 7 ай бұрын
The lambda example is actually quite interesting
@xenobyte2281
@xenobyte2281 8 ай бұрын
This dude actually decided not to use any syntax highlighting for those walls of text...
@9uiop
@9uiop 8 ай бұрын
It's not quite clear why go through hoops with the lambdas in the Oven example. For me it's much cleaner to have a class with a function template that forwards the call.
@hemangandhi4596
@hemangandhi4596 7 ай бұрын
Agreed, I also feel like `oven_instance.do(oven_set_temperature, 212)` is a better API than `oven_instance(over_set_temperature, 212)`. Also that example felt like it went against the whole "C++ is multi-paradigm" message.
@not_ever
@not_ever 7 ай бұрын
“The goal of this talk is to show you different ways of thinking about a problem”
@ABaumstumpf
@ABaumstumpf 7 ай бұрын
@@not_ever That implicitly has the notion of REASONABLE ways of thinking attached. Of course you can think of it in other terms too - you could break it down to the chemistry if you want - that would just be retarded. And example for "there are different approaches" should always be one that has at least in principle some benefits - or it is an example of how not to do it.
@kuhluhOG
@kuhluhOG 6 ай бұрын
@@ABaumstumpf he EXPLICITLY stated at the beginning of the talk that things may not be best practices Also, "thinking differently" does not imply "thinking reasonable".
@RishabhRD
@RishabhRD 8 ай бұрын
I have read all the books mentioned here
@hemangandhi4596
@hemangandhi4596 7 ай бұрын
This felt like a back to basics talk. Does anybody know why it wasn't marked as such? Did it not make it into the track?
@weaponkid1121
@weaponkid1121 7 ай бұрын
what does that mean?
@stefanalecu9532
@stefanalecu9532 7 ай бұрын
Why would this be a back to basics talk?
@ABaumstumpf
@ABaumstumpf 7 ай бұрын
27:04 - at this point you have created an oven that is worse then the original one. I always find it fascinating when people come up with "But now you need to change this every time something new is added" - so? The change has to be done somewhere and having it explicitly inside my file makes it easy to maintain. It becomes easier to add other functionalities, sanity-checks and test - also you are no longer forced by the old C-style API. And it might just be the field i am working with but to me it would seem there is something seriously wrong with the program architectures and the coding approach if you constantly have to change fundamentals of your code
@rutabega306
@rutabega306 3 ай бұрын
until ur file is 4000 lines long... I think the Open/Closed advice is mainly useful when you have like 10 engineers in the same codebase and you don't want everyone colliding all the time.
Can This Bubble Save My Life? 😱
00:55
Topper Guild
Рет қаралды 70 МЛН
Magic trick 🪄😁
00:13
Andrey Grechka
Рет қаралды 45 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 1,1 МЛН
What is a Monad? - The Last Monad Intro You'll Ever Need
15:48
走歪的工程師James
Рет қаралды 19 М.
Back to Basics: C++ Concurrency - David Olsen - CppCon 2023
1:00:58
Kevlin Henney - Functional C++
1:01:49
Build Stuff
Рет қаралды 38 М.
C#’s Functional Journey - Mads Torgersen - NDC Sydney 2024
1:00:41
NDC Conferences
Рет қаралды 17 М.
New Algorithms in C++23 - Conor Hoekstra - C++ on Sea 2023
1:25:20
Back to Basics: Testing in C++ - Phil Nash - CppCon 2023
1:02:33