Lightning Talk: Forbidden C++ - Ali Almutawa - CppCon 2023

preview_player
Показать описание
---

Lightning Talk: Forbidden C++ - Ali Almutawa - CppCon 2023

We're gonna go through 15 screenshots of forbidden C++ code that should never be written in an actual codebase.
---

Ali Almutawa

I've worked in the University of Colorado Boulder as a Learning Assistant CSCI 1300 (the intro course) and CSCI 3104 (Algorithms).
---

---

#cppcon #cppprogramming #cpp
Рекомендации по теме
Комментарии
Автор

3:26
Note that it IS possible to explicitly specify a template argument for a generic lambda, you just have to spell out the call operator:
```
auto lambda = []< typename T >(){ return T{}; };
auto result = lambda.operator()< float >();
```

xtra-medium
Автор

I wrote a particularly evil function function the other day, that takes a uint16_t the other day and calls a function that takes the entered number as its template parameter, generating all the if statements with templates and recursive calls.

SomebodyHere-cmdj
Автор

Interesting how a lot of cppcon talks are about how horrible the C++ language is.

tomekczajka
Автор

How to make C++ code unreadable with zero semantics gain! 😂

Samsom
Автор

It is unfortunate we have to do brain gymnastics like this with C++

zhaoli
Автор

It's not a "templated lambda", it is a lambda template.

Fetrovsky
Автор

1:25, and the memory wasn't initialized.

MrAbrazildo
Автор

glad to not have to write c++ anymore. would rather reverse it anyways...

arizvisa
Автор

is there something more annoying than vocal fry?

carneirouece