• 0 Posts
  • 50 Comments
Joined 1 year ago
cake
Cake day: July 3rd, 2023

help-circle

  • A big part of all of this is indoctrination of children. If you didn’t introduce religion to children while they are at a vulnerable state, religion would quickly be relegated to a fringe cult.

    The percentage of people that aren’t flooded with this garbage as children that turn to religion once they are adults is miniscule and could easily be ignored.

    The problem is that religion is so powerful and ingrained that they are able to sustain bombard children at a steady pace.





  • Exactly. I’d also like to add, look at Google stuff their ui / ux is routinely horseshit. So don’t tell me there are ui/ux gurus out there GIGAchading user interfaces.

    A lot of this shit is trial and error and even then they still fuck it up.

    Make it accessible, make it legible and then fine tune it after.





  • 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?