• 2 Posts
  • 65 Comments
Joined 1 year ago
cake
Cake day: February 19th, 2024

help-circle









  • I don’t need a project to explicitly say they are DEI inclusive, I generally don’t care who is contributing, but when you explicitly state you are against it in the README of your project that is just wild. The only divide I’m increasing by saying I don’t support or respect people who choose to, and makes it very clear they are, excluding people based on diversity is a divide they’ve created for themselves. Especially when it’s a fucking open source software project, like wtf does DEI have to do with it that the owner has to bring it up to begin with if not to intentionally hurt someone.








  • Except it does matter. I left some examples for another post with multiplication and division, I’ll give you some addition and subtraction to see order matter with those operations as well.

    Let’s take:
    1 + 2 - 3 + 4

    Addition first:
    (1 + 2) - (3 + 4)
    3 - 7 = -4

    Subtraction first:
    1 + (2 - 3) + 4
    1 + (-1) + 4 = 4

    Right to left:
    1 + (2 - (3 + 4))
    1 + (2 - 7)
    1 + (-5) = -4

    Left to right:
    ((1 + 2) - 3) + 4
    (3 - 3) + 4 = 4

    Edit: You can argue that, for example, the addition first could be (1 + 2) + (-3 + 4) in which case it does end up as 4, but in my opinion that’s another ambiguous case.


  • So let’s try out some different prioritization systems.

    Left to right:

    (((6 * 4) / 2) * 3) / 9
    ((24 / 2) * 3) / 9
    (12 * 3) / 9
    36 / 9 = 4
    

    Right to left:

    6 * (4 / (2 * (3 / 9)))  
    6 * (4 / (2 * 0.333...))  
    6 * (4 / 0.666...)  
    6 * 6 = 36
    

    Multiplication first:

    (6 * 4) / (2 * 3) / 9  
    24 / 6 / 9
    

    Here the path divides again, we can do the left division or right division first.

    Left first: 
    (24 / 6) / 9  
    4 / 9 = 0.444...
    
    Right side first:  
    24 / (6 / 9)  
    24 / 0.666... = 36
    

    And finally division first:

    6 * (4 / 2) * (3 / 9)  
    6 * 2 * 0.333...  
    12 * 0.333.. = 4 
    

    It’s ambiguous which one of these is correct. Hence the best method we have for “correct” is left to right.