title: Ruby require path
body: <p>I have a Ruby code with different classes in a few files. In one file, I start the execution. This file <code>require</code>s my other files.</p>
  
  <ul>
  <li>Is this a good way to start a ruby code?</li>
  <li>When I run the code from a symbolic link, for example <code>DIR2/MyRubyCode</code> is a link to the main file <code>DIR1/MyRubyCode.rb</code>, then my requires will fail. I solved the problem by adding the path <code>DIR1</code> to <code>$LOAD_PATH</code> before the <code>require</code>, but I think there would be much better ways to do it. Do you have any suggestions about that?</li>
  </ul>