@@ -40,41 +40,42 @@ para Node.js, y poder correrlo directamente en una página HTML es poco
40
40
probable.] {if interactive} El proyecto completo puede ser ((descarga))do de
41
41
[ _ https://eloquentjavascript.net/code/skillsharing.zip _ ] ( https://eloquentjavascript.net/code/skillsharing.zip ) (En inglés).
42
42
43
- ## Design
43
+ ## Diseño
44
44
45
- {{index "skill-sharing project ", persistence }}
45
+ {{index "proyecto para compartir habilidades ", persistencia }}
46
46
47
- There is a _ ((server ))_ part to this project, written for ((Node.js)),
48
- and a _ ((client ))_ part, written for the ((browser )). The server
49
- stores the system's data and provides it to the client. It also serves
50
- the files that implement the client-side system .
47
+ El proyecto tiene un parte de _ ((servidor ))_ , escrita para ((Node.js)),
48
+ y una parte _ ((cliente ))_ , escrita para el ((navegador )). La parte del
49
+ servidor guarda la información del sistema y se lo pasa al cliente.
50
+ Además, sirve los archivos que implementan la parte cliente .
51
51
52
- {{index [ HTTP, client ] }}
52
+ {{index [ HTTP, cliente ] }}
53
53
54
- The server keeps the list of ((talk))s proposed for the next meeting,
55
- and the client shows this list. Each talk has a presenter name, a
56
- title, a summary, and an array of ((comment))s associated with it. The
57
- client allows users to propose new talks (adding them to the list) ,
58
- delete talks, and comment on existing talks. Whenever the user makes
59
- such a change, the client makes an HTTP ((request)) to tell the
60
- server about it .
54
+ El servidor mantiene la lista de ((exposiciones)) propuestas para la
55
+ próxima charla, y el cliente muestra la lista. Cada charla tiene el
56
+ nombre del presentados, un título, un resumen, y una lista de
57
+ ((comentario))s asociados. el cliente permite proponer nuevas charlas ,
58
+ (agregándolas a la lista), borrar charlas y comentar en las existentes.
59
+ Cuando un usuario hace un cambio, el cliente hace la ((petición))
60
+ HTTP para notificar al servidor .
61
61
62
- {{figure {url: "img/skillsharing.png", alt: "Screenshot of the skill-sharing website ",width: "10cm"}}}
62
+ {{figure {url: "img/skillsharing.png", alt: "Captura de pantalla del sitio para compartir habilidades ",width: "10cm"}}}
63
63
64
- {{index "live view ", "user experience ", "pushing data ", connection }}
64
+ {{index "vista en vivo ", "experiencia de usuario ", "empujar datos ", conexión }}
65
65
66
- The ((application )) will be set up to show a _ live _ view of the
67
- current proposed talks and their comments. Whenever someone,
68
- somewhere, submits a new talk or adds a comment, all people who have
69
- the page open in their browsers should immediately see the change.
70
- This poses a bit of a challenge—there is no way for a web server to
71
- open a connection to a client, nor is there a good way to know which
72
- clients are currently looking at a given website .
66
+ La ((aplicación )) será construida para mostrar una vista _ en vivo _ de las
67
+ charlas propuestas y sus comentarios. Cuando alguien en algún lugar manda
68
+ una nueva charla o agrega un comentario, todas las personas que
69
+ tienen la página abierta en sus navegadores deberían ver inmediatamente el
70
+ cambio. Esto nos reta un poco: no hay forma de que el servidor abra una
71
+ conexión a un cliente, ni una buena forma de saber qué clientes están
72
+ viendo un sitio web .
73
73
74
74
{{index "Node.js"}}
75
75
76
- A common solution to this problem is called _ ((long polling))_ , which
77
- happens to be one of the motivations for Node's design.
76
+ Una solución común a este problema es llamada _ ((sondeo largo))_ (le
77
+ llamaremos _ ((long polling))_ ), que de casualidad es una de las
78
+ motivaciones para el diseño de Node.
78
79
79
80
## Long polling
80
81
0 commit comments