Linked Questions

49 votes
3 answers

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. ...
Vin Shahrdar's user avatar
0 votes
2 answers

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. ...
Vorac's user avatar
  • 7,129
1 vote
2 answers

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 ...
jcora's user avatar
  • 1,481
27 votes
15 answers

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 ...
Deltax76's user avatar
  • 1,041
26 votes
4 answers

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 ...
Mahmoud Hossam's user avatar
7 votes
4 answers

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 ...
Zibbobz's user avatar
  • 1,552
14 votes
3 answers

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: ...
skomisa's user avatar
  • 251
2 votes
4 answers

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 ...
Chap's user avatar
  • 733
1 vote
2 answers

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 ...
user2517280's user avatar
1 vote
2 answers

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 ...
threeA's's user avatar
0 votes
1 answer

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 ...
user avatar