EP54 – What is the Map Operation in Java Streams?
Description
GitHub link here: https://github.com/tp02ga/FunWithStreams
In this episode we'll talk about:
- How the .map() operation in Streams is completely different than a HashMap
- The details of how .map() will transform your data from one type upstream, to a different type downstream
- A real world example of how to use the .map() operation in your code
Episode Transcript
0:09
Welcome to the coders campus podcast, where you'll learn how to code from one of the best teachers in the industry. Whether you're an absolute beginner or a seasoned pro, the coders campus podcast will teach you what you need to know to master the art of programming. And now, your host, Trevor page,
0:28
o k, my fellow coders, welcome to this 54th episode of the coach campus podcast. Thank you so much for joining. As always, if you're in your car, thank you for listening to me while you're driving, if you are on the treadmill or something at the gym, thank you for listening to me while you are working if you are doing dishes, or if you are just relaxing on a couch or in front of your computer. Thank you so much for listening. This is one of the most enjoyable activities that I do as a part of what I have been doing for the last 10 years, which is teaching people how to code. And in today's episode, we're going to be diving into as promised the topic of maps, specifically the mapping or the map operation inside of streams. Now, right up front, I want to say just like I did last time in the in at the end of that last episode, streams, maps, rather sorry, map as an operation within a stream has nothing to do with a HashMap or the map interface in the Java language. Okay, nothing to do with it. So anytime that you hear me say stream and map together dot map, don't think of HashMaps Okay, that's gonna be hard, don't think key value just throw that concept away okay. I wish there was a better fitted word here that we could use for this operation. But think of this as an operation this is you are executing a method the method is called dot map, okay, that's the function of the method or the procedure or whatever it is that you want to call it, they all mean the same thing okay. This is an operation that we are performing it is not a data structure. Maps as data structures are something different dot map is an operation is a function that we are calling that we are executing. Okay, so I will say that, first and foremost, at the top of this episode. Now, what the heck is a map dot map this operation within streams. So that's what I want to dive into today. But quick interlude, as I'm publishing this episode, it is Black Friday, in 2021. So it's November 26 2021, is when I'm publishing this, or at least I'm planning on publishing it. Obviously, if you are listening to this, and you might be listening to it on this day, but you know, you're probably listening to it at some point in the future. But why this day is important, this Black Friday, November 26 2021, is we are releasing a brand new product. It is a brand new
3:00
coding boot camp that I am very proud of, as you've heard me talk about in past episodes, I am very bullish on boot camps. I am a believer, I am a I am I've been converted to boot camps. Okay, I'm a believer in their efficacy, the efficiency and the outcomes that come from boot camps now. But, Trevor, you already have a boot camp? Why are you talking about releasing a boot camp? Well, let me tell you the last, you know, three years that we've been doing boot camps, I have had to turn away a significant portion of students, aspiring coders potentially just like yourself, because you guys don't, or at least most of the people who have applied to our boot camp. They don't have enough prior knowledge, enough prior experience with code. And that leads to them. Probably not having a very good outcome inside of our full boot camp that exists today as it is and as we've been running for the past three years. So I've always felt a little bit icky about that. I don't want to turn people away and say you're not ready yet. So that is why I am announcing today, as you know, Black Friday, November 26 2021, we have designed a boot camp that is fit for the complete beginner. So if you are a complete beginner, or if you just don't feel ready enough to jump into the you know, the big boy pool or whatever you want to call it. If you've been you know only doing this whole code thing for you know, maybe less than six months or something like that. You've been dipping your toes in the waters of coding for less than six months. This boot camp is for you. So and it is a coding boot camp. It is a 16 week program where we will teach you the fundamentals of coding. Of course we focus on the Java language while doing that. But let me tell you, this is the hardest part of learning to code, the fundamentals. Okay, what I'm talking about today streams and maps, those are beyond fundamentals. Okay, so if you if you're confused about streams and maps and or just streams in general. Yeah, that's good. That's probably means that you're you still need work on the fundamentals, you need this new boot camp. Okay, this I call it the core Java boot camp. Okay, because we've talked about core Java concepts. Core, Java is another way to just say the fundamentals of the Java language. And really, this is the fundamentals of any coding language at all. Okay, these concepts can be applied concepts can be applied to pretty much any object oriented language. Okay, that's what we're learning in this bootcamp. And let me tell you, like I said, this is the hardest part, this is where 90% of the people who start will stop, they can't get a grasp of the fundamentals. And they tap out, and they walk away. And I don't blame them. Because learning on your own learning without mentorship, learning without accountability, without community without direction, curriculum, and constant access to support. Without that stuff, you are so likely to fail, like 95% more likely to fail if you go that route on your own, okay, that's why I am big on boot camps, they really helped to bridge that gap. And they really helped to give you the confidence that you need, when you need it most. Okay, so I'm very proud and very excited to announce this, I want to call it the core Java boot camp. But really, like I said, it's just a boot camp to learn the fundamentals to get further than 90 some odd percent of people who've ever tried to learn how to code. So if this is you, if this is resonating, if you've tried before and quit, and if you're just sort of dabbling, or half in, but you really want to be all in, this is the way to do it. And And hey, if you're listening to this in 2021, on the in the Black Friday season, that hey, even better, there's a discount right now that we have, I haven't done a discount or a sale in like four years, because I haven't had time. But we're doing that here. And now. So you can get in and get access to this coding boot camp at 25% off. And in my opinion, this is very affordable. Okay, so this is not, because it's we're not teaching the five pillars of full stack development in this bootcamp, we're just focusing on the fundamentals for 16 weeks, we can make it more affordable. So as part of Black Friday, you can get in for 1500 US dollars, okay. 15 101 time gives you access to the entire 16 weeks of the bootcamp it gives you access to, like I said, all the support that you're going to need the live calls, we have like three live calls a week, with our lead instructor, we you get assignments. So there's four super challenging assignments, and you get code reviews for those assignments, you'll be able to get personalized feedback on the code that you write. There are plenty of like coding exercises in there that are smaller than the assignments. The assignments are where you're going to really struggle. But the exercises are a lot easier. Again, this is all making sure that you are absorbing and learning what it is that is being taught as part of this curriculum. So there's probably more that I didn't mention, but oh, yeah, there's a Slack channel. So the whole point, again, everything that we can do to help you get very comfortable with the fundamentals of coding, that's what we are doing this boot camp for 1500 bucks. Okay, that is an insanely good deal if you know and understand the power of what a boot camp delivers. Okay, my other coding boot camp is almost 10 times that price. So hopefully you understand the the impact and the severity of this offer and how big this is. So if you are a beginner, if you've been desperately needing help and wanting guidance from experts to be able to hang out with people just like yourself to be able to ask questions when they come up to be able to get help when you need it most. And to learn from experts about coding conventions, and all the things that you should be doing in order to be ready to take the next step, the next level, which is the next boot camp, do all that stuff, get that help in here, be ready for the next boot camp, and then we take all the money that you invested in this one, and we just apply it 100% As a credit towards the next boot camp. Okay, and then that next boot camp, then you're the big, you know, you're playing with the big boys, you're, you know, the big guns, if you will, whatever you want to call it. That's the fully comprehensive full stack boot camp that you've already heard me talk about this whole time. Okay, so every penny that you invest into this new one that I'm talking about the core Java boot camp, you can reinvest it 100% right back into the next one. O




