Live data from Hacker News

All programming philosophies are about state

worldofbs.com

221–230 of 254 posts

Re: All programming philosophies are about state

#221
1. Yes, software development is about managing state change. If the state has not change, the software is idle or not running

2. The mix of concepts between programming paradigms, architectural design, etc. doesn't body well supporting the conclusion about "every programming philosophy"

It feels to me like much ADO about nothing

Re: All programming philosophies are about state

#222
post #161

Earlier quoted context omitted.

God, this is such condescending nonsense. The older I get, the more left I lean, because the more of the world you see the more you see what chaos our current ideology has wreaked upon it. The only people I see going the way this quote does are unthinking idiots who were fashionably "liberal" in their youth without understanding any political theory, and are now fashionably "conservative" with even lesser understandi…

I personally find it more and more difficult to subscribe to any ideology. I think societies, states and economies are emergent properties of people living together. But the more I know people, the less I believe overarching systems, models and grand narratives. They are all wrong. Not only in respect of what should be. We can’t even agree on what is or has been.

Some are less wrong than others.

Re: All programming philosophies are about state

#224

Funny, I arrived at this "all software is.." piece last week. Hypothesis: All of software *is* about change management ---- It dawned on me that all the software design efforts - Design patterns, programming styles, management practices - are all geared towards one thing at its core - managing change. For example: * Command pattern: Figure out all the things that can be called and instead of a giant if/switch, look t…

If you haven’t already, you might benefit from learning about the idea of OODA loops.

Re: All programming philosophies are about state

#225

The original author was smart in calling it programming philosophies as it avoids a lot of puristic discussion. As mentioned elsewhere: Pure functional programming (as in lambda calculus and its friends) does not consider state. It consider expressions that need to be reduced – the user can on top of that build something that mimics state, which is entirely up the programmer. However, I think the most productive way…

The so maligned "state" in FP resides in the call stack: f(g(h(x))) It's a mutable and invisible data structure that drives the execution of the program.

It's not mutable and it's not a stack in the model, that's just an implementation artifact used for efficiency. You could equally well allocate every function context on the heap.

Re: All programming philosophies are about state

#226
post #163

Imperative: modifying state is the point of a bit-flipping machine; get out of my way so I can have fun! OOP: OK, I mostly had enough fun, can we try to tame the bit-flipping chaos with real-world analogies, without deflating all the fun? Functional: Any Monad is by definition an Endofunctor, which also means it's an object in the category of Endofunctors, where the monadic μ(flatMap) and η(unit) operators satisfy th…

This made me smile. I'm not sure I get the declarative one though, can someone expand on this? Is it because the sentence is very declarative? or because declarative programming allows lets to declare expensive to compute stuff (by mistake) too easily?

I think it's the first.

Re: All programming philosophies are about state

#228
post #71

Earlier quoted context omitted.

“He who is not a républicain at twenty compels one to doubt the generosity of his heart; but he who, after thirty, persists, compels one to doubt the soundness of his mind.”

God, this is such condescending nonsense. The older I get, the more left I lean, because the more of the world you see the more you see what chaos our current ideology has wreaked upon it. The only people I see going the way this quote does are unthinking idiots who were fashionably "liberal" in their youth without understanding any political theory, and are now fashionably "conservative" with even lesser understandi…

You have to admit that the State causes many of those problems. Police brutality would not be a problem if there were no police, for instance.

One response is to say we need to empower the State with more authority to regulate those problems, with the hope that it doesn't just cause even more problems.

Another response is to say we need less State authority, and find other ways of dealing with certain problems typically given to the State. Not every problem is a nail to hammer with the State.

Neither response is correct in all circumstances.

Re: All programming philosophies are about state

#229
post #163

Imperative: modifying state is the point of a bit-flipping machine; get out of my way so I can have fun! OOP: OK, I mostly had enough fun, can we try to tame the bit-flipping chaos with real-world analogies, without deflating all the fun? Functional: Any Monad is by definition an Endofunctor, which also means it's an object in the category of Endofunctors, where the monadic μ(flatMap) and η(unit) operators satisfy th…

This made me smile. I'm not sure I get the declarative one though, can someone expand on this? Is it because the sentence is very declarative? or because declarative programming allows lets to declare expensive to compute stuff (by mistake) too easily?

You don't tell the computer how to do the task, but you tell what result you want. Eg: SQL

Re: All programming philosophies are about state

#230
post #111

Earlier quoted context omitted.

To interpret the quote charitably, I think it's more that age can come with an appreciation with the fragility of society, the recognition that it's a miracle it works at all, and a humility about how much and how rapidly a system can be changed without being destroyed.

> humility about how much and how rapidly a system can be changed without being destroyed I guess everyone familiar with US history should find the quote to be utter bullshit, then. The American Revolution, Civil War, Emancipation Proclamation, 19th Amendment, Great Depression, WWII, and Civil Rights Act were all major upheavals in society that brought on rapid change. A lot of people died prematurely, but a lot of l…

The system did collapse, that's why so many people died prematurely and why the system that came after was radically different than what came before. Keeping the same name just creates an illusion of continuity.
Post reply on HN