somlor

Joined 14 years ago

Karma
47
Submissions
35
Member since
Dec 5
https://www.haunted.host
View on Hacker News

Recent submissions

Comment · 7 years ago
Immediately after WW2 all fascists worldwide disappeared in a poof of smoke. Also their rise to power has always been abrupt and without warning via an on/off switch.
Comment · 7 years ago
Comment · 7 years ago
Thanks, digging them already.
Comment · 7 years ago
Comment · 8 years ago
Another +1 here. Intense visceral disgust of lavender. I don't think I'm "smell-sensitive" in any other way. I can tolerate all manner of, e.g., dank cheese, pungent fish, fragrant smoke, any other plant oil, etc. I just can't stand lavender.
Comment · 8 years ago
ClojureScript with re-frame is fantastic. I also use it on a production app with an Elixir backend, it's a great fit. Be sure to check out re-frisk and re-frame-10x.
Comment · 8 years ago
As an Elixir dev I tend to agree. I've found ClojureScript to be a nicer fit (Reagent with re-frame if needed).
Comment · 8 years ago
Your gist link under functional programming support is a 404 for me.
Comment · 9 years ago
Just a note that in your "Final Thoughts" you're linking to the 1st edition of "Mastering Bitcoin" but there is a 2nd edition now.
Comment · 9 years ago
ClojureScript itself fits wonderfully in Elixir/Phoenix land. :)
Comment · 10 years ago
Please never hijack back button.
Comment · 10 years ago
I think I see where you're coming from, but I also think you might be moving the target a bit. I suspect you'd garner less debate if you said, I dunno, just "a dynamic UI app needs a way to model state changes". "Mutate" has a specific meaning, in my mind at least, when discussing variables and data structures. React enables avoidance of direct DOM manipulation, Redux obviates direct state mutation.
Comment · 10 years ago
The DOM can be mutated just fine behind the scenes by React to reflect whatever brand new state has been passed into it. That brand new state can be anything. It can be a single (by definition immutable) integer. It can be a deep clone of an object. This is the ideal intended Redux architecture. Redux reducer(s) receive the state and return either the state untouched, or a non-mutated copy of the state. React reacts accordingly by expressing this brand new state as (possible) DOM mutations.
Comment · 10 years ago
> If you haven't mutated states, you don't have an interactive UI.

React allows you to treat DOM mutation as an expression of current app state.

This doesn't mean that your state itself has to mutate. It's entirely possible to structure a React (and/or Redux) app with fully immutable state, copies of which represent change. (Whether copies are done efficiently, e.g. via persistent data structure algorithms, or naively, e.g. via a deep clone, is secondary).

I'm befuddled where you're getting the impression that immutable data structures themselves require mutation.

Comment · 10 years ago

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton