text stringlengths 0 2.35k |
|---|
• Anecdote about the value of incorporating functional programming concepts into existing codebases |
• Discussion of filter and its benefits |
• Mindset shift towards functional programming (FP) |
• Education as a key factor in adopting FP |
• Request for features to support FP in Go, specifically type parameters on methods |
• Hypothesis on the impact of higher-kinded types on compiler complexity and potential benefits |
• The evolution of a language from being not functional to becoming sophisticated, driven by user demand |
• Type parameters on methods and higher kinded types as advanced features in programming languages |
• The limitation of discussing type parameters due to lack of controversy |
• A desire for higher kinded types or high order types in the Go programming language |
• An analogy about experimentation and learning from mistakes |
• Introduction to the podcast Ship It, which discusses code, ops, infrastructure, and team dynamics |
• Discussion of great teams creating great engineers, rather than vice versa |
• Emphasis on testing ideas and assumptions before implementation |
• Explanation of a design pattern called the "lens" in functional programming |
• Description of the lens as a tuple of two functions: a getter and a setter for data |
• The speaker explains a concept called "lens" in functional programming (FP) and its application to simplify code |
• The lens is essentially a function that can be used to transform data structures |
• The speaker suggests that using lenses can reduce code complexity and improve maintainability |
• The conversation then shifts to the speaker's background, including their decision to go back to school for a master's degree in computer science with a focus on formal methods |
• The speaker mentions how they're fortunate to be able to pursue this part-time program while working, allowing them to learn new concepts and skills without pressure |
• Discussion of the Go and Rust programming languages |
• Comparison of type systems between Go and Rust |
• Functional programming concepts and principles |
• Recognizing the difference between actions, calculations, and data in programming |
• Introduction to pure functions as calculations that always give the same answer |
• Discussion of how language features can affect code readability and maintainability |
• The importance of considering the timing of code execution in functional programming |
• Distinction between actions (dependent on time) and calculations |
• Data is inert and does not affect program behavior |
• Introduction to functional programming concepts through everyday examples (e.g., sending emails, writing to disk) |
• Podcast promotion for episode 163 of JS Party |
[0.00 --> 15.26] As someone who has written a library to do a bunch of FP things, not only did it make the implementation easier in the form of less code and more guarantees at compile time about types, it extends those guarantees to the caller. |
[15.26 --> 36.52] So I no longer have to take in an interface or a list of any types and return a list of any types from map. And since now I can return the type parameter T and then a new type parameter for the return type of the list, well now those guarantees are extended to the user of the library. |
[36.52 --> 54.36] And now they can also say, oh, well, my program compiles, therefore my types are right too. So this is like a domino effect of benefits that if a user is using someone's FP library or even rolled their own, now they know that, well, my types are right. |
[54.36 --> 66.40] This episode is brought to you by Sourcegraph. Sourcegraph is universal code search to let you move fast, even in big code bases. |
[66.90 --> 73.66] Here's CTO and co-founder, Byung Lu, explaining how Sourcegraph helps you to get into that ideal state of flow in coding. |
[73.66 --> 89.14] The ideal state of software development is really being in that state of flow. It's that state where all the relevant context and information that you need to build whatever feature or bug that you're focused on building or fixing at the moment, that's all readily available. |
[89.30 --> 94.68] Now the question is, how do you get into that state where, you know, you don't know anything about the code necessarily that you're going to modify? |
[94.68 --> 104.14] That's where Sourcegraph comes in. And so what you do with Sourcegraph is you jump into Sourcegraph. It provides a single portal into that universe of code. |
[104.30 --> 110.98] You search for the string literal, the pattern, whatever it is you're looking for. You dive right into the specific part of code that you want to understand. |
[111.26 --> 124.10] And then you have all these code navigation capabilities, jump to definition, find references that work across repository boundaries that work without having to clone the code to your local machine and set up and mess around with editor config and all that. |
[124.10 --> 129.56] Everything is just designed to be seamless and to aid in that task of, you know, code spelunking or source diving. |
[129.88 --> 137.74] And once you've acquired that understanding, then you can hop back in your editor, dive right back into that flow state of, hey, all the information I need is readily accessible. |
[137.96 --> 142.44] Let me just focus on writing the code that influenced the feature or fixes the bug that I'm working on. |
[142.44 --> 152.44] All right, learn more at Sourcegraph.com and also check out their bi-monthly virtual series called DevToolTime covering all things DevTools at Sourcegraph.com slash DevToolTime. |
[154.10 --> 169.42] Let's do it. |
[169.98 --> 171.04] It's Go Time. |
[171.62 --> 176.42] Welcome to Go Time, your source for diverse discussions from all around the Go community. |
[176.90 --> 179.54] Check out our back catalog at GoTime.fm. |
[179.54 --> 186.74] There you'll find the most popular episodes, our favorites, and a request form so you can let us know what you want to hear about on the pod. |
[187.10 --> 191.88] Special thanks to our partners at Fastly for shipping our shows super fast to wherever you listen. |
[192.12 --> 193.62] Check them out at Fastly.com. |
[194.02 --> 195.70] And to our friends at Fly.io. |
[196.06 --> 198.04] Host your app servers close to your users. |
[198.30 --> 199.16] No ops required. |
[199.50 --> 201.26] Learn more at Fly.io. |
[201.52 --> 202.28] Okay, here we go. |
[203.56 --> 206.22] Welcome, welcome, friends. |
[206.22 --> 209.16] And those who want to be friends. |
[209.78 --> 211.02] You want to be friends with me, right, Aaron? |
[211.46 --> 211.90] Of course. |
[212.20 --> 213.10] Why do you think I'm here? |
[213.60 --> 214.48] Awesome, awesome. |
[215.08 --> 220.44] So today we're going to talk about functional programming with generics. |
[220.90 --> 222.88] So I am your host, Johnny Borsico. |
[223.60 --> 230.42] If you haven't heard from me for a while, that's because I've been heads down trying to ship some stuff that's coming out later this year. |
[231.10 --> 233.66] And I'm pretty excited about it, but I can't spill the beans on that yet. |
[233.66 --> 235.18] You're just going to have to stay tuned. |
[235.76 --> 238.54] And if you want, you can go to GolangJohnny.com. |
[240.38 --> 247.92] Since I own that, I made sure to snap that up the last time John Calhoun mentioned it on our show. |
[248.38 --> 252.12] So joining me today is, you know him, he's been on the show before. |
[252.52 --> 253.92] And you see his name everywhere. |
[254.12 --> 259.60] And especially as it relates to things like GopherCon and getting us ready for the big show coming up next month, actually. |
[259.82 --> 260.26] Coming up. |
[260.26 --> 260.98] Yeah, yeah. |
[261.10 --> 264.14] Please join me in welcoming Aaron Schlesinger. |
[264.70 --> 265.30] Hi, everybody. |
[265.56 --> 266.56] Thanks for having me, Johnny. |
[266.76 --> 268.08] It's wonderful to be here again. |
[268.46 --> 269.06] Yes, yes. |
[269.08 --> 270.40] And it's great to have you. |
[270.64 --> 276.06] So we did a show on functional programming a little while back. |
[276.34 --> 278.72] This was episode 87, right? |
[279.24 --> 279.90] This was a while back. |
[279.94 --> 284.82] This was like May something of, let me see, let me double check. |
[285.40 --> 287.14] 2019, back in 2019. |
[287.54 --> 288.34] Four days. |
[288.34 --> 291.66] So a lot's happened in the Go world since then, right? |
[291.98 --> 295.80] Most notably, the introduction of generics in 118, right? |
[296.42 --> 307.32] So it was suggested, actually, that there was a listener who basically went back and listened to the old show and basically said, hey, I found an episode on functional programming from back in 2019. |
[307.60 --> 310.12] However, it was a time before generics appeared in Go. |
[310.48 --> 314.88] It'd be nice to hear what can be done with functional programming and Go with generics. |
[314.88 --> 316.20] So this one's from Steve Nicholson. |
[316.26 --> 317.36] So, Steve, shout out to you. |
[317.72 --> 320.60] We indeed got this show put together on your suggestion. |
[320.82 --> 327.46] So the others you can follow in Steve's footsteps if you want to ask for certain shows. |
[327.64 --> 328.92] And you can basically suggest them. |
[329.24 --> 331.72] And we often look through the list and see what's interesting. |
[331.72 --> 333.28] And you tell us what you want to hear. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.