How we migrated a complex JavaScript application to ClojureScript step-by-step - Alex King

  Рет қаралды 3,868

Clojure Days

Clojure Days

Күн бұрын

Пікірлер: 2
@cynicist8114
@cynicist8114 4 жыл бұрын
Great video, but I would add a correction on re-frame regarding 26:32. As you said, the reason you do that encapsulation in Java is because you want to ensure the state of the class is private, and you do this by ensuring that it is only accessible through methods, so that state updates are controlled. The alternative is that multiple classes can access and write to the fields directly, which means you have shared mutable state and the obvious dangers that go with that. In re-frame, this is not even a possibility because you never access state directly. The unidirectional data flow, going from view -> event generation -> state change -> updated view, does the same thing as encapsulation. It ensures that state updates are controlled because the only way to modify state is to fire events and have re-frame itself coordinate the actual changes. It's identical to the reducer model of Redux, where you end up collecting state changes and applying them at the same time. I know it "feels" or "seems" like you are modifying state directly, but this is the reason you have to write subscriptions and events and so forth. It's so that the architecture can handle this for you in the background.
@matrixnorm6672
@matrixnorm6672 Жыл бұрын
>focus on data privacy 😂 nice joke
nREPL Redux - Bozhidar Batsov
40:57
Clojure Days
Рет қаралды 1,5 М.
Арыстанның айқасы, Тәуіржанның шайқасы!
25:51
QosLike / ҚосЛайк / Косылайық
Рет қаралды 678 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 26 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 23 МЛН
ClojureScript reimagined - Michiel Borkent
57:35
Clojure Days
Рет қаралды 7 М.
Is Functional Programming DEAD Already?
21:07
Continuous Delivery
Рет қаралды 73 М.
🚀  TDD, Where Did It All Go Wrong (Ian Cooper)
1:03:55
DevTernity Conference
Рет қаралды 571 М.
Keynote: Advent of Code, Behind the Scenes - Eric Wastl
46:01
ClojureScript Concurrency Revisited - Paulus Esterhazy
25:33
What does larger scale software development look like?
24:15
Web Dev Cody
Рет қаралды 1,4 МЛН
It’s time to move on from Agile Software Development (It's not working)
11:07
The damaged battery headisrepaired. #Battery #Repair
0:34
Hak Hang
Рет қаралды 13 МЛН
Самые УЖАСНЫЕ Dyson наушники! Dyson  #интересное
1:01
ТЕХНОБЛОГ АЛИША
Рет қаралды 540 М.
Cómo meter un TELÉFONO en un aula📲 #cortos
0:28
Jelly Jail Spanish
Рет қаралды 1 МЛН