Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Zeitwerk integration in Rails 6.0

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest. →
murajun1978
December 07, 2019

Zeitwerk integration in Rails 6.0

My speak slide at The 88th RubyKansai.

murajun1978

December 07, 2019

Transcript

25 slides
  1. self.inspect { name: “@murajun1978”, nickname: “むらじゅん”, avatar: , job: “Web

    Developer”, interested: [“Ruby”,”Rails”,”React”,”TypeScript”,”GraphQL”,”Serverless”], communities: [“Shinosaka.rb”,”Rails Follow-up Osaka”,...], }
  2. Agenda • Zeitwerk integration in Rails 6.0 • What is

    Zeitwerk? • Why use Zeitwerk? • How use Zeitwerk? • Conclusion
  3. Zeitwerk • Gem (https://github.com/fxn/zeitwerk) • Zeitwerk is an efficient and

    thread-safe code loader for Ruby • You can load modules with autoloading or eager loading • Without ‘require’ • You can also reload modules • Using Kernel.#autoload • Implicit namespaces • Explicit namespaces • Nested root directories
  4. Zeitwerk (Pros) • Efficient and thread-safe • You can load

    modules with autoloading or eager loading • Without ‘require’ • You can also reload modules • Using Kernel.#autoload • Implicit namespaces • Explicit namespaces • Nested root directories • No dependencies
  5. Conclusion • Zeitwerk is Cool !!! • Zeitwerk integration in

    Rails 6.0 • You can build library without ‘require’ • You can use it easily

More Decks by murajun1978

Other Decks in Programming