3 Minutes with Kent

3 Minutes with Kent

By Kent C. DoddsTechnology
Download on the App Store

All 3 Minutes with Kent episodes

  • Use a password manager

    Hey friends So today I just want to talk about password managers really

    quick So like, this is gonna be pretty short but I just wanted to beg you
    for all that is good in the world. Please use a password manager. I use one
    password. I've been using it for a few years and I love it.

    I can't even imagine my life without this. Especially with my wife and I

    who we share a lot of logins for like our insurance and stuff like that,
    like I just can't even imagine having to manage that between the two of us.
    We used to have like a little algorithm to generate the password based on
    the service.

    It's so like it that we just memorized it was no good. Use a password

    manager. Now one thing that I wanted to mention about password managers is
    like one password is you can actually save your one-time passwords or like
    your two-factor authentication stuff within one password. And that sort of
    defeats the purpose of QFA but not exactly I'm actually fine.

    I putting it directly in one password. It's it is so easy. It's actually

    makes two factor authentication just like dead simple. And if you have a
    secure enough password for your,One password then not even one password
    could get into that. Like it's it is really encrypted and and secure.

    I I'm not afraid of losing access or losing or having my one password

    credentials hacked or anything like that. I'm really confident in that. And
    so given that I am all for the convenience that that storing these
    passwords in one password along with the two-factor authentication codes
    and just makes it so easy.

    Man, I love it. I love it. It's so awesome.Definitely if you are not using

    a password manager seriously like you think that it's gonna be a lot of
    work and it will but it's something you can do over time and you will thank
    yourself over and over and you'll maybe maybe you'll thank me.

    If you're not using a password manager right now, then shoot me a message

    and ask me or and like after you've started using it and say thanks can't
    because you will. It is so great. All right, hopefully that is helpful have
    a wonderful password manager day and we'll talk to you later.

    Bye.

    3 min
  • Sudoku and methodical debugging

    Yesterday I taught my son Sudoku because he told me that he enjoys math

    games which was you know, exciting for me to hear and so he yeah, we we
    just had some sudoku puzzles that I'd printed and laying around and so my
    wife was working on one and and I was working on one and we were just
    talking about how we solved Sudoku puzzles and I just mentioned that I
    pretty much just go with very methodically and I was I was explaining a
    very methodical process for solving these puzzles and maybe it's not the
    fastest or anything.

    I don't really take notes or any.Like write the numbers and or any you

    know, the possible numbers it could be whatever I just go yeah just think
    about okay can this number be here no it can't okay let's just move on to
    the next thing and and eventually you get the whole thing filled out and it
    works out pretty well and I was just thinking about that and how we do the
    same thing or I find the most effective thing for me when I'm debugging is
    to be very methodical about it and and trial and error and and mostly like
    I find that most.

    Effective when I troubleshoot in such a way that makes the as few changes

    as possible and then sees what impact that may makes and then slowly we get
    closer and closer to the part of the code that where the bug resides in
    rather than just making a ton of changes and you know shot in the dark and
    hope that and that things work when I was early in my career, I really
    spent a lot of time just changing all sorts of things in the hopes that one
    of those things would fix the problem and what happens when you do that is
    you.

    Change a bunch of things and and sometimes the changes that you make are

    sub-optimal but you're just like doing your best try to figure out what the
    problem is and so if you make a bunch of sub-optimal changes and one of
    those fixes the problem, then you may not actually go back and fix all
    those sub-optimal changes that you made you just may end up shipping a
    bunch of stuff optimal things leading to the potential for more bugs in the
    future and completely different ones potentially and so being very focused
    when you're debugging and just change one thing and then see if that works
    and ifIt doesn't then then move on to the next and another thing that just
    for some reason I was just thinking about is trying to find where the last
    time in place where the code was working properly if this is like a
    regression or something can be really helpful to so as your debugging be
    very methodical about it just go step by step and and don't skip or don't
    try to do a bunch of things at once and and hopefully you figure out what
    the actual problem is so that you can have a better solution for that
    anyway hope that's awful have a wonderful.

    Thing bye.

    3 min
  • List out different things that appear to do the same thing

    Hey friends so I'm rendering a blog post today and I learned to something

    that, I thought you might find interesting. I'm not specifically the thing
    that I learned but just the thing that I learned about when you're trying
    to teach something. Anyway, so the if you're entering something new you're
    getting into a new space and and there are a lot of things that seem
    similar to you and you're like, I don't know what to use this or that or
    whatever and they just seem like they satisfied same use cases.

    It can be really useful to list out and kind of try to categorize all of

    those.At a different use cases or the different things that seem similar So
    specifically I'm talking about functions with type script. Now with regular
    JavaScript, there are lots of different ways to write functions, you've got
    properties on objects, you have methods on objects you have class methods.

    You have arrow functions. You have function declarations and expressions

    and so there are a lot of different ways to write functions and then you
    add typescript on top of that and you can write a typing for a function and
    then you can add that as an annotation on a function expression.

    Lots of different ways to.Type these things too And so it was just kind of

    boggling my mind and so I'm just listing them all out here are all the
    different ways to write functions and type script. And I'm learning that
    there are certain realizations that kind of come upon you as you're
    listening these things out.

    Some things that you hadn't really considered and you get a better

    understanding or at least I'm getting a better understanding of when these
    different things are necessary or useful and then when you're all done, you
    have a reference to to go luck and you say, oh I need to do this.

    I remember that's like one of the ways that I read.A function whatever so

    I'll just go look at that reference that I wrote And there may be
    references sort of like this in existence In fact, I'm looking at the
    TypeScript Docs right now that talk about functions and it does have some
    of the stuff but writing it yourself you you come up with your own examples
    and and you think about things done a little different way.

    It just there's something to be said about the process of creating this

    content that helps you really solidify it a lot better. So that's what I
    would suggest to you if you're entering something new or maybe even
    something old I've been using TypeScript for a lot.Of time. This is always
    bugged me.

    So you're just like not super solid on something especially when there

    multiple ways to do the same thing and you're not sure about the use cases
    for those different ways. Try to list them out and you could do this in a
    box post or just in your own notes, but try to list out all of the
    different ways to do the same thing and you'll learn different things about
    them.

    I hope that's helpful and I hope you have a fabulous awesome day Ciao.

    3 min
  • Remote working tips

    Hey friends. So in the three minutes podcast channel on the KCD Community

    on Discord, I got a question from Sandrina about any tips for switching
    from working in the office to working remotely. And I made that switch
    several years ago. I when I was working at Alianza, I worked from home a
    couple days out of the week sometimes and and then when I worked at PayPal
    part of the the deal was I didn't want to move to California and so,They
    said okay we can have you work remotely I was joining a team that was
    halfway remote anyway and so it ended up working out nicely that way that
    wasn't a very normal thing to do and Sundrino also mentions that like a lot
    of people are kind of being forced into this remote environment and so it
    makes things a little challenging so just to some tips for me on working
    remote since I've been doing it for like five years now maybe more.

    I think one of the things that,Helps me the most is being able to have a

    designated space. I do have an office but I don't think you need an office
    for this to be successful. So you have a special place that is just for
    work and when you're there you're working because one of the big challenges
    with working from home is there's not really a separation between life and
    work.

    It's all just kind of been in the same space. And so, it can be hard to

    stop working or hard to start working. And so having a special place that
    you say,Okay when I'm in this position or in this spot of my home that is
    working time. And when I leave this spot that is done with working time.

    That helps a great deal. I have four children and so that can be a

    challenge. My wife is a full-time mom and so she's able to take care of the
    kids, but of course the kids want to interrupt me throughout the day to
    show me stuff and I'm more than happy to be interrupted by them when I'm
    able just like when you're in an office, you get interrupted by coworkers
    all the time telling you about like what happened in the soccer game.

    Or whatever like different things that may or may not be relevant to your

    actually work, and I see my kids interruptions as basically the same thing
    except. I actually care about them. I of course, I care about my coworkers,
    but I love my kids. So it's different. So, I don't stress over those
    interruptions.

    And in general, they're pretty respectful. If if they weren't like if my

    family wasn't respectful my work time, then I would need to have a
    conversation with them about that and it does take a bit of a team effort.
    So if you're family isn't being respectful of your work time, then have
    aConversation make that work.

    All right, good luck.

    3 min
  • Writing Excuses: Smart Promotion

    https://writingexcuses.com/2021/02/21/16-8-smart-promotion/

    Hey friends. So some of you may not know this but I am a hobbyist novel

    writer and I listen every week to a 15-minute podcast. Well, it actually
    they end up talking for like 25 minutes normally but they call it the 15
    minutes long because you're in a hurry and we're not that smart but the
    episode for this last Sunday was episode 8 of season 16 and it's titled
    Smart Promotion and they're talking about promoting yourself as an author
    but I thought some of the things that they talk about in here.

    Are really really applicable to promoting yourself as a software engineer.

    And this isn't only if you want to be like a content creative or like me or
    anything like that, but just in general, how do you promote yourself so
    that you can have the flexibility and power to do the things do the work
    that you want to do?

    And that's all I wanted to share today is going to be a quick one. So, I'll

    provide a link to this episode in in the notes for this episode of three
    minutes we can't but yeah, so,I really want to convince you to listen to
    this so, I'll just read the background here so it says let's talk about how
    to promote yourself and your work and how to do it well.

    The tools we use for this continue to involve and in this discussion

    discussion, we'll cover things that have worked things that have stopped
    working things we use now and strategies we apply to not sync beneath the
    turning disruptions and demick to promoting books or really anything else.
    And that last bit or really anything else seriously this is just a really
    great short.

    Podcast episode that I strongly advise that you give some time to listening

    to because it's really solid advice. Yeah, it's 24 minutes long. So give
    this a listen and you won't regret it. And yeah, I hope that's helpful and
    useful to you have a glorious day and we'll chat with you later.

    3 min
  • Reverse DNS in real life

    Hey there friends. So this is another one of those computer science topics

    in the real world. So the other day I was picking up my son from school and
    they have this the very efficient system for picking up kids because it and
    they don't have school bus or anything.

    So everybody's picking up their kids at the same time. And so they have to

    be efficient. And so you put this number on your car and like windshield so
    that they know and then they look it up in their phone and and send a
    message to let that kid.

    Know it's their turn to come out for their parents. And my son who was with

    me the other another son who I wasn't picking up but he was in the car with
    me any said, why did you like what how does Nathan know when to come out
    and I said well we have this number and that's on my on the car and and
    they look at that up and some sort of spreadsheet or an app on their phone
    or something and then they send that number over to the people who tell the
    kids that it's time for.

    Them to go. And and I realize that that's very much like DNS. So we have it

    except sort of in the reverse. So where it's easier for us to do a number
    because then they don't have to like we don't have to tell them or they
    don't have to read the name and then misread it or something a number is
    just easier for them.

    But it's like the opposite of DNS where we take a URL or a domain and so

    like Google.com or or something. And and we look it up in a table that
    have.As that domain name associated to a specific IP address. And and once
    you identify that IP address then the packets and everything on the network
    can go find the server that respond or that is assigned to that IP address.

    And yeah that was just kind of an interesting interesting thing we just

    found it inefficient way to pick up our kids by using reverse DNS where we
    give a number and that maps to a person. So anyway,Just thought that was
    kind of interesting and if you don't know about DNS that's something that
    can be useful to know about.

    So go give that a look. In fact, I'll just check really quick as MDN have

    an article MDN is just awesome about these sorts of topics. So let me see
    if they they do have a web docs glossary and they have just a very short
    thing on DNS, but it also has some links to to other articles and things
    that you can go look it up.

    So yeah, look at the MTN web docs. Okay, take care bye.

    3 min
  • Introducing KCD Community Meetups

    https://kcd.im/meetups

    Hey friends, sorry that I didn't get one of these recorded yesterday was

    just busy I guess but today I want to tell you about this new thing that I
    worked on this last few days called Meetups so you probably know what a
    meetup is or like what we typically think of where people meet up and and
    talk about a specific subject but I was intrigued by the app clubhouse
    that's been hyping up recently and the just the idea of getting people
    together to talk about things audibly and,I realized that like compounds
    doesn't do a whole lot more than what I have in my discord, but there are
    some things that I can do with my bot to facilitate that sort of experience
    for people more frequently and so I decided to work on that and that's what
    we're calling meetups and so meetups are like the the goal is to help
    develop friendships within the community to make the world a more pleasant
    place for all of us, so that's the basic idea, but what you can use meetups
    for is basically boundless so long as you're following the code of conduct
    you can.

    Talk about anything you could play a game together you could collaborate on

    a solution like mob programming or you could practice a talk or you could
    talk about a movie or a book or give a demo of your work or chat about
    world events or whatever else you could imagine and that's kind of the idea
    is that it's totally open-ended in the KCD discord.

    I have my office hours. I also live stream there and it kind of felt weird

    because the KCD discord is more than just KCD it's there's so many people
    in there in fact. I'm not even the one who's sending the most messages on
    there anymore.Um and so it just felt kind of odd to have a special place
    for me and not for everybody else and so now my office hours and my live
    stuff are just meetups and anybody else in the whole community can do that
    same thing if they want to and just using the regular meetup command so I
    just introduced it today.

    I just made a video that I'll link you to that you can go watch and see

    kind of a demo of what meetups are and how the bot works with it and I'd
    love for you to go try it if nothing else you can at least go and follow me.

    Using the follow me channel on discord so that you can be notified when I

    start I start a meet up and you can join me whenever you're available it's
    kind of fun and I hope you find it interesting and really I just want to
    connect people especially during this time where we're not really as
    connected we don't just like meet people randomly this hopefully can be a
    place where we can connect more with humans so anyway.

    I hope that's helpful and I will see you all in the future goodbye.

    3 min
  • Checkout MDN to replace boredom with learning.

    https://mdn.io

    Hey there so today I wrote my blog post and in the process of doing that I

    realized that I was doing something kind of weird. So, I have this project
    that's the KCD discord bot and the bot is responsible for a whole bunch of
    things that happen on my discord and it's awesome.

    You'll meet the bot the it's the first thing that you experience when you

    join the discord because you can't join the discord without answering the
    bots questions. So I was making some changes to it and I in writing my blog
    anytime I write my blog. I'm always going to be writing about something
    that I'm working on recently or something.

    I've been.Thinking about a lot recently or whatever. And so I found some

    code that I'd written in the bot and for a listifying an array of elements
    for display. So you'd say, you know, we have a thanks command so you can
    think a list of developers for a specific thing and we want to have the bot
    say thank you these list of developers for or these list of people for this
    thing.

    So you have to have the common the right place you need to and whatever.

    And so I decided hey, I'll just explain how I wrote this because it was
    using a reduced and it was.Actually really interesting and good use case
    for reduced because the doing the same thing with a for loop was kind of
    more complicated.

    And so I was writing it and then I remembered oh yeah, there's like a

    built-in thing and in the in toll library built into JavaScript for
    formatting a list. And I think I probably used that or at least explain
    that and then explain why I needed to write this thing myself.

    And as I was writing the blog post, I realized I didn't need to write the

    listified function myself or at least I didn't need to write the inner
    workings of it. I could just wrap theList format utility that's built into
    the Intel API in JavaScript. And so, I I tried that out and it ended up
    working and so what I wanted to share with you today was that sometimes you
    might be doing more work than you need to because the platform already
    gives you a lot of really interesting things and especially the Intel API
    has a lot to offer that I find myself and others re-implementing like when
    it comes to dates and stuff like that too like formatting things for
    display is a lot of what the Intel API.

    Allows you to do So that would be something to go give a look at it's kind

    of interesting and yeah, sometimes the platform is lacking in certain ways
    but often like this is platform that we build on is pretty capable and
    there are a lot of really cool things that it can do and spending some time
    on MDN is a good use of your time.

    So next time you're stuck in a checkout line or something if you do that

    thing during coffee I guess but next time you're you're stuck in a line or
    or just waiting for something go check out FDN and look up some stuff you
    haven't learned before. It's aGood spot.

    See ya.

    3 min
  • Introducing MDX-Bundler

    Hey there friends. I'm just out doing some shopping and I thought I'd

    record today so right now I just want to talk about MDX Bundler. This is a
    open source library that I just created. Yeah a couple days ago and it's
    pretty cool. Basically a lot of packages and things that you have for
    compiling MDX.

    Oh actually if you have never heard of MDX, it's like marked down except it

    allows you to import react components and render those and what's awesome
    about that does it means that you.Get all the benefits of easy content
    creation and and management with markdown because it's just such a nice
    syntax for that.

    But then you get all of the flexibility of react components and so you can

    have really cool demos and things that are kind of interleaved with all the
    content that you've got. So MDX Bundler.Is kind of unique because it
    enables you to bundle all the dependencies for a particular post because
    what with MDX what you're looking at is actually like JavaScript.

    That's what it needs to get compiled into. And JavaScript often has to

    benefit. So, of course, it'll have react as it dependency because this it's
    going to render react components. But then like maybe you're rendering a D3
    chart and so then you've got D3 in there, and maybe you're using some sort
    of library to like load ash or something like that.

    So you've got,Dependencies and most MDX compilers won't handle those. But

    like, I mean, you've got Gatsby and everything and next like pretty much
    everywhere it ends up being put together in tandem with a another framework
    or something but this is totally meta framework agnostic where you're able
    to have it generate the code and you have control over whether certain
    things are considered global variables or whatever and so you generate this
    code either during build time or on the server you send that to your client
    or even ifIt's server side rendered then you'd send it to the client which
    is being rendered on the server.

    And and then you'd provide any of those libraries as quote unquote global

    variables. They're not actually globally because you're actually passing
    them as variables. Anyway, the example in the readme is a pretty
    straightforward hopefully so if if that didn't make any sense you can go
    take a look at that.

    But I'm excited about NDX Bendler. I'm gonna be using it for my blog that

    I'm rebuilding in Remix and it just makes things really quite
    nice.Actually. So go ahead and give that a look. It's MDX Bundler on my
    github, and I hope that's interesting. Bye.

    3 min
  • Stick with your worthy goals

    Hey there friends. So today I want to talk with you about Typescript. So my

    friend Tanner Lindsley was tweeting about how it's kind of frustrating.
    He's been into typescript for the last few months doing some open source
    stuff and and if you've never written like a generic abstraction in
    TypeScript like a library or something then you may not know that Apple
    type script is way way easier than library type script.

    Making something.Eric and and can handle all sorts of different use cases

    and stuff in TypeScript is very very very difficult and that's not to you
    know, not or under appreciate the difficulty of just type script in
    general, but library type script is just very much harder in general not
    not always been in general.

    So he's just been kind of frustrated and I definitely can relate to this

    frustration because most of the TypeScript that I have written has also
    been library level type script and it is frustrating.Especially for people
    like tenor and me who've been doing JavaScript for quite some time and we
    feel pretty confident with it.

    It can be really frustrating when like you feel like you have to relearn

    everything. In fact, I've been doing a lot of snowboarding and I decided to
    get a private lesson and I knew that I developed a bunch of bad habits and
    stuff but man, it was it's just really frustrating when I feel really
    proficient as a snow border, but then I have to break all these bad habits
    and so I end up being a worse.

    Snowboarder for a while while I'm learning the right way to snowboard

    efficiently. And I think it's sort of the same as same sort of feeling that
    Tanner and I are having around typescript and and what I want the reason I
    wanted to bring this up today was often you are really comfortable and the
    framework that you're using or the the tools or technologies that you're
    using in your day to day job.

    And occasionally, you have to jump into something new and new is not

    necessarily bad.But it does mean that you're going to slow down for a
    little bit and you have to be really patient with yourself when you do
    this. Otherwise you can just be a very frustrating experience and I think
    most of us have probably had an experience like this before but what I
    would suggest is if the goal is worthwhile then stick to it and you know
    find people to talk with about your frustrations because maybe that that
    can help but if it's a worthy goal then stick to it just power through and
    eventually you'llDevelop the experience that you're hoping for.

    Good luck.

    3 min