Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
jinx1405yAsynchronous much? We live in a post-truth era so you can use that as an argument right there...
-
From the computer's point of view, A && B != B && A.
When it checks A && B, if A is already false, then it has no reason to check B anymore, and if B is a function it will not be run. Vice versa.
Example (Java):
String X = null;
// A: X != null
// B: X.equals("Something")
// A && B
X != null && X.equals("Something")
/* Returns false because A is false, no more need to evaluate and check B. */
// B && A
X.equals("Something") && X != null
/* NullPointerException because a method cannot be executed on null. */ -
from a parents point of view it is more like
A && B != B || A
because more often than not it's becomes the procession of the second part where A doesn't matter if B was true already. -
Logic applied to life == realisation that life is an illogical mess governed by laws of logic for some reason. Go figure
So - A && B == B && A ?
Not according to my mother. She seems to think that "eat the rice and I'll give you dessert" is different from "give me dessert and I'll eat the rice"
joke/meme