Linked Questions
11 questions linked to/from How do I prove or disprove "God objects" are wrong?
49
votes
3
answers
8k
views
Using a "Pass-through (God) Service" is bad, right? [duplicate]
My team has developed a new service layer in our application. They created a bunch of services that implement their interfaces (E.g., ICustomerService, IUserService, etc). That's pretty good so far.
...
0
votes
2
answers
793
views
Refactorable God v.s. too many classe [duplicate]
So I have this problem: in order to structure my code hierarchically, for every new tiny thing, I create a separate sub-folder, file, class ... and in it one 10-line function. It is an anti-pattern.
...
1
vote
2
answers
358
views
Would it be bad design to abstract a graphics library and wrap it in a single class? [duplicate]
I'm starting a game project in C++ using the SFML.
It provides various classes for handling graphics, input, etc, but I would like to wrap it all up in a single Media class.
I believe that by doing ...
27
votes
15
answers
2k
views
How do I convince my team to use smaller classes/methods?
Disclaimer: I'm a newcomer (this is my third day of work), and most of my teammates are more experienced than me.
When I look at our code, I see some code smells and bad engineering practices, like ...
25
votes
4
answers
9k
views
Are there any negative side effects of splitting up large modules? [closed]
I was browsing a github project and found this module which has more than 10 thousand lines.
Is it a common practice to have that much code in a single module?
It seems to me that this should be ...
6
votes
4
answers
8k
views
Is it always a good idea to divide large classes into smaller ones? [duplicate]
I've heard time and time again that in object-oriented programming, you should try to split objects that 'do too much' into multiple classes, to avoid the "God Object" problem.
This seems like fine ...
14
votes
3
answers
849
views
Can the RxJava class Flowable legitimately have 460 methods?
I am just getting started with RxJava, Java's implementation of ReactiveX (also known as Rx and Reactive Extensions). Something that really struck me was the massive size of RxJava's Flowable class: ...
2
votes
4
answers
2k
views
How to provide a ubiquitous object without including it in every parameter list
I'm writing a small C++ class, Block, to transform serialized data into a memory structure, and supply the structured data to callers through several accessor methods. I've tried to keep its scope ...
1
vote
2
answers
492
views
Just one class - Java
I've written a program in Java, it's only fairly small and I started programming and ended up just building one big class with everything inside it.
The program works fine and exactly how I wanted it ...
1
vote
2
answers
594
views
software testing and object-oriented design approach
I am reading a book "Black-Box Testing by Boris Beizer". In this book, there is a sentence as follows,
Object-oriented programming and improved operating systems promise to eliminate many currently ...
0
votes
1
answer
200
views
Design: Bridge Game [duplicate]
I'm making revisions to a Console version of contract bridge I made in Java. The source can be found here: Bridge
So most of the code is terrible and I've been trying make improvements wherever ...