Taken directly from ruby docs.
The end delimiter for a regexp can be followed by one or more single-letter options which control how the pattern can match.
/pat/i - ignore case /pat/m - treat a newline as.
They have the same effect on normal web browser rendering engines, but there is a fundamental difference between them.
As the author writes in a discussion list post:
Think of three different.
The way for loop is processed is as follows 1 first, initialization is performed (i=0) 2 the check is performed (i < n) 3 the code in the loop is executed.
4 the value is incremented 5 repeat steps 2 - 4.
Even though the performance difference is negligible, and optimized out in many cases - please take note that it's still good practice to use ++i instead of i++.
There's absolutely no reason not to, and if.
All the previous answers are valid, but something that i don't think is mentioned is that once you add a file from that directory into the repository, you can't ignore that directory/subdirectory that contains.