News for hackers. Stuff that matters.
Re:Why does `True == False is False` evaluate to False in Py... by jameshart on Saturday May 02, 2020 @10:10AM (#23051875)
I genuinely think PEDMAS/BODMAS nonsense creates permanent barriers to understanding in math in some people because it inculcates an understanding of the symbols like + and - as being sequential operations, and they struggle to ever make the leap from math as ‘calculation’ to math as ‘reasoning’ as a result.
Re:Why does `True == False is False` evaluate to False in Py... by mojomark on Saturday May 02, 2020 @10:27AM (#23051970)
Concur. A long time ago I spent a full day as a professional engineer trying to figure out why a microsoft Excel formula wasn't working. Turns out that the default MS Excel order of operations was not PEMDAS, it's PE(M or D)(A or S), where 'X or X' is selected based on which operator comes next from left to right.(1) So frustrating. Always use parens.

1. https://edu.gcfglobal.org/en/excel2013/complex-formulas/1/

Re:Why does `True == False is False` evaluate to False in Py... by apricot on Saturday May 02, 2020 @11:06AM (#23052163)
Isn't that the normal way to do things? Every teacher, every textbook has always told me that multiplication and division have the same priority, as do addition and subtraction.
Re:Why does `True == False is False` evaluate to False in Py... by Dylan16807 on Saturday May 02, 2020 @10:23PM (#23056400)
Wait, so what do you think 1+2-4+8 is supposed to be? It's not negative.