This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why Documenting Architecture Decisions Matters | |
1. A Single Source of Truth | |
2. Better Onboarding and Cross-Team Collaboration | |
3. Encourage Thoughtful, Data-Driven Decisions | |
4. Simplify Architecture Evolution | |
ADRs are meant to capture key decisions that have long-term implications for your system or organization. If a decision introduces a new dependency, alters fundamental data flows, or significantly affects architecture and team processes, it likely requires an ADR. | |
On the other hand, minor decisions - like tweaking a library version or refactoring a single function usually don’t need an official record. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// The base class | |
template<class Crtp, class MsgT> | |
class Receiver { | |
void receive(MsgT) { | |
static_cast<Crtp*>(this)->private_ += 1; | |
} | |
}; | |
// The derived class |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://vawale.github.io/posts/template_metaprogramming_helpers/ | |
template<typename... Args> | |
consteval auto count() { | |
return sizeof...(Args); | |
} | |
template<template <typename T> typename Predicate, typename... Args> | |
consteval auto count_if() -> size_t { | |
return (0 + ... + Predicate<Args>{}()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################## | |
## ## | |
## Simple Universal C/C++ Makefile v2.0 ## | |
## ## | |
################################################## | |
################################################## | |
## GLOBAL CONFIGURATION ## | |
################################################## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <atomic> | |
#include <string> | |
#include <thread> | |
#include <iostream> | |
// Global | |
std::string computation(int a){ | |
return std::to_string(a); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/olivia76/cpp-te |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://www.reddit.com/r/cpp/comments/11rzncu/clean_code_horrible_performance_and_the_forgotten/ | |
// https://quick-bench.com/q/mW30pqwTvtWZ-aT6COu1oiUycYc | |
#include <cmath> | |
#include <cstdlib> | |
#include <cstddef> | |
#include <ctime> | |
#include <memory> | |
#include <variant> | |
#include <vector> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <arpa/inet.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <unistd.h> | |
#include <iostream> | |
using namespace std; | |
// Defining Port, Note that port is same on which server is listening and on | |
// which we want to connect |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.10) | |
project(StoreRLValue) | |
add_executable( | |
${PROJECT_NAME} | |
main.cpp | |
) | |
set_target_properties( |
NewerOlder