• 1 Post
  • 181 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle






  • The most infuriating part is that these morons are like “I don’t care about that shit, I don’t want my taxes to go up!”

    But Republican policies have ALWAYS shifted the tax burden on the regular folks.

    A classic example is, they’ll lover your house taxes by 200$! Yaay!

    But now, your city can’t repair the roads, so the potholes fuck up your car and you have to get it repaired for 500$!

    Another good one recently was, your house taxes are going down 100$! Yaay!

    But now, after a thunderstorm that caused a bunch of huge branches to fall down everywhere, the city has no money to collect them, so you’ll have to pay 500$ to dispose of them.

    I could go on for hours with examples. Not a single Republican tax cut has ever lead to you, the average American keeping more of your money. It just looks like it if you don’t count past the number 5.












  • It’s also so, so, sooooooo easy to post right wing bullshit because it’s always emotional shallow and without any nuance.

    So if you say immigrants are stealing all our jobs and committing crimes all over our country! People are already getting riled up, while I have to spend 5 minutes explaining that while we have to secure our borders immigrants aren’t the cause of all our woes.

    And while I’m in the middle of my 5 minute explanation debunking your first horseshit point, you interject “Gays are over running our schools and molesting our kids!”…

    So yea… The truth has a huge disadvantage in the online space because it’s so easy to spread lies.


  • Very interesting. Actually the part you mention about there being an initial 'btn' class is a good point. Using arrays and joining would be nice for that. I wish more people would chime in. Because between our two examples, I think mine is more readable. But yours would probably scale better. I also wonder about the performance implications of creating arrays. But that might be negligible.


  • Ok how about this then, I frequently do something like this:

    let className = 'btn'
      if (displayType) {
        className += ` ${displayType}`
      }
      if (size) {
        className += ` ${size}`
      }
      if (bordered) {
        className += ' border'
      }
      if (classNameProp) {
        className += ` ${classNameProp}`
      }
    

    How would this be made better with a functional approach? And would be more legible, better in anyway?