text stringlengths 0 2.35k |
|---|
[1242.58 --> 1243.96] and having methods on it |
[1243.96 --> 1245.68] that is like self-contained, |
[1245.74 --> 1245.92] right? |
[1245.92 --> 1246.84] And maybe that's not |
[1246.84 --> 1247.48] what it actually is. |
[1247.54 --> 1248.04] Maybe I'm totally |
[1248.04 --> 1249.58] misunderstanding the concept. |
[1250.10 --> 1250.26] So, |
[1250.54 --> 1251.22] that's interesting. |
[1251.44 --> 1252.00] You said it. |
[1252.06 --> 1252.92] You actually said it. |
[1253.58 --> 1254.86] Said encapsulation. |
[1254.86 --> 1255.66] So, |
[1255.70 --> 1256.80] it's about encapsulation, |
[1256.92 --> 1257.40] abstraction, |
[1258.00 --> 1259.48] and later came in |
[1259.48 --> 1260.24] generalization. |
[1261.12 --> 1261.52] So, |
[1261.88 --> 1263.00] to encapsulate, |
[1263.10 --> 1263.92] you don't need hierarchy. |
[1265.00 --> 1265.38] Or, |
[1265.74 --> 1266.16] I mean, |
[1266.36 --> 1267.64] you can have a composition, |
[1267.96 --> 1268.36] essentially, |
[1268.64 --> 1269.76] and that would work |
[1269.76 --> 1270.66] pretty well, |
[1270.76 --> 1270.96] too, |
[1271.20 --> 1272.00] to encapsulate. |
[1272.70 --> 1272.94] But, |
[1273.10 --> 1273.60] essentially, |
[1273.72 --> 1273.86] like, |
[1273.90 --> 1274.96] you don't even need to have |
[1274.96 --> 1275.94] any kind of composition, |
[1276.22 --> 1276.72] I think, |
[1277.14 --> 1278.36] to be able to encapsulate |
[1278.36 --> 1278.98] information. |
[1279.10 --> 1280.06] It is useful, |
[1280.30 --> 1281.34] but the combination |
[1281.34 --> 1282.58] of information |
[1282.58 --> 1283.20] can be, |
[1283.26 --> 1283.56] you know, |
[1283.62 --> 1284.64] across a lot of things. |
[1284.96 --> 1285.88] We know this because |
[1285.88 --> 1287.22] we have distributed systems. |
[1287.84 --> 1288.62] I feel like |
[1288.62 --> 1289.66] we live in a world |
[1289.66 --> 1290.82] where everything is distributed, |
[1290.96 --> 1291.06] like, |
[1291.14 --> 1291.80] all of our data |
[1291.80 --> 1291.98] is, |
[1292.06 --> 1292.14] like, |
[1292.16 --> 1292.52] everywhere. |
[1293.02 --> 1294.02] And we kind of need |
[1294.02 --> 1294.90] to aggregate it. |
[1295.16 --> 1295.50] So, |
[1295.70 --> 1296.46] even a composition |
[1296.46 --> 1297.78] is sort of nice to have, |
[1297.88 --> 1298.54] something that we're |
[1298.54 --> 1299.58] very used to when we do, |
[1300.10 --> 1301.42] but we don't actually |
[1301.42 --> 1302.56] need to have it. |
[1302.88 --> 1303.12] So, |
[1303.28 --> 1304.60] if we have encapsulation, |
[1304.92 --> 1306.54] which I think we do in Go, |
[1307.12 --> 1308.58] and we are able to |
[1308.58 --> 1309.82] define abstractions, |
[1310.00 --> 1311.04] which we have |
[1311.04 --> 1311.94] interfaces for. |
[1312.48 --> 1312.66] And, |
[1312.66 --> 1313.26] by the way, |
[1313.34 --> 1314.32] there is a case, |
[1314.32 --> 1314.92] so, |
[1315.58 --> 1316.34] it's kind of interesting |
[1316.34 --> 1317.84] as I found a code snippet |
[1317.84 --> 1318.84] that was exactly |
[1318.84 --> 1319.46] what I needed |
[1319.46 --> 1321.12] for this workshop |
[1321.12 --> 1322.38] at the time, |
[1322.54 --> 1323.86] it was the C++ code. |
[1324.00 --> 1324.64] I really loved |
[1324.64 --> 1326.34] because it starts |
[1326.34 --> 1327.22] with a license |
[1327.22 --> 1328.12] that do whatever |
[1328.12 --> 1328.92] the hell you want |
[1328.92 --> 1329.56] with this code |
[1329.56 --> 1331.04] as long as you don't blame me. |
[1331.04 --> 1333.62] And then this code, |
[1333.62 --> 1335.26] that it's an event |
[1335.26 --> 1336.34] that you can register |
[1336.34 --> 1337.22] listeners to, |
[1337.70 --> 1339.18] regardless of the type. |
[1339.40 --> 1339.96] So, essentially, |
[1340.22 --> 1341.62] it works with templates |
[1341.62 --> 1342.58] or generics. |
[1342.90 --> 1343.38] So, |
[1343.46 --> 1344.24] that code |
[1344.24 --> 1345.64] uses generics |
[1345.64 --> 1346.84] for a case |
[1346.84 --> 1347.80] that we don't need. |
[1348.36 --> 1349.40] When we write |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.