|
Skip to content | https://belaycpp.com/category/bad-practice/#content |
| https://belaycpp.com/ |
| Belay the C++ | https://belaycpp.com/ |
| Home | https://belaycpp.com/ |
| Articles | https://belaycpp.com/blog/ |
| All articles | https://belaycpp.com/blog/ |
| History of C++ | https://belaycpp.com/blog/history-of-c-miniseries/ |
| Team | https://belaycpp.com/team/ |
| Contact | https://belaycpp.com/contact/ |
| About | https://belaycpp.com/about/ |
| 🇫🇷 Français | https://fr.belaycpp.com/ |
| a = b = c, a strange consequence of operator associativity | https://belaycpp.com/2022/04/28/a-b-c-a-strange-consequence-of-operator-associativity/ |
| How to quantify technical debt inflation | https://belaycpp.com/2022/04/06/how-to-quantify-technical-debt-inflation/ |
| Who owns the memory? | https://belaycpp.com/2022/03/17/who-owns-the-memory/ |
| 3 interesting behaviors of C++ casts | https://belaycpp.com/2022/03/02/3-interesting-behaviors-of-c-casts/ |
| Constant references are not always your friends | https://belaycpp.com/2022/02/15/constant-references-are-not-always-your-friends/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Code | https://belaycpp.com/category/code/ |
| Dilemma | https://belaycpp.com/category/dilemma/ |
| Good practice | https://belaycpp.com/category/good-practice/ |
| History of C++ | https://belaycpp.com/category/history-of-c/ |
| Meta | https://belaycpp.com/category/meta/ |
| UFO | https://belaycpp.com/category/ufo/ |
| Who owns the memory? | https://belaycpp.com/2022/03/17/who-owns-the-memory/ |
| 1 | https://belaycpp.com/category/bad-practice/#notes |
| You Can Stop Writing Comments About Pointer Ownership (gpfault.net) | https://gpfault.net/posts/pointer-ownership-comments.txt.html |
| 2 | https://belaycpp.com/category/bad-practice/#notes |
| 3 | https://belaycpp.com/category/bad-practice/#notes |
| 4 | https://belaycpp.com/category/bad-practice/#notes |
| RAII | https://en.cppreference.com/w/cpp/language/raii |
| March 17, 2022 | https://belaycpp.com/2022/03/17/who-owns-the-memory/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| Peter Fordham (Editor) | https://belaycpp.com/tag/peter-fordham-editor/ |
| 1 Comment on Who owns the memory? | https://belaycpp.com/2022/03/17/who-owns-the-memory/#comments |
| Constant references are not always your friends | https://belaycpp.com/2022/02/15/constant-references-are-not-always-your-friends/ |
| 1 | https://belaycpp.com/category/bad-practice/#notes |
| 3 | https://belaycpp.com/category/bad-practice/#notes |
| 4 | https://belaycpp.com/category/bad-practice/#notes |
| References, C++ FAQ (isocpp.org) | https://isocpp.org/wiki/faq/references#reseating-refs |
| Three reasons to pass `std::string_view` by value – Arthur O’Dwyer – Stuff mostly about C++ (quuxplusone.github.io) | https://quuxplusone.github.io/blog/2021/11/09/pass-string-view-by-value/ |
| 5 | https://belaycpp.com/category/bad-practice/#notes |
| Compiler Explorer (godbolt.org) | https://godbolt.org/z/W364GK56h |
| Compiler Explorer (godbolt.org) | https://godbolt.org/z/4MTsjanfo |
| Compiler Explorer (godbolt.org) | https://godbolt.org/z/GqrW9WKMz |
| 2 | https://belaycpp.com/category/bad-practice/#notes |
| February 15, 2022 | https://belaycpp.com/2022/02/15/constant-references-are-not-always-your-friends/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| Peter Fordham (Editor) | https://belaycpp.com/tag/peter-fordham-editor/ |
| 10 Comments on Constant references are not always your friends | https://belaycpp.com/2022/02/15/constant-references-are-not-always-your-friends/#comments |
|
| https://belaycpp.com/2021/12/09/the-three-types-of-development/ |
| The three types of development | https://belaycpp.com/2021/12/09/the-three-types-of-development/ |
| 1 | https://belaycpp.com/category/bad-practice/#notes |
| 2 | https://belaycpp.com/category/bad-practice/#notes |
| JRL | https://en.wikipedia.org/wiki/Java_Research_License |
| 3 | https://belaycpp.com/category/bad-practice/#notes |
| 4 | https://belaycpp.com/category/bad-practice/#notes |
| 5 | https://belaycpp.com/category/bad-practice/#notes |
| r/cpp | https://www.reddit.com/r/cpp/ |
| Stack Overflow | https://stackoverflow.com/ |
| 6 | https://belaycpp.com/category/bad-practice/#notes |
| later in the article | https://belaycpp.com/category/bad-practice/#what-is-specific-to-c |
| December 9, 2021 | https://belaycpp.com/2021/12/09/the-three-types-of-development/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| Peter Fordham (Editor) | https://belaycpp.com/tag/peter-fordham-editor/ |
| 3 Comments on The three types of development | https://belaycpp.com/2021/12/09/the-three-types-of-development/#comments |
| Is my cat Turing-complete? | https://belaycpp.com/2021/11/24/is-my-cat-turing-complete/ |
| https://www.youtube.com/watch?v=RtqTGSOdmBo | https://www.youtube.com/watch?v=RtqTGSOdmBo |
| 1 | https://belaycpp.com/category/bad-practice/#notes |
| 2 | https://belaycpp.com/category/bad-practice/#notes |
| 3 | https://belaycpp.com/category/bad-practice/#notes |
| 4 | https://belaycpp.com/category/bad-practice/#note |
| 5 | https://belaycpp.com/category/bad-practice/#notes |
| Turing completeness – Wikipedia | https://en.wikipedia.org/wiki/Turing_completeness |
| November 24, 2021 | https://belaycpp.com/2021/11/24/is-my-cat-turing-complete/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| Peter Fordham (Editor) | https://belaycpp.com/tag/peter-fordham-editor/ |
| 14 Comments on Is my cat Turing-complete? | https://belaycpp.com/2021/11/24/is-my-cat-turing-complete/#comments |
| Yet another reason to not use printf (or write C code in general) | https://belaycpp.com/2021/08/31/yet-another-reason-to-not-use-printf-or-write-c-code-in-general/ |
| @jckarter | https://twitter.com/jckarter |
| pic.twitter.com/vZigQW4O0h | https://t.co/vZigQW4O0h |
| August 27, 2021 | https://twitter.com/jckarter/status/1431284059729108992?ref_src=twsrc%5Etfw |
| https://godbolt.org/z/c6Me7a5ee | https://godbolt.org/z/c6Me7a5ee |
| https://godbolt.org/z/5YKEdj73r | https://godbolt.org/z/5YKEdj73r |
| https://godbolt.org/z/5YKEdj73r | https://godbolt.org/z/5YKEdj73r |
| https://godbolt.org/z/jjeca8qd7 | https://godbolt.org/z/TG89PeWad |
| x86-64.pdf (lri.fr) | https://www.lri.fr/~filliatr/ens/compil/x86-64.pdf |
| Streaming SIMD Extensions – Wikipedia | https://en.wikipedia.org/wiki/Streaming_SIMD_Extensions |
| printf, fprintf, sprintf, snprintf, printf_s, fprintf_s, sprintf_s, snprintf_s – cppreference.com | https://en.cppreference.com/w/c/io/fprintf |
| August 31, 2021 | https://belaycpp.com/2021/08/31/yet-another-reason-to-not-use-printf-or-write-c-code-in-general/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| UFO | https://belaycpp.com/category/ufo/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| 12 Comments on Yet another reason to not use printf (or write C code in general) | https://belaycpp.com/2021/08/31/yet-another-reason-to-not-use-printf-or-write-c-code-in-general/#comments |
| You shouldn’t assume accessors are fast | https://belaycpp.com/2021/07/27/you-shouldnt-assume-accessors-are-quick/ |
| https://godbolt.org/z/a4x769jra | https://godbolt.org/#z:OYLghAFBqRAWIDGB7AJgUwKKoJYBdkAnAGhxAgDNkA7PAZUQEMAbdEARgBZiraBVAM7oACgA8QAcgAME4gCsOxZo2qhEAUgBMAIS3biQ1ojw4a5dNVQBhZMwCuAW2qKLqADI5q6AHKOARuiEigAOyAL4ptQ29k4hYRE0Hl6%2BDgFB7AboRiY0dHiMhHjRjs4ZhujGkXkFeEk%2B/oGKAvmFxbFlLbWe9amN7ACUBsh2hIhsEloAzJ6I9hgA1OqTVgBuFQSES5jqUgCCi3sA9IdLACJnF5PnV5fXd7cPN0/3z48v728XR4fzp%2BgUngS1HmyAo8zwcHQ81mjAEAh2uxhcPmADFkMhtAUbA5gnY8IEEeoAOy6Pa4vzMHCIEAI%2BZ01HozGEbG4/GECD9Jak/a0%2BkrZA4VDzIR4AD6LGCcEYEE8eHmEq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feG8pITA2EfCKep4GICYTGLebDp4bzAlwnh9D%2BGCPlI1ER690A9W9IKbhRd/ooIJJA4wHsyQCDgBOfMrDpG81JhI6aHJYyEC0XgHRdg9EGLzEYxhvNLEqMkZ9LaG4JBTGYJIAArLIZw0hZDIEkFYPQegZQzDmMiZY7BZB4EkDICYUw8wcHzkoSQnBAlJJCZIWQAgQBSGIIk4JKTiD7EINEMwnAgA%3D%3D%3D |
| July 27, 2021 | https://belaycpp.com/2021/07/27/you-shouldnt-assume-accessors-are-quick/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| 1 Comment on You shouldn’t assume accessors are fast | https://belaycpp.com/2021/07/27/you-shouldnt-assume-accessors-are-quick/#comments |
| Don’t use raw loops | https://belaycpp.com/2021/06/22/dont-use-raw-loops/ |
| GoingNative 2013 C++ Seasoning – YouTube | https://www.youtube.com/watch?v=W2tWOdzgXHA |
| C++ Code Smells – Jason Turner – CppCon 2019 – YouTube | https://www.youtube.com/watch?v=f_tLQl0wLUM&t=162s |
| CppCon 2018: Jonathan Boccara “105 STL Algorithms in Less Than an Hour” – YouTube | https://www.youtube.com/watch?v=2olsGf6JIkU |
| The World Map of C++ STL Algorithms – Fluent C++ (fluentcpp.com) | https://www.fluentcpp.com/getthemap/ |
| Algorithms library – cppreference.com | https://en.cppreference.com/w/cpp/algorithm |
| https://en.cppreference.com/w/cpp/algorithm/find |
| std::find() | https://en.cppreference.com/w/cpp/algorithm/find |
| https://en.cppreference.com/w/cpp/algorithm/find |
| std::find_if() | https://en.cppreference.com/w/cpp/algorithm/find |
| https://en.cppreference.com/w/cpp/algorithm/for_each |
| std::for_each() | https://en.cppreference.com/w/cpp/algorithm/for_each |
| https://en.cppreference.com/w/cpp/algorithm/transform |
| std::transform() | https://en.cppreference.com/w/cpp/algorithm/transform |
| std::all_of() | https://en.cppreference.com/w/cpp/algorithm/all_any_none_of |
| std::any_of() | https://en.cppreference.com/w/cpp/algorithm/all_any_none_of |
| std::copy_if() | https://en.cppreference.com/w/cpp/algorithm/copy |
| std::remove_if() | https://en.cppreference.com/w/cpp/algorithm/remove |
| https://belaycpp.com/category/bad-practice/reverse() |
| std::reverse() | https://belaycpp.com/category/bad-practice/reverse() |
| CppCon 2018: Jonathan Boccara “105 STL Algorithms in Less Than an Hour” – YouTube | https://www.youtube.com/watch?v=2olsGf6JIkU |
| June 22, 2021 | https://belaycpp.com/2021/06/22/dont-use-raw-loops/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| 3 Comments on Don’t use raw loops | https://belaycpp.com/2021/06/22/dont-use-raw-loops/#comments |
| A list of bad practices commonly seen in industrial projects | https://belaycpp.com/2021/06/01/a-list-of-bad-practices-commonly-seen-in-industrial-projects/ |
| CppCon 2017: Piotr Padlewski “Undefined Behaviour is awesome!” – YouTube | https://www.youtube.com/watch?v=ehyHyAIa5so |
| June 1, 2021 | https://belaycpp.com/2021/06/01/a-list-of-bad-practices-commonly-seen-in-industrial-projects/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| 8 Comments on A list of bad practices commonly seen in industrial projects | https://belaycpp.com/2021/06/01/a-list-of-bad-practices-commonly-seen-in-industrial-projects/#comments |
| Yet another pamphlet about inlining | https://belaycpp.com/2021/05/17/yet-another-pamphlet-about-inlining/ |
| inline specifier – cppreference.com | https://en.cppreference.com/w/cpp/language/inline |
| What is C++ inline functions – C++ Articles (cplusplus.com) | https://www.cplusplus.com/articles/2LywvCM9/ |
| What is C++ inline functions – C++ Articles (cplusplus.com) | https://www.cplusplus.com/articles/2LywvCM9/ |
| May 17, 2021 | https://belaycpp.com/2021/05/17/yet-another-pamphlet-about-inlining/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| 2 Comments on Yet another pamphlet about inlining | https://belaycpp.com/2021/05/17/yet-another-pamphlet-about-inlining/#comments |
| Passing an enum by parameter | https://belaycpp.com/2021/05/03/passing-an-enum-by-parameter/ |
| Compiler Explorer (godbolt.org) | https://godbolt.org/ |
| May 3, 2021 | https://belaycpp.com/2021/05/03/passing-an-enum-by-parameter/ |
| Bad practice | https://belaycpp.com/category/bad-practice/ |
| Chloé Lourseyre (Author) | https://belaycpp.com/tag/chloe-lourseyre-author/ |
| 1 Comment on Passing an enum by parameter | https://belaycpp.com/2021/05/03/passing-an-enum-by-parameter/#comments |
| Page 2 | https://belaycpp.com/category/bad-practice/page/2/ |
| Next page | https://belaycpp.com/category/bad-practice/page/2/ |
|
Proudly powered by WordPress | https://wordpress.org/ |