Relative Content

Tag Archive for complexity

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.

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.

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.

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 […]