Case study

Back to projects

Sync

C++/Qt sinxronizatsiya tizimi · 2025

Fayllarni qurilmalar o'rtasida ishonchli sinxronlaydi. Clean Architecture: domen qatlami UI'dan butunlay mustaqil.

  • C++
  • Qt
  • Clean Architecture
Domain File synchronization
Primary stack C++, Qt
Focus Clean Architecture, deterministic state, UI/domain separation
Desktop systems project Based on available portfolio metadata and live demos. Where source is not linked, architecture notes describe the intended design rather than a verified implementation.

Overview

Sync is presented as a Qt desktop synchronization system. The important portfolio signal is not only the UI, but the separation between file state, synchronization decisions, and interface events.

Problem

A sync tool must make local file changes understandable, repeatable, and recoverable. The UI cannot be the place where domain rules live.

Constraints

Desktop UX, filesystem edge cases, user-triggered actions, and a need for predictable behavior when files change outside the app.

Architecture

The case study is modeled around a domain layer for sync decisions, an application layer for orchestration, adapters for filesystem access, and Qt widgets/signals for presentation.

Technology Decisions

C++ and Qt make sense for a desktop tool that needs native filesystem access, long-running operations, and precise control over state transitions.

Data Flow

Scan source and target folders, normalize file metadata, compute differences, execute a sync plan, then surface progress and conflicts to the UI.

Engineering Challenges

The hard part is avoiding hidden coupling between UI events and filesystem mutations. A planned sync operation should be inspectable before execution.

Security

The design should treat paths as untrusted input, avoid following unsafe traversal patterns, and never delete outside selected roots.

Performance

Directory scans should be incremental where possible, with expensive work kept off the UI thread.

Reliability / Failure Handling

A mature implementation needs partial-failure reporting, retryable operations, and clear conflict states rather than silent overwrites.

Lessons

Desktop systems reward boring boundaries: isolate state decisions first, then let Qt render them.

What I Would Change Today

Add an explicit dry-run plan view, operation logs, and fixture-based tests for rename/delete/conflict scenarios.

Repository

Source not publicly linked

No fake repository CTA is shown for this project.