97: Tomasz Łakomy on Serverless with AWS
Tomasz Łakomy shares secrets to survive the rapidly changing frontend landscape.
Tomasz and chantastic talk serverless, end-to-end testing with cypress, and the greatest frontend tool of all time: jQuery.
Featuring
Announcement
Build an App with the AWS Cloud Development Kit with Tomasz Łakomy's new AWS course on egghead
Links
- Tomasz’ Egghead Instructor Page
- Sleeping well at night with cypress.io by Tomasz Łakomy | React India 2019
- jQuery
- Backbone.js — structure to web applications
- Marionette — The Backbone Framework
- AWS Certification — Validate technical skills and cloud expertise to grow your career and business
- “When one teaches, two learn.” — Robert Heinlein on goodreads
- T-shaped skills on Wikipedia
- Joel Hooks
- AWS
- mongoDB
- Ruby on Rails
- Learn AWS Lambda from scratch
- TypeScript — JavaScript that scales
- cypress — Fast, easy and reliable testing for anything that runs in a browser
- Smoke testing on Wikipedia
Sponsors
Infinite Red
In over your head with a React or React Native app? Infinite Red can help. They're React Native core contributors who've been designing, building and shipping apps for over 10 years. reactpodcast.infinite.red
Transcript
[00:00:00] Michael Chan: This is React Podcast. I'm Chantastic. This week, Tomasz Łakomy tells us how to survive the rapidly changing frontend landscape. We talk serverless, end-to-end testing with Cypress, and the greatest frontend tool of all time, jQuery. Now, a quick word about today's sponsor. Everyone can use expert help. Infinite Red wants to help you with your React and React Native apps. Whether that be to finish, fix, or make them flourish, Infinite Red is on your side to assist with your vision. They've compassionately helped tens of thousands of developers through open source and their annual React Native conference, Chain React. Get the help you need and 2 tickets to Chain React in 2021 when you start a new project. Referrals count too. Visit reactpodcast.infinite.red and with their help, build a beautiful, functional app today. All right. Tomáš, welcome to React Podcast.
[00:01:08] Tomasz Łakomy: Glad to be here.
[00:01:09] Michael Chan: It's good to have you. We've been kind of like having this like Twitter dialogue going on for a while, and I'm really excited to uh actually have you on the show, talk about what you've been up to. And uh yeah, so first of all, for anyone who's not familiar with you and your work and your talks, uh tell us a little bit about you, what you're doing these days, and uh yeah.
[00:01:32] Tomasz Łakomy: Sure, so like if somebody's not familiar with me, they're not missing much, for the record. So hello everybody, my name is Tomasz Łakomy. I was born and raised in Poland, which kind of explains my terrible English accent, so I'm terribly sorry for that. I'm a senior-
[00:01:47] Michael Chan: Don't apologize, it sounds good. It sounds good, I like it.
[00:01:50] Tomasz Łakomy: Sure, so I'm a senior frontend engineer at OLX Group. So if you are not familiar with OLX Group, this is honestly the biggest online company that you probably have never heard of, especially if you are from US. But if you are from US, you probably have heard of Craigslist. So we basically do the kind of the same website. So we operate the biggest online marketplaces in some of the countries in Europe, but we have a slightly better design than Craigslist. And then we actually do have design.
[00:02:16] Michael Chan: It's not just like plain HTML elements.
[00:02:20] Tomasz Łakomy: Exactly. Uh, apart from that, I've been, you know, publishing courses and videos for Egghead for the last 18 months. And I had an amazing uh opportunity of doing that. And it's been honestly kind of life-changing and career-changing for me because it led me on the road to creating more and more content, which I create plenty of pieces of content for the last 2 years. And I'm really happy to to do that. Apart from that, I've been also speaking at tech conferences. Uh so for the last 2 years, I ended up speaking in many conferences around Europe. Uh last year, I also got an amazing opportunity to speak at React India. Which was absolutely the highlight of my speaking career. And I have absolutely no idea how I'm ever going to top that.
[00:03:02] Michael Chan: So what was the highlight there? Um, I know every conference kind of has its own flavor, but what was it that made uh that conference, uh React India, so special?
[00:03:11] Tomasz Łakomy: So there were two things. Uh, the the first one was, it was absolutely incredible for me to go to a different continent and see people who are aware of my existence. So yeah, I went there as a speaker and like people were, you know, coming up to me to to chat. And by the way, I follow you on Twitter, I've seen your talk, I've seen your, you know, video or something. So that was honestly kind of fascinating that uh sitting in my apartment, you know, creating those videos, writing those blog posts, I'm able to kind of connect on a personal level with somebody who otherwise I would honestly never ever freaking meet.
[00:03:47] Michael Chan: Yeah.
[00:03:48] Tomasz Łakomy: Yeah, that's was absolutely fascinating. And the second thing that I found really interesting is that uh everybody kind of solves their own problems. So again, I am not absolutely not an expert uh in in this kind of area, in this demographic, because well I've been there for like 5 days. But the thing is that uh given the size of the country, they have incredible problems to to solve from the technical perspective. So like- Oh yeah. Most of the country is very mobile-centric, And there's basically so much different problems that you have to solve, you have to kind of optimize for, than for instance, in San Francisco. So that's absolutely fascinating and eye-opening for me to kind of be able to to see that and to have all those conversations that would very would be very difficult to have at a conference in Europe.
[00:04:39] Michael Chan: Yeah, that's really interesting. I think that's one thing that I've I've really loved about talking with, you know, different people who do work in, you know, different continents, because the challenges are similar, but different, right? Like the scale of everything is different. And the availability of network is different. And so it's it's almost like a different matrix that people kind of make similar decisions through. And it's really fun to examine.
[00:05:08] Tomasz Łakomy: Exactly. Like, what I think about it is that we have this single common language, okay, too. So there's English and there's JavaScript. And everything else can be different. And this is what makes it so fascinating is that-
[00:05:20] Michael Chan: Yeah.
[00:05:21] Tomasz Łakomy: For instance, you have markets, for instance, like Poland. Uh, some of the websites in Poland are not really optimized for iPhones because, for instance, there are demographics that iPhones are not really a thing. If you are, for instance, targeting like 50+ demographic in Poland, you are not going to see many iPhones. So that's very, uh, diverse way of thinking is that you have to consider so many different circumstances when you're going to optimize for different demographics on different continent or different, you know, uh kind of reality when you think about it.
[00:05:52] Michael Chan: Yeah, interesting. Well, one thing that I wanted to talk with you about today, and I think this will probably be the the general arc of our conversation, is as a developer, how do you like navigate the kind of rapid change in technology and the rapid change in need? And I think that this all kind of like plays in to, um, you know, as we learn more about the demographics of the people that that our products are serving, um, we tend to have to learn, uh, uh, new technologies relatively quickly. Yeah. And, um, I know that that can be really exhausting for a lot of people, um, but I feel like you have, um, been able to find a way to do that in a way that's invigorating and like life-giving. And so I wanted to kind of talk with you about, about that as like the main concept. Um, but first, to like set the stage for that, like we need to talk about uh talk about something and kind of like anchor this in the past. Um, you said in one of your talks, uh which is maybe one of my favorite things ever, you said jQuery is the best thing that hap- ever happened to the web. I need you to I need you to flesh that out for me. Tell me why why that's the case.
[00:07:01] Tomasz Łakomy: Okay. So to build kind of the stage for the rest of the conversation. So I I do strongly believe that it is one of the best things ever to happen to the web. Uh, because when it came out, and okay, so for me it came out in 2012, as in I've learned jQuery in October of 2012. I actually remember the day because that was like, you know, something from my- Changed your life. It was life-changing. The thing is that it made so many things much easier to do. Uh, because otherwise what you had, what you ended up doing is that you had an idea for an app you went for a JavaScript tutorial and you opened it up in your favorite browser of choice and it worked. Then you opened the app in a different browser and it didn't. So that was highly discouraging. And what I think got me into jQuery and got so many developers, and this is why jQuery has been so successful ever since, is that it made simple things simple. So like, I'm trying to get an element, please give me an element. I don't care about- At this point, I didn't care about different browser quirks. I didn't care that in Firefox you have to do it differently than in IE8, for instance.
[00:08:10] Michael Chan: Yeah.
[00:08:11] Tomasz Łakomy: I just want to get an element. And till this day, I'm a huge fan of things and frameworks and solutions that allows me to kind of, one, keep simple things simple, and two, focus on the problem I'm trying to solve, and not necessarily having me to focus on different kind of quirks and implementation details and so on. Because I am a problem solver. This is what I'm getting paid for.
[00:08:36] Michael Chan: This is really interesting because I feel like that characteristic that you're describing of jQuery um applies to a lot of the big transformational projects, right? Like I feel like Babel kind of fits into that same uh like category of tooling, right? Where it's like, um I like this is now considered JavaScript. And I don't want to have to think about like all the historical things that like made that not JavaScript at one point. Um and and I think even to kind of what uh you know projects like React, Vue, and Svelte are doing, you know, where it's it's it's removing you from the specifics of, you know, a given like DOM implementation and, you know, state management and all that kind of stuff. Um and allows you to think at a higher level Or like closer to your intent, maybe.
[00:09:23] Tomasz Łakomy: Exactly. I
[00:09:25] Michael Chan: love that.
[00:09:25] Tomasz Łakomy: Like I said, I do highly- like think of thinking about React, I think that you made a very good point here, is that what React allows us to do is to focus on the thing that we are trying to build. I, I as a React developer, I don't have to think anymore about manipulating the DOM, because it's being done for me. So we are operating on one level above the one that we had with, you know, jQuery and even Backbone. Because with Backbone, you still ended up, you know, maintaining a whole soup of events and DOM manipulations, and that was not pretty.
[00:09:58] Michael Chan: 'Cause Backbone, it's like Backbone plus jQuery plus something else.
[00:10:03] Tomasz Łakomy: Yes.
[00:10:04] Michael Chan: Marionette, whatever the popular thing at the time was for-
[00:10:08] Tomasz Łakomy: Yeah, I think we have to add a note for in the show notes about what Backbone and Marionette is, because- So for the younger younger listeners out there.
[00:10:19] Michael Chan: You know, it's totally true, I forget sometimes Because I think I started- I'm trying to remember exactly when I started my like journey into code. But um I don't know. It was probably like somewhere around 2005-ish, give or take a couple years. And I remember like that at that phase, it was very much about like, you know, the skill of web development was knowing all of the differences in the platforms and being able to account for them. And and it's true that like jQuery like totally blew a lot of that away. Not so much for CSS, but um but it's you know it's really fascinating. And I forget that like that context that I have is not generally shared, right?
[00:11:03] Tomasz Łakomy: Yeah.
[00:11:03] Michael Chan: There's a lot of people who are like, you know, React is their first introduction to web development, which is awesome. That sounds like a nice place to be.
[00:11:10] Tomasz Łakomy: Absolutely. Like it's freaking excellent that you can start with something that's so polished as React is.
[00:11:16] Michael Chan: Absolutely. Now, I want to talk about your um your coursework for a little bit. Um, because I think that you have this amazing- like you've you've cracked it as far as I'm concerned on actually like learning things and then publishing publishing what you've learned. And that's something that I like deeply, deeply admire and something I want to kind of incorporate more into my life. Um. So you've published like over like 120 A-Kit videos.
[00:11:46] Tomasz Łakomy: Yeah.
[00:11:46] Michael Chan: And and then there's also kind of like blog posts and talks and all that kind of stuff. Um what's your approach to like as you're learning things, then publishing things like as you're learning?
[00:11:58] Tomasz Łakomy: So the way I think about it is that there's two two things here. So first off, I learn amazingly well by teaching. So the thing is that in order to explain something, you have to understand it fairly well. So I I like this saying that I, you know, you can probably find the quote in in in Google and probably do like 5 different authors. So you can quote me. It says that when one teaches, two learn. And I absolutely agree with that. I I think yeah, I think this is absolutely excellent. Like, because I tend to, you know, teach the things that I've learned Recently. So for instance, most of my AWS uh videos on Egghead came from the fact that last year I went through the AWS Certified exam. And I kind of had a feeling that I didn't want all of that to stay in my head. Because it's not it was absolutely worth it for me personally, but why not just solidify my own knowledge by kind of sharing it with others. So that's one thing. And the second thing, I think uh I think when it comes to kind of uh learning and teaching afterwards as a course, as a the video is that when you have recently acquired some skills or you know a knowledge of some tool or framework, you still have vivid memories of the things that you have had to go through in order to learn.
[00:13:21] Michael Chan: Mm.
[00:13:22] Tomasz Łakomy: So those quirks that are not obvious to you, those things that uh right now, because you and I are experienced web developers, so some things may be obvious for us. So I think I mentioned that somewhere else, is that I didn't want to, for instance, create a course about JavaScript from scratch. Because I feel it to be kind of far removed from the experience of a person who's learning JavaScript for the very first time. And I may end up explaining things that I consider obvious, which are absolutely not obvious uh at all. So I think this is an excellent way to kind of one, solidify your own your own knowledge, And also, I think, I hope, producing material, teaching material that is useful for others because I still have this kind of memory and I still able to maintain the same uh connection with the the learner, the person who's starting from scratch.
[00:14:16] Michael Chan: I love that. Like, the idea of of having the content be relatable because it's so fresh to you, um, is is something that's- I know I struggle with, right? Because I I my natural inclination is to feel like, well, I want to know everything. So when I teach it, I'm teaching it accurately. Um, but there's another part of that where if you, you know, if you know it well enough to like speak perfectly accurately about it, it's possible you've lost the relatability of that, of like, you know, understanding kind of what those first steps feel like. And and that can't- that feeling can't be like undervalued.
[00:14:52] Tomasz Łakomy: Yeah. And also, like, for the record, we are not talking about, you know, learning something a week ago and writing a freaking book about it. We are talking about, you know, creating a blog post. We are talking about creating a video because those forms of content, they also allow uh some kind of feedback and they some kind of you know viewer uh learner interaction with whoever produced the content. So you don't necessarily have to become an expert in in a thing. But what I also found out about myself is that I have learned something, I wanted to kind of spread it forward. But while I was literally recording an actual video, I was like, okay, but what if this? What if that? And I went back, I went back to to teaching, uh to you know to learning myself in order to be kind of uh be able to, one, explain this topic accurately, and secondly, to also, for instance, get ideas for the next lessons and also expand and solidify my own skills and knowledge about about the topic. So that's that's hugely useful for me. Also, because of the fact that I end up watching my own videos from time to time.
[00:15:57] Michael Chan: That's something that can't be overstated either, is just how how important these things are for your own retention. Because at some point, you're like, you've been doing this long enough to know that like you're not gonna know it as well, at least not for a while, as you do right now.
[00:16:13] Tomasz Łakomy: Yes.
[00:16:14] Michael Chan: Like after having just read the docs.
[00:16:15] Tomasz Łakomy: Yeah.
[00:16:16] Michael Chan: Now, how do you, um, kind of like, how do you choose stuff? Because I think this is something that can- I don't know. For me, tends to hold me up is this feeling of like, okay, I want to release a- like a course on React. Um, but, you know, if you look at your Egghead, um, kind of instructor-
[00:16:36] Tomasz Łakomy: Page.
[00:16:38] Michael Chan: Page. Oh, man. God knows why it took me 5 minutes to figure that word out. Um, you look at your instructor page and there's a lot of- of seemingly like disparate content. You got stuff on SaaS, you got stuff on VR, you got stuff on, you know, like React and Svelte and serverless. Um, so how do you, I guess, pare that down to like just what you're like learning or thinking about right now?
[00:17:04] Tomasz Łakomy: So I consider myself to be T-shaped. So my area of expertise is frontend and React. I've been doing that for years. But recently, for instance, I've been more and more interested in kind of getting deep into uh testing because I found myself to kind of- I'm considering myself as a product developer. So my job is to kind of create uh products and provide you know solutions for problems, not necessarily to write code. So this is why testing is a huge part of it, because in order to create something that's useful for others, you have to make sure that it actually works. And on the other hand, there's also topics around serverless and AWS because I think one is the future. And I found it find it absolutely fascinating. So the way I kind of see it is that you can go deep. You can go deep in a in a in a topic and become an expert in like CSS. There's so many like people who are deep, deep into CSS and they know more about CSS than I will ever comprehend in my lifetime. But I've personally kind of chosen to keep an eye open on on different topics, on different things. Uh mostly because the tech is changing and is changing rapidly.
[00:18:16] Michael Chan: Yeah.
[00:18:17] Tomasz Łakomy: So I remember my conversation with Joel from Egghead, and he mentioned that he was an ActionScript developer. And as you can imagine, like there are not many ActionScript jobs around. So I think you have to keep your eyes open. You have to be able to expand, and in the worst-case scenario, jump ship. For instance, as I did from Backbone to React back in 2016. Because those things are not going to be forever. Although I think that React has a pretty good chance of being around-
[00:18:46] Michael Chan: Yeah.
[00:18:47] Tomasz Łakomy: —for a very, very long time.
[00:18:49] Michael Chan: Yeah, I I I agree with that sentiment. It feels like even if it's not specifically React, the kind of declarative component model has really captured people's attention and feels feels like something that will move forward. Kind of in the same way that, you know, so much of jQuery has moved its way into the DOM, right? You know, like querySelector and all that. It kind of transcended, and it feels almost like React or the declarative component model is kind of in that same space of like transcendent concept, at least.
[00:19:22] Tomasz Łakomy: So what I've been saying for years, I think at this point, is that we don't know As web developers in general. We don't know how to build web apps because things are changing all the time. But React is very freaking close. And I do absolutely agree, at some point we may end up with something that's going to be very close to React. Maybe it's going to be React. But this model of uh your UI being a function of state, for instance, this is not going to go away because I feel that we finally cracked it.
[00:19:54] Michael Chan: Yeah.
[00:19:54] Tomasz Łakomy: Finally kind of cracked how to implement UIs that are predictable. Because Backbone was not.
[00:20:02] Michael Chan: Yeah, this is really fascinating, the the the idea of of cracking it, right? Where it kind of takes time. You know, the platforms have to send out something, right? And so, we have, you know, we have kind of the the older style of of selectors, right? You know, to to kind of talk about it from a jQuery perspective. And then jQuery came out and it unified- like it gave a unified language for all of those kind of things. And basically, like with our votes, we said like jQuery is the API that we want. So how do we-
[00:20:32] Tomasz Łakomy: Build it into the browser.
[00:20:34] Michael Chan: Exactly. And it kind of feels like the the same thing with uh the declarative component model. It's like, hey, like this is what we want. Like web components was not. And this is what we want. Uh so how- like now that we all agree, like how do we, you know, push that for. And maybe we don't agree on the specifics, but but the the outside API seems like something that we we all kind of want.
[00:20:58] Tomasz Łakomy: Yeah, exactly. I feel like, you know, they are not going to build React into the browser.
[00:21:03] Michael Chan: Sure.
[00:21:04] Tomasz Łakomy: But but but nevertheless, we will continue developing apps following this paradigm for a very, very long time. Unless, you know, AI came comes in and you would be able to say, by the way, just give me a to-do app Just use a, you know, some kind of backend. I don't care. Just give it to me and it's going to be generated.
[00:21:23] Michael Chan: Yeah, yeah, yeah. Very like low-code, no-code type of future.
[00:21:27] Tomasz Łakomy: Yeah.
[00:21:28] Michael Chan: So I want to talk with you about the- you mentioned being like a T-shaped developer, but predominantly your expertise, the top bar of that being in like frontend technologies, specifically like, you know, JavaScript. So, I want to ask, like, how is it that you have been exploring with, like, AWS? You kind of mentioned serverless being the future. And that feels, I think, to me, right, like, as as someone who's kind of grown up in this language of, like, frontend, backend engineers, like, it kind of feels like serverless is like, like, backend, right? Like, like, why do you need to know that? Um, so, I'm kind of curious, what what what captured your interest um there? And do you feel like that's something that that frontend developers really need to be um like looking at for for their careers in the future?
[00:22:18] Tomasz Łakomy: Sure. So, there's two things here. Uh first up, maybe we could clarify very quickly what is serverless. Because this is one of those buzzwords that you hear very often.
[00:22:28] Michael Chan: Sure, yeah, please.
[00:22:29] Tomasz Łakomy: Uh okay. So, for the record, there are servers. So, your backend friends at work, they're not going to go away. So the idea is that serverless- so there's two things here. First up, it's about running functions that uh you don't have to maintain the infrastructure for it. So the idea is that you provide a piece of code that you want to run, for instance, on AWS infrastructure. You just put it as a Lambda function on AWS, and you don't really have to care about where is it stored, what kind of server is going to run this function, but you just want to know that whenever something happens, I want you to run this code. And also you have to pay only for the time that you uh send end up you know executing this code. So for instance, you you don't have to pay for running a server 24/7. And the second tackle tackle on on serverless is, for instance, AWS has multiple managed services. So what that means is that if you want a database, you just whip up a DynamoDB table. If you want somewhere to store your files, you just create an S3 bucket. And so on and so forth. So it's about this kind of idea that someone else is taking care of for you of that. So why am I kind of interested and why I'm not entirely sure if everybody should be interested in something because I'm not here to kind of this give this kind of recommendations. Sure, sure. I do recommend to keep your eyes open. I think it is interesting even for frontend developers for A bunch of reasons. So the biggest reason for me is that imagine that you want to build an entire app. As in you have some kind of idea for an app that you would like to build. At some point it's going to require some kind of database, it's going to require some kind of authentication, you have to, you know, push it somewhere, you have to keep some some kind of storage. And what I found out personally as a developer is that I want to have a database. Okay, I'm opening up a tutorial about MongoDB or something, And after 2 days of exploring MongoDB, I have no idea what I was trying to build because I honestly don't remember anymore. So why I kind of think that serverless is is really freaking interesting for frontend engineers, because it allows you to kind of abstract those things away. If you have a Node.js function that you you want to run, for instance, to generate thumbnails, because this is a very classic serverless example, you just put it as a Lambda function. And that's it. As in, from your kind of perspective, you don't have to care about anything else. You just have a piece of code that you would like to run, and it is going to be around. It is going to cost you, honestly, pennies or nothing at all, because you are going to be probably staying well within the free tier of AWS. Sure. So it's mostly about staying open for new new technologies and kind of exploring what's possible out there. I think it's uh Serverless and AWS allows us to keep simple things simple and also to focus on solving the problems. This is why I mentioned that you don't have to spend like 3 days creating a MongoDB database from scratch. You can just whip up something that is created and managed uh for you. And I it keeps me thinking that I feel kind of more safe because people who are way smarter than me are managing that. So I get to focus on solving and building whatever I want to build.
[00:25:44] Michael Chan: Well, this is really interesting. I think I think you know listeners of this show know kind of my feelings on this. But, you know, one of the nicest things about learning Rails is that it's like a full-stack framework, right? So, so, you kind of go- you go into Rails with the intent of like I'm going to build something. Not like I'm gonna build a to-do app that like keeps everything in local storage and then later I'll make some decision on like what my backend looks like. Like like there's no thing right now that seems to like cover the whole space of like this is how you make a like modern application, right?
[00:26:20] Tomasz Łakomy: Yeah. And I and I know what you mean. Absolutely. Like you you started with an idea, I want to make an app. And afterwards, okay, I have to split it up into those multiple smaller problems of creating storage, creating authentication, and this goal of building an app gets lost somewhere along the way.
[00:26:38] Michael Chan: Yeah. Now, so how does- it sounds to me like there are there are services for kind of like that that full stack backend, right? So, you got like Firebase and and and kind of similar services. Um, but they're very like kind of like a like a closed box.
[00:26:55] Tomasz Łakomy: Mm-hmm.
[00:26:56] Michael Chan: Right? And it sounds to me like with AWS, like you can kind of learn a couple of things that you— that will get you— um get you to that point where you have some type of service. Like it kind of acts as your backend. But you have like all of the services of AWS available to you when you decide to grow that thing.
[00:27:15] Tomasz Łakomy: Yes. Which for the record can be and is absolutely daunting uh when you start learning AWS. Like even when you log into AWS console for the very first time, you see a list of all the services. As the time of this recording, I think it's about 170 or something like that. When this episode is going to- It's wild. Yeah. Appear on Spotify and other, you know, podcast platform is gonna be probably like 200. Yeah, but I think you are absolutely absolutely right. So there's this idea that if you are building an app on AWS and you have an idea for something like, I don't know, even machine learning that you want to kind of incorporate in your app, there are existing solutions for for that. So it's not absolutely easy to learn. And one critique that I have about AWS is that some services have the word simple in their name. None of those services are simple.
[00:28:07] Michael Chan: Yeah, I agree. Uh, now, what was your experience like? You've you've broken a lot of this content down into your Egghead videos and and and courses. And I think you have a new one coming out specifically on AWS, right?
[00:28:23] Tomasz Łakomy: That's correct.
[00:28:24] Michael Chan: What was your experience learning these things? Because, like, you know, as you've mentioned, there's so many services, like AWS is kind of like it like it's almost meaningless, right? Because there are so many distinct services and like you could have two ops teams that like, you know, run an app that like maybe only have like a 5% overlap of the actual services that they use. Um, so how did you navigate uh kind of finding the places that you wanted to focus your attention?
[00:28:51] Tomasz Łakomy: Sure. So a couple of things is that I've learned mostly on the job. Uh the way we kind of build uh new projects and new software at Olix Group is that we are going serverless. So we are embracing Lambdas, we are embracing DynamoDB, S3 storage, uh SQS, SNS, all those kind of services. Cool. So the way I kind of see it is that if you want to build a serverless app, you are going to be just fine not even aware, not even being aware of the vast majority of AWS services. And if somebody is saying that they know every single AWS service, that's not true. I don't think that anybody even at AWS that are even vaguely familiar with all those kind of services because there's just simply too much of them to to learn. So the way I kind of started was on the job.
[00:29:44] Michael Chan: Okay.
[00:29:44] Tomasz Łakomy: And afterwards, I I was encouraged by my manager is that I've I was interested in this in this kind of area and I wanted to be able to kind of solidify my own own knowledge in this topic. So I ended up passing the AWS Certified Solutions Architect Associate exam uh last year. So that was tricky as a frontend engineer because that was completely out of my comfort zone.
[00:30:10] Michael Chan: Oh, sure.
[00:30:11] Tomasz Łakomy: Yeah. So it it was useful because I got this, you know, wealth of of knowledge about, you know, all kinds of different services. And this also inspired me to create most of those Echad videos because I felt I've spent so many hours doing that, might as well just spend some more You know, to record some videos to to share something with with people. I I I ended up uh creating a playlist about AWS Lambda, and I had amazing feedback on it because there were so many many people reaching out to me saying that this clicked for them. This kind of feeling that it is not a very experienced backend engineer with 20 years of experience explaining them. It's a frontend engineer who is vaguely familiar with this at this point because I have a you know piece of paper in my apartment And I was able to kind of connect with them on this more personal level, I suppose.
[00:31:03] Michael Chan: Well, this is a super important topic because I think a lot of people feel like, well, if I just learned it, like what right do I have to like teach it, right? Or uh they might see the material that they studied and be like, oh, well, anyone can access that material. So like they should just access that instead of, you know, you know, what am I gonna teach? But your experience, like the the place that you were at is is kind of that relatable piece and like the, like I'm a front-end engineer who is like learning this thing for their job. Yes,
[00:31:35] Tomasz Łakomy: it's certified. So, you know, there's a proof that I know what I'm talking about.
[00:31:40] Michael Chan: Right. But like you can bring that context and that context is really what makes the the thing that you've made valuable as opposed to just like documentation on AWS, which is like totally devoid of context.
[00:31:53] Tomasz Łakomy: Yes. Yeah, absolutely. So The way I kind of think think about it, that this context is definitely useful. And not only that, like like we talked about before, there is this definitely this gap that people feel that you have to be an absolute expert in a topic in order to you know submit a talk to a conference about it or uh create a blog post. Talks at conferences are difficult and tricky because there's this entire thing about you know going in front of hundreds of people and and speaking and this is. Difficult on a completely different level. But writing a blog post, I I I do strongly believe that it's not as much uh into going out of the comfort zone as a conference talk. So- Yeah. There's not nothing, absolutely nothing wrong with writing a blog article with the things that you are we've just learned about recently, because your approach is going to probably click with somebody who's who's trying to learn. And I think there's that's that's that's thing that somebody sometimes you hear on the web, there's just so many free sources out there. For me, this is the complete opposite of a problem.
[00:33:00] Michael Chan: Yeah, yeah, yeah, yeah. Well, I think I I I think it's it's important too, like, you know, with the wealth of resources, kind of something that that feels like a theme here is is that you need to find people that you trust and find like relatable and then just kind of consume their resources on a topic, right? Like, um because if if you if you share the context, that's gonna make it click for for you in a way that, um you know, maybe someone who has different experience, right, they're coming from a backend perspective, uh it's not gonna click in the same way.
[00:33:32] Tomasz Łakomy: Which which is absolutely valid. Like if you are, you know, we are tribal animals, I suppose. So we frontend engineers tend to kind of keep together with frontend engineers. Backend engineers tend to be, you know, be together with backend engineers. So we kind of, you know, we have different ways of thinking uh about software, about creating software, about programming languages. So I think this is absolutely valid. Like I do know some engineers who are unable to learn from videos. Uh they have to learn, they have to read a book about about something because this is the way they they learn. And I, for instance, I'm not reading many technical books because I found videos to be much more effective for me personally.
[00:34:11] Michael Chan: Yeah, yeah, yeah. And I think that's a that's a good point is is that if you want to get into this, you don't have to make all of the content on a thing. Like, what's the content that you enjoy making? You know, is it writing? Is it a video? Is it a podcast where you talk with people about, you know, the technology? You know, and then just do that. Like, just hyperfocus on that thing and, you know, have fun with it.
[00:34:31] Tomasz Łakomy: Or just tweeting even. Like, one of my favorite accounts currently on Twitter is uh @awsdailytips.
[00:34:37] Michael Chan: Oh, nice.
[00:34:37] Tomasz Łakomy: Which is maintained by Rafal Wilimski, who's actually from my hometown. And he also is an author of Dyanabase, which is uh an amazing uh visual interface for DynamoDB. But the point is that he tweets a random AWS tips every single day, I think even twice a day. And this is such a kind of low level of entry when it comes to both creating that and also consuming that. And I think we need so much more of it because creating a blog post can be daunting because you sit, create a new blog post, and there's this white, uh, you know, space in front of you. And that is absolutely terrifying. What the- what do I do? Because I have so many sentences to write and this is empty.
[00:35:18] Michael Chan: That's why I podcast, because at least there's someone else, uh, looking at that blank page with me.
[00:35:24] Tomasz Łakomy: Yeah, makes sense.
[00:35:26] Michael Chan: So tell me about your upcoming course on AWS. What can people- and we'll link this- uh, what can people learn? Uh, what What experience do they need to have? What are you gonna cover?
[00:35:37] Tomasz Łakomy: Okay, so my upcoming Hack.io course uh is about AWS Cloud Development Kit. So the core idea is that we even talked about it in in the podcast, that if you want to build something with AWS, you end up needing some kind of database, you end up needing some kind of Lambda functions to uh to maintain your serverless backend. And this can be difficult to learn, this can be difficult to configure. And this can be difficult to kind of configure again if you needed to. So for instance, if you are trying to move your infrastructure to a different region, or you want to delete your entire app because for the time being you cannot afford it because it is too expensive and you would like to replicate it afterwards. So what I'm teaching, this AWS Cloud Development Kit, is kind of addressing these problems because it is a way of creating serverless architectures not only serverless, but we are going to focus on serverless specifically in the course with TypeScript. So this is an incredibly badass superpower. So the idea that we're going to do in the course is that we are going to use a single programming language, which is TypeScript, in order to create frontend, backend, and infrastructure for a serverless application. And we're going to do the 95% of the work without leaving our editor.
[00:36:53] Michael Chan: Wow.
[00:36:53] Tomasz Łakomy: So we yeah, we are we are starting by creating a new project. We're going to follow along uh creating a new new app from scratch. We're going to create, deploy, and you know ship Lambda functions to, luckily not production, uh because I am not that brave. But we are going to do do so without leaving our editor. And what I think is absolutely fascinating about this kind of topic is that it makes you Quite powerful as a developer because you will be able to uh kind of transform your ideas about the products that you would like to build, the kind of apps that you would like to create into reality because you would no longer have to you know spend hours learning about how to configure something in MySQL, for instance. You can just go ahead and create a DynamoDB table, ship it to the cloud without even leaving your editor. So I'm really looking forward to it. I I had uh quite good feedback so far about this kind of topic. Many people are excited about about CDK, and I think you are going to like it, my dear listener.
[00:37:57] Michael Chan: I think so too. I think that's you touch on something that that's really challenging in learning serverless, which is, you know, frontend engineers are are very accustomed to doing everything inside of their editor.
[00:38:11] Tomasz Łakomy: Yes.
[00:38:11] Michael Chan: And this is um not always, or has been a point of contention in learning some of the AWS stuff. So I really like that you took that angle of of making sure that most of it, you know, the vast majority of it can be done inside of an editor.
[00:38:26] Tomasz Łakomy: Also, it's so much easier to record.
[00:38:28] Michael Chan: Oh yeah, absolutely. The less time you can spend in like the the AWS console, the the better your life is.
[00:38:36] Tomasz Łakomy: Yeah, absolutely.
[00:38:38] Michael Chan: Um, now, I I know you've uh been giving a talk or or gave a talk last year and continue to give it on on uh Cypress for testing. And um, I mean, unfortunately, you have so many things that we could talk about, like that that we don't have a whole lot of time for each one. Uh, but could you give us like a high level on just like the importance of testing um at this level, actually like running your app inside of a browser?
[00:39:05] Tomasz Łakomy: Okay. So why is it so important is that I like think a few weeks ago I gave a talk uh which is called "Sleeping Better at Night" for the Echid.io talks. And I had a slide in there which is highly controversial. Uh so what I say is that if you take your entire development team and your users, both those groups combined, statistically speaking, no one cares about unit tests. Because when you think about it, if you are trying to order a pizza-
[00:39:35] Michael Chan: It's controversial?
[00:39:36] Tomasz Łakomy: It is. Because like the way you could interpret that is that uh developers, nobody should care about unit tests, which is absolutely not true. But when you think about it, uh if you are a user who wants to order a pizza and there's like 3 different websites, you are not going to think which website has the best test coverage. What you care about is being able to log in, select a pizza, pay for the pizza, I maybe just get it for free, I don't know. So the way I think about Cypress and why I think Cypress and end-to-end testing in general is so hugely useful is that it is allows it allows you to ensure that the core flows of your apps are always working. So for instance, at Olix Group, you cannot merge anything to master if the Cypress tests are not passing. Hmm. So it allows us, if you have tested your core flows, With Cypress, if you put it in in in a CI, well then it's very difficult to break production in kind of this very obvious way. Like if you have non-trivial experience as a developer, you probably have broken production. I I know that I have multiple times. But with Cypress, it is very difficult to kind of create those bugs that I know the site is empty, or you click on settings and the whole page explodes. Because you manage to kind of COVID those flaws and Cypress is using your app as the user. So it's clicking on buttons, putting text in inputs. And I think this is also hugely important because it is possible to have 100% test coverage and a faulty app because your code is not reflecting the requirements it was supposed to shape.
[00:41:07] Michael Chan: Yeah, I really like this uh this description of of what you should be testing. And it sounds like like core testing your core flows with Cypress is is really fascinating because these are the things that like like these are the things that like most of your users are gonna be doing with regularity, right? Like so logging in, creating a an event per se, editing of an event. And if those things work, then like the the things that you're the edges of your application, you know, don't necessarily need the the same level of coverage as long as like the majority cases are are under test.
[00:41:41] Tomasz Łakomy: Yeah, I do absolutely agree. So when it comes to those edge cases, this is why you have integration and unit tests. This is why you are supposed to kind of COVID them with uh with those kind of tests that are very close to the code and not necessarily too too close to the user. Uh because I think you've touched on something that's very important. Like the very first project that I ended up working on, which had automated tests, we ended up running those over the weekend because they took over 40 hours. Whew. Our understanding at the time is that if you had a form, it is important to test every single possible combination of the form fields. So if you have like 10 different dropdowns, you can do the math. It was about 40 hours. This is absolutely not the way of doing end-to-end testing. Oh, perfect. No. End-to-end tests are meant to give you confidence in shipping stuff to production. They are not meant to test everything because you cannot test everything. No matter how many unit tests you have, no matter how many uh end to end, no matter how big is your QA department. You will have bugs. But my goal as someone who is very interested in Cypress is to have zero non- uh kind of obvious bugs that end up on production environment. I don't want that. Not anymore. Never again.
[00:42:56] Michael Chan: Yeah, that's really interesting, especially like when you talk about dropdowns, there's so much user-generated uh content or or user-generated uh options, I guess, in forms, you know, that you would have to run those oftentimes for like every organization that's actually using your service.
[00:43:14] Tomasz Łakomy: Yeah.
[00:43:14] Michael Chan: Um, which is not possible. And so, these obvious bugs are are really interesting because they kind of give you a backstop and kind of ensure that people aren't going to have an extremely bad experience using your product. Yeah,
[00:43:28] Tomasz Łakomy: exactly. Like, I don't know, you log into a bank and the page is broken.
[00:43:32] Michael Chan: Yeah.
[00:43:32] Tomasz Łakomy: I am canceling my account this very moment.
[00:43:35] Michael Chan: No, I I I I kind of classically suck at at at knowing what the terminologies for testing are. But do these fall into like smoke screen tests? Is is or-
[00:43:47] Tomasz Łakomy: Yes. Those are smoke smoke screens. So, of course, with Cypress- okay. So, the way I personally think about it, and again, the lines are blurry. And I don't care so much about the definitions. What I care about is, you know, shipping software that actually works. But given that, uh the way I think about it is that smoke tests are tests that are meant to test your very core flows, and those are running ideally against production environments. So we actually have that at work, and we have tests that are, you know, logging to production environment, performing some actions, and making us aware that something is broken and making us confident that something is not broken. Gotcha. And this, in my experience, should be about like 20% of end-to-end tests. And there are also some other tests which you might call end-to-end tests or integration tests— I don't really care this much— where you get to control the backend because Cypress allows you to kind of kind of control the backend response. And this is where you test What's going to happen if I, you know, click on create a tweet and the backend is broken? Like, is it going to save a tweet? Is it going to, uh, I don't know, abandon the tweet? What's going to happen if I try to edit a tweet? It's not going to work, but-
[00:45:02] Michael Chan: That's a larger issue, right? Oh, man. Uh, well, um, that's that's super good insight. I think that uh I'm- it makes me feel better personally to know that I'm not the only person who finds those lines between the like types of testing uh super squishy and like sometimes kind of defined in opposition to other definitions.
[00:45:31] Tomasz Łakomy: Yeah, I honestly don't really care about the definitions, to to be fair. This is not this is not so much, you know, important. I do remember one interview that I was, you know, uh looking for a job a couple of years back, and I was asked what is the difference between unit and integration tests. And I was like, well, yeah, I mean, there is some, but depending on how you define and yada yada. And this is a different topic. And it's I could probably, you know, go to Google right now and find 5 different articles explaining the same thing. What matters is shipping software that is uh actually works and allows you to sleep better at night because you are not getting a random phone call at 2:00 AM that your login form is broken.
[00:46:10] Michael Chan: And that's something we can all agree on. That's something that we all want in our life. Tomasz, it's been an absolute pleasure. Um, I like to uh end, and I think we've kind of talked about it, but um, just with a question of like, what are you excited about um for the next maybe like 3 to 5 years of software development? How do you feel, um, you know, things are going, what people should keep an open eye towards?
[00:46:34] Tomasz Łakomy: So what I'm personally excited is more and more solutions that allows you to focus on the problems you're trying to solve. So I I mean, for the record, that was a joke when I talked about you know having an an an AI where you can talk to it and it's going to create you a website. But I'm honestly kind of excited about not necessarily no-code kind of solutions, but less-code kind of solutions. So I think that was I think the CTO of of Amazon said it uh on stage is that in future, we will ship and write only the business logic. And I really looking forward to this kind of future. It's happening now a bit, but the way I kind of see it is that we engineers are problem solvers, and I would love for us, for all of us, to be able to to focus specifically on solving problems instead of debugging, I don't know, random connections between things in your system. So I'm really excited to kind of see more of more of those things popping up in the future. I'm sure they will, because this is basically the overall trend that we've been seeing for years now. True. And also, I'm really looking forward in terms of like JavaScript and browser, as we also touched on it, how this React way of creating components on the web is going to evolve. At which point we're going to see something like that kind of embedded into the browser. Because may not web components, because I I don't want to talk about those, but- There's going to be something around this idea.
[00:48:08] Michael Chan: Sure.
[00:48:09] Tomasz Łakomy: We're kind of excited for it because you mentioned 3 years or 5 years. I remember React as it was 5 years ago. React as of today is completely different. Although there have been a surprisingly low amount of breaking changes. And for me, this is a huge testament of the amazing work that the React team has been doing. Is that I can I, for instance, when I was recording a course about Cypress recently, I wanted to have some kind of legacy codebase to teach it on. So what I did, I went to GitHub, found a legacy- kind of legacy, couple of couple of years old project written in React, and it just worked.
[00:48:48] Michael Chan: Awesome.
[00:48:49] Tomasz Łakomy: Even though the project was like, you know, 3 or 4 years old. So I'm really kind of excited to see more of that happening, to have this more stability on the web instead of trying to debug how do I get this element by ID in Firefox.
[00:49:02] Michael Chan: Well, I love that vision. As you continue to explore the space, where can people uh find your work, find your thoughts um as you move forward?
[00:49:14] Tomasz Łakomy: Yeah. So, the best way to kind of find me is on Twitter, uh because I spent way too much time on Twitter. Uh so, my Twitter handle is @telacome. So, I think the link is going to be in the show notes. Uh, you can also find my videos on uh ehead.io/instructors/tomasz-lakome or just you know search for Lakome or Tomas in the the search box. As well, I have plenty of articles on dev.to. I also have a blog, uh telekomme.com, which I've abandoned a while ago and I have to resurrect it because I found kind of dev.to to be so much more convenient than you know shipping stuff to my own blog, which I've honestly forgot about. And the best way to kind of reach out to me is via Twitter. My DMs are open, and I have this principle that they will always be open. So if you have any questions about React, AWS, testing, feel free to to get in touch with me. I would love to talk to you.
[00:50:09] Michael Chan: Awesome. Awesome. Well, it's been an absolute pleasure today. Thanks so much for sharing like what you're up to and-
[00:50:15] Tomasz Łakomy: Likewise.
[00:50:16] Michael Chan: —like all the stuff that you're thinking. It's been uh it's been a delight. So, thanks for being here.
[00:50:20] Tomasz Łakomy: Yeah, thanks for having me.
[00:50:21] Michael Chan: This has been episode 97 of React Podcast with Chantastic and Tomáš Walkomý. Find the people and projects mentioned in this episode at reactpodcast.com/97. Thanks to our sponsor, Infinite Red. They're on your side and ready to help finish, fix, or furnish the app of your dreams with great patterns and practices for the long haul. Visit react podcast.infinite.red to get expert help, 2 tickets to Chain React Conf in 2021, and a beautiful functional app today. If you like this show, there's a fast, free way to demonstrate your support. Leave us a review on iTunes. It's the best way for you to let me know what you think we're doing right and what we can improve. 2 to 3 minutes of your time helps us make the best show we possibly can. As always, links and show notes for all episodes are available at reactpodcast.com. This episode was edited by Mikael Delport. It was produced by Mikael Delport and Sarah Jackson at Speck, a network to help you level up in design and development. Check out spec.fm for other shows that are sure to fast-track your career. I'm your friend, Chantastic. Thanks for listening. We'll be in your ears again next week.
chantastic.fm