Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Godclasses are pretty useful if you strictly implement them as a composite facade.
-
Code samples won’t do it to show the horrors of Factory Factories which create Mappers which Map everything for no good reason. Also known as Cargo Cult Programming.
With a small code sample you will only see one little pile of garbage which is actually part of gigantic mountains of that stuff.
Also, this is not longer a code base that I’m involved with or have access to. -
@Lensflare It obviously doesn't fit in a screenshot and I'm bound by IP rights (I technically shouldn't have the code on my laptop since I quit) but at a previous employer we've had Facades that were derived classes of a DI container and all they did was to map function calls to Commands and relay them to the opaque set of services using Double Dispatch.
-
LLAMS36633ytacking “Service” on the end of every class name.
PayCalculationService
ReportGenerationService
PipelineExecutionService
Things that have perfectly good verbs in them but we ignore those and just add Service because everything has to be a service these days.
Weekly Group Rant suggestion: What anti-pattern exists that still keeps being propagated or infecting other areas of your code base (like a virus)?
Code samples/screen-shots required.
question
godclass