Tagged Questions
2
votes
2answers
153 views
design a model for a system of dependent variables
I'm dealing with a modeling system (financial) that has dozens of variables. Some of the variables are independent, and function as inputs to the system; most of them are calculated from other ...
5
votes
3answers
448 views
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.
In Python, I usually use an empty class ...
6
votes
3answers
341 views
Design in “mixed” languages: object oriented design or functional programming?
In the past few years, the languages I like to use are becoming more and more "functional". I now use languages that are a sort of "hybrid": C#, F#, Scala. I like to design my application using ...
19
votes
10answers
1k views
How would Functional Programming proponents answer this statement in Code Complete?
On page 839 of the second edition, Steve McConnell is discussing all the ways that programmers can "conquer complexity" in big programs. His tips culminate with this statement:
"Object-oriented ...
7
votes
3answers
456 views
Long parameter list versus long state variable list
In a C++ book, the author says we no longer need a function with a long parameter list because most of the parameters can be refactored into state variables in a class.
On the other hand, a ...