Too complex/too many objects?
I know that this will be a difficult question to answer without context, but hopefully there are at least some good guidelines to share on this. The questions are at the bottom if you want to skip the details. Most are about OOP in general.
Guidance in naming awkward domain-specific objects?
I’m modeling a chemical system, and I’m having problems with naming my elements / items within an enum.
Finding the time complexity of the following program that uses recursion
I need to find the time complexity in terms of Big Oh notation for the following program which computes the factorial of a given number: The program goes like this:
Dealing with Feature Intersections
I have recently witnessed more and more problems similar to the ones explained in this article on feature intersections. Another term for it would be product lines, though I tend to attribute these to actually different products, whereas I usually encounter these problems in the form of possible product configurations.
Good idea to move logic out of SQL statements?
I’ll preface this question by saying that I am very new to professional software dev.
Is unconditional code considered a branch?
Having simple code like this:
Problems Calculating Big-O Complexity
I’m a complete beginner to Java, only in my second quarter of classes. I’m having trouble understanding our current chapter about calculating big-O for methods. So I thought I was right in saying that the big-O for these two methods is simply O(N), since there is only one loop that loops through the entire list, but apparently they’re either O(NlogN) or O(logN). I really can’t see why. Can anyone help me understand?
Is currying too complex a tool to actually use?
Today I feel like I finally grokked currying (in Javascript), and of course, like any programmer who has learned a new trick, my mind immediately began racing over how to improve my current codebase using it.
What can Go chan do that a list cannot?
I want to know in which situation Go chan makes code much simpler than using list or queue or array that is usually available in all languages.
Limit useless complexity in code [duplicate]
This question already has answers here: How would you know if you’ve written readable and easily maintainable code? [closed] (19 answers) Closed 11 years ago. I have a question, to explain that, what better than an entirely fictional example? Let’s say you are a young developer just being employed in a firm. All data is […]