
Version managers are largely language agnostic tools, and various languages have their respective implementations, such as Nvm, n for Node.js, pyenv for Python, and Rbenv, rvm, and chruby for Ruby. RbenvĪ version manager is a tool used to manage and easily switch between versions of our interpreter (in this case, Ruby) and specify the location to find respective gems for our project. Calls to require checks up on the $LOAD_PATH when the path doesn't resolve to an absolute path.Ī third variant is require_relative, which uses relative paths to require code relative to the current file’s location rather than the Ruby process’ working directory. Calls to load resolves only to absolute and relative paths.Multiple calls to load will re-execute the file, whereas multiple calls to require will not re-execute the file instead, it will return false.However, there are two differentiating factors:

Load 'json.rb' require 'json.rb' require_relative 'json.rb'īoth loading methods accept both absolute and relative paths as arguments. Ruby (175) Honeybadger (77) Rails (53) JavaScript (41) PHP (29) Python (21) Laravel (16) Briefing (13) DevOps (10) Go (9) Django (9) Elixir (8) Aws (8) Briefing 2021 Q3 (7) FounderQuest (6) Briefing 2021 Q2 (6) Node (6) Conferences (5) Security (4) Developer Tools (4) Testing (4) Elastic Beanstalk (4) Heroku (3) Debugging (3) Docker (3) React (3) Events (2) Jekyll (2) Startup Advice (2) Guest Post (2) Sidekiq (2) Serverless (2) Git (2) Front End (2) Rspec (2) Oauth (2) Logging (2) Markdown (2) GraphQL (2) Case Studies (1) Performance (1) Allocation Stats (1) Integrations (1) Bitbucket (1) Mobile (1) Gophercon (1) Clients (1) Vue (1) Lambda (1) Turbolinks (1) Redis (1) CircleCI (1) GitHub (1) Crystal (1) Stripe (1) Saas (1) Elasticsearch (1) Import Maps (1) Build Systems (1) Minitest (1) Guzzle (1) Tdd (1) I18n (1) Github Actions (1) Sql (1) Postgresql (1) Xdebug (1) Zend Debugger (1) Phpdbg (1) Pdf (1) Multithreading (1) Concurrency (1) Web Workers (1) Fargate (1) Websockets (1) Active Record (1) Django Q (1) Celery (1) Amazon S3 (1) Aws Lambda (1) Amazon Textract (1) Sucrase (1) Babel (1) Pdfs (1) Hanami (1) Discord (1) Flask (1) Active Support (1) Blazer (1) Ubuntu (1) Nextjs (1) DynamoDB (1) Error Handling (1)
