Movatterモバイル変換


[0]ホーム

URL:


公開日:変更日: Download PDF

autoscale: true

The Concept of Almin

fit Almin.js


Almin is a State management library for JavaScript

fit Almin.js


Almin features


Different team structures imply different architectural decisions.-- Clean Architecture Robert C. Martin


The Concept of Almin


WriteYour domain inYour code


Example: UseCase

Almin proviceUseCase class that is a part of application layer

import { UseCase } from "almin";import yourDomain from "./your-domain";export ApplicationUseCase extends UseCase {    execute(){        // Application Layer use your domain        yourDomain.doSomething();    }}

Split upRead stack andWrite stack

Related topic: Command Query Responsibility Segregation(CQRS)


Example: Repository

Realted topic: Model View ViewModel(MVVM), ViewModel


Unidirectional data flow

View -> UseCase -> Store ... -> View -> UseCase -> Store

Related topic: Flux


fit, Almin Architecture


PreferReadable code toWritable code


Monitor everything


inline fill, performanceinline, fill, DevTools


Almin.js Icon Conclusion

fit Almin.js


[fit]Almin is for thinking code


[8]ページ先頭

©2009-2025 Movatter.jp