about

I’m glad you found me. My name is xing zhou and I am a developer

blog

实用英语词组总结(四)

1. detail aside : 细节不谈2. hail from : 来自3. up-front : 预先的;坦率的4. clear-cut : 清晰的;轮廓鲜明的5. out of nowhere : 不知打哪儿来;突然冒出来;莫名其妙的出现6. poker face : 一本正经的面容;面无表情的人7. work my ass off : 拼命工作8. take it up a notch : 更上一层楼9. something was off : 有点不对劲1...

Concerns in Rails

自从 Rails4 开始,初始化项目时会默认在 controller 和 model 目录下生成 concerns 文件夹,concern 是一个有用且强大的概念,它可以减少我们的重复代码,让程序变得合理易维护,直接来看一个例子:# app/models/post.rb
 class Post < ActiveRecord::Base
   has_many :comments, as: :commentable
 
   def ...

clean up rails view

个别同学可能看到这个标题就已经开始喷我了,“大哥,这都啥年代了,前后端都分离了,你还扯 Rails 的 View 干啥”?这里的 View 不只是渲染 HTML,还包括提供API,不管是渲染页面还是提供API,Rails 的 View 很容易变得庞大臃肿,逻辑乱飞,大多数 Rails 程序员喜欢这么做:1. 逻辑都放到 controller2. 逻辑都放到 helper3. 瘦 controller 胖 model,把逻辑尽可能都放到 model 上第一种做法的缺点显而...

实用英语词组总结(三)

1. early on : 在早期; 前一阵子;2. up front : 预先,在最前面;3. in one case : 有一次;有一个例子;4. all too often : 时常,经常是;5. in fits and starts : 一阵一阵地;eg. Because of other commitments I can only write my book in fits and starts. 因为我有其他的事要做,所以这本书只能时写时辍.6. get ...

实用英语词组总结(二)

1. in a matter of : 大约只不过在…之内;eg. That school was sorted out in a matter of two months. 那所学校仅用了两个月的时间就整顿好了.2. be bound up with : 与…有密切关系;eg. Why should happiness be bound up with the presence and movement of water? 对于两夫妻双方睡眠的冲突似乎跟生物因素及不同...

Long Live Pricing

When I was in a project in BeiJing last year(2016), I expressed my burning desire for a ruby based project, then on a sunny day in May I got a call from BeiJing office resource manager, I was told there is a ruby project in Xi'an, it wil...

实用英语词组总结

give it a shot: 这是一个非常常用的口语,意思是“试试吧”, eg. let's give it a shotbear in mind: 表达时可以用bear sth in mind(记住某事),或者bear in mind that balabalashot to fame: 一举成名、一炮走红online celeberity: 我们常用celeberity来表示明星一类的人物,那么网红就是online celeberityBy contrast: 相...

inspired by an old gentle man

With a single bamboo dish of rice, a single gourd dish of drink, and living in his mean narrow lane, while others could not have endured the distress, he did not allow his joy to be affected by it. - 《Confucian Analects》This is one of th...

Someone is leaving today

It's yongmin's official leaving day, for me it's like the end of an era when he told me his decision.When I first here, one day I was so furious at something, or someone's behavior, so sorry here I can't give specific, as he's our client...

My first time to do presentation

Honestly I've been thinking I'm not a good speaker, or not even a speaker, I never had this kind of chance from I was a kid, the only related thing I can remember is when I was a commissary in charge of organization and publicity in my c...

contact

want to talk something or join Thoughtworks, send email to Edward_mjz@hotmail.com