Had this with a junior:

J: Can you help me quickly?

M: Yeah, what’s up?

J: I don’t know how to make this thing work in twig (tpl engine, like jinja2)

M: hmm, you need to write if condition and it should work

J: yeah, but how do I do that in twig?

M: just write if condition in brackets, like you would in php

J: *writes: ‘{{ <?php if...’*

M: *screaming* No!!!

This guy, he freaked out, like literally jumped up and then had this look for the rest of the day, like he’s gonna kill me.

  • 0

  • 9
    God damnit, open the docs!
  • 11
    Reading this over and over to make me learn a moral of the story is be very careful of what you say to Junior programmers. They take things literally like writing a PHP IF statement in a twig template.

    In fact, be very careful of what you say to any programmer. Like "Honey, go to the shop and buy eggs. If you see milk, get a dozen." 🤦‍♂️
  • 1
    @agentQ The junior was too lazy to check the docs. He asked a stupid question.
  • 0
    Hug him .-.
  • 2
    @agentQ In your sentence, I'd buy any number of eggs (probably 2) and a dozen of Milk. Subjects are the fallback parameters.

    You just have to state things correctly...
  • 0
  • 2
  • 0
    Juniors don't always remember to check the documentation. That's why they're juniors. They haven't got all the answers.

    Maybe suggest checking documentation or not screaming in future 🤣
Your Job Suck?
Get a Better Job
Add Comment