News for hackers. Stuff that matters.
Re:Picat – a logic-based multi-paradigm programming language by philip142au on Wednesday July 24, 2019 @02:08AM (#20512720)
Really bad idea... please no imperative
Re:Picat – a logic-based multi-paradigm programming language by GoToRO on Wednesday July 24, 2019 @04:14AM (#20513185)
Actually I see all the non-imperative ways as lost time in software development. At some point we will realize that people think imperatively.
Re:Picat – a logic-based multi-paradigm programming language by cultus on Wednesday July 24, 2019 @10:53AM (#20515860)
Software developers who are taught imperative programming are used to translating their high-level, human thoughts into imperative instructions telling the computer exactly what to do to make the answer they want.

With functional programming, one is able to translate thoughts more directly. Non-programmers actually have an easier time with functional concepts like mapping than for loops, non-local mutation, etc.

At any rate, imperative languages have a legacy of frankly buggy, shitty software. As programs get larger and more concurrent, this problem is getting much, much worse. That's why functional(ish) libraries like Redux are so popular. They can help tame this complexity.

Imperative programming absolutely has its place in certain situations like systems or numerical programming, but it is a poor tool for most things people program. Rust, I think, is imperative programming done right. While it's a bit confusing with all the pointer types, it has the tools needed to safely mutate, etc.

Re:Picat – a logic-based multi-paradigm programming language by WillDaSilva on Wednesday July 24, 2019 @07:23AM (#20514029)
Speak for yourself. I find declarative programming to be far more intuitive, as it lets me think about how I should go from the data I have to the data I want. Thinking about programs in terms of the steps they're taking to do something generally bogs people down with irrelevant implementation details.
Re:Picat – a logic-based multi-paradigm programming language by whateveracct on Wednesday July 24, 2019 @12:43PM (#20516980)
I solve problems without thinking imperatively all the time -.- it isn't inherent
Re:Picat – a logic-based multi-paradigm programming language by di4na on Wednesday July 24, 2019 @10:39AM (#20515730)
That is not what the research shows. Quite the contrary
Re:Picat – a logic-based multi-paradigm programming language by tempguy9999 on Wednesday July 24, 2019 @03:21AM (#20512991)
Why not?

Edit: functional is a tool, declarative is a tool, imperative is a tool. There's nothing wrong with any of them, it's whether they're applied correctly that makes them good or bad. They're just tools. Imperative can be the right one sometimes.