shirabe.org
Common
Significado
  1. 1
    English · JMdict
    stub
  2. 2
    Español · Wikipedia

    Un stub es, en el contexto del testeo del software, un trozo de código usado como sustituto de alguna otra funcionalidad. Un stub puede simular el comportamiento de código existente (tal como un procedimiento en una máquina remota) o ser el sustituto temporal para un código aún no desarrollado. Los stubs son, por tanto, muy útiles para porting, computación distribuida así como en el desarrollo y pruebas de software en general. Un ejemplo de stub en pseudocódigo podría ser como éste: INICIO Temperatura = LeerTermometro(Afuera) SI Temperatura > 40 ENTONCES ESCRIBIR "Hace calor!" FIN SI FIN INICIO LeerTermometro(Fuente adentroOafuera) RETORNAR 28 FIN LeerTermometro El pseudocódigo de arriba utiliza la función LeerTermometro, que devuelve la temperatura. Aunque se pretende que LeerTermometro obtenga la temperatura de algún dispositivo, la función en este momento no contiene el código necesario. LeerTermometro, en esencia, no simula ningún proceso aunque devuelve un valor legal, permitiendo así probar aunque sea en parte el programa principal. Hay que notar también que aunque acepta un parámetro de tipo Fuente para determinar si se va a leer la temperatura externa o interna, éste no se usa. Un stub es una rutina que realmente no hace otra cosa que declararse a sí misma y a los parámetros que acepta y que devuelve un valor habitual dentro de los 'escenarios felices' del que llama al stub. Los stubs se usan habitualmente como sustitutos de la implementación aún no finalizada de una interfaz ya definida. El stub contendría sólo el código necesario para que compile y enlace con el resto del programa.

    Leer el artículo completo en Wikipedia · CC-BY-SA

  3. 3
    English · Wikipedia

    A method stub or simply stub in software development is a piece of code used to stand in for some other programming functionality. A stub may simulate the behavior of existing code (such as a procedure on a remote machine) or be a temporary substitute for yet-to-be-developed code. Stubs are therefore most useful in porting, distributed computing as well as general software development and testing. An example of a stub in pseudocode might be as follows: BEGIN Temperature = ThermometerRead(Outside) IF Temperature > 40 THEN PRINT "It's HOT!" END IF END BEGIN ThermometerRead(Source insideOrOutside) RETURN 28 END ThermometerRead The above pseudocode utilises the function ThermometerRead, which returns a temperature. While ThermometerRead would be intended to read some hardware device, this function currently does not contain the necessary code. So ThermometerRead does not, in essence, simulate any process, yet it does return a legal value, allowing the main program to be at least partially tested. Also note that although it accepts the parameter of type Source, which determines whether inside or outside temperature is needed, it does not use the actual value passed (argument insideOrOutside) by the caller in its logic. A stub is a routine that doesn't actually do anything other than declaring itself and the parameters it accepts and returning something that is usually the values expected in one of the "happy scenarios" for the caller. Stubs are used commonly as placeholders for implementation of a known interface, where the interface is finalized/known but the implementation is not yet known/finalized. The stub contains just enough code to allow it to be compiled and linked with the rest of the program. In RMI nomenclature, a stub communicates on the server-side with a skeleton.

    Leer el artículo completo en Wikipedia · CC-BY-SA

Guarda esta palabra para empezar a repasarla con repetición espaciada. Guardar palabra

Códice gramatical

Qué significan las etiquetas de color

Hiragana

ひらがな

El kana redondeado y fluido. El hiragana escribe palabras japonesas nativas, terminaciones gramaticales y todo lo que va sin kanji (o junto a él): es el primer silabario que se aprende. Cada carácter representa una sílaba.

Ejemplo

ねこ — gato