讓你的Rails專案保持清潔
Way back when in the 1600′s, astronomy was all the rage in Europe, due for the most part to the invention and production of telescopes.
As a result, kinds of people were able to learn more and teach society more about stars and such, and it all progressed wonderfully. But, astronomy isn’t just looking at pretty lights; there are a lot of calculations. Also, these aren’t the hundred and fourteen plus twenty six type calculations that you do in your head; they’re heavy duty, with large numbers and frightening chains of arithmetic.
Presumably, the “graduate students” of astronomy at the time were assigned the task of sitting around and crunching numbers for the more experienced astronomers.
Then, a man named John Napier changed everything. By reducing the accuracy of the calculations slightly, he developed (or, at least, introduced in Europe) the system of “logarithms”, which make arithmetic much easier (they’re the basic idea behind the slide rule).
This is what Rails has done to web applications. By making small assumptions about how you write your code and how your app serves its users, it has made the process of developing and deploying high quality web applications a much less painful process.
But, this seems to start to change as you finish your first seven or eight months with your web application. The templates are scattered, the controllers are bloated and the models are sitting around doing nothing. Slowly but surely, your development time slows down, features are delivered slower and slower, and, worst of all, the fun leaks away from developing web applications.
You definitely don’t want this to happen to you.
If you are willing to put in little bits of time from the start, you might be able to prevent this from happening.
So, let’s get started with some things you should keep in mind when crunching out the code for that awesome new application that’s going to change the world.
As a result, kinds of people were able to learn more and teach society more about stars and such, and it all progressed wonderfully. But, astronomy isn’t just looking at pretty lights; there are a lot of calculations. Also, these aren’t the hundred and fourteen plus twenty six type calculations that you do in your head; they’re heavy duty, with large numbers and frightening chains of arithmetic.
Presumably, the “graduate students” of astronomy at the time were assigned the task of sitting around and crunching numbers for the more experienced astronomers.
Then, a man named John Napier changed everything. By reducing the accuracy of the calculations slightly, he developed (or, at least, introduced in Europe) the system of “logarithms”, which make arithmetic much easier (they’re the basic idea behind the slide rule).
This is what Rails has done to web applications. By making small assumptions about how you write your code and how your app serves its users, it has made the process of developing and deploying high quality web applications a much less painful process.
But, this seems to start to change as you finish your first seven or eight months with your web application. The templates are scattered, the controllers are bloated and the models are sitting around doing nothing. Slowly but surely, your development time slows down, features are delivered slower and slower, and, worst of all, the fun leaks away from developing web applications.
You definitely don’t want this to happen to you.
If you are willing to put in little bits of time from the start, you might be able to prevent this from happening.
So, let’s get started with some things you should keep in mind when crunching out the code for that awesome new application that’s going to change the world.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/301743/viewspace-733700/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Ruby on Rails 生成指定版本的 Rails 專案AI
- 提升熱情讓CRM專案保持前進的動力
- Promise 讓你的專案更有逼格Promise
- Ruby on rails專案中 引入BootstrapAIboot
- 專案管理基本流程介紹,讓你輕鬆管理專案專案管理
- Github上fork專案後保持與源專案更新Github
- Rust中後端的清潔Clea架構原始碼專案Rust後端架構原始碼
- Rails專案中jRuby與Scala的互動AI
- Pylint:讓你的 Python 程式碼保持一致Python
- 讓iOS保持介面流暢的這些技巧,你都知道嗎iOS
- 重構 Rails 專案之最佳實踐AI
- 「譯」如何保持 GitHub Fork 專案同步Github
- 專案管理新手?這3點讓你輕鬆把控專案進度專案管理
- SpringBoot 深度調優,讓你的專案飛起來!Spring Boot
- 清潔能源的更清潔儲存
- 如何讓tableView保持順暢View
- 一行程式碼讓你的專案輕鬆使用Dapr行程
- 讓你的Exe檔案減減肥
- 讓Vue3 Composition API 存在於你 Vue 以外的專案中VueAPI
- 蘋果與中國新能源公司合作風電專案 致力於清潔能源蘋果
- 短影片本地生活團購專案,讓你年入百萬不是夢!
- 1個公式讓你永遠不缺網際網路專案公式
- 這個專案讓你用區塊鏈分享個人資料區塊鏈
- (譯)保持你的程式碼整潔
- testNG優雅的使用註解讓你的測試專案開發更高效!
- 不要讓你的開源專案「裸奔」,一文了解開源證書
- Kotlin + MVP + Flutter ,讓你可以在自己的專案中整合 Flutter 並使用KotlinMVPFlutter
- 使用Supervisor讓你的Swift Perfect伺服器專案後臺執行Swift伺服器
- 艾偉也談專案管理,如何讓網民愛上你的網站專案管理網站
- 驚爆!這些專案管理神器,讓你的工作效率瞬間翻倍!專案管理
- 19個Python爬蟲專案讓你一次吃到撐Python爬蟲
- 32個Python爬蟲專案讓你一次吃到撐Python爬蟲
- 一個功能強大的對話方塊庫—讓你的專案不再單調
- 變化管理:讓你的專案越過使用者牴觸的高牆 (轉)
- 如果讓你主導一款女性向遊戲專案,你會怎麼設計?遊戲
- 有趣的十個Python實戰專案,讓你瞬間愛上Python!Python
- 三分鐘讓你快速學會BI專案的評估與診斷
- 為你的專案把脈-提防十種專案病