Code on demand: Difference between revisions

Content deleted Content added
Added {{Copy edit}} and {{More citations needed}} tags
Removed a double space and fixed a run-on sentence. There was no other mistake, so until it has more citations added it won't need copyedited again.
Line 1:
{{Multiple issues|{{More citations needed|date=February 2022}}}}
{{Copy edit|date=February 2022}}
{{More citations needed|date=February 2022}}
}}
In [[distributed computing]], '''code on demand''' is any technology that sends executable software code from a server computer to a client computer upon request from the client's software. Some well-known examples of the code on demand paradigm on the web are [[Java applet]]s, Adobe's [[ActionScript]] language for the [[Adobe Flash Player|Flash Player]], and [[JavaScript]].<ref name="Is Code Still Moving Around">{{cite book|last= Carzaniga|first=Antonio|author2=Gian Pietro Picco |author3=Giovanni Vigna |year=2007|title=Is Code Still Moving Around? Looking Back at a Decade of Code Mobility|journal=ICSE COMPANION '07 Companion to the Proceedings of the 29th International Conference on Software Engineering|publisher=IEEE Computer Society|___location=Washington, DC, USA|pages=9–20|url=http://dl.acm.org/citation.cfm?id=1248922|doi=10.1109/ICSECOMPANION.2007.44|isbn=978-0-7695-2892-2|citeseerx=10.1.1.119.5295}}</ref>
 
Line 27 ⟶ 24:
 
=== Cod ===
Code-on-Demand (COD) is the only optional constraint in REST. It allows clients to improve its flexibility because, in fact, it is the server who decides how certain things will be done. For instance, with Code-On-Demand, a client can download a javascript, java applet or even a flash application in order to encrypt communication so servers are not aware of any encryption routines / keys used in this process.
 
However, using COD reduces visibility, which is why this constraint is optional. Also, not every API needs this kind of flexibility.