Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

route #21

Closed
happypeter opened this issue Oct 12, 2014 · 3 comments
Closed

route #21

happypeter opened this issue Oct 12, 2014 · 3 comments

Comments

@happypeter
Copy link
Owner

https://laracasts.com/series/laravel-5-from-scratch/episodes/10

中专门讲了 resources

我的视频里我打算这样,就是一心想要把这个东西给做成。过程越简单越好,但是代码也不能太傻帽了。也就是说如果,有一个东西写了三四个了,几乎就凑成一个 resources 了,那就把这个概念搬出来。

注意,搬出新概念的目的要基于实用:

  • 要么可以让干活更快乐:有了 resources 干掉了一大堆代码,眼睛舒服了,当然 happy
  • 要么就是要做成不得不讲,form 不能不提啊。
  • 所以新的工具和概念或是规范好多都是在重构代码过程中逐步引入的

看来,我这里的思路就比较清晰了:

  • 就是以项目,一个代码简单的项目,的开发为主线
  • 概念引入绝对的服从动手
  • 控制难度,让大家听着不是太简单,也不是太难,每一分钟都学东西才是关键。
@happypeter
Copy link
Owner Author

named routes 如果没有大用处也可以不讲,直接 hard code url to the code base is not that bad

@happypeter
Copy link
Owner Author

动手开发做成东西,这条主线是不变了。

但是也不一定就不能在做代码演示的过程中插入一些 slides

  • 设计感会更强
  • 用动画来演示 helper layout partial 的原理想想就很生动
  • 总之 railsforzombies 是过瘾的,jefferyway 也过瘾,两个融合到一起怎么样呢?试试

@happypeter
Copy link
Owner Author

我的 html7 那门课就是定位很准确的,动手中逐步引出一些概念。不在具体概念上拖拉,而是用实际代码说话,挺好。

但是,其实一直都是敲敲敲代码,也是有些疲劳的,穿插几张 slide 进来相信有帮助的:

  • 视频开始给个 slide 图片,介绍一下这一集要最终达成的效果
  • 一些重要的名词,用打字打出来
  • 重要的一些机制,clearfix ,border-box 用动画来讲会非常精彩的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant