Skip to main content

ULSAC

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
by JLW008 January 28, 2009
mugGet the ULSAC mug.

ulisha

A beautiful woman who is so pretty. She doesnt like to do dishes. She speaks for herself she is the queen.
Hey is that a Ulisha? Duh look at her
mugGet the ulisha mug.
Related Words
Ulisa Ulises Uliana ulisses ulian Ulusan Ulia ulima unisa uliahilip

Dirty Ulises

The act of having sex with a mature grandma like lady inside of a trailer park
Omg did you see chris he had a “dirty ulises” with mike’s grandma
by pediballislufe April 20, 2020
mugGet the Dirty Ulises mug.

ulian

she’s such a ulian
by eat my fat cock April 9, 2020
mugGet the ulian mug.

Ulianna

an immigrant slut who showers naked...who the fak does that?!?!? this little thing will annoy u at any moment in the day. what an asshole!
by CheapyTV November 24, 2016
mugGet the Ulianna mug.

unisac

Dude's got a unisac

Alternate spelling : unisack
by Poon Hound August 29, 2003
mugGet the unisac mug.

Ulises

Ulises a guy who thinks he can get all the ladys. So , he takes advantage of that power and dates multiple ladys at the sametime and trys to get in there pants. He never has time to message any of the ladys because hes always with his friends playing basketball, playing video games, getting drunk or even getting high. Ulises is a waste of time.
Why did you waste tour time on a guy named Ulises?

Why does Ulises always make up excuses on why he didn't text you?
by OhNoEm June 1, 2020
mugGet the Ulises mug.

Share this definition

Sign in to vote

We'll email you a link to sign in instantly.

Or

Check your email

We sent a link to

Open your email