I cannot understand the application of oops How can I develop the understanding of application of oops? [closed]
Closed 9 years ago.
Are small amounts of functional programming understandable by non-FP people? [closed]
Closed 9 years ago.
Is an Inner Function Justified in this Situation
I’m new to the functional programming concepts in C#, but I have some experience with higher order functions via Haskell, Scala, Python and Ruby. I’m currently going through an old .NET 2.0 codebase with a LOT of duplication in it. Most of it is simple “copy/paste” with a few variables changed. I’m trying to condense as much of this as possible.
What statements and approaches should I avoid when learning functional programming?
I have 6 years of programming experience, mostly following the object oriented paradigm, and I’m interested in learning functional programming. My main goal is to become a functional paradigm programmer and not a programmer who is using a functional language but still writes in imperative style.
How are entities with an identity and a mutable persistent state modelled in a functional programming language?
In an answer to this question (written by Pete) there are some considerations about OOP versus FP. In particular, it is suggested that FP languages are not very suitable for modelling (persistent) objects that have an identity and a mutable state.
Is it a better practice pre-initialize attributes in a class, or to add them along the way?
I’m sorry if this is a ABSOLUTELY sophomoric question, but I’m curious what the best practices are out there, and I can’t seem to find a good answer on Google.
Does Clojure have continuations/coroutines/etc?
I started programming with Python, and I was really confused by concepts like coroutines and closures.
Different ways to see a monad
While learning Haskell I have faced a lot of tutorials trying to explain what are monads and why monads are important in Haskell. Each of them used analogies so it would be easier to catch the meaning.
At the end of the day, I have end up with 3 differents view of what a monad is:
Critique of the IO monad being viewed as a state monad operating on the world
The IO
monad in Haskell is often explained as a state monad where the state is the world. So a value of type IO a
monad is viewed as something like worldState -> (a, worldState)
.
Differences between imperative-language and functional-language debuggers
Up to now I have always worked with imperative languages like Pascal, C, C++, Java in a production environment, so I have experience with debuggers for these languages (Turbo Pascal, Turbo C, GDB / DDD, Visual Studio, Eclipse).