- Python 62.5%
- C 20.6%
- Dart 11.6%
- C++ 4%
- CMake 1.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
Some checks are pending
Android APK / apk (push) Waiting to run
- Remove full-text search (SearchPage, repo search, search.json assets, tool output, search fields) - Own documentation pages (title + Markdown text) in the docs view - Free notes without a lesson on the notes page - Persisted in AppState and included in backup/restore; DE/EN strings; tests Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> |
||
| .github/workflows | ||
| android | ||
| assets | ||
| content_en | ||
| content_src | ||
| docs | ||
| docs_en | ||
| docs_src | ||
| ios | ||
| lib | ||
| linux | ||
| macos | ||
| packages/pocketpy | ||
| test | ||
| tests_en | ||
| tool | ||
| web | ||
| windows | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| prolearn-src.tar.gz | ||
| pubspec.lock | ||
| pubspec.yaml | ||
| README.md | ||
ProLearn
A level-based learning app for programming languages and computer science (Flutter/Dart) – like Duolingo, not like a blog: every lesson covers exactly one topic, consists of short theory plus 4–9 exercises, and is unlocked in order through five levels (tiers). All content is stored offline in the app.
Targets: Android, Windows, Linux (macOS/iOS builds are not verified). UI and content languages: German and English, switchable at runtime (Settings → Language, or follow the device language). The source code, comments, tests and tooling are in English.
Documentation
| Document | Content |
|---|---|
docs/ARCHITECTURE.md |
Layers, folders, data flow, state and persistence, navigation |
docs/CONTENT_FORMAT.md |
Lesson/exercise data model, all exercise types, validation rules |
docs/AUTHORING.md |
How to write, build, verify and translate lessons and reference chapters |
docs/I18N.md |
UI strings, content overlays, language switching |
docs/EXECUTION.md |
What code runs where (embedded engines, local toolchains, rule checks) |
docs/CONTENT.md |
Coverage per track and how each was verified (generated) |
docs/KNOWLEDGE_TEST.md |
The knowledge test and its own question banks |
docs/TESTING.md |
Test suites, how to run them, environment |
tool/author/README.md |
Authoring toolkit that computes expected outputs with real toolchains |
Features
- 66 tracks: 22 languages/formats, 23 computer-science topics, 21 apps & tools. Current numbers:
docs/CONTENT.md. - Nine exercise types: multiple choice, "What does it print?", fill in the blanks, put in order, match pairs, multiple selection, spot the bug, free input and programming exercises (including "fix the bug").
- Honest code checking: programming exercises are graded with several test cases, edge cases and a list of known wrong solutions that must be rejected – a hard-coded output never passes. Details:
docs/EXECUTION.md. - Progress, XP, daily goal, streak, repeat earlier mistakes, achievements; everything stored locally (
shared_preferences), with JSON backup/restore. - Code lab: free editor with live execution for the embedded languages. Web mode (HTML + CSS + JavaScript) with a live preview, console and a width switch (full/tablet/phone). The preview is an approximating renderer, not a browser.
- Documentation: a reference of lookup chapters for all tracks (readable without exercises, offline), bookmarks, your own documentation pages (title + Markdown text), links to the official documentation.
- Knowledge test: pick a language/topic or everything; questions are spread evenly over levels 1–5; the result is a level estimate (a level counts as passed from 60 % correct). The test has its own question bank (
assets/tests/) and never reuses the exercises of the lessons; it exists for the tracks listed inassets/tests/index.json. - Statistics: XP history, activity calendar, progress and hit rate per track, test history.
- Notes & favorites: own notes on theory paragraphs and exercises plus free notes without a lesson ("My notes"), favorite tracks on top.
- Explain my mistake: after a wrong answer the check bar shows "Your answer" vs. "Correct answer" (for code: actual vs. expected output) plus the explanation.
- Appearance: light, gray or dark (or system), 10 accent colors, 5 code themes.
- Data-driven: content is YAML assets (
assets/content/*.yaml+manifest.json); new lessons need no UI change.
Live code execution – honestly
There is no universal built-in compiler. What really runs depends on the language and platform. Details and limits: docs/EXECUTION.md.
| Execution | Languages |
|---|---|
| Embedded (runs inside the app, offline, all platforms) | JavaScript, Python (pocketpy), Dart (dart_eval), SQL (real SQLite), JSON, YAML |
| Optional local toolchain (desktop only, enable in Settings, compiler must be installed or downloaded from the app) | Java, C, C++, Rust, Go, PHP, Ruby, Lua, PowerShell, Assembly, Kotlin, Swift, C#, TypeScript (and real CPython/Node/Dart instead of the embedded engines) |
| Structure/rule check only (nothing is executed) | all compiled languages when no toolchain is active; HTML/CSS exercises (the lab runs HTML/CSS/JS as a web preview) |
On Android there are no local compilers – compiled languages are pure rule-check exercises there, and the UI says so.
Content
Coverage per language and how it was verified: docs/CONTENT.md. The content is authored in German; the English version is an overlay (see docs/I18N.md).
Development
flutter pub get
flutter analyze
LD_LIBRARY_PATH=<folder with libpocketpy.so> flutter test # Linux: native Python engine for the tests
flutter run -d linux # or windows / android
The Python engine (pocketpy, C11) is vendored in packages/pocketpy and built by CMake (Linux/Windows/Android). For flutter test on the host, libpocketpy.so must be on LD_LIBRARY_PATH (build it with CMake from packages/pocketpy/src). More on tests: docs/TESTING.md.
Writing content
Lessons are written in a Python DSL (content_src/*.py, no YAML quoting trouble), then built and verified:
python3 tool/build_content.py python go --verify # builds YAML, validates, runs examples with real compilers
python3 tool/build_docs.py # builds the reference chapters (docs_src → assets/docs)
python3 tool/build_tests.py # knowledge-test question banks
python3 tool/build_en_index.py # English index files
python3 tool/check_translation.py # checks the English overlays against the originals
python3 tool/gen_content_doc.py # regenerates docs/CONTENT.md
tool/validate_content.py checks structure, tier order and exercise counts and – with --verify – every "What does it print?" answer and every runnable solution against real toolchains (CPython, Node, Dart, SQLite, javac, gcc, Go, rustc, Ruby, PHP …). Full workflow: docs/AUTHORING.md.
Project layout
lib/core models, YAML parser, content repository, AppState (progress/settings), i18n
lib/runner execution layer (JS, Python, Dart, SQL, JSON/YAML, local toolchains, grader, static checker)
lib/ui screens (learn, track, lesson, code lab, profile, settings, stats) + exercise widgets
lib/web HTML/CSS/JS preview for the lab (DOM in JS, CSS cascade, widget renderer)
assets/content learning content (YAML) + manifest.json (generated)
assets/docs reference chapters (YAML, generated from docs_src)
assets/tests knowledge-test question banks (generated from content_src/tests); tests_en = English overlays
content_src authoring sources (Python DSL), more_<track>*.py hold additional lessons, _splits.py cuts multi-topic
lessons, _review_<track>.py holds the review exercises (see docs/CONTENT.md)
content_en English overlays of the lessons
docs_src reference chapter sources; docs_en = English overlays
tool build, validation and translation scripts; tool/author = authoring toolkit
packages/pocketpy vendored Python engine (FFI plugin)
test engine, checker, UI and content tests