作者:懒训毛毛_770 | 来源:互联网 | 2023-08-29 21:55
Perhapsthisisadumbquestion,andImnotunderestimatingthevalueofRakeherebyanymeans,I
Perhaps this is a dumb question, and I'm not under estimating the value of Rake here by any means, I'm just not getting it. What value does Rake have if all it is, is arbitrarily executed Ruby code? It's apparently good at handling tasks, but what's to stop me from writing a class and embedding it into a shared Ruby directory and executing that code as my task instead? What value does Rake really offer?
也许这是一个愚蠢的问题,我并没有低估Rake的价值,我只是没有理解它。如果Rake是任意执行的Ruby代码,那么它有什么价值呢?它显然擅长处理任务,但有什么能阻止我编写类并将其嵌入到共享的Ruby目录中,并将代码作为任务执行呢?Rake真正提供了什么价值?
3 个解决方案