text
stringlengths
0
2.35k
[468.14 --> 468.86] And,
[468.98 --> 469.74] I'm looking at you,
[469.86 --> 470.16] Java.
[470.88 --> 471.12] And,
[471.18 --> 471.96] here is my case.
[472.02 --> 472.50] Listen up.
[473.42 --> 473.90] Java,
[474.48 --> 474.72] yes,
[474.82 --> 475.00] sure,
[475.06 --> 475.86] it has inheritance.
[476.52 --> 476.90] But,
[477.34 --> 479.00] you can only inherit once.
[479.48 --> 479.68] So,
[479.76 --> 480.52] that means that
[480.52 --> 481.96] if class A,
[482.08 --> 483.08] you want to express
[483.08 --> 483.98] the idea that
[483.98 --> 484.70] class A,
[484.86 --> 486.18] or an object of type A,
[486.26 --> 488.42] is also an object of type B,
[488.54 --> 489.38] or class B,
[489.98 --> 491.34] you can only do that once.
[491.40 --> 491.48] And,
[491.56 --> 493.06] if you have a case C,
[493.82 --> 495.32] that A is also C,
[495.78 --> 497.48] you cannot express that in Java.
[497.48 --> 498.16] Now,
[498.24 --> 499.44] I came from C++,
[499.76 --> 500.54] so I kind of,
[500.58 --> 500.90] you know,
[500.98 --> 502.30] had this multiple inheritance.
[502.74 --> 504.22] I used to be very expressive
[504.22 --> 505.10] with inheritance.
[505.64 --> 505.72] And,
[505.82 --> 506.60] when I look at Java,
[506.78 --> 507.62] when I look at Ruby,
[508.28 --> 508.74] Pythonistas,
[508.92 --> 509.28] I'm sorry,
[509.42 --> 510.96] I'm not familiar enough
[510.96 --> 511.52] with your language
[511.52 --> 512.00] to know,
[512.26 --> 513.00] to make a case.
[513.60 --> 513.82] But,
[513.92 --> 514.70] when I look at Java,
[514.80 --> 515.58] when I look at Ruby,
[516.14 --> 517.50] I see that
[517.50 --> 519.06] you can't really express
[519.06 --> 520.52] A is C,
[520.62 --> 521.66] if you already express
[521.66 --> 522.62] that A is B,
[523.12 --> 524.60] unless you use interfaces
[524.60 --> 525.54] or generics.
[525.54 --> 526.58] Now,
[526.88 --> 529.02] interfaces are,
[529.46 --> 531.58] the Go has this dramatic effect
[531.58 --> 532.96] that interfaces are implicit.
[533.74 --> 534.78] In Java,
[535.52 --> 537.26] a class has to be aware,
[537.54 --> 538.50] to be able to instantiate
[539.18 --> 541.52] A as type interface I,
[542.36 --> 543.92] A has to be aware of I
[543.92 --> 545.02] at the time of writing.
[545.58 --> 546.06] So,
[546.16 --> 548.46] that means that to plug A as I,
[548.68 --> 549.96] you have to do something.
[549.96 --> 551.86] It could be generics,
[552.24 --> 553.26] it could be
[553.26 --> 555.70] some sort of a proxy class
[555.70 --> 556.96] that we'll implement
[556.96 --> 558.30] and derive from.
[559.08 --> 559.34] So,
[559.40 --> 560.20] there are some ways.
[560.76 --> 560.88] And,
[560.96 --> 561.32] in Ruby,
[561.42 --> 562.44] we also see
[562.44 --> 563.64] how modules
[563.64 --> 565.04] are kind of replacing
[565.04 --> 565.94] generics
[565.94 --> 567.50] and what people used to do
[567.50 --> 568.72] in other languages
[568.72 --> 570.18] to sort of be able
[570.18 --> 571.40] to be very expressive
[571.40 --> 572.24] that something
[572.24 --> 573.56] is also something else.
[574.38 --> 574.70] So,
[575.14 --> 576.32] the answer is that
[576.32 --> 577.16] I think that Go
[577.16 --> 579.74] is object-oriented.
[580.46 --> 581.96] I'm leaning towards yes.
[582.30 --> 583.38] I do see why people
[583.38 --> 584.28] don't think so.
[585.18 --> 585.66] But,
[585.74 --> 585.88] yeah,
[585.96 --> 586.86] that's where I am
[586.86 --> 588.08] as a person
[588.08 --> 590.28] who works with Go.
[590.54 --> 591.06] Can we go through
[591.06 --> 591.68] some of the reasons
[591.68 --> 592.80] people said it wasn't?
[592.90 --> 593.04] Like,