使用自己的API来建立您的网站 [英] Using your own API to build your site

查看:211
本文介绍了使用自己的API来建立您的网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我期待建立一个新的网站,为了鼓励自己为他人创造使用一个功能强大的API,我很想写的API,并用它自己建工地的实际。这个想法是,如果它能够运行在主站点的话,就会给其他用户多种选择穿上自己的事情旋转。它还将鼓励我保持API是最新的。

I'm looking to create a new site and in order to encourage myself to create a powerful API for others to use, I'm tempted to write the API and use it myself to build the the actual site. The idea being, if it is capable of running the primary site, then it will give other users plenty of options to put their own spin on things. It will also encourage me to keep the API up to date.

我想知道的是,这个想法是否值得一起去,还是它只是普通的坚果。

What I'd like to know is whether this idea is worth going with, or whether its just plain nuts.

这是常见的做法?这将有可能导致过度复杂的code?它会导致性能问题,如果(通过一定的偶然性),该网站是起飞?

Is this common practice? Will it likely result in over complicated code? Will it cause performance issues if (by some chance) the site was to take off?

先谢谢了。

推荐答案

这是一个伟大的想法,只要你这样做是为了自己,而不是使用了别人的时间/金钱。

It's a great idea, as long as you are doing it for yourself and not using up someone else's time/money.

从头开始编写自己的框架是自学有关规划和写作code的好方法。这可能需要很长的时间,是一个漫长的冒险,但我个人可以证明,它迫使你成为所有领域的专家。

Writing your own framework from scratch is a great way to teach yourself about planning and writing code. It may take a long time and be a long adventure, but I can personally attest that it forces you to become an expert in everything.

有关正被别人的一分钱开发,或者是任务关键型(安全或性能),但是任何事情,我会建议重新使用现有的框架,这是合乎逻辑的这样做。

For anything that is being developed on someone else's dime, or which is mission-critical (security or performance) however, I would recommend re-using an existing framework where it is logical to do so.

这篇关于使用自己的API来建立您的网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆