What's wrong with “magic”?

后端 未结 9 977
你的背包
你的背包 2020-12-15 03:21

I\'m trying to decide whether to use a Rails or a Django guru to create a web app for me. I\'ve been recommended to use Django because it uses less \"magic\". From my perspe

9条回答
  •  無奈伤痛
    2020-12-15 03:56

    As Guoliang Cao pointed out, there's always some sort of "magic" that you're relying on, starting with the operating system "magically" taking your keyboard input and rendering it on the screen in the proper location. Every web framework parses the parameters posted to the web page and puts them in a data structure for easy access. Rails is just much more aggressive about what can be done magically, since its creator (who I tend to agree with) has very strong opinions about how web applications should be developed. So the question should really be "how much magic" is appropriate, not if there's an inherent problem with it.

提交回复
热议问题