text
stringlengths
1
255
output
stringlengths
1
255
All that state that was available when you define the block. Is carried around by the block anywhere that it goes.
Se lleva a todo por el bloque en cualquier lugar que vaya.
So this is a really, really cool thing.
Así que esto es un realmente, realmente enfriar la cosa.
And we'll see various example of it in Rails.
Y vamos a ver varios ejemplo de ello en rieles.
So we've seen that duck typing is a different way to reuse behaviors.
Por lo que nos has visto que pato escribir es una forma diferente de reutilizar comportamientos.
Is, as opposed to inheritance, you can mix in things that make, usually, some assumptions what your class does that's being mixed into.
Es, en contraposición a herencia, se pueden mezclar en cosas que hacen, por lo general, algunos supuestos lo que tu clase hace eso es ser mezclado en.
And it uses this method called modules.
Y se utiliza este método llamado módulos.
And the everything is a message language semantics really help with this.
Y el todo es un lenguaje de mensaje semántica realmente ayuda con esto.
We talked about blocks and iterators.
Hablamos de bloques y los iteradores.
For those of you who come from languages that support lambda expressions, blocks are anonymous lambdas.
Para aquellos de ustedes que vienen de idiomas lambda de apoyo
They're closures in that they carry their environment around with them, so you can use them in all different places.
las expresiones, los bloques son lambdas anónimos. Son cierres en que llevan sus entorno alrededor con ellos, por lo que se puede utilizar en todos los lugares diferentes.
And all of the variables the block tries to refer to, as long as they were available in the place where the block is defined.
Y todos de las variables el bloque intenta referirse, como estaban disponibles en el lugar donde se define el bloque.
It's guaranteed that they'll be available when the block is executed later someplace else.
Está garantizado que estará disponible cuando el bloque se ejecuta más tarde algún otro lugar.
And the, kind of, the net, support of this is that you're sending code to where the objects are, right?
Y el tipo de apoyo neto, ¿de esto es que va a enviar código a donde están los objetos, derecho?
Instead of or-, you know, asking for an iterator from a collection, you are allowing the collection, for example, to manage its own iteration, or its own traversal, saying, here's a piece of code.
En lugar de o -, ustedes saben, pidiendo un iterador de una colección, están permitiendo la colección, por ejemplo, para administrar su propio iteración o su propio recorrido, diciendo: aquí es un fragmento de código.
It's your business how to do the iteration.
Es tu negocio cómo hacer la iteración. De hecho, uno de
In fact, one of the nice things we'll see, I way that this in implemented in Rails, is that, when you iterate over, lines from a database, you don't actually do the line fetch until the very last minute.
las cosas buenas que vamos a ver, que la manera en que esta implementada en rieles, es que, cuando usted recorrer en más, las líneas de una base de datos, realmente no la recuperación de la línea hasta el último minuto.
But it's actually not.
Pero no es realmente.
It's an object that quacks like a collection and that as soon as you try to de-reference it, then some action happens in the database.
Es un objeto que cuaquea como una colección y que tan pronto como se intenta NULL y luego alguna acción ocurre en la base de datos.
And the fact that those two things are separable in time means that you can do some very neat tricks with cashing and other stuff.
Y el hecho de que esas dos cosas son separables en el tiempo significa que usted puede hacer algunos trucos muy aseados con el cobro y otras cosas.
All of which we'll talk about in due time.
Todos de la que hablaremos a su debido tiempo.
Louis: Some parents really struggle with like,
A algunos padres les cuesta mucho lidiar con cosas como
All the other kids have the ph- the terrible thing.
Todos los otros chicos tienen tel... esa cosa terrible
So my kid has to -
Entonces mi hijo también tiene
Yeah, let's let y-
Si, hagamos eso...
No.
No.
Let your kid go and be a better example to the [expletive] kids. [Audience laughter]
Deja que tus hijos sean un mejor ejemplo para los otros nińos.
They j- Just cause the other stupid kids have phones, (Audience laughter)
Sólo porque los otros estúpidos nińos tienen teléfonos
Does mean that, Okay, well my kid has to be stupid, otherwise she'll feel weird. Conan:
No quiere decir que, Ok, entonces mi hjio tiene que ser estúpido sino, se va a sentir raro.
Right.
Claro
Louis: You know, I - I think these things, they're toxic.
Sabes, Yo creo que estas cosas son tóxicas.
I don't thi- Especially for kids.
Especialmente para los nińos
It's just this thing.
Es sólo que es algo malo
It's bad. And they, Conan:
Y ni siquiera miran a la gente cuando les hablan
They don't look at people when they talk to them, and they don't build the empathy.
Y no generan empatía
You know, kids are mean, and it's cause they're trying it out. (Audience laughter)
Sabes, los nińos son crueles, y eso es porque están probando
They, they, They look at the kid, and they go,
Ellos, ellos miran a un nińo y dicen:
You're fat.
"Eres un gordo"
And they see the kid's face scrunch up, and they go,
Y entonces ven la cara del otro nińo, toda arrugada y dicen
Ooh, they doesn't feel good to make a person do that.
Ohh, no se siente bien hacerle eso a otra persona.
Conan: Right. Louis:
Pero tienen que empezar por hacer eso que está mal
But they gotta start with doing the mean thing. But when they write, "You're fat".
Pero cuando escriben, "Estás gordo"
Then they just go, "Mm, that was fun. I like that".
Entonces, piensan, "Mm, eso fue divertido, me gustó"
(Audience laughter)
Entonces...
So. Conan: That tasted good!
Eso estuvo bien
Louis: Yeah, exactly. You need ...
Necesitás crear una habilidad para, simplemente ser tú mismo sin estar haciendo nada más
Conan: Yes. Louis:
Eso es lo que los teléfonos no están quitando.
That's what the phones are taking away. Conan: Yes.
La habilidad de, simplemente, sentarme acá.
Like this.
Así
(Audience laughter) That's being a person, right? Conan:
Eso es ser una persona, no?
Yes.
Nadie puede.
Louis: No one can - They gotta (mumbling sounds) gotta check
Tienen que... chequear porque, sabés , abajo de todo eso
Because th-, you know, underneath everything, in your life, there's that thing. That empty, forever-empty.
Porque, sabés , abajo de todo eso, en tu vida, está eso: el vacío, el por siempre- vacío.
You know what I'm talking about?
Sabés de lo que hablo? Ese...
(Audience laughter) That, Conan:
Si, ya sé de qué hablas.
Yes (laughing). Conan: Yes I-
Eso, el saber que todo es para nada, y que estás solo en el mundo.
You know?
No?
It's down there. (Audience laughter)
Está bien ahí dentro.
And sometimes when things clear away, you're not watching it, you're in your car, and you start going,
Y, a veces, cuando las cosas se disipan, y no la ves venir Estás en tu coche, y empiezas
Ooh, no.
Ohh, no.
Here it comes (laughing), that I am alone.
Ahí viene. Que estoy solo. Como que empieza a visitarte
(Audience laughter)
No?
Like it starts to visit on you. You know, just this sadness.
Sólo esta tristeza
Conan: Yes. Louis:
La vida es tremendamente triste simplemente, por estar en ella.
Life is tremendously sad, just by, by, you know, being in it. And so you're driving, and you go, Ah, oh!
Y estás conduciendo y llega, Ah, oh!
That's why we text and drive.
Por eso manejamos y texteamos
I look around: Pretty much 100% of people driving are texting.
Miro alrededor y la mayoría de la gente maneja y textea.
(Audience laughter) Conan: Yes.
Y están matando, a todos, Asesinandose mutuamente con sus coches.
And they're killing, everybody's murdering each other with the cars, Conan: Yes.
Pero la gente está dispuesta a arruinar la vida de otros y la propia porque no quieren estar solos por un segundo.
But people are willing to risk taking a life and ruining their own, cause they don't want to be alone for a second.
Porque es tan dificil
I was in my car one time, and a Bruce Springsteen song comes on.
Estaba en mi coche una vez, y empieza a sonar este tema de Bruce Springsteen
And it made me really sad.
Y me pongo muy triste.
It's like Jungle ...
Es una que se llama... Junglee
What's the, what's the one?
Cuál es? Jungle..
Jungle ... Conan:
Jungleland.
Jungleland. Louis: Jungle, it's the one where he goes, Huahhhh.
Jungle, es el que dice huaaaaa.
(Audience laughter)
Y suena desde muy lejos.
And he sounds far away?
No?
(Conan laughing) You know, he's like, (singing):
Hace como Stu-de lu
Stu-de-lu Conan: That's, that's.
Asó son la mitad de sus temas
(Audience laughter) Louis: Yeah, that's a lot of them.
Si, un montón de ellas
Conan: No, he goes! No, he, (shouts/sings)
No, es algo así [canturreo]
Yeah, exactly. And he's really far-away sounding.
Si, exactamente, y está sonando desde muy lejos.
Louis: Can you do it with the reverb?
Podéis hacerlo con reverberación?
Can you do, (shouting)?
[Canturreo]
(shouting) Ne-ne-hoooooo (Audience laughter) (Applause)
No, no lo estáis haciendo
Conan: No, they're not. I'm trying to -
Entonces
Louis: So,
Conan:
Conan:
Ne- ne- hoooooo.
Like that?
Si
Yes.
Excepto que era Springsteen
Except for it was Springsteen.
Si fueras tú quién lo hacía, habría pensado
If it was you doing that, I would have been like,
Qué demonios hace eso en mi radio?
What the hell is that in my radio? (Conan and audience laughing)
Pero con Springsteen,
But with Springsteen, Conan: I did it just the same as Bruce!
Lo hice igual que Bruce
Louis: Yes. And I heard it.
Sí,bueno, y lo escuché [a Bruce]
And it gave me kind of like a fall, back-to-school depression feeling.
Y me dio una especia de depresión, de vuelta al colegio
It made me really sad. Conan:
Me puso muy triste
Yeah. And I go, Okay, I'm getting sad.
Y digo, Ok, Me estoy poniendo triste
I gotta get the phone, and write, Hi!, to like, fifty people. (Audience laughter)
Tengo que agarrar el teléfono y escribir.Hola! como a cincuenta personas
And then, you know, somebody cool writes back, and then somebody not as cool writes after, and I'm like, f-, you know, (expletive) you.
Y entonces, alguien cool responde Y después alguien no tan cool responde... Y pienso, que le den, no voy a responder a este