text stringlengths 0 1.82k |
|---|
[443.62 --> 444.54] You end up with |
[444.54 --> 447.06] what is called a context data structure |
[447.06 --> 448.20] and that data structure |
[448.20 --> 450.06] has everything laid out |
[450.06 --> 451.10] in a way that's very easy |
[451.10 --> 452.52] for you to access and consume. |
[453.18 --> 455.96] So your code is very terse |
[455.96 --> 457.26] and very clean. |
[459.30 --> 461.18] The GoaGen tool |
[461.18 --> 462.38] that comes with Goa, |
[462.80 --> 464.52] which is the code generation tool, |
[465.02 --> 467.58] also generates a client package |
[467.58 --> 468.86] and a client tool. |
[469.52 --> 471.80] So that's also been very neat |
[471.80 --> 474.36] because one issue is |
[474.36 --> 475.82] when you create an API, |
[476.48 --> 478.04] obviously the point is |
[478.04 --> 479.22] for the API to be consumed. |
[479.82 --> 481.10] And what tends to happen |
[481.10 --> 482.34] is that every team |
[482.34 --> 483.78] consuming the tool |
[483.78 --> 485.94] will develop their own client |
[485.94 --> 487.68] and they will all |
[487.68 --> 490.30] become out of date |
[490.30 --> 491.30] and they will all have |
[491.30 --> 492.36] small discrepancies |
[492.36 --> 494.70] and things start creeping up, |
[494.84 --> 496.22] which make the whole thing |
[496.22 --> 497.70] more difficult to evolve. |
[498.72 --> 499.62] And so having that |
[499.62 --> 501.00] being generated automatically |
[501.00 --> 503.02] means that the team |
[503.02 --> 504.46] that provides the API |
[504.46 --> 506.42] also provides the client |
[506.42 --> 507.88] and everybody uses |
[507.88 --> 508.66] that one client. |
[508.84 --> 509.68] And so it makes |
[509.68 --> 510.52] everything consistent |
[510.52 --> 512.92] and helps other teams |
[512.92 --> 514.78] consume the API. |
[515.80 --> 516.36] And GoaGen also |
[516.36 --> 517.34] generates documentation |
[517.34 --> 518.98] in the form of a Swagger |
[518.98 --> 520.30] and JSON schema |
[520.30 --> 522.10] so that you can, |
[522.20 --> 523.06] at any point in time, |
[523.22 --> 524.82] share the design |
[524.82 --> 525.80] to other people |
[525.80 --> 526.90] that may not be familiar |
[526.90 --> 528.22] with the Goa DSL. |
[528.86 --> 530.18] And you can use it also |
[530.18 --> 531.18] to document the API |
[531.18 --> 532.88] once it's in running production. |
[533.62 --> 534.94] So all of that |
[534.94 --> 536.26] makes for a very nice |
[536.26 --> 538.86] way of developing APIs |
[538.86 --> 540.40] and very efficient |
[540.40 --> 541.22] way of doing it. |
[541.86 --> 543.40] So I have two comments. |
[543.72 --> 545.10] I found Goa |
[545.10 --> 547.32] in October, November, |
[547.44 --> 548.20] I guess, of last year. |
[548.54 --> 550.30] And two things struck me |
[550.30 --> 552.14] immediately when I saw Goa. |
[552.20 --> 552.96] The first was that |
[552.96 --> 554.06] the generated code |
[554.06 --> 555.32] looked handwritten. |
[555.86 --> 557.68] And I have to commend you |
[557.68 --> 558.90] for that because for me |
[558.90 --> 559.86] that was the most impressive |
[559.86 --> 560.72] part of the project |
[560.72 --> 562.70] was that all other |
[562.70 --> 564.72] code generation facilities |
[564.72 --> 565.48] I've seen before, |
[565.60 --> 566.32] it's really clear |
[566.32 --> 568.64] that it's generated code |
[568.64 --> 570.84] and it doesn't feel idiomatic. |
[571.00 --> 572.10] It doesn't feel like Go. |
[572.30 --> 573.46] It feels like somebody |
[573.46 --> 574.62] generated some Go code. |
[574.80 --> 577.20] So having that generated code |
[577.20 --> 577.94] in Goa |
[577.94 --> 579.56] look so handwritten |
[579.56 --> 581.26] was very impressive for me. |
[581.96 --> 582.70] Well, thank you. |
[582.86 --> 583.26] Yeah, I mean, |
[583.30 --> 584.00] that was definitely |
[584.00 --> 584.88] a design goal. |
[585.66 --> 585.84] You know, |
[585.92 --> 587.98] when I started Goa, |
[588.10 --> 590.34] I was a little bit |
[590.34 --> 591.88] not afraid, |
[591.98 --> 592.92] but I was a little bit worried |
[592.92 --> 595.04] about the reception |
[595.04 --> 595.88] that the Go community |
[595.88 --> 596.34] would have |
[596.34 --> 597.40] because I know that |
[597.40 --> 598.58] the Go programmers |
[598.58 --> 599.34] are very, |
[599.46 --> 601.24] not picky, |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.