# dreadwail/study architecture

> Architecture diagram of the GitHub repository dreadwail/study, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dreadwail/study
- Repository: https://github.com/dreadwail/study

## Overview

##### Project Type and Purpose
- This is neither a client-server app nor a compiler but a polyglot “practice problems” monorepo. Its sole purpose is to collect, organize, build, and test small programming‐exercise solutions across many languages (C++, C#, Elixir, Java, JavaScript, Lisp, Python, Ruby, Rust, TypeScript).

##### File-Structure Analysis
- Top‐level “languages” folders: cpp, csharp, elixir, java, javascript, lisp, python, ruby, rust, typescript.
- Within each language directory, multiple independent subprojects or exercises. Each has:
- Source code (src, lib, *.cpp/ *.cs/ *.ex/ *.java/ *.ts/ …)
- Tests (tests/, *Test/, *.test.*)
- Build config (pom.xml, .sln, mix.exs, Cargo.toml, package.json, Gemfile, tsconfig.json, etc.)
- Documentation (README.md, LICENSE, INSTRUCTIONS.md)

##### Key Insights from README
- No single runtime or shared database—just a collection of standalone code & test suites.
- No external services, just language‐specific build/test toolchains.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Monorepo Container
    subgraph "Monorepo"
        direction TB
        Monorepo["Monorepo"]:::repo
        click Monorepo "https://github.com/dreadwail/study/tree/main//"
        
        %% C++ Module
        subgraph "C++ Module" 
            direction TB
            CppModule["C++ Module"]:::cpp
            click CppModule "https://github.com/dreadwail/study/tree/main//cpp"
            Fundamentals["fundamentals (exercise)"]:::cpp
            click Fundamentals "https://github.com/dreadwail/study/tree/main//cpp/fundamentals"
            CppTool["Make/GCC"]:::tool
            ReportCpp["Test Report"]:::report
            Fundamentals -->|contains source/tests| CppTool
            CppTool -->|"generates"| ReportCpp
            CppModule -->|contains| Fundamentals
            CppModule -->|builds with| CppTool
        end
        
        %% C# Module
        subgraph "C# Module"
            direction TB
            CsharpModule["C# Module"]:::csharp
            click CsharpModule "https://github.com/dreadwail/study/tree/main//csharp"
            CashReg["cash_register (exercise)"]:::csharp
            click CashReg "https://github.com/dreadwail/study/tree/main//csharp/cash_register"
            SlnProj["CashRegister.sln"]:::tool
            click SlnProj "https://github.com/dreadwail/study/blob/main//csharp/cash_register/CashRegister.sln"
            TestProj["CashRegisterTest"]:::tool
            click TestProj "https://github.com/dreadwail/study/tree/main//csharp/cash_register/CashRegisterTest"
            ReportCs["Test Report"]:::report
            CashReg -->|contains| SlnProj
            CashReg -->|contains| TestProj
            SlnProj -->|"runs tests"| ReportCs
            CsharpModule -->|builds with| SlnProj
        end
        
        %% Elixir Module
        subgraph "Elixir Module"
            direction TB
            ElixirModule["Elixir Module"]:::elixir
            click ElixirModule "https://github.com/dreadwail/study/tree/main//elixir"
            Euler["euler (exercise)"]:::elixir
            click Euler "https://github.com/dreadwail/study/tree/main//elixir/euler"
            MixExs["mix.exs"]:::tool
            click MixExs "https://github.com/dreadwail/study/blob/main//elixir/euler/mix.exs"
            TestElixir["test folder"]:::tool
            click TestElixir "https://github.com/dreadwail/study/tree/main//elixir/euler/test"
            ReportEx["Test Report"]:::report
            Euler -->|contains| MixExs
            Euler -->|contains| TestElixir
            MixExs -->|"runs tests"| ReportEx
            ElixirModule -->|builds with| MixExs
        end
        
        %% Java Module
        subgraph "Java Module"
            direction TB
            JavaModule["Java Module"]:::java
            click JavaModule "https://github.com/dreadwail/study/tree/main//java"
            JFund["fundamentals (exercise)"]:::java
            click JFund "https://github.com/dreadwail/study/tree/main//java/fundamentals"
            Pom["pom.xml"]:::tool
            click Pom "https://github.com/dreadwail/study/blob/main//java/fundamentals/pom.xml"
            SrcJava["src/main/java"]:::java
            click SrcJava "https://github.com/dreadwail/study/tree/main//java/fundamentals/src/main/java"
            TestJava["src/test/java"]:::tool
            click TestJava "https://github.com/dreadwail/study/tree/main//java/fundamentals/src/test/java"
            ReportJava["Test Report"]:::report
            JFund -->|contains| Pom
            JFund -->|contains| SrcJava
            JFund -->|contains| TestJava
            Pom -->|"runs tests"| ReportJava
            JavaModule -->|builds with| Pom
        end
        
        %% JavaScript Module
        subgraph "JavaScript Module"
            direction TB
            JsModule["JavaScript Module"]:::js
            click JsModule "https://github.com/dreadwail/study/tree/main//javascript"
            ReadmeJs["README.md"]:::js
            click ReadmeJs "https://github.com/dreadwail/study/blob/main//javascript/README.md"
        end
        
        %% Lisp Module
        subgraph "Lisp Module"
            direction TB
            LispModule["Lisp Module"]:::lisp
            click LispModule "https://github.com/dreadwail/study/tree/main//lisp"
            Realm["realm-of-racket (exercise)"]:::lisp
            click Realm "https://github.com/dreadwail/study/tree/main//lisp/scheme/realm-of-racket"
            TestsRkt["tests.rkt"]:::tool
            click TestsRkt "https://github.com/dreadwail/study/blob/main//lisp/scheme/realm-of-racket/ch04/tests.rkt"
            ReportLisp["Test Report"]:::report
            Realm -->|contains| TestsRkt
            TestsRkt -->|"generates"| ReportLisp
            LispModule -->|builds with| TestsRkt
        end
        
        %% Python Module
        subgraph "Python Module"
            direction TB
            PyModule["Python Module"]:::python
            click PyModule "https://github.com/dreadwail/study/tree/main//python"
            Hello["hello.py"]:::python
            click Hello "https://github.com/dreadwail/study/blob/main//python/hello.py"
        end
        
        %% Ruby Module
        subgraph "Ruby Module"
            direction TB
            RubyModule["Ruby Module"]:::ruby
            click RubyModule "https://github.com/dreadwail/study/tree/main//ruby"
            Algos["algos (exercise)"]:::ruby
            click Algos "https://github.com/dreadwail/study/tree/main//ruby/algos"
            Gemfile["Gemfile"]:::tool
            click Gemfile "https://github.com/dreadwail/study/tree/main//ruby/algos/Gemfile"
            Rakefile["Rakefile"]:::tool
            click Rakefile "https://github.com/dreadwail/study/tree/main//ruby/algos/Rakefile"
            LibCode["lib/algos.rb"]:::ruby
            click LibCode "https://github.com/dreadwail/study/blob/main//ruby/algos/lib/algos.rb"
            TestRuby["test folder"]:::tool
            click TestRuby "https://github.com/dreadwail/study/tree/main//ruby/algos/test"
            ReportRuby["Test Report"]:::report
            Algos -->|contains| Gemfile
            Algos -->|contains| Rakefile
            Algos -->|contains| LibCode
            Algos -->|contains| TestRuby
            Rakefile -->|"runs tests"| ReportRuby
            RubyModule -->|builds with| Rakefile
        end
        
        %% Rust Module
        subgraph "Rust Module"
            direction TB
            RustModule["Rust Module"]:::rust
            click RustModule "https://github.com/dreadwail/study/tree/main//rust"
            Learn["learning (exercise)"]:::rust
            click Learn "https://github.com/dreadwail/study/tree/main//rust/learning"
            CargoToml["Cargo.toml"]:::tool
            click CargoToml "https://github.com/dreadwail/study/blob/main//rust/learning/Cargo.toml"
            SrcRust["main.rs"]:::rust
            click SrcRust "https://github.com/dreadwail/study/blob/main//rust/learning/src/main.rs"
            ReportRust["Test Report"]:::report
            Learn -->|contains| CargoToml
            Learn -->|contains| SrcRust
            CargoToml -->|"runs tests"| ReportRust
            RustModule -->|builds with| CargoToml
        end
        
        %% TypeScript Module
        subgraph "TypeScript Module"
            direction TB
            TsModule["TypeScript Module"]:::ts
            click TsModule "https://github.com/dreadwail/study/tree/main//typescript"
            TsConfig["package.json / tsconfig.json / jest.config.js"]:::tool
            click TsConfig "https://github.com/dreadwail/study/blob/main//typescript/package.json"
            click TsConfig "https://github.com/dreadwail/study/blob/main//typescript/tsconfig.json"
            click TsConfig "https://github.com/dreadwail/study/blob/main//typescript/jest.config.js"
            Advent["adventofcode2020 (exercise)"]:::ts
            click Advent "https://github.com/dreadwail/study/tree/main//typescript/src/adventofcode2020"
            TestTs["*.test.ts"]:::tool
            click TestTs "https://github.com/dreadwail/study/tree/main//typescript/src/adventofcode2020"
            ReportTs["Test Report"]:::report
            Advent -->|contains| TestTs
            TsConfig -->|"runs tests"| ReportTs
            TsModule -->|builds with| TsConfig
        end
        
        %% Monorepo to Modules
        Monorepo -->|contains| CppModule
        Monorepo -->|contains| CsharpModule
        Monorepo -->|contains| ElixirModule
        Monorepo -->|contains| JavaModule
        Monorepo -->|contains| JsModule
        Monorepo -->|contains| LispModule
        Monorepo -->|contains| PyModule
        Monorepo -->|contains| RubyModule
        Monorepo -->|contains| RustModule
        Monorepo -->|contains| TsModule
    end

    %% Styles
    classDef repo fill:#d3d3d3,stroke:#333,stroke-width:2px
    classDef cpp fill:#f7cac9,stroke:#c94c4c
    classDef csharp fill:#92a8d1,stroke:#034f84
    classDef elixir fill:#b5e7a0,stroke:#6b8e23
    classDef java fill:#f5e1a4,stroke:#d4a017
    classDef js fill:#ffeb99,stroke:#daa520
    classDef lisp fill:#e0bbe4,stroke:#8e4585
    classDef python fill:#b0e0e6,stroke:#4682b4
    classDef ruby fill:#ffb3b3,stroke:#c72c48
    classDef rust fill:#d7ccd9,stroke:#b7410e
    classDef ts fill:#c5e1a5,stroke:#558b2f
    classDef tool fill:#aed6f1,stroke:#2874a6,stroke-width:1px
    classDef report fill:#a9dfbf,stroke:#196f3d,stroke-width:1px
```
