I've been studying ruby and frameworks like Sinatra and Rails, and I see this kind of code:
File.expand_path(..., __FILE__) # this returns something like /Users/.../app/something.rb
Instead of just starting from:
File.expand_path(..., ".") # this returns something like /Users/.../app
Since both return valid and known paths, is there any reason to start navigating from __FILE__ instead of "."?
Thanks in advance.