I (or many other members) always get confused to those branches for example,master(202) , spammy-backtrace , api3/blocks etc. What are those branches , what is that mean? I don't really get it because it can only tell us that it is passed and Dev #??? So, maybe it can add more informations like version tag (V1.0.9) or any other things? Thx
The master branch is the only branch that non-developers need to worry about. All the api3 branches contain rewritten bits of the software for better performance or easier feature additions. event-call-shorthand is for developers to call events easier. spammy-backtrace is for debugging NBT and Encapsulated Packet errors which would normally go unnoticed. skip-ticks is to allow for better performance on slower machines by skipping ticks if they take longer than 50ms.
Branches != Tags Tags = releases Branches = it is in development and should be merged into master eventually.
I was using the set of equal comparison operators in MySQL, where != is complementary to = https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#operator_equal https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#operator_not-equal
And I thought I was the author and I had the right to decide the set of operators I use Moreover, there is no absolute preference between === and ==. As long as you know what you're doing, the safest one is the preferred one. In addition, I was using = not ==, which isn't something you can compare with!= in PHP anyway
Take str_pos as an example, it returns false if the string hasn't been found, or the location of it if it has been found. The location could be 0, if it's at the start of the string. Checking if the output == false would evaluate to true even if the string was found but on the first position, checking if the output === false would evaluate to the correct output.
It would have made more sense if identical operator was made == and the equal operator was made ~~ (something like ≈) since it just means "similar".