I likely am asking a very stupid question here, please forgive me. I am a Java and C# backend-engineer with relatively good knowledge of OOP design p ...
I likely am asking a very stupid question here, please forgive me. I am a Java and C# backend-engineer with relatively good knowledge of OOP design p ...
I just stumbled upon some OCaml code that writes a loop like this: Which is interesting as I normally see this done using recursive functions in OC ...
There is a sense in which Haskell is a purely functional language, and certainly, idiomatic code tries to be as functional as reasonably possible. At ...
I want to generate python code based on UML/SysML. The coding is mainly imperative - calling functions that deliver results, switch states and some ma ...
I've been working on an algorithm for calculating maximum depth of an expression (i.e. how many nested parentheses there are) in various languages jus ...
I a new to reactive and trying to accomplish the below task in efficient way. I have a table having events for each user. I am trying to get latest ro ...
In many cases you have code like this (C-style pseudo code used): I keep reusing this patter and every time wonder, if there is better way to expre ...
It seems like I'm starting to write "imperative looking" methods to support the functionality/readability of the reactive chains. This may not be the ...
I am following the Rust track on Exercism.io. I have a fair amount of C/C++ experience. I like the 'functional' elements of Rust but I'm concerned abo ...
Suppose we are using AVKit and we have added a target to our play/pause button to handle the playing/pausing of a track. Is it generally bad practice ...
I have a simple React app with a video player and chart displaying data about the video. Both are in their own components at the top level: Inside ...
I’m trying to figure out , why compiler looks through the collection using functional style swiftly then imperative. Here is the simple example where ...
The main ideas of immutability are kept the same throughout the scope of OOP and functional programming or do, for example, Java and Python have their ...
I have been reading about these topics for a while and may have understood something. But I am confused with some connections: i. Turing Machine (RAM ...
An article I read gave this example for the difference between declarative and imperative programming: Declarative Imperative The imperat ...
I have a generator and I want to modify the last element of the generator. I want to replace the last element with another element. I know how to retr ...
I'm learning about Underscore.js and the higher order functions. I came across the following problem, and I'm just simply stuck. I'm not looking for ...
Is there a way in OCaml for a variable inside a function to keep its value between function calls? It should work like Pythons default argument, which ...
Please, can somebody explain me what are the advantages of using reactive style: instead of simple imperative style: I understand reactive progr ...
There is a if/else statement in my code and Im thinking of refactoring it.I have already searched many Similar Questions.like this. The best answer sa ...