Affective C++ @AffectiveCpp
The authoritative guide for High Quality C++! (Warning: These are all jokes.) Joined September 2018-
Tweets299
-
Followers4K
-
Following71
-
Likes373
On x86, the stack grows “down” towards lower addresses. However, this is only true in the northern hemisphere due to the Coriolis effect. In Australia, the stack grows up actually. That’s because they are all looking at their monitors upside down to avoid falling off the planet.
Item 79: Choosing the right data structure is critical. Is memset too slow? Consider memunordered_set instead, to avoid the red-black tree in favor of hashing. See also memmap for key/value, mempriority_queue, memstack, etc. (thanks @jfbastien) #cplusplus #cpp #affectivecpp
@david_m_stone But `unsigned const int` is not the same as `const unsigned int` nor `unsigned int const`. For east-const builds unsigned const int makes the high bit read-only. For west-const builds it makes everything *except* the high bit read-only. We rejected central due to the ambiguity.
Item 77: The difference between char and wchar_t is that char is for narrow characters, and wchar_t is for wide characters. Store letters like i and j in a char, and letters like m and w in a wchar_t. (Thanks @chrisoldwood) #cplusplus #cpp #affectivecpp
Item 77: The difference between char and wchar_t is that char is for narrow characters, and wchar_t is for wide characters. Store letters like i and j in a char, and letters like m and w in a wchar_t. (Thanks @chrisoldwood) #cplusplus #cpp #affectivecpp
Really cool article about C++23! kdab.com/cpp23-will-be-…
@ciura_victor Pro-tip: Commas are quicker to parse than semi-colons because there are less pixels in the character. @AffectiveCpp
@AffectiveCpp this is how the professionals structure projects.
@AffectiveCpp this is how the professionals structure projects.
programming protip! when you see x >= 0, that's a handy shortcut for x = x > 0
Item 76: Can't remember all the different casts? Replace them all by the more powerful unicorn_cast: template <typename T, typename U> T unicorn_cast(U&& u) { void* addr = &u; return *static_cast<T*>(addr); } (Thanks @bjorn_fahller) #cplusplus #cpp #affectivecpp
Item 75: For owning pointers, use `int *variable` (star next to the variable you own), and for non-owning pointers use `int* variable` (star away from the variable) (Thanks @olafurw) #cplusplus #cpp #affectivecpp
Item 75: For owning pointers, use `int *variable` (star next to the variable you own), and for non-owning pointers use `int* variable` (star away from the variable) (Thanks @olafurw) #cplusplus #cpp #affectivecpp
Item 74: std::vector<bool> is widely regarded as a bad idea. Instead, prefer using std::basic_string<bool>, which both behaves as an actual container, avoids proxy objects, and gives you a small vector optimization for free! (Thanks @horenmar_ctu) #cplusplus #cpp #affectivecpp
Item 74: std::vector<bool> is widely regarded as a bad idea. Instead, prefer using std::basic_string<bool>, which both behaves as an actual container, avoids proxy objects, and gives you a small vector optimization for free! (Thanks @horenmar_ctu) #cplusplus #cpp #affectivecpp
Item 73: If you experience seemingly random crashes and bugs in your software, simply ship it with -O0 to reduce the failure rate. (Thanks @Cor3ntin) #cplusplus #cpp #affectivecpp
@bjorn_fahller @AffectiveCpp The other advantage is that it forces you to keep the number of local variables down to a manageable 26 or less.

Ólafur Waage @olafurw
11K Followers 566 Following A sane programmer according to the internet - He/Him - Icelander in Norway
Jason Turner @lefticus
27K Followers 681 Following Making C++ Fun, Safe, and Accessible https://t.co/PN23ICXVpp, https://t.co/Uv1E4fXvMx, https://t.co/V79Wtl5aXT @[email protected]
Björkus 'No time_t t... @__phantomderp
13K Followers 2K Following The C Standard Cannot Be Replaced And Will Never Be Destroyed. ➡ https://t.co/IWEB4XZpve | Avatar @KIINGKIISMET | Banner @Reckless_Moss
Sy Brand @TartanLlama
26K Followers 1K Following c++ developer advocate @microsoft ~ poet ~ film/noisemaker ~ mask enthusiast ~ they/them
Mara @m_ou_se
45K Followers 415 Following Rust dev, Electronics engineer, Author, @rustlang Library team lead, ADHD, Polyamorous, Lesbian, She/Her
Jonathan Müller @foonathan
12K Followers 70 Following C++, compilers, and programming languages. Library developer @thinkcell, chair for std::ranges at @isocpp. @[email protected]
@[email protected] @shafikyaghmour
9K Followers 876 Following Compiler Engineer clang front end. Interests: C++, C, and undefined behavior. Martial Artist, Book Worm and Dad. @[email protected] he/him
JF Bastien @jfbastien
12K Followers 646 Following C++ standards committee language evolution chair — WebAssembly co-instigator— https://t.co/kR60YklfRH
Timur Doumler @timur_audio
7K Followers 1K Following Host @cppcast. Organiser @CppHelsinki. Co-founder @cradleaudio. SG21 (Contracts) co-chair @isocpp. Conference speaker. Pastafarian. Ravenclaw. Socialist. he/him
matt godbolt is mostl... @mattgodbolt
15K Followers 2K Following Husband, father, coder, sometime verb, real person. Fond of old hardware. Co-host @twoscp. #BlackLivesMatter. @matt.godbolt.org on bsky He/him
Conor Hoekstra @code_report
8K Followers 678 Following @nvidia • @youtube • @adspthepodcast • @arraycast Blusky: https://t.co/UPjBqO9qFS Mastodon: https://t.co/bjvEaww90u
C++ Coach / @janwilma... @janwilmans
4K Followers 837 Following find me on @janwilmans.bsky.social I'm not here anymore.
Yacob (Kobi) Cohen-Ar... @kobi_ca
3K Followers 491 Following Running San Diego C++ Meetup @sdcppmu, YT chan, Tech reviewer of OOP book (Packt) with Dorothy K. (Deciphering OOP w/ C++), My opinions and jokes, nvidian
Bryce Adelstein Lelba... @blelbach
17K Followers 2K Following Principal Architect at @NVIDIA working on programming languages. C++ Library Evolution chair emeritus. Frequent @traveloneworld flyer. Horology nerd.
Tom Forsyth (TODO: fi... @tom_forsyth
18K Followers 306 Following Gfx coder and chip designer. 3Dlabs/Muckyfoot/RAD/Valve/Oculus/Intel/Rec Room. https://t.co/Y6hyjycmgo @tomforsyth.bsky.social
Tony Van Eerd @tvaneerd
3K Followers 232 Following My alter-ego's alter-ego. he/him or they/them. Table.
Victor Ciura @ciura_victor
4K Followers 674 Following Technical Lead for Rust Program @ Microsoft • C++ ↔️ Rust Tooling (DevDiv), ex @visualc team, ex @caphyon, ex @advinst lead, @ClangPowerTools creator, he/him
Mathieu Ropert @MatRopert
3K Followers 221 Following C++ Consultant and Trainer. Game developer and lead. Ex Paris C++ User Group organizer. Avid roleplayer, amateur photographer and occasional winetaster.
CppCast @cppcast
13K Followers 122 Following The first podcast for C++ developers by C++ developers! Hosted by @phil_nash and @timur_audio. Also find us on Mastodon @[email protected]
Vittorio Romeo @supahvee1234
6K Followers 461 Following I write code, lift weights and play games. I also like everything sci-fi. Views and opinions are my own. | https://t.co/7ZGsl68xl4
Merty @mertyonchain
3K Followers 191 Following
Ozgur Yalcin @breozgur
5 Followers 53 Following
Wesley Fecske ✝ @xwezsx
216 Followers 4K Following Matthew 13:25-26 James 3:17 Beatitudes katharos kardeeah C.H. Spurgeon, C.S. Lewis
Emrah Bayındır @_byemrah
133 Followers 869 Following
thuvvik @thuvvik
23 Followers 401 Following
Tyler Harper @StreetKings_15
95 Followers 2K Following Living life Riding Fast basketball for life spending money and Kik me at turn_up_15 follow me on instagram @tbh_gone_know and @khalifa_maddness
Jack @Jackguo0x00
0 Followers 3 Following
கரடி|ரய�... @Baburslongot
0 Followers 5K Following
Bruno Cabral ⭐⭐ @BrunoRCabral
192 Followers 777 Following Eng. Eletricista, Galo, F1, Tecnologia, Python, C++, Android, Unity, ML, 5GNR, LTE
Rashawn Gerhold @rashawn41404
103 Followers 4K Following
ca wh @whcahhhhhh
0 Followers 20 Following
刘伟 @faltung
5 Followers 476 Following
roffen @roffen17
14 Followers 144 Following
Valdomiro Sampaio @vfsampaio56
7 Followers 263 Following
Drioclir @Drioclir4dOxE_
32 Followers 959 Following
Konstantin Leontev @kleontev
356 Followers 51 Following Архитектор-дизайнер, занимаюсь проектированием и 3D визуализацией интерьеров. Даю частные уроки 3ds Max, V-Ray, ArchiCAD в Москве. Живой человек.
Deco @Deco_Xu1
11 Followers 244 Following
Miguel Dorta @migue_dorta
201 Followers 839 Following Indie developer making space game https://t.co/ybEiSNbPyA
Priyanaka Kaple @priyanka_kaple
0 Followers 68 Following
Tirthraj Mahajan @TirthrajM007
40 Followers 133 Following eat sleep code repeat github : https://t.co/POZmYx6JGH
Saber Oueslati @saberoues
9 Followers 683 Following
PuckChirps @_puckChirps
245 Followers 1K Following Your favorite hockey chirper LETS GO @penguins "It's a great day for hockey"
keltek @keltek228
35 Followers 1K Following
Ayesha @yourvalentineee
1K Followers 3K Following Living life to the fullest with the rhythm of Bollywood and the beauty of sunsets.
We help you convert y... @Naif90907132
331 Followers 4K Following
vishnu @vishnukura
6 Followers 90 Following
salonsro @salonsro
3 Followers 39 Following
neuroevolutus @neuroevolutus
21 Followers 3K Following
cs131 @anyone13231
17 Followers 525 Following
Всемирный п... @Ihavenotideas
19 Followers 61 Following Никакие мысли не стоят того чтобы их думать she
alt+255 @errortemi
1 Followers 34 Following
Krishna @krishna180406
36 Followers 836 Following
230 Grains of Therapy @230therapy
236 Followers 150 Following Gaze upon my privilege and despair. (Pronouns: 45/ACP)
Tim Cruikshank @TimCruikshank
293 Followers 245 Following I run on coffee, surfing, dad jokes, and whatever snacks my kid didn’t finish
Tanjiro Comado @tanjiro_co66402
2 Followers 21 Following
Plan Ghimire 𝕏 @Plan_Ghimire
7 Followers 107 Following Tech enthusiast | Engineering Student || Lifelong learner | Coffee lover ☕ | 🚀 | Always curious 🌌 #AI #Science #🇳🇵
Ali @Ali373772699816
0 Followers 142 Following
https://mastodon.soci... @vzverovich
11K Followers 90 Following Carbon-based open sourcerer, code necromancer and a former alien. Author of C++20 std::format and https://t.co/etCUwPDCEw. Opinions are not mine.
Ólafur Waage @olafurw
11K Followers 566 Following A sane programmer according to the internet - He/Him - Icelander in Norway
Jason Turner @lefticus
27K Followers 681 Following Making C++ Fun, Safe, and Accessible https://t.co/PN23ICXVpp, https://t.co/Uv1E4fXvMx, https://t.co/V79Wtl5aXT @[email protected]
Meeting C++ @meetingcpp
34K Followers 967 Following C++ News - C++ User Groups - C++ Conference #cpp https://t.co/qpnlCJHbWj / @[email protected] Imprint: Jens Weller, https://t.co/UI8y5b7GsQ
Sy Brand @TartanLlama
26K Followers 1K Following c++ developer advocate @microsoft ~ poet ~ film/noisemaker ~ mask enthusiast ~ they/them
Jonathan Müller @foonathan
12K Followers 70 Following C++, compilers, and programming languages. Library developer @thinkcell, chair for std::ranges at @isocpp. @[email protected]
Timur Doumler @timur_audio
7K Followers 1K Following Host @cppcast. Organiser @CppHelsinki. Co-founder @cradleaudio. SG21 (Contracts) co-chair @isocpp. Conference speaker. Pastafarian. Ravenclaw. Socialist. he/him
Nicolai Josuttis 🇺... @NicoJosuttis
8K Followers 56 Following Author and trainer for C++ (https://t.co/hZlKwDYgBD, https://t.co/Wi2xdmcPOl, https://t.co/sjxsPRUKKy, https://t.co/1qClNsJ8pF, https://t.co/8qPAOGmZaz)
Barry Revzin @BarryRevzin
3K Followers 127 Following C++ (Jump Trading, Deducer of This, SG10 Chair) and Swimming (DC Trident 🔱, Occasional SwimSwam Contributor, Current Analyzer).
Bartlomiej Filipek @fenbf
8K Followers 907 Following Software developer with a technical blog about #cpp #cplusplus #programming. Author of https://t.co/RTymzbCl0a and https://t.co/sZKX50a7n5 4x Microsoft MVP
Bryce Adelstein Lelba... @blelbach
17K Followers 2K Following Principal Architect at @NVIDIA working on programming languages. C++ Library Evolution chair emeritus. Frequent @traveloneworld flyer. Horology nerd.
Tony Van Eerd @tvaneerd
3K Followers 232 Following My alter-ego's alter-ego. he/him or they/them. Table.
Victor Ciura @ciura_victor
4K Followers 674 Following Technical Lead for Rust Program @ Microsoft • C++ ↔️ Rust Tooling (DevDiv), ex @visualc team, ex @caphyon, ex @advinst lead, @ClangPowerTools creator, he/him
🇺🇦 Andrei Alexa... @incomputable
15K Followers 428 Following Please refer to my website for bio and contact information.
Mathieu Ropert @MatRopert
3K Followers 221 Following C++ Consultant and Trainer. Game developer and lead. Ex Paris C++ User Group organizer. Avid roleplayer, amateur photographer and occasional winetaster.
Vittorio Romeo @supahvee1234
6K Followers 461 Following I write code, lift weights and play games. I also like everything sci-fi. Views and opinions are my own. | https://t.co/7ZGsl68xl4
Odin Holmes @odinthenerd
6K Followers 546 Following C++/kiCad/embedded/random thoughts. CTO at AIGruppe. Building monitoring systems for industrial/environmental/critical infrastructure. - not the god
Michael Caisse @MichaelCaisse
4K Followers 161 Following bithead : C++, embedded, hardware, software, and mentoring. Passionate about Software Engineering. @intel Chipsets Silicon Group. Sabre fencer.
Andrey Karpov @Code_Analysis
6K Followers 202 Following CMO. Co-founder of PVS-Studio. My company develops the PVS-Studio static code analyzer for C, C++, C#, Java.
Daisy Hollman @The_Whole_Daisy
3K Followers 329 Following Making programming more accessible, one line at a time 🌼 C++ standards committee member 🌼 Passionate about diversity 🌼 Views are my own 🌼 she/her
Tamir Bahar @tmr232
1K Followers 1K Following No longer active here. Leaving this on as a redirect. Advanced Technologies Team Lead @JFrog | ex-@magicleap | @[email protected] | He/Him
luna was here @lunasorcery
15K Followers 988 Following • she/her • queer poly disaster • recovering former gamedev • private: @moon_dot_exe • banner: @kiingkiismet •
UndefinedBehavior @UndefinedBehav
204 Followers 63 Following
Hana Dusíková 🦋 ... @hankadusikova
6K Followers 566 Following she/her, author of CTRE library, moved to bsky https://t.co/AvAm5pKniQ
olvemaudal @olvemaudal
2K Followers 852 Following Knowledge management, energy systems, software engineering, C, C++, Python, security. Based in Oslo.
Adi Shavit @AdiShavit
3K Followers 2K Following Visioneer; Architect; CV/ML; C++; Evolution; (he/him) { In a parallel universe I am a paleoanthropologist } @[email protected]
João Araújo @joao_aarj
51 Followers 284 Following Tech enthusiast, currently helping to disrupt mobile content delivery as Head of Engineering @codavel
Diego @diegorlosada
2K Followers 854 Following @conan_io cofounder, lead architect @JFrog. ❤️ open source, C, C++, Python. Ex: freelance, startup, robotics, PhD, Prof. Proud father of 3. Opinions my own
conan.io @conan_io
4K Followers 1K Following C and C++ portable, decentralized, FOSS package manager for developers
Jakub Marek @Eremiell
109 Followers 967 Following Open minded hacker in love with (meta)data, encodings, mono fonts, minimalism, terminal, linux, coffee, and stuff. Developer, analyst, tutor, learner, thinker.
Jimmy Utterström @jimutt
160 Followers 496 Following Staff Engineer at Storytel 👨💻 Hobby musician 🎼
Max Raskin @MaximRaskin
183 Followers 169 Following Dev, Star Trekkie, Drawings Hobbist, Father and Dog owner
Vaughn Cato @vaughncato
778 Followers 181 Following C++ Enthusiast. Motion Capture Software Engineer at Lightstorm Entertainment @[email protected]
Louis Dionne @LouisDionne
3K Followers 54 Following Boost.Hana author, generic library writer, speaker, C++ standard library engineer at Apple
Stephan T. Lavavej @StephanTLavavej
8K Followers 126 Following Programmer-Archaeologist, Visual C++ Libraries. Pronounced Steh-fin Lah-wah-wade, or just STL.
Chandler Carruth @chandlerc1024
14K Followers 233 Following Software, performance, optimization, programming languages, security, open source, #CarbonLang lead, #LLVM, #Clang, C++. 🏳️🌈 he / they
Jon Kalb @_JonKalb
5K Followers 899 Following Jon is a freelance C++ trainer, who help organize C++ events (conferences and local meetings).
C++Now @cppnow
11K Followers 27 Following This account is unmonitored and for information purposes only. The conference isn't affiliated with X or any advertisement shown with the profile or its posts
Visual C++ @visualc
18K Followers 110 Following The Microsoft C++ team, working on @VisualStudio, @code, and #vcpkg.
Svenn-Arne Dragly @dragly
175 Followers 257 Following
Fabio Galuppo @FabioGaluppo
375 Followers 2K Following
Yann Labou @YannLabou
226 Followers 536 Following Software Engineer (C++). I work @torcrobotics. Opinions on Twitter and elsewhere are my own. Expect tech, politics and soccer (In ❤️ with Borussia Dortmund).
DLed @dmlled
266 Followers 1K Following Opinions in my tweets are my own and do not represent the views of my employer, past or present. d-led
this is not an ian sn... @GeeksKick
86 Followers 264 Following twitter is an excellent platform for showing off your cats
Anders Knatten @knatten
2K Followers 659 Following Not a fan of President Musk. Find me at https://t.co/uwjbNfPocU.
Johan Herland @jherland
226 Followers 279 Following @[email protected] - Developer Productiviity Engineer @ https://t.co/i7WKbUxxw6. Cyclist. Open source enthusiast. Jazz piano junkie. He/him.
emBO++ @emBOconference
1K Followers 285 Following Embedding all the systems. Building all the future. Efficiency by default. Correctness by default. Non-Profit. #emBO24: 14-15.3 Imprint: https://t.co/Oa2cMuDAFM
Fred Tingaud @FredTingaudDev
1K Followers 232 Following @cpppfr organizer, co-host of Paris C++ meetup, part of @include_cpp community. I make https://t.co/NdWJYCmPD6. @[email protected] He/Him
Andreas Fertig @Andreas__Fertig
4K Followers 361 Following Trainer, Speaker, Programmer all around C++ and Embedded Systems. Creator of https://t.co/aZSlIpLbPm https://t.co/FYaxam7A2s