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
-
This could make a heck of a Silicon Valley episode.
Scene 1: CTO orders Guilfoyle to create all variables same length...
Guilfoyle: &:!:$:&/!:)/7:) you -
bkrem12729yImplying code readability when even native English speakers will have to google the semantics behind a variable name every 5 mins due to cryptic thesaurus choices
-
linxlad2419yThat's ridiculous, variables names need to be concise and descriptive.
A good example I have come across is Guzzle namespace for http client.
$client = new Client(); // What client?
$guzzleHttpClient = new Client() // Better description -
I would troll him by using the longest synonyms possible. For start I would use commence and maybe obstruct for stop. 😬
CTO wants all variables in file to be same length. You cant have "start" and "stop". You must have "start" and "cease".
undefined