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
-
Is it supposed to illustrate two different static values or one and the same?
-
RStrydom6868y@fuckinghipsters honestly there was more deliberation on my part, on how to make that clear than necessary. But here's an example to fix that.
$isOP = ($name == 'RStrydom') ? true : true; -
@RStrydom I misread. Thought you were checking if condition equaled variable. Too early for devRant I think 😂
-
I guess it would make sense if someone who was very very afraid needed to make one miniscule change and then spent a good amount of time praying to the gods that he didn't break anything.
I see a few of those kinds of lines produced by our juniors and interns. -
RStrydom6868y@fuckinghipsters I know what you are saying, but with version control you should feel comfortable restructuring a piece of code rather than changing as little as possible in fear.
-
morgh6828yWhat? You mean you guys don't always assign your variables twice just to be sure?
var foo = 3
// i said 3 dammit
foo = 3 -
@RStrydom correct, sadly alot of the freshies I get are even more afraid of git than runtime errors.
It takes patience of steel, and the authority to do a 'git blame', identify the culprit and then tap their shoulder and kindly ask them to clean it up.
Related Rants
$variable = (condition) ? 'static value' : 'static value';
Why do you need the conditional! 😵
undefined
c'mon
waste of my time
laziness