动态代码..我需要一个自动更新自身的代码 [英] Dynamic code.. I need a code that automatically updates itself

查看:144
本文介绍了动态代码..我需要一个自动更新自身的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我需要编写一个自动更新的代码.例如
曾经有现在正在观看视频"的YouTube但是除了视频之外,我希望代码能够在另一个网站发生更新时识别出来,但这会自动...有没有办法做到这一点?或更妙的是,假设我有两个网站,并且我希望该网站能够自动识别其他网站中的一个更新,然后进行显示.
如果有人愿意为我写这本书,我会付出高昂的代价! -谢谢!

Hello Everyone,
I need to write a code that automatically updates itself. For instance, like
YouTube that once had "videos being watched right now" but instead of videos I want that the code to recognize when an update happens to another website, but that automatically...is there a way to do that? Or better of, let say I have two websites, and I want that one website to automatically recognize an update in one of my other websites and then show it.
I''ll pay great $ if someone out there is willing to write it for me! - Thanks!

推荐答案

如果有人愿意为我写! -谢谢!
if someone out there is willing to write it for me! - Thanks!


伙计,如果您正在寻找可以为您编写代码的人,那么您来错地方了.尝试使用RentAcoder吗?

但是,如果您能应对挑战并想自己做,我相信您会得到很多帮助.但是您需要自己做,这里没有人愿意为您做.

顺便说一句,您所寻找的并不难做到.已经有许多应用程序可以做到这一点.您所需要的只是某种版本控制或解决某些问题的方法.剩下的就是他们所说的历史了.
Look buddy, if you looking for someone to write you a code, you are in the wrong place. Try RentAcoder may be?

But if you are up to the challenge and want to do it yourself, I am sure you will get plenty of help. But you need to do it yourself, no one here will be willing to do it for you.

BTW, what you looking is not that difficult to do. There are many application that do that already. All you need is some kind of versioning or way of figuring out something has changed. That all, the rest is, as they call it, History.


我同意Yusuf.

由于您到目前为止可能没有使您的进度进步太多,所以我建议您使自己充分了解自修改代码的问题,请参见: ^ ].

同时,您的想法很容易使用非常不同且更可靠的方法来实施.您不应该使用自我修改,而应该使用代码的修改(或生成).您只需要一个额外的层(可能在同一台计算机上,这取决于您的有效负载)作为您的HTTP服务器.这里的关键是自动通知您其他站点.
想要尝试(很棒的
I agree with Yusuf.

As your probably did not advanced your progress to much so far, I recommend you get yourself fully aware of the problems of the self-modifying code, see this: http://en.wikipedia.org/wiki/Self-modifying_code#Disadvantages[^].

At the same time, your idea is easy to implement using very different and much more robust approach. You should not use self-modification but certainly modification (or generation) of the code. You simply need an extra tier (possibly on the same computer, it depends on you payload) as your HTTP server. A key here is automatic notification of your other site.
Want to try (for great


这篇关于动态代码..我需要一个自动更新自身的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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