i want to see someone elaborate a state-maximizing, instead of state-minimizing, philosophy. lean in
[1] https://github.com/xoreaxeaxeax/movfuscator
[2] https://harrisonwl.github.io/assets/courses/malware/spring20...
41–50 of 254 posts
i want to see someone elaborate a state-maximizing, instead of state-minimizing, philosophy. lean in
[1] https://github.com/xoreaxeaxeax/movfuscator
[2] https://harrisonwl.github.io/assets/courses/malware/spring20...
Earlier quoted context omitted.
They are orthogonal. React (FC) is a declarative _and_ functional approach. The declarative part is where React code describes what should be rendered, instead of adding/removing DOM elements manually. The old React is not 100% functional (partially OO), but it still is declarative.
They're not orthogonal. I believe one is a subset of the other, but at a minimum they overlap.
(Edited for clarity)
"Functional - Modifying state is hard to get correct; keep it at the boundaries and keep logic pure so that it is easier to verify the logic is correct." My main beef with functional programming is that you essentially put the state in the "instruction pointer" and its history of walking the call stack instead of bound to symbols. It does not fit my way of thought. I personally prefer more or less statemachines.
i want to see someone elaborate a state-maximizing, instead of state-minimizing, philosophy. lean in
Also: Any assembly language that predates memory protection.
i want to see someone elaborate a state-maximizing, instead of state-minimizing, philosophy. lean in
"Functional - Modifying state is hard to get correct; keep it at the boundaries and keep logic pure so that it is easier to verify the logic is correct." My main beef with functional programming is that you essentially put the state in the "instruction pointer" and its history of walking the call stack instead of bound to symbols. It does not fit my way of thought. I personally prefer more or less statemachines.
I think what you're missing is that functional programming is about referential transparency. There should be no need for an instruction pointer in your mental model.
Functional and declarative are the same to me
They're related, but "declarative" is a broader category that includes relations. Functions are a special case of relations (see also: prolog, datalog, sql...).
That’s assuming that „declarative“ means „describing outcomes rather than describing process“.
It's been a while but I used to enjoy telling folks in the early years of their career that software engineers and anarchists have a lot in common because both view "the state" as the main cause of problems.
Former long time anarchist, current long time FP proponent, presently having a laugh with you on this.
"Functional - Modifying state is hard to get correct; keep it at the boundaries and keep logic pure so that it is easier to verify the logic is correct." My main beef with functional programming is that you essentially put the state in the "instruction pointer" and its history of walking the call stack instead of bound to symbols. It does not fit my way of thought. I personally prefer more or less statemachines.
I think what you're missing is that functional programming is about referential transparency. There should be no need for an instruction pointer in your mental model.
Basically how FP sells:
def a
1
end
def b
2
end
def c
a + b
end
You see? c = 3! Now try to apply this logic to (real world with effects): def a
(conn: DBConn) => { .... some complex code ... }
end
def b
(conn: DBConn) => { .. another complex code ... }
end
def c
(conn: DBConn) => a(conn) + b(conn)
end
So c = ? Still transparent?