-
Notifications
You must be signed in to change notification settings - Fork 6
Skullxcode patch 1 #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,126 @@ | ||||||
| // ...existing code... | ||||||
| # C++ Tech Stack | ||||||
|
|
||||||
| Brief, practical tech stack and examples for modern C++ projects (aligned with CONTRIBUTING.md style). | ||||||
|
|
||||||
| ## What is this tech stack? | ||||||
| A curated set of compilers, build tools, libraries, testing and CI tools commonly used for developing reliable, cross-platform C++ applications and libraries. | ||||||
|
|
||||||
| ## Core Components | ||||||
|
|
||||||
| - Compilers | ||||||
| - GCC (g++) | ||||||
| - Clang (clang++) | ||||||
| - MSVC (cl.exe) β Windows | ||||||
| - Build systems | ||||||
| - CMake (recommended) | ||||||
| - Meson, Bazel (alternatives) | ||||||
| - Package managers | ||||||
| - Conan, vcpkg | ||||||
| - Testing | ||||||
| - Catch2, GoogleTest | ||||||
| - Formatting & linting | ||||||
| - clang-format, clang-tidy | ||||||
| - Debugging & profiling | ||||||
| - gdb, lldb, Visual Studio Debugger, valgrind, perf | ||||||
| - Static analysis | ||||||
| - cppcheck, clang-tidy, clang-analyzer | ||||||
| - CI/CD | ||||||
| - GitHub Actions, GitLab CI, Azure Pipelines | ||||||
| - IDEs & Editors | ||||||
| - Visual Studio Code (with C/C++ extension), CLion, Visual Studio, Qt Creator | ||||||
|
|
||||||
| ## Basic Example | ||||||
|
|
||||||
| Hello world (file: src/main.cpp) | ||||||
| ```cpp | ||||||
| #include <iostream> | ||||||
|
|
||||||
| int main() { | ||||||
| std::cout << "Hello, C++ tech stack!\n"; | ||||||
| return 0; | ||||||
| } | ||||||
| ``` | ||||||
| Expected output: | ||||||
| ``` | ||||||
| Hello, C++ tech stack! | ||||||
| ``` | ||||||
|
|
||||||
| ## Minimal CMakeLists.txt | ||||||
| ```cmake | ||||||
| cmake_minimum_required(VERSION 3.16) | ||||||
| project(hello_cpp LANGUAGES CXX) | ||||||
| set(CMAKE_CXX_STANDARD 20) | ||||||
| add_executable(hello src/main.cpp) | ||||||
| ``` | ||||||
|
|
||||||
| ## Example unit test (Catch2) | ||||||
| ```cpp | ||||||
| // tests/test_example.cpp | ||||||
| #define CATCH_CONFIG_MAIN | ||||||
| #include <catch2/catch.hpp> | ||||||
|
|
||||||
| int add(int a, int b) { return a + b; } | ||||||
|
|
||||||
| TEST_CASE("addition works") { | ||||||
| REQUIRE(add(2,3) == 5); | ||||||
|
||||||
| REQUIRE(add(2,3) == 5); | |
| REQUIRE(add(2, 3) == 5); |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,124 @@ | ||||||
| # C# Tech Stack | ||||||
|
|
||||||
| Brief, practical tech stack and examples for modern C#/.NET projects (aligned with CONTRIBUTING.md style). | ||||||
|
|
||||||
| ## What is this tech stack? | ||||||
| A concise set of SDKs, frameworks, tools and practices for building cross-platform .NET applications: web, APIs, libraries, and CLI tools. | ||||||
|
|
||||||
| ## Core Components | ||||||
| - Runtime / SDK | ||||||
| - .NET SDK (dotnet 6, 7, 8+) | ||||||
| - Frameworks | ||||||
| - ASP.NET Core, MAUI, Blazor | ||||||
| - Build & tooling | ||||||
| - dotnet CLI, MSBuild | ||||||
| - Package manager | ||||||
| - NuGet | ||||||
| - Testing | ||||||
| - xUnit, NUnit, MSTest | ||||||
| - Formatting & linting | ||||||
| - dotnet format, StyleCop.Analyzers, EditorConfig | ||||||
| - Debugging & profiling | ||||||
| - Visual Studio debugger, dotnet-trace, dotnet-counters, JetBrains dotTrace | ||||||
| - Static analysis | ||||||
| - Roslyn analyzers, SonarQube | ||||||
| - CI/CD | ||||||
| - GitHub Actions, Azure Pipelines, GitLab CI | ||||||
| - IDEs | ||||||
| - Visual Studio, VS Code (C# extension), Rider | ||||||
|
|
||||||
| ## Basic Example | ||||||
|
|
||||||
| Program.cs | ||||||
| ```csharp | ||||||
| using System; | ||||||
|
|
||||||
| class Program { | ||||||
| static void Main() { | ||||||
| Console.WriteLine("Hello, .NET!"); | ||||||
| } | ||||||
| } | ||||||
| ``` | ||||||
| Expected output: | ||||||
| ``` | ||||||
| Hello, .NET! | ||||||
| ``` | ||||||
|
|
||||||
| ## Minimal .csproj | ||||||
| ```xml | ||||||
| <Project Sdk="Microsoft.NET.Sdk"> | ||||||
| <PropertyGroup> | ||||||
| <OutputType>Exe</OutputType> | ||||||
| <TargetFramework>net8.0</TargetFramework> | ||||||
| </PropertyGroup> | ||||||
| </Project> | ||||||
| ``` | ||||||
|
|
||||||
| ## Example unit test (xUnit) | ||||||
| ```csharp | ||||||
| // tests/CalculatorTests.cs | ||||||
| using Xunit; | ||||||
|
|
||||||
| public class Calculator { | ||||||
| public int Add(int a,int b) => a + b; | ||||||
|
||||||
| public int Add(int a,int b) => a + b; | |
| public int Add(int a, int b) => a + b; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the placeholder comment '// ...existing code...' on line 1. This is a comment artifact that doesn't belong in a new file and adds no value to the documentation.