All work

ModernNotes

CompletedFeb 2026 – Apr 2026 · ≈ 1.5 monthsOwn build

A small offline-first notes app for Android, written entirely by hand to show I can design and build a modern app end to end without AI writing the code.

Sole developer: design, code and tests.

Home
Demo
Sort order
Edit note

Real screens from the emulator.

ModernNotes list screen titled My notes, with two notes and a sort menu set to Date descending
Home

Architecture#

Clean Architecture in a single module, split into data, domain and presentation packages, with MVVM in the UI layer.

Datadata/
Domaindomain/
Presentationpresentation/
Remote APIRetrofit · a fake todaySingle source of truthRoomrepository · DAOGetNotesUseCaseNotesListViewModelone StateFlowNotesListScreenCompose UI
SyncNotesUseCase writes
Flow
Flow of notes
UiState
flatMapLatestDataStoresort order
events
  1. Data data/
  2. Remote APIRetrofit · a fake today
  3. SyncNotesUseCase writes
  4. Single source of truthRoomrepository · DAO
  5. Flow
  6. Domain domain/
  7. GetNotesUseCaseDataStore sort order · flatMapLatest
  8. Flow of notes
  9. Presentation presentation/
  10. NotesListViewModelone StateFlow
  11. UiState · events go back up
  12. NotesListScreenCompose UI

Read the code

  1. The list screen observes one UiState and sends events up.NotesListScreen.kt
  2. The ViewModel combines the notes flow with a loading flag into one StateFlow; the loading state shows only while the list is empty.NotesListViewModel.kt · l. 30–57
  3. GetNotesUseCase re-runs the Room query whenever the saved sort order changes.GetNotesUseCase.kt · l. 16
  4. The local repository and DAO answer with a Room Flow; Room re-emits when data changes.NotesRepositoryImpl.ktNoteDao.kt
  5. SyncNotesUseCase fetches remote notes and writes them into Room; the UI sees them through step 4.SyncNotesUseCase.kt
  6. Hilt binds the repository the app uses for the remote side (today a fake; see “What went wrong, what is missing”).RepositoryModule.kt · l. 33

Each name opens its file.

How AI was used#

AI was used only as an auditor: after each phase I had the finished code reviewed by an AI model, which returned corrections and explanations, never code.

How a change moves

  1. Design
    Me

    design the app

  2. Code
    Me

    write every line and the tests

  3. Review
    An AI model

    audit each finished phase, with no code

  4. Fix
    Me

    apply the corrections by hand

No code-completion assistants were used at any point. This is my declaration, not something git can prove; what the repo does show is the result: the code, the tests and the fixes below.

GameStack is the opposite experiment: AI agents write the code inside a harness I designed.

GameStack case study

Key decisions#

DecisionInstead ofWhyCostCode
The sort order drives the queryLoad the notes and sort them in the ViewModelThe order is saved with DataStore and changes the Room query, so the ViewModel never sorts a list itself and Room stays the one source.Each sort order needs its own query in the DAO (three of them).GetNotesUseCase.ktNoteDao.kt · l. 15–22
Time is injectedCall System.currentTimeMillis() inside the use caseTests use a FakeTimeProvider and stay deterministic.One interface, one implementation and one Hilt binding for a single call.SaveNoteUseCase.ktUtilModule.kt
Validation lives in the domainValidate in the ViewModelSaveNoteUseCase throws a typed InvalidNoteException; the ViewModel maps each case to a string resource, so no user-facing text lives outside the UI layer.The domain has to define its own error types.InvalidNoteException.kt
DTOs and entities never leave the data layerConvert remote models straight into local onesA change in the API or in the database stays inside its own layer.Two mapper classes and their tests (NoteEntityMapper, NoteDtoMapper).NoteEntityMapper.ktNoteDtoMapper.kt

Tests#

13 unit test classes: all seven use cases, both ViewModels, the local and remote repositories and both mappers, with shared test factories, a main-dispatcher rule and a fake clock.

  • The remote repository is tested against a real HTTP layer with MockWebServer, including an HTTP 500 case.RemoteNotesRepositoryImplTest.kt
  • One instrumented test runs the DAO against an in-memory database and checks each sort order and the create, read, update and delete queries.NoteDaoTest.kt

What went wrong, what is missing#

  • There is no real backend.The remote layer is implemented and tested against MockWebServer, but the app binds a fake that returns two demo notes after a simulated delay, so the loading state can be seen on a device. Swapping in a real API is a one-line change in RepositoryModule.RepositoryModule.kt
  • Deleting a note is not in the UI.DeleteNoteUseCase and NoteDao.deleteNote exist and are tested, but no screen calls them.
  • Found in a later AI audit and fixed.On Oct 16, 2026:
    • Added a missing @Body to addNote and updateNote in the remote API (8bb8570).
    • Made the remote repositories rethrow CancellationException (8b5eb6d; its message only mentions a test rename).
    • Made loading show only while the list is empty (01fda92).
  • What I do differently in GameStack.Checks on every pull request (ModernNotes has no CI), decisions written down as ADRs when they are made, and commit rules that a check enforces (in ModernNotes, one commit message hid a fix).

This project is finished and I don't plan to extend it.

Code links point to commit f25f38c (Dec 4, 2026).

The repo README says it was drafted with AI from the code and reviewed by me.

Let's talk.

Looking for Senior Android or Android + AI roles. Available now, for remote work or relocation, based in Mexico City (UTC−6): full overlap with US hours and European afternoons.