All Questions
5 questions
-1
votes
3
answers
175
views
How do you enforce rules for the members of a collection in a non-OOP way?
When everything seems to be a collection, how do you enforce rules for members of said collection without the use of an interface?
As far as I am aware, in languages that don't fully support OOP ...
9
votes
7
answers
4k
views
what can go wrong in context of functional programming if my object is mutable?
I can see the benefits of mutable vs immutable objects like immutable objects take away lot of hard to troubleshoot issues in multi threaded programming due to shared and writeable state. On the ...
2
votes
1
answer
639
views
Should all functions be fully self-contained (is it bad practice to share a variable between functions)?
There are two ways to do the same thing (pseudo code)
Define databaseHandle in the parent function, and use it as a global in this scope:
function API() {
function openDatabase() {
return ...
13
votes
6
answers
3k
views
What Functional features are worth a little OOP confusion for the benefits they bring?
After learning functional programming in Haskell and F#, the OOP paradigm seems ass-backwards with classes, interfaces, objects. Which aspects of FP can I bring to work that my co-workers can ...
0
votes
2
answers
1k
views
I cannot understand the application of oops How can I develop the understanding of application of oops? [closed]
I am a developer in PHP technology, I am aware of almost all the basics of OOPS, but still cannot find out the way to apply these concepts over a procedural programming.
I do it in very orthodox way, ...