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
-
CaptainRant361162d@retoor Is that a joke? lol. The language is JavaScript and it's a ternary operator. Hm. I ran it myself without error.
-
CaptainRant361162d@retoor How do I explain this? lol. Ok, it's like this:
It's an assignment that takes the result of a predicate expression: Somewhere in memory, the public property pace of the softwareDevelopmentIndustry object will get assigned the value of the expression evaluated to the right of the equals sign. An expression is any combination of operands and operators that evaluates to a value.
A ternary expression is as follows:
condition ? expressionIfTrue : expressionIfFalse;
expressionTrue = true. This gets interpreted as: if true == true, so it semantically means: always, in all cases. So, always rush the employee, no matter what: manager.rush(employee)
expressionIfFalse = fictionalLand.takeItEasy(); This never gets executed because the left expression is already true.
softwareDevelopmentIndustry.pace = true ? manager.rush(employee) : fictionalLand.takeItEasy();
This pattern gets used commonly in reading files:
while ((line = br.readLine()) != null) -
Root8260061d@CaptainRant Have you tried working harder? Maybe taking less time off, and thinking about your tickets outside of “work hours”? Your boss is like your father, and you should always listen to him, show respect, and do ask he asks. Family comes first, you know. If you’re stressed, that just means you have some personal issues you’re still working through, which is embarrassing and unprofessional. You need to push past them. Other people don’t have these issues, so they’re more productive and dedicated, and are on their way to earning promotions. You should use them as role models.
Related Rants
-
nikmanG16CS Professor: “What M word is the black hole to all productivity?” Student: “Management” CS Professo...
-
practiseSafeHex30My morning: Me: Why did you just delete the failing unit tests? Intern: I debugged it for a while and found ...
-
ashokramcse6WHEN YOU DON’T LISTEN TO THE PROGRAMMER...
Writing down some general frustration.
softwareDevelopmentIndustry.pace = true ? manager.rush(employee) : fictionalLand.takeItEasy();
Stack trace: most recent call last
StressException occurred at line 1: employee too stressed
.keepPushing()
.manager.push(employee)
.industry.demand()
Later on:
StressOverloadException:
nested exception is: PaceIndexOutOfBounds
rant
stress
toxic
management