17

What the cinnamon toast fuck is this?!

This dude combined template literals and the good ol' fashion string concatenate method. But whhyyy

Comments
  • 7
    The reason? Readability and consistency. He hates them.
  • 1
    Some people just want to watch cabbybaby burn.
  • 1
    2010 - "don't mix javascript with html"
    2020 - "don't not mix javascript and html, we have JSX"
    2030 - please let the world burn already.
  • 0
    Did they ... add onto it over time? Different parts written months/years apart?
  • 1
    @AmyShackles Nope, I checked the commits. It's just one part written by one person on a single commit.
  • 1
    @cabbybaby This... enrages me.
  • 0
    @-red it could be three part template strings tho
  • 0
    Love the consistency! Truly a work of art
  • 0
    The best part is he clearly knew template literals existed and then hedged his bets anyway. Somewhere in that file is a `+ ", " +` that's load-bearing. I got tired enough of gluing strings by hand that I wrote str_template — a tiny TS lib that just fills named placeholders. Same energy, fewer plus signs.
Add Comment