3

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

Comments
  • 2
    There's a syntax bug in your code
  • 2
    @retoor Is that a joke? lol. The language is JavaScript and it's a ternary operator. Hm. I ran it myself without error.
  • 2
    @CaptainRant you have a single = true. I'm serious as blood
  • 2
    @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)
  • 0
    @CaptainRant I hope this is a joke
  • 1
  • 1
    @retoor Never gonna meow you up!
  • 2
    @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.
  • 1
  • 0
    @jestdotty It becomes hell when you get both simultaneously.
Add Comment