0:00:28
to another session of brew break and fix
0:00:33
the one and only actually
0:00:40
the turner homie zayn and tori they're
0:00:49
that's it's all about smashing this
0:00:56
right now man i'm sweating there
0:00:59
really hot yeah what's the temperature
0:01:03
ah that is a good question
0:01:06
usually the temperature is the same it's
0:01:08
the humidity that fluctuates
0:01:11
probably like 30 but it could be very
0:01:15
right right yeah that makes sense though
0:01:21
thanks for joining
0:01:24
you like my background zane i finally
0:01:26
got around to updating it
0:01:29
i absolutely love it you've actually
0:01:32
made the day for the channel
0:01:35
good good good i was like oh yeah i
0:01:37
should go grab the background
0:01:43
you got there actually so
0:01:46
which is fantastic right so before
0:01:50
let's acknowledge the
0:01:52
actual custodians of the land and power
0:01:55
i begin today by acknowledging the
0:01:57
traditional custodians of the land on
0:01:59
which we gather today and pay my
0:02:01
respects to the elders past present and
0:02:03
future i extend their respect to
0:02:06
aboriginal and torres strait islander
0:02:12
that was smoothly done
0:02:19
so uh just a bit of a progress uh we
0:02:25
actually the stream didn't happen yes
0:02:29
today before because everyone had their
0:02:32
commitments which is totally uh
0:02:37
so today we'll be jumping back into
0:02:42
um functionality of
0:02:45
saving the notes as in
0:02:49
board and the notes um
0:02:53
by verifying the passcode so if a user's
0:02:58
passcode matches then they will be able
0:03:00
to save it if not then haha
0:03:10
tori choose a letter come on
0:03:27
or we can let kanvar pick
0:03:30
oh yeah what's up what's like khan bar
0:03:34
choose a letter khan var from a to z
0:03:39
you'll be picking the
0:03:47
right okay thank you
0:03:54
i think this is basically the first time
0:03:57
a letter has actually matched into the
0:04:01
good job then convar thank you
0:04:11
i remember convar had a tip with
0:04:16
get revert wait what was that
0:04:19
great i can't even remember
0:04:21
rewards or forced or hard one
0:04:28
yeah and then i was like i
0:04:30
i i don't understand what's going on
0:04:35
but thank you i should go look at that
0:04:38
try to understand what it what it was
0:04:43
yeah that'd be actually a great learning
0:04:48
today at work i learned a brand new
0:04:50
thing which i wasn't able to do it and i
0:04:55
just googled it and
0:04:56
i'm like oh that's exactly what i need
0:04:59
oh and that way means okay i'm going to
0:05:05
what was it what was the situation
0:05:07
um so the situation was that
0:05:13
the code from the mainstream
0:05:18
i took the code from the reaper
0:05:23
and then i by mistake
0:05:26
deleted few of the folders on
0:05:31
my version on my version yeah
0:05:34
yeah but if i did that on the main trip
0:05:38
guess who's in trouble
0:05:43
you'd say hey i'm calling from a secret
0:05:48
yeah and then my ip gets tracked not
0:05:58
the few of the folders were missing so
0:06:01
so i i wanted to somehow
0:06:04
as in get them from them from the
0:06:08
online reaper and i found out this
0:06:12
button which actually gets
0:06:16
the files or the folder
0:06:19
if you have x actually deleted them so
0:06:23
that was a cool trick
0:06:27
all right uh that being said let's jump
0:06:30
into the mighty code
0:06:34
and i will share my screen hopefully i
0:06:40
tori has your opportunity to already fix
0:06:48
let's hope so i heard i heard i heard
0:06:50
the webkit team is a little bit
0:06:59
i know exactly what you mean
0:07:03
okay i'm gonna have to
0:07:05
quit and reopen streaming for that to
0:07:09
work all right actually today in the
0:07:11
world of tech news there was a huge
0:07:21
law that i'm not sure if it was passed
0:07:24
or will be passed in the eu
0:07:26
that's probably gonna bring some pretty
0:07:40
pretty interesting to go and read about
0:07:43
what what the law will
0:07:46
what the law is about and what it might
0:07:50
but i'm sure it's like last time i think
0:08:00
the other law about like retention like
0:08:04
the privacy of of user data
0:08:08
now now every website has that accept
0:08:12
uh button and stuff right and that came
0:08:15
from the eu so this is also coming from
0:08:19
as well but they just
0:08:22
you know all these tech companies just
0:08:23
decided to do it everywhere right they
0:08:26
decide it's easier to just implement it
0:08:28
everywhere instead of regionally
0:08:34
absolutely right it seems like although
0:08:40
as in in time and days but they are
0:08:50
digital markets act
0:08:53
ah diesel market yeah check it out
0:08:56
i will do we'll do
0:09:01
all right cool so like i said i'll
0:09:04
probably have to reopen quit and reopen
0:09:07
stream yard so i'll be right back
0:09:16
there's there's always there's always
0:09:20
how's it going geckdev what's new
0:09:35
i wonder if this is going to be the last
0:09:44
before we do testing or whatever we're
0:09:46
supposed to do next digital marketing
0:09:53
digital markets act
0:10:09
so it'll affect on
0:10:12
it'll affect mostly large tech companies
0:10:15
that are considered gatekeepers
0:10:18
they must have an annual turnover of at
0:10:21
750 billion euros within the eu in the
0:10:25
past three years or have a market
0:10:27
valuation of at least 75 billion euros
0:10:31
and they have to have at least 45
0:10:33
million monthly end users or at least 10
0:10:36
000 business users established in the eu
0:10:44
yeah so they're really going after like
0:10:46
big big technology
0:10:53
yeah this is i don't know i'll share
0:10:56
this this is straight from the eu but
0:10:59
you can't share with the chat but if you
0:11:01
can share if anybody's interested no
0:11:06
that news just came out today
0:11:21
y'all got to give my dog a break today
0:11:26
that's right man that's all right um
0:11:29
he's gonna be fine yes sir is it
0:11:35
yeah it's always good as in when
0:11:38
as in you kind of diagnose it and then
0:11:42
you actually know okay this is a problem
0:11:44
and now we just have to
0:11:47
work on i think kind of
0:11:51
bringing it back to normal
0:11:54
yeah well yeah well in this case
0:11:56
yeah i guess the prognosis for treatment
0:12:00
with chemotherapy is very high it's like
0:12:08
i'm very hopeful about the outcome and
0:12:10
so far he he got his first
0:12:12
chemo which was actually i was surprised
0:12:15
it's very affordable
0:12:18
he's doing quite well actually i don't
0:12:20
even really notice
0:12:23
much of a change in his behavior other
0:12:25
than he doesn't want to eat as much so i
0:12:29
just like made him some
0:12:31
nice like soup with like chunks of meat
0:12:34
and pumpkin and stuff
0:12:37
which he really liked
0:12:41
that's actually pretty pretty cool stuff
0:12:45
tiger is being spoiled now eh
0:12:49
yeah well he was always kind of spoiled
0:12:52
i guess he's pr he's pretty chunky
0:12:54
okay i'm trying to get him to lose
0:12:56
weight and everybody around here
0:12:59
it's unsolicited but they all say oh
0:13:19
the dogs and the cats and the animals
0:13:27
yeah my mom was actually a veterinarian
0:13:33
with all sorts of animals and
0:13:36
like my mom worked at a zoo for a little
0:13:39
bit so i saw exotic animals that was
0:13:45
all sorts of different crazy stuff
0:13:51
even like that's pretty cool man because
0:13:53
yeah it was pretty cool
0:14:01
really think that okay
0:14:07
but it's good when actually people
0:14:10
realize it that they're they're kind of
0:14:14
similar to humans and uh
0:14:17
go into the place to kind of help them
0:14:33
the human as well because humans we get
0:14:36
happiness from looking up
0:14:42
yeah yep for sure yeah
0:14:45
i think it's like you know
0:14:48
condition thing is
0:14:50
if you're exposed to something enough
0:14:54
you gain that perspective
0:14:57
like if you worked
0:14:59
a really [ __ ] job ever in your life then
0:15:02
that's like a good experience
0:15:05
because you can relate to people better
0:15:09
your you can be more humble and like
0:15:13
for myself was like i grew up with
0:15:18
animals taking care of animals helping
0:15:19
my mom and so like you know i really
0:15:37
when especially just
0:15:39
said that your dog was looking for a
0:15:45
you guys yeah i'm not sucker
0:15:49
i'm a sucker for that stuff
0:15:56
good to have those kind of feelings
0:15:59
yeah i've seen people that don't treat
0:16:03
as they should be treated
0:16:06
yeah for sure me too i've seen that
0:16:08
plenty actually unfortunately
0:16:12
and it's sad it's really sad because
0:16:15
animals as in we humans were animals
0:16:21
yeah that's right man
0:16:25
any very really great
0:16:28
to have that um your dogs as in trying
0:16:34
95 um yeah yeah me too me too
0:16:41
when the vet told me it was cancer my
0:16:46
and i had heard of that cancer but i
0:16:49
didn't know about the prognosis and then
0:16:53
when i looked it up when she told me
0:16:56
slowly i felt better i was like okay
0:16:59
it's going to be okay
0:17:03
years old so he can handle it like he
0:17:05
can handle the chemo
0:17:11
yeah it's always really relieving
0:17:14
when um the doctor
0:17:17
that this is a problem but it can be
0:17:22
and there are high chances in fact
0:17:25
that just brings you back up and say
0:17:28
okay we got this we can do it together
0:17:33
cool man all right um sorry
0:17:39
no man thank you so thanks appreciate it
0:17:41
man these kind of consultations are
0:17:44
important as well we're not just kind of
0:17:48
workaholics i think just come on the
0:17:51
code it's good to have this kind of an
0:17:54
environment where we can actually talk
0:17:57
freely about things we care about which
0:18:01
to be honest i agree i agree
0:18:06
let's see if my screen is working now
0:18:12
roll the dice roll the dice in three two
0:18:19
fantastic oh right
0:18:25
all right so i didn't push the code uh
0:18:32
last time we uh i was working with
0:18:38
the fact that we were doing is
0:18:44
we were basically trying to
0:18:53
create scenarios as in
0:18:56
where we save all the notes and also
0:19:03
we have both the features
0:19:05
so in terms of updating
0:19:08
we can just come to
0:19:19
i'm i guess i'm good i'm just trying to
0:19:24
we don't want to get rid of that
0:19:27
existing code because it's already
0:19:30
working and it might come handy
0:19:36
does that make sense
0:19:39
yeah yeah sure why not
0:19:42
um hey do you want to do you do you
0:19:45
happen to have live shares in do you
0:19:48
yes i do and i used to do that with
0:19:53
oh that'd be cool yeah because sometimes
0:19:57
if i if i make the screen big then i
0:19:59
can't see the viewers like if anybody's
0:20:02
chatting all right
0:20:03
and also it's just a little bit easier
0:20:05
to follow along with what you're doing
0:20:11
okay i will send this to you
0:20:15
if you just drop that link
0:20:17
don't email me just drop the link in the
0:20:22
you know i should be able to join
0:20:37
for one second i was
0:20:39
gonna do that in the comments
0:20:44
i think yeah you can you can set it to
0:20:50
so that people can join but can't
0:20:55
shared terminal and start messing with
0:21:00
and do basically format
0:21:05
the hard drive tell me no boom boom i
0:21:08
should do that to my friend i should i
0:21:10
should like i should find a way to like
0:21:13
trick to find like uh
0:21:18
dummy app that i can install in his
0:21:20
terminal and it makes it look like he's
0:21:22
deleting deleting his whole hard drive
0:21:29
that'll be really interesting to see and
0:21:32
watch his reaction
0:21:39
there's gotta be something like that
0:21:42
exactly okay cool i i got the link
0:21:54
all right so i was trying to figure out
0:21:58
um we have this over there
0:22:01
so we basically want to do now
0:22:07
this is where save all nodes will come
0:22:16
just switch in valid notes
0:22:44
didn't get any of your things hang on
0:22:47
huh for some reason it just keeps
0:22:52
is it i didn't really get any
0:22:59
i know i don't want to send an email
0:23:06
are you you are you are sure i mean
0:23:09
that's what happened
0:23:15
okay i'll send it in right
0:23:21
and see what happens
0:23:23
i'm just oh it's joining it's okay it's
0:23:25
joining finally i don't know why it took
0:23:32
i should get notification though uh yeah
0:23:36
it's just being it's like being very
0:23:39
slow i don't know why oh here we go
0:23:43
yes yeah okay that's good
0:23:45
join the collaboration
0:23:48
cool okay it's finally loading up
0:23:51
put in it's probably it's probably a mac
0:24:01
um okay so save on
0:24:05
notes actually what i'm gonna do is
0:24:11
this whole code is all
0:24:39
no but if it's all
0:24:41
all the saves are there
0:24:55
no no no it's just going one by one in
0:25:31
okay it was up there
0:25:36
and if we do this same note one by one
0:25:42
so if we basically pass in what the
0:26:06
okay so i've got this one which is fine
0:26:10
so we're going to write
0:26:19
and a parsing board id
0:26:39
and same goes in this one
0:26:45
okay cool so this is here and now what
0:26:49
we need to do is basically do the code
0:26:52
to the actual code
0:27:18
so that will come here
0:27:45
you can just have the uh
0:27:48
you can just add that
0:27:50
like note as a parameter to the function
0:27:55
maybe a little bit easier way to deal
0:27:57
with it or are you sending back a
0:27:59
response as well inside that function
0:28:05
you mean in this way
0:28:08
yeah i don't know i'm just
0:28:10
at first glance i was thinking that's
0:28:12
maybe easier way to deal with it yeah
0:28:14
just pass in the note from the request
0:28:20
i see what you're saying yeah
0:28:41
that one comes where
0:28:43
this is the function itself
0:28:45
there's been called over here
0:28:55
that's gonna require a lot of changes to
0:29:09
that's the david bowie reference
0:29:14
yeah okay so he's taking the data as
0:29:16
well wow so we need to do the data too
0:29:21
are you passing the data too
0:29:32
that's funny i just saw the the email
0:29:38
for a live share but it said join kartik
0:29:46
how did you send it from carthage
0:29:53
beyond raw coded and this is
0:30:01
but he's uh but he's gone
0:30:20
stab this in the back
0:30:33
i'm calling out kartik right now
0:30:36
you should come back on the show at
0:30:40
or once bi-weekly come on
0:30:44
no time is there which is uh
0:30:50
it's been that way
0:30:53
this is gonna require
0:31:19
trust me at the moment no faith says yes
0:31:24
i love you sarcasm
0:31:29
you look you look like you're just
0:31:33
you're deriving so much pleasure from
0:31:37
yeah on a friday night
0:31:42
good trust me i've got bad things to do
0:31:45
than refactoring cause
0:31:55
okay so you will come in this one you
0:31:57
come there yeah which is fine
0:32:01
no data we need it so we will check
0:32:05
okay so we're sending it back as well
0:32:12
there goes the rest as well in that case
0:32:17
and then it's coming here we don't need
0:32:19
that one we have the note id
0:32:22
and the data which is fine
0:32:25
okay now we come to board
0:32:28
yeah i feel like we need that
0:32:31
okay just just throwing hands
0:32:35
throwing it as a parameter you're like
0:32:36
we need that just throw it in
0:32:40
to throw in as a prank
0:32:43
i've done that i've done that when i'm
0:32:47
yeah too much work parameter
0:32:53
honestly i wasn't expecting us to as in
0:32:56
refactor this much of the functionality
0:33:06
let's do it since we are there
0:33:08
okay cool so we should probably get rid
0:33:22
insert a single note
0:33:26
inserting as in one by one note
0:33:30
not when it's working
0:33:36
yeah yeah screw that
0:33:38
that would be that'd be a small
0:33:41
smart move they're thankful for bringing
0:33:45
brim hey we're we're here to just
0:33:48
put put in place this new easier
0:33:53
solution and we can worry about this old
0:33:56
code if we need it later that's my thing
0:34:00
true absolutely though i would agree
0:34:03
all right so this one goes there which
0:34:06
is fine single notes we don't have any
0:34:09
single on now it's here which is great
0:34:13
and notes yeah that's fine
0:34:17
i think that should do it isn't it
0:34:25
this is virtually n now what you are
0:34:32
disable research syntax for this line
0:34:35
you know what you could have done
0:34:40
a single parameter called request and i
0:34:43
think the whole thing would have worked
0:34:48
you could have just passed in the
0:34:50
requests and response
0:34:52
into the function and it would have
0:34:58
actually yeah let's do that
0:35:01
if you if you just passed in exactly
0:35:05
what you need from
0:35:08
lambda handler or sorry no the express
0:35:14
post route or whatever this is
0:35:18
press route just request and response
0:35:21
yeah that's all you need to pass in
0:35:24
one did not think of that before okay
0:35:27
i don't know i didn't stop you i just
0:35:29
thought of it and i'm like you know what
0:35:31
we can just save tons of time
0:35:37
but we still need to put this whole
0:35:44
copied version and just change it
0:35:48
how we need it which is actually pretty
0:35:50
easy we don't need to map or anything
0:35:55
we just hey here's the note right we put
0:36:06
uh okay so we got with board id
0:36:13
which is there already so we don't even
0:36:23
name no we don't need bold name either
0:36:28
no i don't need that it'll be in the
0:36:30
request everything will be in there
0:36:32
there you go there that's the easiest
0:36:34
refactor right sorry why didn't you say
0:36:39
i'm sorry i was just like i was just
0:36:41
watching and i was like
0:36:44
catch up to what was going on i'm just
0:36:46
like okay we'll just
0:36:58
unexpectedly inside the for loop ah okay
0:37:01
so this is inside the for loop
0:37:06
that shouldn't be inside the full or
0:37:11
for the refactored version or
0:37:15
for the new implementation
0:37:20
old one oh i don't know
0:37:28
i think that was required actually
0:37:32
because you need you were updating the
0:37:41
i think they're unexpected we're inside
0:37:43
the for loop so we are inside the for
0:37:45
loop at the moment
0:37:49
wait how many notes are getting updated
0:37:59
then why is there a loop at all
0:38:12
this is same that if the board id is my
0:38:29
until all the notes are done as in one
0:38:32
by one why do you need the why do you
0:38:39
for these items right here
0:38:43
there will be multiple boards
0:38:45
why are there i thought you're passing
0:38:47
in the board id so you don't need to
0:38:51
a scan or something
0:38:55
so i'm doing this scan here
0:39:00
oh to like verify that the board
0:39:05
yes so if it's not empty so if it is
0:39:09
empty then they'll just return the arrow
0:39:12
here you could you could easily just in
0:39:14
the future i'm not going to do it now
0:39:16
but you could just change this to a get
0:39:20
and then you just get the board
0:39:26
my mind but didn't really want to go to
0:39:30
i don't not the whole of
0:39:34
the refactoring because there is a lot
0:39:36
of code that can be refactored for sure
0:39:39
for sure 100 percent
0:39:53
i think he knew that we're gonna be
0:40:04
yeah and um i'm not
0:40:06
i'm not in melbourne and i don't know my
0:40:08
laptop's broken and i have no internet
0:40:13
in internet yeah and i have code amnesia
0:40:19
okay so this one comes in old
0:40:35
get this get this old code just get it
0:40:38
out of the way and then let's just work
0:40:40
on the new stuff and we can refactor
0:40:43
this later if we need it how does that
0:40:47
that wasn't easily the plan
0:40:51
going in the refactoring
0:40:54
well then you could you could literally
0:40:56
go back to the start
0:40:59
oh do you know how this one can even
0:41:01
start the project from scratch from
0:41:06
the entire thing and react instead of
0:41:09
vanilla javascript
0:41:11
man oh man how i would love to do that
0:41:18
oh well it would be a lot of work don't
0:41:23
whoa would it be it would be a lot
0:41:25
easier to be honest
0:41:32
i don't know how familiar you guys are
0:41:39
okay so is basically updating
0:41:51
yeah so if you need
0:41:54
if you need this loop for some reason
0:41:59
which i don't know how it was before you
0:42:01
can put in a weight here
0:42:05
for a weight uh maybe it's a weight for
0:42:11
there's some special
0:42:18
i don't think you can choose a way
0:42:31
in this i forget there is
0:42:35
maybe it's maybe you can't use it in
0:42:36
four in i think you can use it in four
0:42:44
i don't know i don't use it that often
0:42:46
to be honest so i don't remember
0:42:50
okay hang on you know
0:42:54
function even doing
0:42:56
in the first place updating for i know
0:43:05
that's a lot of code
0:43:19
create a node for a specific board
0:43:26
how did you change it that this syntax
0:43:34
is just i've actually forgotten how it
0:43:45
okay so it's basically getting the
0:43:48
single note as in one note
0:43:51
text and it's appending in the list of
0:43:57
and where is this board being used
0:44:01
why why do we need the loop i'm confused
0:44:13
we are getting all the boards from the
0:44:18
and we need a way to check if
0:44:23
note belongs to this particular board or
0:44:27
because there will be multiple
0:44:31
one board and there will be multiple
0:44:34
boards in the table itself
0:44:40
so you're looking for the first you're
0:44:42
checking the board
0:44:44
to see if it exists right
0:44:49
okay so yeah if you don't mind
0:44:59
board is equal to board
0:45:03
dot items dot find
0:45:13
i don't know i need another variable
0:45:37
shall i tell you something
0:45:46
i didn't want to go into refactoring the
0:45:49
code because because that was in my head
0:45:52
and i was thinking that okay i'm not
0:45:56
rabbit hole of refactoring but that we
0:45:59
are ending up going in there
0:46:03
okay and then board which is good
0:46:07
we can get rid of a lot of code
0:46:21
board was used before it was defined so
0:46:24
it's boards my bad oops
0:46:47
man thank them i did you still wow i
0:46:52
no they're out there
0:46:53
it's easier if there's prettier because
0:46:56
prettier than before how about
0:46:59
how about at this stage we pretend
0:47:03
though we can't see any reds
0:47:06
strictly lines because
0:47:15
so the fine method will look through the
0:47:20
for board and board items so the boards
0:47:25
up here correct me if i'm wrong
0:47:29
a items is an array of all the boards
0:47:39
for each array item
0:47:42
like there's a board id
0:47:44
property for each board
0:47:50
i get it looks like this like items
0:47:57
yes uh i was gonna i was gonna do the
0:48:01
uh there's like i don't know board id is
0:48:04
one of the properties
0:48:06
yeah okay perfect so if that's the case
0:48:09
then we use find which is an array
0:48:12
find will look for the board id
0:48:15
that matches the board id of
0:48:20
whatever this variable came from
0:48:22
right so we'll look for a match and that
0:48:24
will give us that particular
0:48:30
all it will give us that object
0:48:32
basically it'll return that object the
0:48:35
array item with all of the object
0:48:39
so then if we we wouldn't need this for
0:48:44
we will still need that for loop
0:48:49
uh no because we found all the bore we
0:48:52
found the board or we didn't if it's
0:48:58
because this this for loop is just
0:49:00
looking for the board
0:49:03
yes and when we have found the board
0:49:06
what's what's gonna happen then
0:49:09
once we found the board then
0:49:15
updating a single note
0:49:19
where is all this code present
0:49:23
yeah but i'm saying we can we can get
0:49:26
rid of this for loop we can get rid of
0:49:30
and then we can just use the board
0:49:36
from here from from this line as
0:49:45
board is present true table board board
0:49:49
is board id you do this
0:50:00
actually i don't want to do that one
0:50:03
board you can yeah you can literally say
0:50:06
if not bored then just return
0:50:08
because if the fine method the find
0:50:12
method will return undefined
0:50:15
if it doesn't find a match
0:50:19
ah right i see you can just yeah
0:50:24
and then we'll just return back a
0:50:25
response and then we can just get rid of
0:50:27
this whole for loop and if check
0:50:32
it's almost the show is almost over
0:50:40
it will go with the blink of an eye
0:50:43
well i didn't know if you needed help
0:50:44
with the refactoring because you were
0:50:46
having trouble with the await thing and
0:50:48
i'm like well if we just get rid of the
0:50:50
for loop we won't need to worry about
0:50:53
mm-hmm yeah and that's true as well
0:51:06
we just do a return
0:51:08
yep a sync function whatever expected
0:51:18
don't you need to return it though
0:51:20
apparently it was saying it doesn't
0:51:27
your linter is just being silly
0:51:31
you know what forget this one then
0:51:32
disable for this line
0:51:36
okay and because we need to return we
0:51:38
need to return out of the
0:51:42
um out of the out of the lambda we need
0:51:45
to tell it we're done
0:51:54
we are saying that we don't know we have
0:51:56
a so in the case of we have a board we
0:52:00
need to get rid of these lines
0:52:08
i would bring basically this
0:52:26
we are not focusing on this
0:52:34
you can you can yeah i can i can help
0:52:36
you format it no problem
0:52:41
that's fine uh so we do the single note
0:52:46
what is already cleaned up with
0:52:52
board is already declared
0:53:06
now that we have a board
0:53:08
we update the board
0:53:13
as in we update the notes in the board
0:53:19
okay and then what do we do we don't
0:53:22
need this one and then basically try
0:53:34
and then get rid off
0:53:45
so if board is present
0:53:53
we need to change this pause button
0:54:09
so this is just checking for if it's
0:54:13
we don't even need this anymore
0:54:16
bored and not found
0:54:18
we can simply do this one
0:54:32
there's a lot of happiness in this
0:54:35
and a lot of pain as well
0:54:39
there is sometimes pain and refactoring
0:54:41
because you're like
0:54:48
yeah yeah absolutely
0:54:52
it doesn't work like that though so
0:54:58
so this should be it
0:55:03
yeah i think i think the board not
0:55:06
present is that needed
0:55:13
he's bored yeah i think the winter is
0:55:16
telling you it's never used so i guess
0:55:18
you don't need it anymore
0:55:21
i think you were yeah
0:55:23
it's his use where
0:55:28
no i mean it's not used in a
0:55:30
like a condition a function
0:55:45
it's more readable for sure dude yeah
0:55:48
yeah i'd agree with that completely
0:55:52
okay since we are there let's just do
0:55:58
you didn't want to see you didn't want
0:55:59
to see my reaction when i read when i
0:56:02
read some of that stuff
0:56:07
yeah it's hard on my eyes
0:56:12
here we go we're gonna get rid of some
0:56:20
what are you looking for the board
0:56:26
you can you can actually use get
0:56:28
as well would get is even easier
0:56:31
for document of client we can't
0:56:37
are you sure yeah there's a get there's
0:56:39
a get method which gets a single item
0:56:53
you should even get auto complete
0:56:58
all right i'm lost where was i here here
0:57:05
we'll just look up
0:57:08
um get will uh just look up uh add one
0:57:14
get item okay you can try this
0:57:23
the reason why i'm saying it is i'll
0:57:27
show you we're gonna save you money on
0:57:35
document client does that have
0:57:43
so if you check you won't really have
0:57:45
the gap to get method in it
0:57:49
i was blind completely
0:57:57
yeah now you're getting messy
0:57:59
but now you can't see
0:58:03
yeah here's uh correctly
0:58:07
a here's an accesses
0:58:15
the read operation
0:58:20
directly oh so this one it directly
0:58:24
accesses items from the table but yeah
0:58:32
query but what get does is it returns a
0:58:40
right so you can just get the board id
0:58:45
yeah yeah precisely
0:58:48
and then if it ain't there then it's an
0:58:50
error because it's not a board
0:58:59
well i sure learned a lot from watching
0:59:02
you guys do the show and
0:59:08
both on the stream and
0:59:12
and that helped me practice my
0:59:16
aws like skills a lot so
0:59:20
it was it was good for me
0:59:26
good to him man and yeah and you guys
0:59:29
you guys were encouraging for me to go
0:59:32
get my aws certs so i always appreciate
0:59:46
okay we're gonna have to go in the debug
0:59:51
because i don't know if this is gonna
0:59:58
did you see this did you see the example
1:00:03
uh so there's a part if it doesn't
1:00:09
get you to that part on the page
1:00:15
that's that's that's an example of the
1:00:20
get the so the params is that you just
1:00:22
need the table name and then the key
1:00:28
just say when the kid nothing else
1:00:34
so no expression attribute table and the
1:00:38
key that's all we could even try it from
1:00:44
the cli first if you wanted
1:00:48
because you can use the get
1:00:51
but whatever i don't care okay i'm gonna
1:00:54
probably actually test this in my own
1:00:57
time because okay my eyes are literally
1:01:11
do you mostly use c-sharp at work or
1:01:31
but it's really good as in
1:01:36
to the entire stack though
1:01:44
yeah because i don't really wanna
1:01:49
and i don't really wanna as in be a
1:01:52
master in just one thing i just wanna be
1:02:05
jack of all trades basically
1:02:08
yeah it's um it's it's good to have a
1:02:21
i've stuck to pretty much only
1:02:23
javascript and typescript if you
1:02:25
consider that anything different and i
1:02:27
still stink at typescript
1:02:30
but i'm learning but it doesn't really
1:02:32
matter but i like that i've stuck to one
1:02:37
language right now at this point in my
1:02:44
it allows me to not have to focus on
1:02:50
the code the syntax so much because i'm
1:02:53
just so comfortable with javascript at
1:03:00
it helps me be able to
1:03:06
dive more into the deeper like
1:03:10
conceptual parts more architectural
1:03:12
parts of coding the more like
1:03:15
i guess the patterns the
1:03:18
the more advanced patterns
1:03:21
and like just understanding the
1:03:26
like processes and say node.js and not
1:03:30
having to worry about the syntax because
1:03:32
i'm already comfortable with javascript
1:03:34
so i i like that it's working for me
1:03:40
brilliant man because as in
1:03:47
what works for me would work for you and
1:03:50
vice versa and it's kind of personal
1:03:53
preferences as well yeah i'm terrible at
1:03:59
i don't know anything about c sharp i
1:04:01
don't know anything about any other
1:04:03
coding language pretty much
1:04:10
yeah so like it's i'm not as
1:04:13
like throw me in a non-javascript
1:04:16
environment i'm not going to help you
1:04:21
yeah so it depends
1:04:27
in the way you're comfortable
1:04:30
with as well because
1:04:32
most importantly if you're not
1:04:34
comfortable in one approach then you're
1:04:37
not really gonna enjoy it and
1:04:42
you don't enjoy you're not gonna learn
1:04:49
it's good that you've actually figured
1:04:52
out that okay i wanted to master one
1:04:57
brilliantly that i can actually
1:05:00
code in my sleep in just that thing
1:05:05
yeah yeah basically so i can i feel like
1:05:09
i like it for me right now
1:05:11
later it will change but right now i
1:05:13
like it because i can just get deeper
1:05:15
and deeper and deeper without
1:05:18
worrying about learning a new syntax or
1:05:20
learning about the new
1:05:22
differences between
1:05:25
compilers and different languages like
1:05:27
as a front-end person or even back-end
1:05:31
there's so much to learn tooling devops
1:05:40
linting like build like typescript so
1:05:43
like all that stuff it doesn't even have
1:05:46
anything to do with
1:05:51
the language you're writing in right
1:05:55
um yeah except for the typescript but i
1:05:57
mean yeah it doesn't even matter um so
1:06:06
i was just saying it's good because it
1:06:08
allows me to focus on that stuff right
1:06:11
now and in learning those things instead
1:06:15
going and learning
1:06:22
which would be also useful yes but i'm
1:06:28
try to strengthen those other core parts
1:06:31
right now for uh first i guess
1:06:37
you can just keep going deeper and
1:06:39
deeper you know oh of course there's a
1:06:42
lot of things out there it would never
1:06:45
ever end that's true as in when you
1:06:51
for the first six months you'd know that
1:06:54
there's a new version out already
1:06:59
but yeah there's stuff in react uh
1:07:01
that's gonna be coming in pretty
1:07:04
probably pretty soon releasing react
1:07:07
which i think has some pretty big
1:07:09
changes and i don't even know
1:07:11
what's going on there
1:07:13
because i i haven't had the time to go
1:07:17
yeah and that makes sense though because
1:07:21
this is the part that why i love
1:07:24
as in software development and the
1:07:26
tech space is because there's always new
1:07:29
things coming out and if i do one thing
1:07:32
over and over and over again i'll get
1:07:35
bored really easily no you can't get
1:07:39
you get the only thing that happens to
1:07:41
you you get overwhelmed
1:07:51
even though it's long work
1:07:53
hours but the time just flies past man
1:07:59
especially when you're debugging
1:08:04
six hours in debugging trying to see how
1:08:08
how the thing is working where the bug
1:08:10
is and how it's happening and the next
1:08:13
thing you know hang on is five
1:08:16
already and i didn't eat
1:08:21
i forgot i even forgot my life
1:08:26
and then when you find the problem
1:08:28
that fix is basically two seconds
1:08:33
yeah it's true i know
1:08:36
sometimes it's like
1:08:38
i'm like just i just need to get this
1:08:44
fixed and then i'm gonna go
1:08:49
and then it's off to
1:08:53
sometimes it takes 30 minutes but
1:08:56
sometimes it takes you're like
1:08:59
four hours later you're like oh my god
1:09:02
i thought it was gonna be easy
1:09:08
this is exactly what really
1:09:12
the space as in just the
1:09:15
it's not pretty it's not predictable at
1:09:19
it's hard i don't like the predictable
1:09:21
stuff i agree yeah i mean there's
1:09:24
there's drawbacks right like losing
1:09:30
you know that that type of stuff but i
1:09:32
agree it's it's very fun it's not
1:09:35
predictable it gets it gets the more you
1:09:38
do i would say the easier
1:09:44
more bass like you just start you just
1:09:47
keep going on more advanced admit
1:09:49
advanced stuff yeah and the easy stuff
1:09:51
just like whatever but like
1:09:54
yeah but there's no
1:09:57
there's just no end to the advanced
1:09:58
stuff so it's just it's just
1:10:01
consistently stays difficult i think
1:10:06
difficult i would say interesting
1:10:09
i would say i would say with i like
1:10:12
things that are challenging because i
1:10:14
find them interesting so for me i like
1:10:17
that i say difficult meaning like it's
1:10:21
i started learning
1:10:23
whatever time ago and like
1:10:26
from then i knew nothing
1:10:28
and now i feel like i know
1:10:30
a little bit of something
1:10:34
and it's just like amazing looking back
1:10:40
knowledge i've gained about certain
1:10:49
in that amount of time versus
1:10:53
back then i knew nothing at all i knew
1:10:58
cool they've all been there and i'm
1:11:01
still like i don't even
1:11:04
i'm still like wow i got so
1:11:07
much further to go
1:11:11
which really means there's no end in
1:11:13
sight there's no end in sight for sure
1:11:19
but yeah man it's been a great session
1:11:22
really really good progress as well um
1:11:26
yeah so let's um end it so you wanted to
1:11:35
continued working on the
1:11:37
the new post route
1:11:39
to save all the notes in one request and
1:11:43
we refactored a little bit of code as
1:11:46
and we had some good chats
1:11:50
yep and if if you wanna
1:11:53
have some old hearing or be a part of
1:11:56
this fun chats and join us tomorrow
1:11:59
same time same place and
1:12:05
same time where there will be a special
1:12:11
he knows it already
1:12:13
all right so if you want to see the
1:12:14
special surprise you should join on
1:12:20
guys thank you everyone we'll see you on