Day in the Life of a Senior Software Engineer | mentoring juniors all the way to BIG TECH
598 segments
You might have to use strength on him.
>> [laughter]
>> Physical force.
Putting his backpack and put a jacket.
Feel like I'm a bad parent for letting
him watch so much TV.
>> [laughter]
>> And just in the morning?
Is there anything you said you were like
I'm not going to do this when I'm a
parent. My kids never going to do this.
>> Watch TV.
>> [laughter]
>> No, okay. So, what happened
I didn't let him watch TV, right? And
then like
my wife
I don't want to blame it on my wife, but
My wife took him to her friend's house
one day.
And then all of a sudden they came back
and they have a son, too.
And all of a sudden they came back and
he wanted to watch TV all the time.
That's how quickly the switch happened?
Yeah.
Maybe not, but
maybe I let it happen.
You don't got what this morning? Like a
schedule?
I don't have a meeting to schedule, so
we don't have to do anything.
I know we're going to get
Try
Yeah, okay. I got you.
How do you turn this around for selfie?
Uh there's like a a button [music]
uh on the screen like on the top right
corner.
Oh [ __ ] damn I'm so tired, bro.
You know what? It's all good.
So, let's get some coffee.
Or let's get some coffee. Let's do it.
Yeah.
You want a hot one or a cold one? Uh
let's go cold. We're going to try this
cold.
I was thinking cold.
The best coffee machine
See, I'm I'm not I'm not a balanced
dude.
>> [laughter]
>> Not firing on all cylinders? Yeah.
>> [snorts]
>> Yeah, but uh
a lot of shit's been happening, you
know? We've been um
going through a lot, you know?
A lot of changes, especially for um
something's going on with Mini right
now. I think he's out of commission for
like a week or something.
He'll be back. We'll uh
we'll announce something soon, but um
just having some um issues.
And but you know, we're getting back on
the bike. We're going to
forge forward no matter what. Just like
anything, you know?
Keep this channel alive.
But um Mini will be here in a couple of
days.
But um he's going through something a
little bit sad, but it's okay.
We'll we'll make it through.
There's so many unexpected life that
happens all the time, unexpected things
in life, and uh
>> [snorts]
>> I mean
I'm happy we had the channel to like
help him, you know?
Uh
and like financially or whatever he
needs, like we're here.
And uh
he'll get through it. And um it's good
to always like, you know
be working
you know, have you know, everything
there's so many things that happen in
life like unexpected like
family member
your kids braces I don't know, you know,
[laughter] like
you always have to have like some money
set aside to
help out with situations. And the only
way to do that is to like
work.
But
there's so much [ __ ] that happens.
Is that your uh push for everyone having
a emergency fund? Yeah.
>> [laughter]
>> Within that year or 2 years
like what have you seen as far as the
mentees coming in with like with AI
skill set They're amazing. Like I'm
learning things as well, you know? Like
this whole thing about like using tokens
and all this kind of [ __ ] is like
different, you know, like coding is not
a free thing anymore.
>> [laughter]
>> It's like
I pay money for these API keys or these
call calls and [ __ ] It's like
it's weird like
cuz I always thought, right? Like code
like especially like iOS development or
like React Native development
you have to be like a first world
country to like do this stuff because
what I always think about coding is like
you're solving first world problems.
And um
like you need a MacBook to work on iOS
stuff, right? So
that cuts like your competition in half
or some [ __ ] right? Now coding is like
I have to have like $100 of credits in
GPT or Claude or Opus or whatever
to start programming. And it's like
that cuts your competition as well. You
know what I mean?
Like sure there are free programs and
stuff, but it's
it's not a free thing. And you need
money to do anything in life nowadays.
And to get that money you got to work
and you got to keep it moving, you know?
Like
you know
hopefully the company pays for it for
you, but maybe if not you got to
realize how to do this. And look at this
[ __ ] [ __ ] He parked right in
front of my car.
>> [laughter]
>> What would you say like to somebody who
is
getting into it? Like does it change
your like approach or would you say like
hey you need to have some money for
these tokens or
>> No, no. I think what we what we can
provide is the free [ __ ] like what you
like understanding the free part of it,
right? Understanding the basics,
understanding what you need to actually
know to use those tokens.
Cuz once you if you just hop straight
into like using tokens and stuff
sure you learn how to build things but
you don't understand how it works. And
understanding how it works is the most
important part about building anything,
you know?
Like
you spend more time on the last 1% than
the 99%. Everybody's going to tell you
that in coding, right?
And um
the last 5%
is the hardest part and that's when
people quit. And but that's what makes a
product deployable or not deployable.
You know what I'm saying? So
uh sure you could scaffold the whole
project, but actually understanding the
code and finding where the bugs are and
finding the right questions to ask is
where I will come in and help you in
that direction.
Anyways, my name is Phil.
I wrote my first line of code after the
age of 30.
If you have any comment about how you
code nowadays, please let me know in the
comments. I'll respond to every one of
them. Like, comment, share, really helps
the algorithm. Subscribe if you haven't
already.
And just remember, if I can do it, you
can do it, too. Coding saves lives.
I've been pretty impressed with the
people
building some things in the walk lab
just to see what they come up with at
that like just
creating something only after watching
your videos.
>> [laughter]
>> Hopefully it's not just a bunch of AIs
lobbed, though.
I saw this as a green arrow.
So, I thought we could just turn and
then make the U-turn like this.
For the bus?
Right when I got in here it turned red,
bro. If you got an email from such and
such AI
says hey we want
to sponsor your videos. Who do you Who
would you
want it to be?
From what you've seen out there?
Nobody. Nobody? Yeah.
I mean I don't know. Like we we get a
bunch, you know what I mean?
But
we don't need sponsors. This is DIY
[ __ ] dude.
We're the punk rock of
[ __ ] coding, man.
This is DI- DIY as hell, man.
>> [laughter]
>> Do you know when you buy like a new
MacBook or use a new service and and
then
you like agree like hey or like it's
like optional
would you like to share analytics with
this Oh, yeah, yeah, yeah. Exactly what
you're saying. And everybody does it for
free, right?
I don't click I don't click I don't
click that check mark, right? Because
I'm like it's my data, you
>> [laughter]
>> But like people like that's free sausage
you're giving to that company.
You know what I'm saying?
Like that's just your it's optional, but
you're like hey no I'm you can you can
use this data. And then if you read that
term it's probably like
bro we get to hack your computer and
take all your [ __ ] you know?
>> [laughter]
>> But um
what if like we
had a service where instead of agreeing
to share the data for free
you
can click and then you can uh share the
data with us
and then we process that data
of the analytics of like when the
MacBook crashes or blah blah blah blah
and um
and then you you compile like this big
list of data and then you're like and
then you go to a company and you're like
yeah, these [ __ ] didn't agree
to give the data to you, but they agreed
to give it to us.
And we'll sell it [laughter] to you.
And then and then you give the money
back to the people, but you keep you
keep some of it, right?
So uh But
I mean this would be a crazy idea, but I
think this would solve a lot of the uh
issues of like people just
being blind giving free data to these
big
tech companies.
I don't It reminds me It reminds me of
like uh
conglom- not conglomerate, but
think about with the
like the mod community for a game. Yeah.
>> Like
the latest
uh Oblivion game comes out or whatever
it is. Yeah.
And it's full of bugs.
And people start fixing it. And then
once
they just got the company just got to
log on and be like, "Oh,
this guy who's really passionate about
our company Yeah. fixed this bug for us.
And now we get to take it and say it's
ours.
Or make that that fix. Yeah. So
I think this could be a
I It would It would take a lot of
planning and thinking on how to do it
and see the legality of it.
But it could actually be like
a unicorn company, I think.
I thought about this idea like so long
ago.
I was saying like there's another idea
that I had like um
especially in Korea, like do you know
like every single store has their own
point system?
Mhm. What if you put that in like some
kind of blockchain where all the marts
are like
together?
And you can use points at every single
mart within your blockchain or whatever.
Oh, I see. So like
you know, like uh
you know, like cuz there's so many
independent markets in Korea.
And you know, like if you move, you
don't get to use those points. You know
what I mean? Hey, Robert.
Yeah, how are you? I know that
>> different.
>> I know that WordPress comes in like uh
you know, like the source code and
WordPress comes with a lot of
extensions. And I know a lot of the good
WordPress developers, they just remove
all the all the extensions they don't
need and then they speed it up, right?
Um
building out like the web page and
everything. But of course, I still want
to Yeah. Where Where
>> coding and everything. Where are you
deploying your playing around with your
WordPress right now? Uh it's all
Hostinger. So that's the uh
>> Hostinger? Okay. Yeah. I've definitely
They're like a Lithuanian company or
something. They've definitely emailed us
like plenty of times to like
collab. Maybe we should. But uh Uh maybe
should. Yeah.
Um
I always use uh That's funny.
For WordPress
I always use um AWS and uh Lightsail.
Cuz they have like a distribution. It's
super easy. You just It's just a couple
clicks and you get a WordPress set up.
And then um
uh it's really easy to navigate in the
uh Lightsail uh
shell. So
um
>> Okay. What would you like to do today?
We can work on the stock project or we
can work on um optimizing the WordPress
stuff cuz I think that'll take like 5
seconds as well. Like it's just a simple
Google search and then you just remove
some um
uh plugins. And then maybe we can check
this load time and things like that.
Mhm.
Maybe let's save that for a different
time. Okay. Uh and then we can work on
the stocks. I I really haven't touched
the stock stuff in a in a minute to be
honest with you. No problem. Uh so
but Uh I always like doing that. Okay,
let's get back into the flow of it, you
know. Um can you send me your Trello
board by chance? I think I can find it
here, actually. Hold on.
Let me find it.
Yeah, absolutely. I think I have it here
as well if you don't have it.
I think I just got it.
I have to sign in. Give me just a
moment. M vars equals M config on
process M.
Okay.
And then
on the Mongoose file because you already
made the config file, maybe you should
just import the config file.
And not use process.m. You know what I
mean?
So Um you know, like instead of using
process.m MongoDB URI, you created that
M config file [clears throat] for a
reason.
So I see. Yeah, so just import the M
config file from there.
Import M from or whatever you call it.
Uh let me see your uh let me see the
file again, please.
Uh
Okay, but let me see the file.
Uh
validate M.
Return
catch
Okay.
Let me
I guess you can just export the validate
M here.
It's a function. Mhm.
Where do we use this? Yeah. Wait, where
did we use
>> I think
this one was from the There was a Medium
article.
>> Ah, I see. Um And this was utilizing
Zod. Okay. Okay.
>> And so I think I Yeah, I think this is
some sort of like Can you Can you send
send send me a live share real quick?
Yeah, absolutely.
>> So on the bottom left corner, there's a
live share button where you can um
uh bottom left corner.
Oh, there it is.
Thank you.
I'm just going to set up the config of
how I usually do it and it's probably
going to make more sense cuz you don't
really need to Zod error your config
file, I think. My opinion.
Like
That's what I was thinking. Yeah. Yeah.
It seems uh
It seems over over engineered.
>> Unnecessary. Yeah. Cuz
>> Yeah. You're the one controlling your
config file, right? Like you don't
really need And everything that comes in
the config is like a string anyways. Cuz
I know you have the [ __ ] We'll call it
[ __ ] URI.
It's going to be a string. Um
node M string and the port will be a
number.
Okay.
And then we'll just Mhm. Uh
const config
It's going to
be an I config.
And then um
sure and sure.
Cool.
It's going to be a number.
Uh
Saying this template data has no effect
in
Mongoose V6 and later. Okay, I thought
use unified topology was like necessary,
but I guess it's not anymore.
Interesting. Um
I guess
I'm old.
All right, let's just try this then. And
then we'll do a
.catch
um
Let me just do a console.error
and then .finally.
We'll just do a
All right.
It should look nice.
Um
Are you using async await in all your
code, right?
For the most part, I believe I am. Okay.
Um
But
do you Is there like uh I just like
>> No, I just like to
>> consistency.
So I like to put a line break between my
third-party libraries and my own
libraries. And then now we need to
create some functions, right?
Um
>> Mhm. Do you [clears throat] want to make
it a class or uh um
or do you just want to make functions?
It's up to you.
Uh for this one
we can we can make functions.
[clears throat]
Okay.
>> That's totally That's totally valid.
So the first thing you're going to need
to do is like create access token, I
think.
So
>> I I should ask though, is there like uh
besides the reason you you mentioned
earlier on like learning poly and stuff
like that. Is there like a reason to go
with classes in that route?
I think It's like the biggest thing
about OOP and all that [ __ ] all that
stuff is just like organization,
I think.
Cuz it just like it groups your code
together. You know what I mean? Like
like then like later on when you're like
organizing your code, oh, that's like a
JSON JSON web token type of thing. Let's
add that to that class.
Or like you go back to your config. Oh,
that sounds like a configuration kind of
thing. Like that So you don't have like
these hanging functions all the time,
whatever. But
doesn't really matter in JavaScript that
much, but I mean It's It's just for
organization, to be honest.
Got it.
Okay.
Um We can do functions. Okay. So the
first thing the function that you're
going to need to do is like create
access token.
And I think your spaces are at four and
mine are at two.
Uh we do need an ESLint or later for
like to keep our code in sync.
I think they're using the module later
on, but we'll we'll It's not a big deal
right now cuz we're only two people.
But um Mhm. All right. [clears throat]
Anyways, you have to pass a payload as
the first argument.
The first parameter.
And that's always going to be an object.
So colon object uh lowercase object.
I think lowercase. Okay.
And then that's the only parameter that
you need to send.
And then And then what you're going to
do is you're going to get your secret
from config from the config. So let's
just say like config secret equals
config.token secret.
Uh I would say like const secret equals
config.
secret.
Um
token secret?
Yeah.
Uh can we just call this secret cuz it's
not like a config secret? It's like the
secret.
It'll be okay?
>> Yeah, absolutely. All right. All right.
Um
and then what you need to do is uh
you're going to need to sign the JWT
with the payload. So you could just like
return
uh
JWT
sign
Yeah, like
uh
um
JWT sign and then it takes the payload
as the first uh so if you hover over
uh it expects two to three two to four
arguments, right? All right, cool man.
Robert, thanks for your time and all
that.
>> Yeah. I'll see you very soon. All right.
Just uh you know,
book with me more cuz I think I told you
like oh, just uh talk to me in DMs and
let's uh let's book calls like there,
but I think doing it through the
Calendly is a lot better because
actually I'm getting really busy
recently. So actually getting
>> Oh, yeah, yeah, absolutely. Um I'll book
through the Calendly then. Okay, like
anytime if you see an opening, it's
always a pleasure for me to meet up with
you. All right. All right. All right,
I'll see you in the next one. All right,
later
on Robert. Bye.
See you. Take care.
Ask follow-up questions or revisit key timestamps.
The video features a conversation between the host, Phil, and Robert. They touch on various personal and professional topics, including the challenges of parenting and technology, the evolving nature of coding in the AI era, and the importance of financial preparation. The latter part of the video focuses on a technical pair-programming session where they discuss code organization, best practices for configuration management, and the use of JWT for authentication.
Videos recently processed by our community