text
stringlengths
0
1.82k
[1324.34 --> 1325.20] and change the code
[1325.20 --> 1325.64] in between
[1325.64 --> 1326.30] and you're not supposed
[1326.30 --> 1326.92] to change that.
[1327.74 --> 1328.10] So,
[1328.64 --> 1330.36] I really wanted to try
[1330.36 --> 1331.50] and avoid running
[1331.50 --> 1332.70] into those issues
[1332.70 --> 1333.54] and so
[1333.54 --> 1335.54] all the generated code
[1335.54 --> 1336.80] goes into a font package
[1336.80 --> 1338.02] which you do not touch.
[1338.22 --> 1338.50] Actually,
[1338.60 --> 1339.52] you cannot touch it
[1339.52 --> 1341.04] because the generator
[1341.04 --> 1341.84] or the code generator
[1341.84 --> 1342.64] will wipe out
[1342.64 --> 1343.44] the entire directory
[1343.44 --> 1343.98] every time.
[1344.82 --> 1345.30] So,
[1345.42 --> 1346.20] there's no way
[1346.20 --> 1346.88] that your code
[1346.88 --> 1347.46] is going to mix
[1347.46 --> 1348.34] with the generated code
[1348.34 --> 1349.38] and the interface
[1349.38 --> 1352.68] is a Go interface,
[1352.78 --> 1353.34] it's explicit
[1353.34 --> 1354.84] and that's how
[1354.84 --> 1355.80] you both
[1355.80 --> 1356.62] could interact.
[1357.14 --> 1357.16] So,
[1357.30 --> 1357.86] when you say
[1357.86 --> 1359.64] don't worry about testing
[1359.64 --> 1361.08] the code
[1361.08 --> 1361.70] that was
[1361.70 --> 1362.56] auto-generated
[1362.56 --> 1364.52] part of the code
[1364.52 --> 1366.60] was the controllers.
[1367.48 --> 1367.98] Are you saying,
[1368.32 --> 1368.54] so,
[1368.74 --> 1370.28] how is your workflow?
[1371.22 --> 1372.44] Do you test,
[1372.72 --> 1374.24] do you then go
[1374.24 --> 1374.78] and manually
[1374.78 --> 1375.52] write tests
[1375.52 --> 1376.42] for integration,
[1376.82 --> 1379.36] for functionality
[1379.36 --> 1381.02] and not specifically,
[1381.18 --> 1382.30] I'm not a huge fan
[1382.30 --> 1383.30] of testing controllers
[1383.30 --> 1383.98] in specific,
[1384.56 --> 1385.26] I'm more a fan
[1385.26 --> 1386.24] of testing integration
[1386.24 --> 1386.72] but how,
[1387.14 --> 1387.90] do you then go
[1387.90 --> 1388.90] and write it manually?
[1390.18 --> 1390.38] So,
[1390.62 --> 1390.74] the,
[1390.74 --> 1391.54] so,
[1391.54 --> 1393.40] the controllers
[1393.40 --> 1393.84] that,
[1393.84 --> 1394.44] that Go agent
[1394.44 --> 1395.82] generate are,
[1396.72 --> 1397.80] this is code
[1397.80 --> 1398.40] that you own.
[1398.82 --> 1399.26] So,
[1399.26 --> 1399.64] there's,
[1399.70 --> 1401.06] there's two kinds
[1401.06 --> 1401.40] of code
[1401.40 --> 1401.80] that Go agent
[1401.80 --> 1402.20] generates.
[1402.32 --> 1403.02] One is the vast
[1403.02 --> 1404.00] majority of the code
[1404.00 --> 1405.34] is things that
[1405.34 --> 1405.60] are,
[1405.78 --> 1406.18] live in different
[1406.18 --> 1406.54] packages
[1406.54 --> 1407.22] that you don't
[1407.22 --> 1407.82] worry about.
[1407.82 --> 1409.02] but then,
[1409.02 --> 1409.68] there's also
[1409.68 --> 1411.12] this scaffolding code
[1411.12 --> 1411.66] which is kind of
[1411.66 --> 1412.64] just a bootstrap code
[1412.64 --> 1413.68] to help you get started,
[1413.94 --> 1414.12] right?
[1414.26 --> 1415.16] It's not something
[1415.16 --> 1415.94] that you're going
[1415.94 --> 1416.80] to regenerate over time,
[1416.86 --> 1417.26] it's something
[1417.26 --> 1418.16] to do once
[1418.16 --> 1419.40] and it helps you
[1419.40 --> 1420.48] quickly compile
[1420.48 --> 1421.00] your service
[1421.00 --> 1422.32] and be able
[1422.32 --> 1423.12] to test it
[1423.12 --> 1423.44] and,
[1423.44 --> 1423.76] and,
[1423.76 --> 1424.94] and play with it
[1424.94 --> 1425.42] right away.