0:00:25
all right welcome back everyone welcome
0:00:28
another episode of build break and fix
0:00:31
to everyone who is joining us for the
0:00:34
we are coders which means that we're a
0:00:37
team of three developers from melbourne
0:00:40
australia because that's where we are
0:00:42
based and that's where the project is
0:00:44
based and we've been working on a
0:00:46
project where it's still adding
0:00:48
persistent storage to a current open
0:00:52
which is called scrambler ca
0:00:54
don't mind with that
0:00:58
we've been working with a lot of
0:00:59
different technologies uh for the back
0:01:01
end um we're using express.js which is
0:01:05
the basis and the backbone of our whole
0:01:08
project structures
0:01:09
for our preferred cloud vendor we're
0:01:14
that was the most um desired skill or
0:01:17
the most preferred skill in our team
0:01:20
uh most other people
0:01:22
um were quite apt and quite known um the
0:01:28
and for the front end we're using html
0:01:31
css and pure vanilla js
0:01:35
nothing too complicated but
0:01:37
we do plan to scale the software up to
0:01:41
um because that's something which
0:01:43
the team wants to get better at so
0:01:47
um we'll be looking forward um to doing
0:01:51
but talking about now well um
0:01:55
yes story is coming as well oh sorry my
0:01:57
bad tonight is coming as well he had a
0:02:04
dude you're gonna live hundred years
0:02:12
um yes so as i was saying
0:02:16
we're looking forward to um
0:02:18
building um it on react as well in the
0:02:23
yes uh so before we get started i think
0:02:25
um it will be a good idea to acknowledge
0:02:28
traditional or the real owners of the
0:02:32
which which we are streaming on today
0:02:36
again as i say in every episode i think
0:02:37
it's really important um to
0:02:44
redundant it gets but i think it's
0:02:47
for us to show that
0:02:49
yes we do care about um
0:02:52
this so here it goes
0:02:55
i begin today by acknowledging the
0:02:56
traditional custodians of the land on
0:02:59
which we gather today and pay my
0:03:01
respects to the elders past present and
0:03:03
future i extend their respect to
0:03:06
aboriginal and torres strait islander
0:03:11
alrighty um bill if you're wondering
0:03:14
who's voice for that that was in um our
0:03:22
cool um how are you tori how was your
0:03:29
oh my god you know this is the second
0:03:31
time i called you tori yeah tonight
0:03:34
you guys have changed the first letter
0:03:41
um yes it was good okay um yeah just had
0:03:44
a relaxing weekend very nice um
0:03:47
yeah really really good i'm feeling
0:03:48
pumped for today how about yourself how
0:03:52
yeah pretty much the same um relaxing
0:03:55
nothing too major coming up came up this
0:03:59
yeah but i think it made the start of
0:04:01
the week better so yes nice yeah um cool
0:04:06
so wait what the story is i think it's
0:04:08
because you both enjoy it after
0:04:11
yeah that's pretty much
0:04:14
that's pretty good that's pretty good um
0:04:17
alrighty let's let's jump back um
0:04:20
into where we were um
0:04:25
um ready i think i pushed my code and i
0:04:28
think um you should be supposed to share
0:04:30
a screen touch today so yeah um i think
0:04:33
that should look good
0:04:34
you guys look very impressed yes um
0:04:38
i had um coffee just like three minutes
0:04:44
reminds me of the healthier energy drink
0:04:49
which is the channel sponsor
0:04:54
any update on zayn do you know when he's
0:05:00
but i did have a word within like last
0:05:02
week about some stuff with the project
0:05:06
but i didn't get a chance to ask him
0:05:08
when he's coming back um but that being
0:05:11
said he when he went he said it's going
0:05:29
so maybe a week more
0:05:36
yeah um do you want to show my screen
0:05:40
oh yeah sure oh but you're not logged in
0:05:43
no i don't looked in yeah oh did you log
0:05:50
help think he refreshed the screen by
0:05:57
that was funny that was funny
0:06:03
because so what happened with me as well
0:06:05
i got logged out as well today and i had
0:06:08
okay and i thought it's just me
0:06:13
um okay it's with you as well i'll i'll
0:06:15
log you in after these sessions
0:06:19
all right i think he's gonna be pissed
0:07:08
i might just get the api on the other
0:07:10
screen so just yeah
0:07:14
what's the regression target tonight
0:07:18
is it an actual term like regression
0:07:31
is he talking about like machine
0:07:32
learning or something like that yeah it
0:07:37
it's something and skits
0:07:43
i don't know how to pronounce that thing
0:07:47
is it a python library
0:07:50
no that's just an equation but i'm just
0:08:02
i came ready tonight by the way i
0:08:04
couldn't find a better way to describe
0:08:05
the way you guys were
0:08:10
mean actually didn't get that
0:08:14
yeah i need to try yes
0:08:16
he's talking about the progression
0:08:18
target thing yeah i started sharing
0:08:20
yeah uh should i start or should i start
0:08:22
oh give me one second
0:08:42
all right let's just see so we'll uh
0:09:09
i understand that you know that's what
0:09:11
he's trying to say but i don't actually
0:09:12
understand what regression target is
0:09:15
okay three two one
0:09:19
well that's a good guess but
0:09:29
yeah i don't know what he meant
0:09:33
kind of reminds me of what you told us
0:09:35
about the job interview you think and
0:09:37
your sense of humor story
0:09:41
it's too advanced for us
0:09:45
this is too good for humans to
0:09:55
so what's the what was the last issue we
0:09:57
were facing uh okay
0:10:02
i remember something stopped working
0:10:05
oh wow okay it's working on yours now
0:10:07
never mind i wasn't able to create the
0:10:09
note but uh we work on update so um go
0:10:13
back and check and try to update
0:10:17
maybe i shouldn't spend so much time
0:10:19
talking to the machine
0:10:27
ml core story by any chance these
0:10:34
cuz i really feel like
0:10:58
whoa doesn't like patch
0:11:05
are you able to catch
0:11:12
postman a call battery postman uh yeah
0:11:19
let me try uh let me just try it if let
0:11:21
me just try one more time
0:11:38
okay let's add a few notes and see
0:11:54
so that saves no problem
0:12:14
the engineering manager
0:12:16
said that i need to work more with
0:12:19
fair programming and or work with larger
0:12:23
all right i know what you mean
0:12:25
um that's uh opportunity for you to join
0:12:30
there's a there's an opening coming up
0:12:32
i'll send you the linkedin
0:12:47
it doesn't pay though so just like you
0:12:50
know yeah like you'll you'll get paid in
0:12:52
experience so don't worry
0:12:59
i'm gonna make a bunch of cards
0:13:04
that's not what the hiring manager meant
0:13:08
why are you taking an hour on us
0:13:17
like i can just imagine like a
0:13:20
frustrated senior engineer getting
0:13:21
rejected because they didn't have like
0:13:24
and they just like
0:13:28
kids github apart with the pianos
0:14:00
it's not an open source project
0:14:05
where do you say that okay
0:14:07
because he says he's going to open a ton
0:14:20
let's put it in here
0:15:04
the content type here right
0:15:07
oh wait we don't need the content type
0:15:22
um authentication i don't know anymore
0:15:30
no okay yeah sure um um i
0:15:33
yeah i think it'll work anyway
0:15:37
right so give the body um i'll tell you
0:15:41
and i tried adding you to the postman
0:15:44
repo but uh sorry workspace but i can't
0:15:47
there's a limit to postman of three
0:15:52
yeah that's all right
0:16:00
export the whole thing and send it
0:16:05
the this will look like
0:16:07
you know json object single note
0:16:15
you guys happen to know the api limit
0:16:19
only i don't think i was gonna get the
0:16:21
job because it seems
0:16:23
there was an inside all right okay
0:16:26
yeah that sucks sometimes though um
0:16:29
the inside hires i mean yeah
0:16:32
sometimes it's i mean you can get
0:16:34
advantage of that as well but
0:16:37
you know honestly when you spend so much
0:16:40
and then they just like oh yeah we got a
0:16:45
i asked why the position was open during
0:16:48
interview with other seniors kind of
0:16:50
blood i asked because this build been
0:16:53
saying that they already all right okay
0:16:56
so the rest of it just for the vibes um
0:17:01
you need to create double quotes
0:17:03
both of the values
0:17:13
i mean i think it's good on their part
0:17:16
that they're not wasting it so
0:17:18
also you do oh you need something inside
0:17:22
yeah i know i just want to see which
0:17:24
card this is beforehand
0:17:36
and remove the comma yeah
0:17:40
all right let's attach
0:17:47
get all the boards and see if that id is
0:18:08
so none on the body
0:18:11
click none on the left oh here
0:18:18
how have you hydrated
0:18:20
well we have not where is the hydration
0:18:25
we're not giving water
0:18:36
thank you for the reminder
0:18:42
i think the developer was supposed to
0:18:48
what to you um i think i get that
0:18:53
didn't get the context of that
0:19:00
try this id and do the patch
0:19:10
let ninja already tell you wait the
0:19:12
senior death told you right
0:19:17
during the interview
0:19:22
during the tech interview they should
0:19:31
that is weird oh i know why
0:19:33
i know why um okay that's fine that's
0:19:40
semantics are working in the back and i
0:19:44
okay because there are checks or like
0:19:47
there are validations
0:19:57
you're saying in like the same
0:20:00
yeah yes what i'll do is i'll comment
0:20:06
i think creating the validators would be
0:20:10
that's not the point right now i'll
0:20:12
comment them for now but
0:20:14
you probably have to come back to
0:20:16
sam api do the share screen
0:20:58
i mean it's this this is the one which
0:21:00
is stopping it oh okay
0:21:03
i think this one is fine that should be
0:21:09
yeah this one is fine as well
0:21:15
yeah i think it does fine
0:21:53
you live in a one bedroom apartment
0:22:00
yeah just let alone man
0:22:02
does it get weird like
0:22:08
ah it's not too bad um you get used to
0:22:13
you live alone don't you as well okay
0:22:15
i mean i live in a student accommodation
0:22:17
so it's kind of like a
0:22:21
mates live on other floors
0:22:27
all right um can't try it now i'll just
0:22:31
i'll let yours come clean
0:23:24
let's see what do people say
0:23:29
more uml diagrams tonight
0:23:31
do you like the sweet statement with the
0:23:33
try catch block huh um
0:23:38
we'll do diagrams if we need to explain
0:23:40
something to each other
0:23:42
but not explicitly planned um something
0:23:48
and let me see which switch statement
0:23:55
okay oh we had that we had that tracker
0:23:57
because we have a send
0:23:59
press dot sign and we didn't want it to
0:24:03
oh still the same thing
0:24:06
yes do the same thing did it change the
0:24:14
what's the error you get id not
0:24:16
valid yeah i do know about it how do you
0:24:23
did he is not really friday night
0:24:58
better go in like two seconds let me
0:25:03
what's the issue okay like what do you
0:25:05
think the issue is
0:25:07
um there was another
0:25:13
something along the same lines
0:25:21
have you eliminated all these statements
0:25:26
i don't think so there is any let me do
0:25:38
never mind there is a
0:25:42
there is a statement only when we're
0:25:53
might get rid of them
0:25:56
okay i'll try it now
0:26:04
okay i still don't get it the whole
0:26:06
if statement thingy is it a is it a
0:26:08
joker is an actual thing
0:26:11
i still haven't like
0:26:13
is there more than three months and i
0:26:17
are we actually serious about this thing
0:26:19
like using only switch because
0:26:21
at uni we didn't really learn any of
0:26:27
okay um okay so see for me my
0:26:30
experiences are limited on this one i
0:26:32
haven't worked with
0:26:34
super large scale um
0:26:37
um back-end systems or even front-end
0:26:41
i mean where i'm currently working we
0:26:42
use if statements but i also do realize
0:26:46
million people use it every second on
0:26:49
million requests so
0:26:52
like i tried doing google searches i
0:26:54
tried seeing the difference in
0:26:58
um i mean they have to be the same
0:27:03
i don't know like at uni also we never
0:27:05
heard something like that so
0:27:07
for the last three months i i always
0:27:09
thought that you guys are kidding or
0:27:12
but i really want to know today what is
0:27:18
um tech lead that we shouldn't use if
0:27:20
would i be appreciated
0:27:28
okay so does that mean
0:27:33
does that mean we can use it like i'm
0:27:35
actually asking seriously asking
0:27:37
because it's gonna like it's changing my
0:27:42
yeah that's actually a good question
0:27:44
i'm really curious for the answer as
0:27:46
yeah like i just don't know at this
0:27:51
because i've also heard that yeah i've
0:27:53
also heard about it but i'm not exactly
0:28:00
okay that answers it okay i'm glad i
0:28:07
i mean realistically
0:28:10
both have the same um
0:28:13
time complexity and space complexity
0:28:20
like what's the reason you can justify
0:28:23
and honestly it has less lines of code
0:28:36
if that makes sense yeah well you're
0:28:38
just saying yeah yeah and dory confused
0:28:47
okay yeah that makes sense um cool so
0:28:50
the lesson we learned today is that
0:28:52
don't tell your tech lead to not use if
0:29:01
i was almost gonna say it one day i
0:29:05
there was like a bunch of if statements
0:29:07
um in this particular controller
0:29:12
and i was like hey why don't you switch
0:29:18
he was like why do you want to switch
0:29:20
and i almost like i didn't say why but
0:29:23
like i was like oh it might look nicer
0:29:34
yeah i know what you mean like i think
0:29:37
which switch kind of gives me more of a
0:29:40
you know how when you're on a call and
0:29:42
they give tell you like press one for
0:29:44
this press two for
0:29:46
say s3 for operations
0:29:49
yeah true like gives me that kind of uh
0:29:59
yeah like exactly a single check um it's
0:30:03
like doing a single check is like
0:30:05
imagine me calling andre and
0:30:08
the ringer says press one
0:30:12
direct to andre that's it there's only
0:30:15
you know what i mean
0:30:18
like there's only one
0:30:20
um case that's all
0:30:23
oh yeah but why would i still do press
0:30:26
one to get to andre
0:30:33
switch for truthful okay now again story
0:30:35
you're confusing me
0:30:43
you know you guys actually might get me
0:30:48
search for true false is our kill yeah
0:30:55
modern approaches to javascript is to
0:30:59
online oh wow okay now he's just kidding
0:31:06
hey really oh you should look up
0:31:19
okay fair enough um
0:31:22
that clears my three month long doubt
0:31:26
guys one out of hundred bad practices in
0:31:48
this statement was true so
0:31:58
so i think patch is working
0:32:00
it's kind of working man but we should
0:32:04
request it again right because
0:32:06
if you look here um
0:32:09
like this this worked
0:32:11
and this one worked
0:32:13
but this didn't even insert
0:32:18
let's start a new newborn
0:32:20
yeah let's do that
0:33:02
okay wait i just inserted one no
0:33:20
the first one didn't answer
0:33:51
global pollution is
0:33:53
what's the metric of global pollution
0:33:57
like towns or are you in global
0:33:58
population did you just miss them
0:34:08
um go to our front end
0:34:19
is it the first knot that's not
0:34:20
inserting you should test that actually
0:34:30
do you want to test that first
0:35:03
two and let's do one more
0:35:11
it does say three inserted
0:35:18
um that helps let's make the one as for
0:35:27
yeah let's click on save again
0:35:30
didn't come up but
0:35:34
yeah that worked as well okay very nice
0:35:37
nice that works um can change two to
0:35:49
okay yeah let's let's see that looks
0:35:52
it's promising and yeah what this one
0:35:58
i think implementing delete after this
0:36:04
it's weird man like some of it it
0:36:08
all the time maybe
0:36:11
you know whoever saw this joke
0:36:13
saw it i'm not gonna repeat it
0:36:17
whoever saw the joke
0:36:31
hard to figure out
0:36:36
what's the joke if you add them
0:36:49
um dory you can oh my god okay i'll tell
0:36:52
you guys the joke afterwards um
0:36:59
that works okay so now let's try doing a
0:37:06
so the cross there should act as a
0:37:09
the cross on the board
0:37:11
okay oh no sorry on the note
0:37:31
patch has a photo for
0:37:58
see just it misses cards sometimes
0:38:04
cross this one cross the v1 and put the
0:38:20
okay do one thing um
0:38:23
add two notes very fast
0:38:28
two notes very fast
0:38:30
very fast like just click create two
0:38:35
yeah do this one complete this one
0:38:43
you mean like that no doubt that's still
0:38:45
i mean let's see if
0:38:50
yeah okay seems to work um
0:38:53
we don't worry about it too much right
0:39:00
maybe what you can do is try
0:39:02
not patching some and add one
0:39:07
so patch two and add
0:39:33
that does seem right because there is
0:39:41
so ec2 should there should be there
0:39:52
yeah i think maybe we'll come back to it
0:39:54
yeah okay um that looks fine oh good job
0:40:01
let's see if the cross works now
0:40:07
click on cross i wanna see what happens
0:40:10
yeah click on cross again just click on
0:40:12
two or three crosses
0:40:16
and click on save to see what happens
0:40:24
we just need to remove it from the
0:40:29
so when we hit cross
0:40:33
we actually need to remove it from the
0:40:36
that shouldn't be too hard
0:40:49
sorry it's like i'll submit a pr for a
0:40:54
come back to it after the mvp
0:41:03
so we just where's the cross function
0:41:06
i think there was one called delete just
0:41:54
just follow it from the front and bro
0:41:56
like just to inspect element
0:42:17
should be an icon so
0:42:30
um we can't see the
0:42:33
can you close uh like make it smaller on
0:42:37
no the whole thing the whole thing make
0:42:41
now over on this this one only this one
0:42:44
the one which you have selected
0:42:56
you click on the one below
0:43:02
it does look like it
0:43:14
this team icon link let's try seeing
0:43:17
can you click on it
0:43:27
all right click on it and see if we can
0:43:35
i think that's just in the isn't it yeah
0:43:38
yeah and that's what i'm trying to do as
0:43:40
well in here like here
0:43:42
yeah yeah yeah open this file
0:43:47
do we just need the function okay
0:43:52
we just need a function don't we yeah
0:43:55
do we know where the function is that's
0:43:57
what kind of information i'm just
0:43:58
looking through this
0:44:00
it should be in script right
0:44:21
yeah try try this one see where this
0:44:24
oh this doesn't call any function
0:44:26
it cause dot remove can you see the dots
0:44:30
um just search for remove in the whole
0:44:33
oh yeah good definition that helps
0:44:36
i decide for remove
0:44:41
oh wait nevermind that's the
0:44:48
that's the self remove that's not the
0:44:50
remove functions you're thinking
0:44:55
well that's all right we can just create
0:44:56
our function and call it from there um
0:45:02
um try doing a print on delete card
0:45:09
just after line 126 try it
0:45:25
can you comment all of the other things
0:45:27
from line number 132
0:45:30
you mean this one yeah just comments
0:45:49
see if we can delete the car
0:46:00
is that what data is
0:46:08
to the thingy other code
0:46:13
oh never mind so that's not it so let's
0:46:15
uncomment the whole thing
0:46:20
i didn't call this right
0:46:28
try searching for the other delete
0:46:34
yeah once you have what is this calling
0:46:40
was it like on click on it
0:46:54
if card equal to card
0:46:58
that this is already a function so there
0:47:00
won't be one click
0:47:05
let's keep going down
0:47:10
okay let's just search for delete
0:47:16
it's the one we just saw
0:47:31
let's see this one i think this could be
0:47:33
the one as well oh wait did we yeah we
0:47:35
didn't look at this one did they cut
0:47:52
probably won't work um put it inside the
0:47:56
and comment data story or maybe not
0:48:01
i think it's okay to keep it
0:48:08
um that's not all code
0:48:10
but i i get what you mean
0:48:17
yeah again wish we did this india
0:48:38
yeah yeah certainly
0:48:41
you know create a quick function delete
0:48:43
and just call the thingy
0:48:46
uh yeah you can do you just want to have
0:48:48
a look so this card attribute though
0:48:55
are you getting the card id that's all
0:49:00
point um the scene the front and you
0:49:03
just printed card so let's see what we
0:49:09
but i think it does come out or
0:49:21
yeah just print it oh just cross it
0:49:25
um it's coming undefined because it's
0:49:26
not called a card id it's called
0:49:31
card and we'll figure it out
0:49:44
just print just click cross
0:49:58
i mean the color is there so
0:50:07
we just need to see how we access it
0:50:12
wait oh wait go down uh go back to the
0:50:18
they are accessing the id right there
0:50:38
true nice all right um
0:50:42
okay let's create a quick delete
0:50:50
i'll just put it yeah
0:50:53
i mean honestly this will be like the
0:50:59
oh wait just trying to think
0:51:17
you deleted from the hash map for the
0:51:22
to delete in the back end i think
0:51:32
yeah i think that's
0:51:34
um let me just google today from hashman
0:51:37
how to delete from a hashmap
0:51:46
okay there's a map.delete
0:51:50
that is convenient
0:51:55
delete the card id
0:51:57
yeah the text for notes dot delete
0:52:01
wanna become famous
0:52:03
do you wanna be confused
0:52:12
yeah you can reach out to this guy
0:52:16
um all right so you got that and then
0:52:26
this one a weight of it
0:52:29
yes i do await delete note
0:52:39
yeah and the board
0:52:42
so local storage start get boring
0:52:49
i'm not sure how that was but yeah
0:53:17
it is probably gonna break
0:53:19
um i don't know i know why
0:53:25
uh the back end is doing a check
0:53:34
oh never mind it is not
0:53:46
oh wait never mind it is haha i
0:54:04
okay yeah one sec i'm just gonna fix it
0:54:18
honestly if this gets done the delete
0:54:22
realistically we can work towards
0:54:25
getting the ball now
0:54:36
it's coming along man
0:54:44
and it's coming together for sure i
0:54:47
don't know what's going along
0:55:13
what happens after that
0:55:15
after the date party or after we
0:55:21
then we start building and react
0:55:30
okay come on tanish we go on this just
0:55:32
try to run board really
0:55:35
okay just like this
0:55:45
yeah and that's i understand why
0:55:48
yeah i know why that happens you click
0:55:52
i click save but it's not safe it's not
0:55:57
oh you never called a function right
0:56:00
yeah i never caught uh
0:56:03
then let's just call it that's true
0:56:24
i love the humbleness yeah like
0:56:27
oh it won't work because i never called
0:56:39
we're just making none
0:57:07
i'm bored not present
0:57:13
go back to the front end
0:57:17
go to still front end
0:57:24
right there we go there it is
0:57:31
why is board id coming as null
0:57:34
the board id is coming as null go back
0:57:38
cheers go to wherever you put the board
0:57:48
just do a ctrl f really
0:57:50
yeah and search for dot delete
0:58:03
just do local stories or get item
0:58:05
directly don't do this thing okay
0:58:10
and can you print the board id as well
0:58:11
while doing it like just print
0:58:13
controller lock local storage
0:58:19
you guys want to hang up your keywords
0:58:24
lol painful within that word
0:58:31
keyboard google storage i think
0:58:33
sorry all right okay
0:58:49
it's fine just yeah let's just see we're
0:58:51
gonna get the error anyway here
0:59:21
it is interchange that's true
0:59:28
go back to still funding
0:59:40
that is interesting
0:59:43
all right let's come back to it tomorrow
0:59:46
yeah yep sounds good
0:59:50
okay that looks good i
0:59:52
i think it's just a matter of giving it
0:59:54
the correct border note id and
0:59:58
yeah cool i think it's pretty close
1:00:01
yeah that that pretty much wraps up the
1:00:03
first phase of like
1:00:05
the workflow creating the thing
1:00:11
really print it um
1:00:15
yeah yeah that sounds
1:00:19
okay yeah that sounds amazing cool
1:00:22
uh all right let's just push the code up
1:00:25
and um you're on the same page yeah sure
1:00:31
cool um thanks guys thanks for joining
1:00:34
this is really fun
1:00:36
so i don't have to use the old scrambler
1:00:38
anymore yes you don't
1:00:43
you probably don't need to use jira
1:00:44
anymore as well now
1:00:49
yeah i'm not talking about that it was
1:00:52
i think even while we were like hanging
1:00:54
out and chilling um
1:00:59
so yeah don't forget us to join us
1:01:03
for the first time in weeks i don't have
1:01:05
any coding interview on tuesday so
1:01:14
um yeah no that's not the money do you
1:01:16
have anything to add finish
1:01:18
uh yeah no good okay um yeah i think we
1:01:21
made a pretty good progress again today
1:01:25
yeah a little bit closer every time so
1:01:32
let's uh let's come back to it tomorrow
1:01:35
see where we can get the delete
1:01:37
functionality running
1:01:39
we're doing our outro
1:01:41
yeah yeah this is just remember
1:01:44
so turn us tomorrow
1:01:46
same time same place and
1:01:50
same task oh there we go all right
1:01:54
good everyone see you tomorrow