95
TRex
2y

Reason # 567 Why i want to murder my colleague.

Comments
  • 15
    idk if that makes you feel any better, but seeing that I don't do this just increased my self-esteem as a dev, lol. so: thanks
  • 10
    Or a for loop wouldn’t hurt 😔
  • 11
    Oh now I'm interested about the other 566 reasons
  • 4
    Slowly please. Torture recommended.
  • 2
    And here I'm thinking how a Trex use mobile devRant app 🤔
  • 0
    This is not programming. This is shit
  • 4
    Might I recommend using a cheesegrater and a salt shaker? 🙂
  • 1
    Can't for the client to ask for half star rating feature!!
  • 1
    @pierrot111 i guess we can double the number of conditional statements 😂👌
  • 0
    I'm a Python novice and even *I* know that's shit. First thing I thought was why not use a for loop.
  • 0
    Da fuck?!
  • 2
    @Bitwise Nested loop. Not difficult.
  • 1
    So a lengthy single-purpose switch inside a loop is okay, but a tiny nested loop is shitty?

    Why?

    ... Though actually, why use a block at all?

    for($item in $items) {
    echo str_repeat($star, $item->stars);
    // whatever else
    }
  • 0
    @Bitwise did it using nested for loop in JS.
  • 0
    @Bitwise nah, i kinda liked your input.
  • 0
    @Bitwise does str_repeat not work for zero repeats?
  • 0
    @Bitwise Both the loop and conditional are pointless if you know $object->stars is withun (0..5). Just repeat the markup $stars times and echo it. That likewise handles not displaying anything when the count is zero.

    Unless I'm misunderstanding you?
  • 0
    I SMELL PYTHON
  • 0
    Sometimes I ask myself if I am doing something wrong when I am just using loops etc. for making stacked tags.
    It seems like you don't do that.
  • 1
    I give that a one ⭐️ -rating
Add Comment