# alvarodavidescobar/myexercismwork architecture

> Architecture diagram of the GitHub repository alvarodavidescobar/myexercismwork, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alvarodavidescobar/myexercismwork
- Repository: https://github.com/alvarodavidescobar/myexercismwork

## Overview

#### Purpose and Scope
This is a multi-language solution corpus for programming exercises. There is no application-level README, shared runtime, build system, or deployable service visible. Each source file is an independently implemented exercise solution, organized by language, exercise slug, and numbered iteration.

#### Repository Entry Model
There is no central executable entry point. Consumers, graders, or language-specific exercise harnesses call functions/classes exposed by individual solution files. Representative boundaries are:
- C++: `solutions/cpp/hello-world/1/hello_world.cpp`, `solutions/cpp/hello-world/1/hello_world.h`
- C#: `solutions/csharp/acronym/1/Acronym.cs`
- JavaScript: `solutions/javascript/hello-world/1/hello-world.js`

#### Language Partitioning
Top-level language directories are the primary architectural boundary:
- `solutions/cpp`
- `solutions/csharp`
- `solutions/javascript`

Implementations are not shared across these partitions; each uses its native language conventions and expected exercise harness.

#### Exercise Module Layout
Each exercise is isolated under `<language>/<exercise>/<revision>/`. The revision number supports multiple alternative or progressive implementations without overwriting prior work. Examples:
- `solutions/csharp/log-levels/1/LogLevels.cs`
- `solutions/csharp/log-levels/2/LogLevels.cs`
- `solutions/csharp/log-levels/3/LogLevels.cs`
- `solutions/csharp/jedliks-toys/1/JedliksToys.cs`
- `solutions/csharp/jedliks-toys/2/JedliksToys.cs`

The exercise folder, rather than a shared package or project, is the unit of ownership and evaluation.

#### C++ Solution Boundary
C++ exercises are source-level modules, with at least the hello-world exercise separating declaration and implementation:
- `solutions/cpp/hello-world/1/hello_world.h`
- `solutions/cpp/hello-world/1/hello_world.cpp`

Other C++ exercises expose their logic directly in implementation files:
- `solutions/cpp/lasagna/1/lasagna.cpp`
- `solutions/cpp/pacman-rules/1/pacman_rules.cpp`

A C++ compiler and an external harness/build definition are required, but neither is stored in the visible tree.

#### C# Solution Boundary
C# is the largest solution set and consists of standalone `.cs` exercise implementations, generally one file per revision. Examples include:
- `solutions/csharp/bird-watcher/1/BirdWatcher.cs`
- `solutions/csharp/need-for-speed/1/NeedForSpeed.cs`
- `solutions/csharp/wizards-and-warriors/1/WizardsAndWarriors.cs`

These files require a .NET/C# compilation and test harness supplied externally or per exercise environment; no `.csproj`, shared domain layer, database, or service integration is visible.

#### JavaScript Solution Boundary
JavaScript exercise logic is similarly isolated in individual modules:
- `solutions/javascript/freelancer-rates/1/freelancer-rates.js`
- `solutions/javascript/lasagna/1/lasagna.js`
- `solutions/javascript/hello-world/1/hello-world.js`

They require a JavaScript runtime and external module-loading/test conventions. No package manifest, browser entry point, API layer, or external service dependency is present.

#### Primary Control and Data Flow
The effective flow is: external exercise runner selects a language-specific revision → loads/compiles its single exercise module → invokes expected exported API with exercise inputs → validates returned values or state. Data remains in-process and local to each module. There are no repository-visible cross-exercise dependencies, persistence layers, network calls, infrastructure resources, or third-party services.

Main entry points: [`solutions/cpp/hello-world/1/hello_world.cpp`](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/hello-world/1/hello_world.cpp) (Hello World implementation), [`solutions/cpp/hello-world/1/hello_world.h`](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/hello-world/1/hello_world.h) (Hello World declaration), [`solutions/cpp/lasagna/1/lasagna.cpp`](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/lasagna/1/lasagna.cpp) (Lasagna solution), [`solutions/cpp/pacman-rules/1/pacman_rules.cpp`](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/pacman-rules/1/pacman_rules.cpp) (Pacman Rules solution)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cpp["C++ solutions"]
  node_cpp_toolchain["C++ compiler/harness<br/>external toolchain"]
  node_cpp_hello_header["Hello World declaration<br/>C++ header<br/>[hello_world.h]"]
  node_cpp_hello_impl["Hello World implementation<br/>C++ source<br/>[hello_world.cpp]"]
  node_cpp_lasagna["Lasagna solution<br/>C++ source<br/>[lasagna.cpp]"]
  node_cpp_pacman["Pacman Rules solution<br/>C++ source<br/>[pacman_rules.cpp]"]
end

subgraph group_csharp["C&#35; solutions"]
  node_dotnet_harness[".NET compilation/harness<br/>external toolchain"]
  node_csharp_bird["Bird Watcher solution<br/>C&#35; module<br/>[BirdWatcher.cs]"]
  node_csharp_speed["Need for Speed solution<br/>C&#35; module<br/>[NeedForSpeed.cs]"]
  node_csharp_log_levels["Log Levels revisions<br/>C&#35; module revisions<br/>[LogLevels.cs]"]
  node_csharp_toys["Jedlik's Toys revisions<br/>C&#35; module revisions<br/>[JedliksToys.cs]"]
end

subgraph group_javascript["JavaScript solutions"]
  node_js_runtime["JavaScript runtime/harness<br/>external toolchain"]
  node_js_rates["Freelancer Rates solution<br/>JavaScript module"]
  node_js_lasagna["Lasagna solution<br/>JavaScript module<br/>[lasagna.js]"]
  node_js_hello["Hello World solution<br/>JavaScript module<br/>[hello-world.js]"]
end

node_runner{{"External exercise runner<br/>external harness"}}

node_runner -->|"selects C++ revision"| node_cpp_toolchain
node_runner -->|"selects C&#35; revision"| node_dotnet_harness
node_runner -->|"selects JavaScript revision"| node_js_runtime
node_cpp_toolchain -->|"compiles and invokes"| node_cpp_hello_impl
node_cpp_toolchain -->|"compiles and invokes"| node_cpp_lasagna
node_cpp_toolchain -->|"compiles and invokes"| node_cpp_pacman
node_cpp_hello_impl -->|"implements declaration"| node_cpp_hello_header
node_dotnet_harness -->|"compiles and invokes"| node_csharp_bird
node_dotnet_harness -->|"compiles and invokes"| node_csharp_speed
node_dotnet_harness -->|"compiles and invokes"| node_csharp_log_levels
node_dotnet_harness -->|"compiles and invokes"| node_csharp_toys
node_js_runtime -->|"loads and invokes"| node_js_rates
node_js_runtime -->|"loads and invokes"| node_js_lasagna
node_js_runtime -->|"loads and invokes"| node_js_hello

click node_cpp_hello_header "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/hello-world/1/hello_world.h"
click node_cpp_hello_impl "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/hello-world/1/hello_world.cpp"
click node_cpp_lasagna "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/lasagna/1/lasagna.cpp"
click node_cpp_pacman "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/pacman-rules/1/pacman_rules.cpp"
click node_csharp_bird "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/csharp/bird-watcher/1/BirdWatcher.cs"
click node_csharp_speed "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/csharp/need-for-speed/1/NeedForSpeed.cs"
click node_csharp_log_levels "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/csharp/log-levels/1/LogLevels.cs"
click node_csharp_toys "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/csharp/jedliks-toys/1/JedliksToys.cs"
click node_js_rates "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/javascript/freelancer-rates/1/freelancer-rates.js"
click node_js_lasagna "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/javascript/lasagna/1/lasagna.js"
click node_js_hello "https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/javascript/hello-world/1/hello-world.js"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cpp_toolchain,node_cpp_hello_header,node_cpp_hello_impl,node_cpp_lasagna,node_cpp_pacman toneBlue
class node_dotnet_harness,node_csharp_bird,node_csharp_speed,node_csharp_log_levels,node_csharp_toys toneAmber
class node_js_runtime,node_js_rates,node_js_lasagna,node_js_hello toneMint
class node_runner toneNeutral
```

## Components

### C++ solutions

Independent native exercise modules.

- **C++ compiler/harness**: external toolchain · Compiles C++ modules outside the visible repository.
- [Hello World declaration](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/hello-world/1/hello_world.h): C++ header · `solutions/cpp/hello-world/1/hello_world.h`
- [Hello World implementation](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/hello-world/1/hello_world.cpp): C++ source · `solutions/cpp/hello-world/1/hello_world.cpp`
- [Lasagna solution](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/lasagna/1/lasagna.cpp): C++ source · `solutions/cpp/lasagna/1/lasagna.cpp`
- [Pacman Rules solution](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/cpp/pacman-rules/1/pacman_rules.cpp): C++ source · `solutions/cpp/pacman-rules/1/pacman_rules.cpp`

### C# solutions

Standalone .NET exercise implementations.

- **.NET compilation/harness**: external toolchain · Compiles and tests C# files outside the visible repository.
- [Bird Watcher solution](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/csharp/bird-watcher/1/BirdWatcher.cs): C# module · `solutions/csharp/bird-watcher/1/BirdWatcher.cs`
- [Need for Speed solution](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/csharp/need-for-speed/1/NeedForSpeed.cs): C# module · `solutions/csharp/need-for-speed/1/NeedForSpeed.cs`
- [Log Levels revisions](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/csharp/log-levels/1/LogLevels.cs): C# module revisions · Alternative implementations are retained as numbered revisions. · `solutions/csharp/log-levels/1/LogLevels.cs`
- [Jedlik's Toys revisions](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/csharp/jedliks-toys/1/JedliksToys.cs): C# module revisions · Alternative implementations are retained as numbered revisions. · `solutions/csharp/jedliks-toys/1/JedliksToys.cs`

### JavaScript solutions

Independent JavaScript exercise modules.

- **JavaScript runtime/harness**: external toolchain · Loads and tests JavaScript modules using external conventions.
- [Freelancer Rates solution](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/javascript/freelancer-rates/1/freelancer-rates.js): JavaScript module · `solutions/javascript/freelancer-rates/1/freelancer-rates.js`
- [Lasagna solution](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/javascript/lasagna/1/lasagna.js): JavaScript module · `solutions/javascript/lasagna/1/lasagna.js`
- [Hello World solution](https://github.com/alvarodavidescobar/myexercismwork/blob/main/solutions/javascript/hello-world/1/hello-world.js): JavaScript module · `solutions/javascript/hello-world/1/hello-world.js`

### Other components

- **External exercise runner**: external harness · Selects a language and revision, invokes its expected API, and validates results.

## Connections

- External exercise runner → C++ compiler/harness: selects C++ revision
- External exercise runner → .NET compilation/harness: selects C# revision
- External exercise runner → JavaScript runtime/harness: selects JavaScript revision
- C++ compiler/harness → Hello World implementation: compiles and invokes
- C++ compiler/harness → Lasagna solution: compiles and invokes
- C++ compiler/harness → Pacman Rules solution: compiles and invokes
- Hello World implementation → Hello World declaration: implements declaration
- .NET compilation/harness → Bird Watcher solution: compiles and invokes
- .NET compilation/harness → Need for Speed solution: compiles and invokes
- .NET compilation/harness → Log Levels revisions: compiles and invokes
- .NET compilation/harness → Jedlik's Toys revisions: compiles and invokes
- JavaScript runtime/harness → Freelancer Rates solution: loads and invokes
- JavaScript runtime/harness → Lasagna solution: loads and invokes
- JavaScript runtime/harness → Hello World solution: loads and invokes
