Failing Successfully: Reporting and Handling Errors - Robert Leahy - CppCon 2021

  Рет қаралды 23,178

CppCon

CppCon

Күн бұрын

Пікірлер: 18
@robertleahy6923
@robertleahy6923 2 жыл бұрын
Speaker here: It's been pointed out to me that I (along with my test audiences!) managed to miss the fact that std::from_chars does not ignore leading whitespace (unlike the other integer parsing functions mentioned). This doesn't affect the substance of the talk but I don't want anyone to add unnecessary logic to try and detect leading whitespace because of an erroneous remark in a talk on error handling.
@Dth091
@Dth091 2 жыл бұрын
I'm glad you handled the error you made in your talk so well, and reported it clearly to us :)
@KulaGGin
@KulaGGin 2 жыл бұрын
Great talk, thanks for that. Your patterns to structure code go right next to Uncle Bob's Clean Code suggestions in my notes, in the SRP/SoC section. I was thinking how could I actually separate logging from the component, and it's events and Observer, you're right, of course!
@fdwr
@fdwr Жыл бұрын
Thank you for the talk - many head nodding moments. 19:30 The zoo of error-ish things introduce in C++11 has been royally confusing to me due to naming. Error code is not actually an error code, but contains an actual error code plus a helper error domain interface. Then you have the subtle distinction between error_code and error_condition which are mostly identical in their interface, yet don't inherit from a shared base class for generality :/ ... std::errc - an error code std::error_code - a different error code? std::error_condition - yet another kind of error code 🤔 std::error_category - a utility helper interface for error codes 😵 ...I had to make a mental map just to sort them all out: std::errc -> std::posix_error_code std::error_code -> std::platform_dependent_error std::error_condition -> std::platform_independent_error std::error_category -> std::error_domain/utility/mapper std::system_category -> std::platform_dependent_error_domain std::generic_category -> std::platform_independent_error_domain std::future_errc -> std::future_error_code std::future_category -> std::future_error_domain std::io_errc -> std::iostream_error_code std::iostream_category -> std::iostream_error_domain.
@tcroyce8128
@tcroyce8128 2 жыл бұрын
This year we are seeing really great topics that can be enjoyed by even the beginners.👌
@ophi47
@ophi47 2 жыл бұрын
I can't believe no has commented how great this concept is. I know it can grind some gears lol.
@Tobxon
@Tobxon Жыл бұрын
I like they we he is talking somehow. It gives my brain the feeling of listening to drama (positivly meant).
@cw3dv
@cw3dv 2 жыл бұрын
wow nice talk!
@arthopacini
@arthopacini 2 жыл бұрын
awesome!
@CppCon
@CppCon 2 жыл бұрын
Thanks!
@EduardoMengesMattje
@EduardoMengesMattje Жыл бұрын
Great talk!
@daver94
@daver94 8 ай бұрын
Amazing 🎉
@erichlf
@erichlf 2 жыл бұрын
@7:55 "there are far more strings than integers." This is untrue, they are both countably infinite and therefore there are the same number of strings as integers. The idea that there are strings that aren't numbers doesn't mean there are more strings than numbers. I know this is very counter intuitive, but so is the idea that there are the same number of of numbers between 0 and 1 as there are on the entire number line. Both are uncountably infinit in this case.
@erichlf
@erichlf 2 жыл бұрын
In the case of the types then this is true, which is what the point was really.
@louism11
@louism11 2 жыл бұрын
Not in a program in a language where integers are a fixed number of bytes. He was comparing the input string of atoi() with its return value, not pure mathematical integers.
@masheroz
@masheroz 2 жыл бұрын
There are more strings than ints.
@iceman8075
@iceman8075 2 жыл бұрын
also did you forget that some infinities are larger than other infinities? infinity + 1 > infinity, the former infinity is larger than previous.
@pauldubois0
@pauldubois0 3 ай бұрын
You want to make claims regarding unbounded analogues to C++ types? Then, for every Real, I claim there's at least one String that represents it. Therefore Strings are uncountable.
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3 МЛН
СКОЛЬКО ПАЛЬЦЕВ ТУТ?
00:16
Masomka
Рет қаралды 3,3 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 14 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 111 МЛН
Deploying the Networking TS - Robert Leahy - CppCon 2021
52:21
The Do's and Don'ts of Error Handling • Joe Armstrong • GOTO 2018
45:31
Exception handling in C++ (How to handle errors in your program?)
24:46
Branchless Programming in C++ - Fedor Pikus - CppCon 2021
1:03:57
Modern C and What We Can Learn From It - Luca Sas [ ACCU 2021 ]
1:05:59
ACCU Conference
Рет қаралды 105 М.
Back to Basics: Lambdas - Nicolai Josuttis - CppCon 2021
1:05:21
Don't use VSCode
35:31
PyCon South Africa
Рет қаралды 230 М.
За кого болели?😂
00:18
МЯТНАЯ ФАНТА
Рет қаралды 3 МЛН