0:00:31
okay that's here is it
0:00:33
all right i can hear you
0:00:38
i totally spoiled the intro isn't it
0:00:42
that was our best that was the best
0:00:47
i like you sarcasm
0:00:50
no i'm just i'm just trying to be
0:00:52
positive zayn okay exactly
0:00:55
that is exactly what we value here mate
0:00:59
positivity that's right which is
0:01:02
right guys welcome back to another
0:01:04
session of buildbreaking fix brought to
0:01:06
you by the raw coders and today we have
0:01:10
tori and zane how are you feeling tori
0:01:14
pretty good man i'm i've been working a
0:01:16
lot on this project
0:01:23
yeah yeah i'm curious i i didn't catch
0:01:26
what happened last night so i'm curious
0:01:27
to know what happened
0:01:33
let's quickly do the acknowledgement of
0:01:35
the country and then we can take it from
0:01:38
sounds good i begin today by
0:01:41
acknowledging the traditional custodians
0:01:43
of the land on which we gather today and
0:01:45
pay my respects to the elders past
0:01:48
present and future i extend their
0:01:50
respect to aboriginal and torres strait
0:01:52
islander people here today
0:01:58
yeah so just a quick recap um we worked
0:02:02
on this same issue as in
0:02:06
when the websock and when the client
0:02:08
disconnects from the websocket server we
0:02:11
need to remove the connection id um
0:02:15
so what we did was we tried to
0:02:18
double shoot yes today and
0:02:22
the repo that i was actually following
0:02:28
deploy that one and
0:02:30
test it on that it was working fine
0:02:34
so there's there's something has to be
0:02:37
in our code that isn't
0:02:43
we're still um working on that bug
0:02:48
all right so i'm just gonna share my
0:02:53
looking really sunny and barley
0:03:00
um it was it was a very rainy day
0:03:02
earlier though okay
0:03:19
i think that's a yes
0:03:21
i mean some rainy days are nice you know
0:03:24
yeah that's fine true true
0:03:29
everyone has their own preferences
0:03:34
i don't complain i do not i do not
0:03:36
complain about rain
0:03:39
which is really good
0:03:41
i'm from i'm from new england in in the
0:03:44
us and the winter like if i check the
0:03:48
that's all i need to do
0:03:52
feel humbled by how how nice the weather
0:04:00
take absorb it while you can
0:04:06
you have to see my screen right or not
0:04:08
yeah i can see your screen
0:04:19
well welcome back jacob good to have you
0:04:35
copied and pasted the
0:04:37
code as in the working code which is
0:04:40
here and we were comparing you with our
0:04:46
and the difference was we found out that
0:04:50
this needs to be a key instead of an
0:04:53
item because we're not doing an insert
0:04:56
we're doing a delete
0:04:58
so even though we changed it to key it
0:05:05
so now i'm thinking that
0:05:08
lambda is exactly as
0:05:11
the way in it needs to be
0:05:13
there may be some problem in yemo
0:05:17
that we're missing
0:05:19
yeah probably it's the animal um
0:05:22
geckdev is asking if k
0:05:25
i think k is taking a break
0:05:29
uh from the show with his new
0:05:31
responsibilities but he'll be back
0:05:36
he's just taking a bit of a breather
0:05:39
because he's also about to start his new
0:05:45
he wants to focus on
0:06:03
i'm just thinking that what we could
0:06:20
i almost i almost started humming
0:06:28
no way everybody will be super annoyed
0:06:32
no we won't i don't know about gekko but
0:06:41
i don't want to give him any any
0:06:59
to be honest i'm literally finished work
0:07:04
you look you look pretty tired man
0:07:10
to be honest at the moment
0:07:12
i've gone with a headache
0:07:14
but anything that needs to be done has
0:07:18
to be done maybe you need some water
0:07:30
what did he say now it's just laughing
0:07:40
i disconnect roots his hair what am i
0:07:46
this is integrated there disconnect root
0:07:49
and yeah disconnect
0:07:55
that's integration there
0:08:00
but oh websocket disconnects handler
0:08:07
disconnect another function which is
0:08:13
that's it that's fine
0:08:30
okay hang on here's what i'm gonna
0:08:34
do that beyond comparing mac
0:08:40
do they have beyond compare
0:08:45
i don't know what is beyond compare
0:08:47
um it's a software they use to compare
0:08:50
text folders for the contents
0:08:57
i don't know because i don't have a mac
0:08:59
so i don't know if that was
0:09:03
uh you're trying to ask some leading
0:09:06
question where then you could insult my
0:09:14
story because my brain is freako is dead
0:09:19
you only got one thread left uh-huh
0:09:23
you only got one thread
0:09:25
true to half a fret i would say
0:09:29
i'm pretty tired too because i've been
0:09:31
working on this project all day
0:09:37
damn you have some real persistency
0:09:41
i have to well the the deadline is like
0:09:45
in i don't know like pretty much
0:09:51
gekko this shopify um internship project
0:09:59
not the coding test
0:10:01
like next week i have i have the
0:10:05
i have the interview for the regular
0:10:10
um position not the internship also at
0:10:15
um and that that is just like uh like a
0:10:18
culture fit interview but i need to
0:10:21
prepare for that too
0:10:24
so after tomorrow start prepping for
0:10:27
that and then i think there's like
0:10:31
two more technical rounds or
0:10:34
at least two different technicals i
0:10:41
yeah they really have the extensive
0:10:45
well you know it's a big company so
0:10:47
i think that's like
0:10:49
pretty typical right
0:10:51
so he's gonna be really popular
0:10:55
over there which i'm pretty sure you
0:10:59
have if i if i somehow got in i would be
0:11:03
amazing i would be very happy
0:11:07
but you know just i'm not expecting much
0:11:12
if they give me the internship i'll take
0:11:17
it's a good it's a really good
0:11:19
internship actually yeah
0:11:26
in plus is a global company isn't it
0:11:31
shopify yeah yeah like they're they're
0:11:34
in they're in your country they're new
0:11:38
they're in singapore they're in
0:11:41
maybe indonesia now too they're in
0:11:52
blah blah blah they're from canada
0:11:56
you're right right right i see
0:12:01
that's pretty awesome man
0:12:06
it's it's a good company
0:12:08
i like what they do too
0:12:13
what you are trying to educate someone
0:12:16
who doesn't know what microsoft does
0:12:41
he already has a gun and now it's my
0:12:46
well we're gonna see what kind of mood
0:12:48
gekdev is in tonight
0:12:53
okay see if i do this
0:12:58
what i'm basically doing is trying to
0:13:02
compare everything
0:13:17
so i need to click on this click
0:13:19
function no i don't need that one
0:13:37
uh disconnect where is my display root
0:13:41
uh there's the other person's
0:13:46
which is all of this
0:14:05
just connect route
0:14:11
okay get rid of all this don't need this
0:14:25
take this one as well
0:14:37
so that is okay that is fine so far and
0:14:41
now i need to place in the handler
0:14:45
which is on disconnect
0:14:50
this connect function is here
0:15:00
and then i need to place
0:15:02
on this kind of permissions
0:15:13
all right okay cool so what
0:15:20
did you find the problem
0:15:23
i think i did i would be nice and this
0:15:31
yeah we need to which lines then
0:15:43
websocket disconnect lambda permission
0:15:48
websocket disconnect plan yep
0:15:54
just bear with me i want to make sure
0:15:55
there is the right one
0:16:19
i'm just confirming that if
0:16:24
right in the first place
0:16:28
function is that one year
0:16:31
which is the whole thing there
0:16:40
lambda function yeah policy is that one
0:16:48
oh okay cool that's fine um yeah so i
0:16:57
so you know like we have websocket
0:17:00
disconnect lambda permission
0:17:04
uh work circuit disconnection yep
0:17:19
websocket disconnect handler function in
0:17:27
so i don't know what difference would
0:17:29
that make but i'm gonna remove that
0:17:33
and trying that way that's odd because
0:17:36
then in the connect one you have it yeah
0:17:43
websocket is gonna land
0:17:47
let me check if he is go in the connect
0:17:54
reading this file so
0:18:03
he hasn't got the lambda depends on
0:18:08
in the on connect permission no it
0:18:12
that's interesting
0:18:19
which one are you looking at
0:18:21
which which project are we are we
0:18:23
looking at the is this the one
0:18:41
is is this from is this from this
0:18:45
from our abba repo
0:18:49
so i mean i mean where you're where
0:18:51
you're where you're comparing it from
0:18:54
yes it's from that their blog's code
0:19:18
so what i might do is i might just
0:19:27
for both of the connect and see if it
0:19:31
this one right i dropped it in the chat
0:19:48
let me just confirm it
0:19:50
that's what i'm looking at too but
0:19:58
i do i do just i just don't have the
0:20:01
experience reading this
0:20:04
trust me i hardly have any
0:20:07
i'm just having kind of
0:20:12
solving this issue
0:20:17
are there what are approaches to
0:20:21
these like sam templates these
0:20:23
cloudformation templates
0:20:30
um so how i'm doing is just i'm
0:20:33
comparing the code
0:20:35
that's working with the non-working one
0:20:41
yeah i mean it was just yeah i guess i
0:20:44
was wondering if maybe it's
0:20:46
worth a google search sometime
0:20:48
yeah yeah for sure
0:20:51
just like general debugging advice
0:20:57
i mean i ran i ran sam validate and it
0:21:02
which i expected because like we didn't
0:21:04
get an error during the when we deployed
0:21:09
objective has some helpful advice
0:21:18
just google right now
0:21:21
actually that is really helpful
0:21:42
what is the top what is the top reason
0:21:45
forgot to clear the browser cache
0:21:48
you may make i can wait for time now
0:21:56
um resources connect route connect
0:22:08
oh okay yeah i just my brain is
0:22:18
for his on disconnect permission
0:22:22
he has depends on simple web
0:22:24
simple chat websocket which is
0:22:34
websocket api can't wait is that right
0:22:38
is that something reading that so it
0:22:40
depends on that okay so it doesn't
0:22:45
the other what do we have
0:22:55
depends on websocket yeah so it doesn't
0:22:57
depend on the other
0:23:09
actually let me just go ahead and check
0:23:12
if this even works
0:23:14
it might just even work
0:23:21
send message function
0:23:26
send message permission
0:23:29
and connect permission
0:23:48
okay on disconnect function
0:23:55
we should just we should just rename
0:23:57
everything exactly
0:24:01
that's what happened
0:24:04
you know what i can actually do copy and
0:24:11
the function names
0:24:16
websocket disconnection
0:24:38
timeout is 30 seconds
0:24:42
environment variables uh-huh
0:24:59
i don't think you need these extra
0:25:01
policies attached to the lambda
0:25:04
i i mean it's not going to do anything i
0:25:06
just don't think you need him
0:25:08
according to what he has
0:25:13
yeah we can just remove that one
0:25:17
right yeah let's see if this works
0:25:20
just making a mental note of that
0:25:24
i'm gonna take a bit of
0:25:32
did you know that sugar actually can
0:25:34
make like too much sugar will actually
0:25:44
tell you a really fun fact of zayn
0:25:55
have sugar at all to the point that he
0:25:58
doesn't even have sugar at home
0:26:08
extreme yeah that's extreme i was gonna
0:26:17
wow how do you how do you do how do you
0:26:22
let's get used to it after a while
0:26:31
man like i need to have something sweet
0:26:34
once in a while i'm not like crazy about
0:26:36
myself but like once in a while like
0:26:40
one small thing a day is nice
0:26:45
but then again yeah i don't know
0:26:49
i don't have i don't have any teeth so
0:26:54
like you think maybe you're maybe you're
0:26:56
on this thing i don't have teeth
0:26:59
doctors borderline diabetes
0:27:08
um gekko asked how was work zayn did you
0:27:11
finish before 9 20
0:27:16
today i finished at 9 28.
0:27:23
that is how's work
0:27:27
you how when are you going into work
0:27:33
seven ish in the morning
0:27:35
so you're doing like are you saying
0:27:37
you're doing 12 hours plus
0:27:46
just be um yeah i don't even
0:27:49
mind it because the personal projects
0:27:51
that i use to do as in with a tech
0:27:56
to do it here as in as paul
0:27:59
works so i don't i don't even mind
0:28:02
giving you a few more hours because
0:28:05
that's just i kind of can
0:28:08
consider that i'm fast tracking my
0:28:13
yeah you're definitely you're definitely
0:28:15
putting in the hours man that's that's
0:28:20
that's admirable well you should take a
0:28:22
break at least at some point because you
0:28:24
know you don't want to you don't want to
0:28:25
burn yourself out man
0:28:31
and that's what i'm basically in the
0:28:33
process off as well so let's see how
0:28:44
forgot to remember these passwords
0:28:49
sorry this always takes a bit more time
0:28:54
i'm going to invoke function ref
0:28:56
websocket disconnect
0:29:14
waiting for the next mfa code
0:29:43
in the disconnect route
0:29:51
no i take that back
0:29:53
i'm trying to read two things like on
0:30:04
okay i'm gonna just
0:30:08
stop sharing my screen
0:30:15
my password for aws account
0:30:19
because i seem to forgot
0:30:47
it's it's i i read i'm trying to read
0:30:50
over everything about the disconnect
0:30:53
lambda and route and like i don't see
0:30:56
any differences to what he has
0:31:03
so there must be some tiny detail that's
0:31:07
yeah it must be that
0:31:12
like i hope it's not another typo
0:31:16
i really don't hope so as well yeah
0:31:19
because at that point
0:31:21
i'll be changing my career
0:31:34
so yeah we don't need don't
0:31:39
gekkdev is asking if you started finish
0:31:42
your onboarding and if you
0:31:44
he says you need to start coding
0:31:54
that's what i want to do really as well
0:31:56
as in stock coding and coming on the
0:32:03
but um they need to agree for the
0:32:07
compliance and everything that
0:32:10
everything has to be done as part of the
0:32:16
that's up at the moment
0:32:36
is there like a test test route
0:32:40
did you call it like test route or
0:32:42
something no i didn't no all right oh
0:32:44
default lambda function
0:32:48
no no that's that's not
0:32:50
it's where's the where's the where's the
0:33:00
so you know you're using that at the
0:33:04
but you had it before did you call it
0:33:08
something um i called it test but then
0:33:12
i changed it to default
0:33:17
it's is it called default lambda now or
0:33:23
looks like it why are we talking about
0:33:25
default camera now
0:33:27
i'm just trying to read the the yaml
0:33:31
figure out like why the other lambdas
0:33:34
are working and being invoked versus
0:33:36
this one with the disconnect like the
0:33:41
and lambda is not being invoked
0:33:48
um so the disconnect
0:33:54
we're not working with the disconnects
0:33:59
because what i thought that we want to
0:34:02
make the connect and the disconnect
0:34:07
and then we can come back to d4 so
0:34:10
default one is no no
0:34:12
yeah that's that's what i'm saying i'm
0:34:14
just looking at the yaml
0:34:16
and just trying to compare
0:34:18
what you've written in the yaml
0:34:20
yeah and and what i know works like i
0:34:25
on connect function works i know the
0:34:28
default function works but for whatever
0:34:33
disconnect function is not working even
0:34:39
uh cloud formation and being built it's
0:34:42
just not being invoked
0:34:45
right right right now i was just trying
0:34:47
to figure out in the code
0:34:50
what the difference is in the ammo
0:34:51
that's why i was just wondering if you
0:34:53
had renamed it i'm not actually like
0:34:56
working on the default route i was just
0:35:00
so i can try to compare the differences
0:35:13
original question sorry
0:35:16
i lost track sorry
0:35:19
um it's cool man um i was just asking
0:35:25
if you just renamed it from like test
0:35:39
cool so let's check if this
0:35:44
one wants to work for me
0:36:00
oh here's another one
0:36:04
until no i don't want to
0:36:08
i need my pie socket
0:36:35
okay so we have how many one two three
0:36:38
four five five here
0:36:41
and by pressing this one we should have
0:36:52
yes six and now if we press
0:36:54
disconnected then we should have five
0:37:01
i'm gonna print this center here
0:37:06
and let's check how many do we have
0:37:10
one two three four five six
0:37:16
i'm really curious where am i missing
0:37:19
and what am i missing
0:37:35
so that's interesting
0:37:42
over there isn't that
0:37:45
amazing to connect without the
0:38:12
okay that wasn't the problem then
0:38:14
so website here here works out a simple
0:38:17
change disconnect none
0:38:19
that is fine disconnect integration
0:38:23
disk yeah that's fine that's fine the
0:38:35
um i think we i think i think do we need
0:38:37
to add in that depends on in the
0:38:40
deployment the default
0:38:48
i don't think we would need to
0:39:08
i know that feeding my i know i'll be
0:39:11
i'll be right back zayn i won't leave
0:39:38
that one table name is top one
0:40:19
websocket disconnects from the function
0:40:27
oh i'm muted oh man
0:40:32
i said i yeah i like did a surprise but
0:40:35
i was muted so i'm
0:40:38
yeah it didn't look cool
0:40:42
what surprise did you do
0:40:50
this this i didn't have a headache
0:40:52
before i started the show but now i do
0:40:57
i know exactly how you feel because i'm
0:41:00
what do we call it on a night because
0:41:03
i'm not being productive at all
0:41:10
it's fine it's fine like i'm sure
0:41:17
this is just something i can try to read
0:41:21
and see if i can spot any sort of
0:41:25
but it's i'm just like reading it here
0:41:27
on the screen and i just
0:41:35
i think that i just have to
0:41:38
have to locate it with a really fresh
0:41:41
pair of eyes and fresh pair of bra
0:41:51
yeah me too i'm pretty i'm pretty
0:41:52
exhausted at the moment
0:41:55
let's see gekko sent a clip
0:42:03
my back that's weird it said it was
0:42:07
i don't know why there's dogs barking
0:42:31
call it a night cause i'm
0:42:34
not being productive at all here and
0:42:42
yeah yeah just um relax uh and
0:42:47
just be fresh for i would say
0:42:53
cool yeah i gotta finish this project so
0:42:56
that's what i'm doing
0:42:59
well i mean i'm not gonna finish i gotta
0:43:01
finish it tomorrow but
0:43:06
what you're gonna do i you know this is
0:43:12
my best i have a friend though who got a
0:43:14
job today it was a nice one yeah but i
0:43:18
was like dude don't take that job that's
0:43:20
not that's not good
0:43:33
all the hard work is
0:43:37
yeah he's been interviewing so much
0:43:40
recently and i'm just not
0:43:43
you know i need to like after this
0:43:47
after this internship
0:43:49
project is done i just really need to
0:43:51
step up my game on like applying
0:43:54
applying to positions
0:44:01
doing a really good job man as in not
0:44:04
many people get interviewed for shopify
0:44:06
that kind of company
0:44:09
um yeah i'm proud of that
0:44:12
i'm proud of the fact that i even got an
0:44:14
interview and then i passed one round
0:44:20
i need to shave i need to sleep and you
0:44:22
need to sleep as well
0:44:27
and i need to get a for i want an extra
0:44:34
yeah all right guys um
0:44:38
joining in although we
0:44:40
weren't as in in our best state
0:44:45
manage to do a bit of
0:44:49
uh just a little bit of work but
0:44:52
we are again one step closer to our
0:44:57
if you want to see how we tackle that
0:45:00
once i'm closer again and join us
0:45:05
same time same place and
0:45:14
all right guys have a good night have a