Reddit Programming – Telegram
Reddit Programming
212 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
Building a cross-platform project scaffolding engine: template detection, safe copying, and Git-aware initialization
https://www.reddit.com/r/programming/comments/1oua8df/building_a_crossplatform_project_scaffolding/

<!-- SC_OFF -->I’ve been working on a small cross-platform project scaffolding tool and kept running into problems that weren’t documented anywhere. Figured the technical notes might be useful to others.
It’s not fully polished yet, but the core ideas work. 1. Template detection
I wanted templates to identify themselves automatically without a predefined list. Ended up using a mix of signature files (package.json, go.mod, pyproject.toml) plus a lightweight ignore system to avoid walking massive folders. 2. Safe copying
Copying templates sounds trivial until you hit symlinks, Windows junctions, and binary assets. I settled on simple rules: never follow symlinks, reject junctions, treat unknown files as binary, and only apply placeholder replacement on verified text files. 3. CLI quirks on Windows and Linux
ANSI coloring, arrow-key navigation, and input modes behave differently everywhere. Raw input mode plus a clear priority between NO_COLOR, --color, and --no-color kept things mostly sane. 4. Optional Git integration
Initialize a repo, pull a matching .gitignore, create the first commit, but avoid crashing if Git isn’t installed or the user disables it. The project isn’t fully done yet, but the current implementation is open source here for anyone curious about the details: maybe for people that are programming already for a long time this sounds easy but for me creating a project for the first time without really copying parts from stackoverflow or other tutorials was a real prestation. <!-- SC_ON --> submitted by /u/kajvans (https://www.reddit.com/user/kajvans)
[link] (https://github.com/kajvans/Foundry/blob/main/README.md) [comments] (https://www.reddit.com/r/programming/comments/1oua8df/building_a_crossplatform_project_scaffolding/)
16 minimal multiplatform GUI app examples with Go's Fyne + Rye
https://www.reddit.com/r/programming/comments/1ouzfc1/16_minimal_multiplatform_gui_app_examples_with/

<!-- SC_OFF -->16 increasingly complex, but still minimalistic, examples of multiplatform GUI apps using Go's Fyne GUI library and Rye language. From Hello world, demoing various GUI widgets, goroutines, to combining GUI with HTTP calls and at the end SQLite storage. One of the examples, a simple clock, using a goroutine: fyne: import\go "fyne" app: import\go "fyne/app" widget: import\go "fyne/widget" lab: widget/label "" go does { forever { fyne/do does { lab .set-text now .to-string } sleep 500 } } w: app/new .window "Date & Time" w .set-content lab w .show-and-run 15 more (with screenshots) on the link. <!-- SC_ON --> submitted by /u/middayc (https://www.reddit.com/user/middayc)
[link] (https://ryelang.org/cookbook/rye-fyne/examples-2/) [comments] (https://www.reddit.com/r/programming/comments/1ouzfc1/16_minimal_multiplatform_gui_app_examples_with/)
Build a Digital Bank (Step-by-Step Playlist)
https://www.reddit.com/r/programming/comments/1ov9epi/build_a_digital_bank_stepbystep_playlist/

<!-- SC_OFF -->This series walks through how to build a digital bank from scratch Tech Stack Spring Boot microservices (Customer, Account, Transaction, Payments, AuthUser, Consent) Auth0 for OAuth2 / JWT-based security PostgreSQL for persistence Key Concepts Covered Domain-Driven Design for financial services FDX-compliant API contracts (OpenAPI-first) Idempotency, ETags, and optimistic concurrency https://www.youtube.com/watch?v=VHBlkZYzSNY&list=PL4tLXdEa5XIWrhuhgJA1pdh2PDMrV7nMM&pp=gAQB0gcJCbAEOCosWNin <!-- SC_ON --> submitted by /u/AdPresent3286 (https://www.reddit.com/user/AdPresent3286)
[link] (https://www.youtube.com/watch?v=VHBlkZYzSNY&list=PL4tLXdEa5XIWrhuhgJA1pdh2PDMrV7nMM) [comments] (https://www.reddit.com/r/programming/comments/1ov9epi/build_a_digital_bank_stepbystep_playlist/)
Sacred Fig Architecture (FIG): an adaptive, feedback-driven alternative to Hexagonal — thoughts?
https://www.reddit.com/r/programming/comments/1ovdngg/sacred_fig_architecture_fig_an_adaptive/

<!-- SC_OFF -->Hey everyone, I’ve been working on Sacred Fig Architecture (FIG) — an evolution of Hexagonal that treats a system like a living tree: Trunk = pure domain core Roots = infrastructure adapters Branches = UI/API surfaces Canopy = composition & feature gating Aerial Roots = built-in telemetry/feedback that adapts policies at runtime Key idea: keep the domain pure and testable, but make feedback a first-class layer so the system can adjust (e.g., throttle workers, change caching strategy) without piercing domain boundaries. The repo has a whitepaper, diagrams, and a minimal example to try the layering and contracts. Repo: github.com/sanjuoo7live/sacred-fig-architecture (http://github.com/sanjuoo7live/sacred-fig-architecture) What I’d love feedback on: Does the Aerial Roots layer (feedback → canopy policy) feel like a clean way to add adaptation without contaminating the domain? Are the channel contracts (typed boundaries) enough to keep Branches/Roots from drifting into Trunk concerns? Would you adopt this as an architectural model/pattern alongside Hexagonal/Clean, or is it overkill unless you need runtime policy adaptation? Anything obvious missing in the minimal example or the guardrail docs (invariants/promotion policy)? Curious where this breaks, and where it shines. Tear it apart! 🌳 <!-- SC_ON --> submitted by /u/Resident-Escape-7959 (https://www.reddit.com/user/Resident-Escape-7959)
[link] (http://github.com/sanjuoo7live/sacred-fig-architecture) [comments] (https://www.reddit.com/r/programming/comments/1ovdngg/sacred_fig_architecture_fig_an_adaptive/)