Skip to main content
By trying to make a API method more generalized- you make it too generalized.
Anti-Pattern Name:
ULSAC Anti Pattern
Aliases:
Failed Façade Command Pattern Problem
Context
By trying to make a API method more generalized- you make it too generalized
Forces
- Trying to prevent code change
- Failing to program to interface, in the sense if the implemented class changes it should signal failures else where in the code base.
Solution
Create well defined methods (and names) that explain the exact nature of the method.
Consequences and Resulting Context
- The complexity of the call gets embedded with in a parameter.
- API can’t be readily understood.
- Functionally Overloaded method
- Hard to change.
- Difficult API to use.
What's Wrong with the Solution
Consider the following API which contains self describing methods that can be readily understood and used.

void getCustomerNumber(…);
void getCustomerAddress(…);
void getCustomerTelephone(…);


If a scenario arises in which a developer tries to prevent the API exposed to change by creating an overly generalized method

void getX(…., String actionDesc)

in which the actionDesc contains some sort of internal pseudo language which determines the correct data to return. i.e.

call getCustomerNumber(…) gets replaced with call getX(….,”CustomerNumber”);
call getCustomerNumber(…)+ call getCustomerAddress(…) gets replaced with call getX(….,”CustomerNumber,CustomerAddress”);
Lesson's Learned
Try not to make a single method be all things to everyone. Rely on programming to interface and contractible programming it allows.
Correct Patterns
Author(s):
John Wilson
Date:
01/01/2009
References
Keywords:
Example
ULSAC by JLW008 January 28, 2009
Related Words
ulsa Ulsaa ULSAC
A person who simply wishes for Australian girlfriend.
Person 1: Is that Ulsaa?
Person 2: Yeah and he is probably dreaming about some Australian chick with big titties.
Person 1: Yeah probably...I mean who wouldn't dream about that right?
Person 2: Agree.
Ulsaa by うじま November 21, 2021
well known from south park
rednecks get angrry that future folk took there jobs so they yell
They took ouare jerbs!
Them future folk took ouare jerbs!
jerb by Jimberley Kim April 7, 2005
Word of the Day on May 22, 2026
An Irish phrase meaning shit, derived from ass
(Not to be confused with the literal description of one's buttocks)
"Did you hear the song Aylek$ dropped?"
"Hardly. Her music is absolute cheeks."

"My boyfriend say LaFlame is cheeks."
"Tell your boyfriend I said it's his mixtape that's cheeks."
Cheeks by thecartisan April 26, 2020
Word of the Day on May 21, 2026

sans sheriff 

Lawless use of fonts or typography, with no regard to aesthetics or legibility
I'm putting this CV straight in the bin. Written totally sans sheriff.
sans sheriff by Jamarley July 3, 2019
Word of the Day on May 20, 2026

Breadhead 

Someone who is addicted to obtaining money and building wealth. A money addict and fanatic. Breadheads often work more than one full-time job, and some even participate in illicit activities to "obtain the bread".
A breadhead is like a crackhead, but for money instead of crack.
Breadhead by 🅱️ U S 3 4 8 March 30, 2022
Word of the Day on May 19, 2026