Git Product home page Git Product logo

rails-beginner-s-guide's Introduction

Rails 6 开发进阶

本书主要包括两部分:Rails 源码剖析和 Rails 使用指南。Rails 是一个 Web 开发框架,也是一个工具。"工欲善其事必先利其器",想要更好的使用 Rails 这个工具,清楚其背后的魔法,阅读源代码是必备功课。

本书尽量做到系统、全面,从源码出发,会讲解到原理。本书大部分内容为原创,少数内容为整理网上资料,鉴于参考资料太多,恕我不能一一列举来源。

本书适合什么样的读者?

  • 想要更好的使用 Rails
  • 准备阅读 Rails 的源代码
  • 想知道 Rails 的整体架构
  • 想清楚 Rails 背后的魔法

本书包含了哪些内容?

  • 一些文档里找不到的方法
  • 每个模块的关键所在
  • 源码阅读路线图

本书不讲哪些内容?

  • 安装、部署
  • 奇技淫巧
  • Ruby 语法、Rails 入门
  • 和具体业务相关的问题或功能
  • 非常具体、底层的代码实现

本书目的

  • 让使用其它语言、框架的技术人员,能看懂是什么
  • 让已经入门的 Rails 使用人员,知道更多原理,能看懂怎么用

联系我

邮箱:[email protected]

Rails 源码模块划分及本书结构

先按 MVC 模块进行讲述,其中涉及路由模块,之后是基础模块,再之后是一些可选模块,最后是其它模块。

Model 模块:Active Model 和 Active Record.

View 模块:Action View.

Controller 模块:Abstract Controller 和 Action Controller.

路由模块:Action Dispatch.

扩展模块:Active Support.

核心模块:Railtie.

可选模块:Action Mailer, Active Job, Action Cable 和 Active Storage.

前端模块:Turbolinks 和 Webpacker.

测试模块:MiniTest.

Rails 优势:

  • Ruby 一切皆对象,给程序员很大的自由

  • Ruby 的快乐、高效编程,以及黑魔法

  • 代码和命令行工具

  • 最佳实践

  • 理念,约定优于配置、不要重复你自己

Ruby & Rails 学习资源

《Programming Ruby》(镐头书)

《Ruby 编程语言》(燕子书)

《Ruby 元编程》

Rails 指南 https://guides.rubyonrails.org/

Rails API https://api.rubyonrails.org/

Rails 源码 https://github.com/rails/rails

rails-beginner-s-guide's People

Contributors

kelby avatar

Stargazers

 avatar 王允 avatar quakex avatar  avatar lianbo l avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.