Running list of more terms/concepts we could document in glossary
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Documentation
- Clarté
- À clarifier
- Activité
- À l'abandon
- Stack technique
- cpp
- Domaine
- documentation
Piste de recherche
Commencez par glossary.md et examinez la liste existante de concepts C++ et de ressources externes proposés. L’issue est davantage un compte rendu de brainstorming ouvert qu’une tâche de documentation définie ; sa réalisation nécessiterait de restreindre le périmètre et de convenir des termes ou liens à ajouter.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
The glossary is developing quickly into a pretty solid resource for the key terms you'll encounter and need to know while learning C++ at Mapbox. Or when starting to teach colleagues about how we write, deploy, and approach C++ at Mapbox.
While the glossary says explicitly that It is not intended to be a complete reference on language or syntax terms, there is much more we can do. This is a ticket to brainstorm additional concepts, terms, and keywords that are potential things to cover in the glossary and related docs.
Most of these terms don't need to be defined in the glossary, rather it would be sufficient to simply list them and links to external resources (particularly style guides we support). The overall goal is 1) note they are important to understand for C++ development a mapbox (by their presence), and 2) provide a great resource to learn more about them. We can add extra definitions where our opinions matter.
(Will be editing this in place as I collect ideas)
Key learning concepts
- the idea of a
mainfunction in an executable - how to pass arguments to a C++ program and parse them - refs #35
- const
const char*vsstd::stringand how they relate- pointers vs references
- dereferencing pointers
- taking the address of a variable
- header guards vs
#pragma once - learning the cpp preprocessor
- what are templates and when to use them
- global variables, why not to use them, when they are appropriate
- when to use
static_cast,reinterpret_cast, andconst_cast. Why to use them rather than c style cases - how enumerations work
enumin C++11. Using casts to change between them and integer types - the max size of numeric types. using
<limits>from the stdlib to know these sizes dynamically - integer overflow. When it is undefined behavior, when it is defined. How to control it/prevent it. How it differs for signed types and unsigned types
- compiler warnings. how to avoid them, fix them, appropriately suppress them. Why, when starting projects, it makes sense to use
-Werrorand very aggressive warnings, even-Weverything - how to use c++ exceptions: why to always make custom exceptions subclass
std::exception. How to catch all types by catchingstd::exception. Why to catch exceptions byconst&. - when to avoid throwing exceptions due to performance concerns (e.g. in tight loops)
- what is garbage collection
- What is reference counting
- Why, when, and how to use
std::unique_ptrvsstd::shared_ptr - zero copy
- Big takeaways of C++11 vs C++14 vs c++17
- move semantics / universal references
- considerations on when to use
std::vectorvsstd::mapvsstd::list - binary size, why it matters, how you can learn about it (https://github.com/google/bloaty)
- What is the
_GLIBCXX_USE_CXX11_ABIflag on linux and why does it matter?
Advanced performance concepts
- Arena allocation vs Memory Pools vs Region-based memory management: https://natsys-lab.blogspot.com/2015/09/fast-memory-pool-allocators-boost-nginx.html
- Alternative allocators: https://howardhinnant.github.io/stack_alloc.html
- Profiling with BCC tools: https://github.com/iovisor/bcc
- Langage dominant
- Aucune donnée de langage
- Étoiles
- 110
- Forks
- 17
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de mapbox/cpp
-
glossary
Difficulté 1/5 Moins d'une heure Accessibilité débutants 68/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
-
Docs on ABIs Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 30/100
-
clang-tidy v. -Weffc++ Ouverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
-
docs/learning-resources.md blank Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
Toutes les issues de mapbox/cpp
Issues similaires
-
Difficulté 1/5 1-3 heures Accessibilité débutants 78/100
Mintplex-Labs/anything-llm#6490 ·
-
bug needs response
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Adyen/adyen-dotnet-api-library#1869 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
w3c/webdriver-bidi#1168 ·
-
Templating diagram is misleading Ouvertearea/documentation
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
rancher/fleet-product-docs#393 ·
-
Type/Improvement
Difficulté 1/5 1-3 heures Accessibilité débutants 90/100
OpenNSW/nsw-srilanka#522 ·