0:00:24
alrighty welcome back everyone welcome
0:00:26
back to another episode of buildbreaking
0:00:29
fix of course to everyone who's just
0:00:33
we are roll curtis that means we are
0:00:35
team of two developers
0:00:39
force of habit i'm so sorry first of all
0:00:42
do you have three developers now and
0:00:49
yes yeah just a team of deaths from
0:00:52
melbourne australia
0:00:53
and of course if you're new here we are
0:00:55
working on a project and we are
0:00:57
documenting it on the way
0:00:59
and the project relates to adding a
0:01:01
persistent storage
0:01:03
to a current open source project called
0:01:07
and we are basically going ahead and
0:01:09
adding storage to it what that means is
0:01:11
that you'll be able to store what you're
0:01:13
creating and come back in next time and
0:01:16
see what changes you left out
0:01:19
so yes we're working on stuff revolving
0:01:22
around express.js we use a lot of aws
0:01:25
we use postman to test our apis right
0:01:27
now for the front end we are using css
0:01:35
um so yes um if you're interested in any
0:01:37
kind of this stuff do join us every
0:01:39
night at 9 30 pm aesd
0:01:42
because that's very best
0:01:44
so how are you feeling guys how's it
0:01:48
yeah really good very good um yeah can
0:01:51
get started tonight i need a bit of a
0:01:52
catch up i think uh from what you guys
0:01:54
did yesterday but yeah really keen
0:02:00
good to have finish and thanks for the
0:02:06
always good having an enthusiastic intro
0:02:10
right at the start to s
0:02:12
to stop some fun um so just to
0:02:22
what we did was um
0:02:25
we wanted to do the merge
0:02:27
but then we decided that um that can be
0:02:35
time time consuming at all
0:02:37
that being said i still haven't managed
0:02:40
to do it but i will take some time off
0:02:46
uh but we did actually continue on top
0:02:50
financials brilliance
0:02:54
getting the board name and now
0:02:57
um i think we are getting a dynamic
0:03:00
board id in their um
0:03:02
uh coming through and
0:03:05
now what we need to do is access the
0:03:08
board name from that dynamic id
0:03:16
okay i'll be on the same page yeah yeah
0:03:20
brilliant um just before we start i'll
0:03:23
acknowledgement really quick
0:03:33
i begin today by acknowledging the
0:03:35
traditional custodians of the land on
0:03:38
which we meet today and pay my respects
0:03:44
pr and emperor past present and future
0:03:47
i extend their respect to aboriginal and
0:03:53
islander people here today
0:04:01
now that that's out the way okay it's
0:04:04
your turn to shake your screen please
0:04:08
with me alternative yes
0:04:32
oh yeah that's another one
0:04:36
hi here jesse welcome good to have you
0:04:42
hello how's it going uh enhancement
0:04:46
i'll do a get pulled i'll bring you guys
0:04:52
that would be good
0:04:55
second i'll get you guys here
0:05:03
okay why is it not moving
0:05:51
what are you doing
0:06:04
i see the command okay i guess we get
0:06:18
i'll go build cd into the thing first
0:06:26
yeah that's the one tutorial field
0:06:30
spot on the ball tribe is growing we
0:06:33
have the four coders
0:06:35
and then he will but not really we'll be
0:06:37
our raw coders real quick
0:06:39
oh she's joking guys i'll just chill
0:06:48
is that an inside joke there
0:06:58
like whenever we used to own now as well
0:07:08
andre geck they call us
0:07:14
more raw coders and whenever we become
0:07:17
slightly boring then as well code is
0:07:21
let's see i think the context was
0:07:23
something different though
0:07:28
yeah i think i might be wrong with that
0:07:31
mispronounce it or something like that
0:07:33
and then went ahead and created a
0:07:37
did he actually yeah
0:07:40
yeah you should see it it's funny yeah
0:07:44
i'll um i'll i'll i'll um
0:07:49
post it to you on slack afterwards
0:07:55
um anyway okay that works i mean yeah i
0:07:57
think that that would be a good idea
0:08:00
to ask there because he was an
0:08:03
inventor of this word
0:08:08
okay let's see what's happening here
0:08:18
okay so we weren't actually getting the
0:08:24
undefined okay the board id
0:08:27
it's not getting the board id properly
0:08:30
i thought we did you
0:08:37
you pull it all right
0:08:40
so remember this session
0:08:43
ah yeah that was becoming undefined yeah
0:08:47
so we will be working on that one
0:08:54
but isn't that a variable in the same
0:08:57
file kind of thing
0:09:06
just thinking that if we import the file
0:09:09
then can we choose everything from that
0:09:12
file and that will just get passed
0:09:14
through let's google in between all
0:09:20
um just so that i get it right basically
0:09:23
you're trying to uh
0:09:27
get the session id from the still front
0:09:29
end and then pass it to index html
0:09:36
yeah normally mostly
0:09:41
see if that's exactly why
0:09:46
okay speed is a little faster than mine
0:09:49
i i just understood
0:09:51
when k finished saying yeah and i was
0:09:55
okay i don't need to say anything though
0:10:00
yeah he works for us man
0:10:15
increase our speed
0:10:20
okay so this guy has
0:10:25
thing in which he has
0:10:28
is importing this file
0:10:41
yeah so much better
0:10:45
one is module yes which is imported
0:10:48
and one is the script tag
0:10:58
so he's trying to access student.name
0:11:04
and for him it's working
0:11:10
maybe it's because he's got the type
0:11:14
in the tags as well but we haven't
0:11:28
i was actually thinking um
0:11:30
if you were to do that
0:11:32
yeah then what happens when the user
0:11:38
uh not go through the home page and just
0:11:44
it wouldn't work right because it's
0:11:48
isn't it waiting on go to
0:11:51
uh to retrieve the
0:11:53
session id first before you know what i
0:11:58
you know if i do demo one
0:12:00
and then it wouldn't
0:12:03
am i on the right track
0:12:04
something you guys thought about
0:12:06
but like if the session isn't there
0:12:08
right like how would it load anywhere
0:12:10
like to start the session from the home
0:12:15
that's actually true so if the
0:12:22
finished um well you're saying that if
0:12:25
instead instead of typing in
0:12:28
whatever the board name is in the home
0:12:32
as in the home page um the choose
0:12:34
actually goes directly in the address
0:12:37
bar yep yep exactly types in the in that
0:12:41
it wouldn't work because that hasn't
0:12:44
been registered in the
0:12:53
but and if they do
0:12:55
do it then they're
0:12:58
they're just being stupid
0:13:01
but for example saying like you know how
0:13:03
we use scrambler at dev corp as well we
0:13:06
just yeah we click the link right we
0:13:08
don't uh we don't type in the name
0:13:15
what happens there that um
0:13:24
he creates the board by going to home
0:13:28
writing the name and then pressing go
0:13:30
and then when the board has been
0:13:33
created and the page is
0:13:35
loaded which is the index.html
0:13:38
then from there he or she um
0:13:42
copy and paste the
0:13:45
sends it to everyone
0:13:49
is that what you mean
0:13:50
or am i not understanding you properly
0:13:54
what i mean is like if they
0:13:56
like if we click that link will it um
0:14:00
will it still retrieve the port id with
0:14:02
what you guys are doing right now
0:14:11
but we haven't thought that far yet at
0:14:14
the moment okay but technically speaking
0:14:19
that it should because it's already
0:14:21
happening in the originals
0:14:23
originals original scrambler so we
0:14:26
using that functionality as a base
0:14:29
but building on top of that
0:14:33
does that make sense
0:14:35
yeah yeah that makes sense and does that
0:14:38
answer your question
0:14:47
sorry what are you saying
0:14:49
i have a phone screen coming up
0:14:54
or phone screening interview
0:14:57
yeah have a phone screen oh okay
0:15:01
that's what i thought about full screen
0:15:04
cracks i ordered a new one
0:15:07
and and he's telling us that's coming up
0:15:09
and i'm like what do you want
0:15:19
it was like a straight to technical
0:15:20
interview i i think
0:15:23
prone screening is just
0:15:25
i don't think you even talk to the team
0:15:27
or the manager it's pretty chill
0:15:31
basically what they might do is as in
0:15:40
yeah it won't be anything technical but
0:15:44
quote me on that there was one
0:15:49
phone screening that
0:15:50
i had i wasn't expecting anything
0:15:57
threw some technical
0:15:58
questions at me and i failed miserably
0:16:06
i would just advise that just
0:16:09
hope for the best prepare for the worst
0:16:14
yep yeah i agree with saying it's i feel
0:16:16
like it's more in my experience it's
0:16:19
they just talk about or ask about your
0:16:21
experience more than any technical kind
0:16:31
when you were doing the interview for
0:16:35
where you're working now did you have a
0:16:39
full screen as well finish
0:16:41
uh no i didn't actually um
0:16:44
but for some other places i definitely
0:16:52
maybe it might be a
0:16:54
good idea if as in when you've got time
0:16:57
to jump on a slack and um
0:17:04
tori that might help him as well
0:17:19
i see what you're doing there
0:17:22
the toothpaste works out
0:17:51
snap it's been recorded as well and it
0:17:54
will be on youtube too
0:18:00
this is uh this is not professional
0:18:01
advice sorry sorry yeah
0:18:06
professional at all
0:18:08
if you pay 50 bucks per hour then we can
0:18:10
make the same advice professional
0:18:18
it's the same advice but just
0:18:19
professional that's all just
0:18:23
because professional costs money
0:18:25
free doesn't and this was free so it's
0:18:48
okay can you zoom in because i'm
0:18:53
in in the in the camera at the moment
0:18:56
i've been trying to see
0:19:04
all right can you go back
0:19:08
we she's not getting
0:19:14
get bored i put this whole thing in a
0:19:30
yeah i did a stupid thing
0:19:33
very very stupid thing
0:19:42
am i able to get anything out of here i
0:19:45
just want to see that
0:19:51
let's see if it returns these words
0:19:58
this thing is going to go
0:20:09
actually that should be fine this is
0:20:12
this thing's gonna go
0:20:20
and then it's gonna
0:20:23
for my id to get bored
0:20:28
and then it's gonna alert it okay let's
0:20:46
we probably should look at bundling this
0:20:50
really really soon
0:20:59
can i just focus one thing at it
0:21:06
i get session board id for sure
0:21:10
that's good enough
0:21:12
now why am i not getting when i do a
0:21:16
of the actual session board id
0:21:21
isn't that because the function is
0:21:26
when it's being actually called
0:21:30
is the value is being assigned in the go
0:21:33
method but you're calling that function
0:21:36
before the go method
0:21:39
the go method is called being called
0:21:48
okay can you can he go back
0:21:52
so i think right now
0:21:56
what happens is that as soon as i press
0:21:59
and go in home html
0:22:01
this thing is being called
0:22:08
and then this goes to the go method
0:22:21
call the session board id thingy
0:22:23
get the session board id um
0:22:27
i don't know why it's returning false
0:22:32
probably shouldn't
0:22:34
then it's going to sign that board id
0:22:36
and then it should return the session
0:22:42
should we call the get board id
0:22:54
get it to where we don't need to get it
0:23:03
you're thinking and i'll
0:23:07
come in and explain
0:23:09
if it doesn't work
0:23:15
console log the session board id as well
0:23:17
just want to look at that
0:23:22
after it's um after it's being retrieved
0:23:25
like on after line 21
0:23:27
i mean on line 22.
0:23:33
um for us to see that i think it better
0:23:39
else the page will go
0:23:48
here i'm gonna go for the best and i'm
0:23:51
gonna change it to
0:24:01
no i haven't had any experience with
0:24:06
i don't know about you guys do you guys
0:24:08
have any experience with ruby
0:24:17
that's all i remember from ruby
0:24:32
i was or bad i don't remember anything
0:24:34
body is not defined
0:24:36
oh yeah never mind
0:24:38
i never actually defined it
0:24:46
i haven't had any experience with ruby
0:24:49
as in i don't even
0:24:55
how to define variables or
0:24:59
anything yeah so i wouldn't be able to
0:25:02
comment on that one sorry
0:25:14
so we got one console log
0:25:17
and we didn't get the second alert
0:25:19
oh wait why didn't we get the first
0:25:22
we haven't even got any alerts
0:25:26
why didn't we get this
0:25:32
this alert did i do something wrong here
0:25:52
let's try and tank
0:26:14
i got this error before as well
0:26:19
property of that one
0:26:21
i think we would probably
0:26:26
that as investment finish
0:26:31
found out the last time
0:26:34
okay i think i know why that's happening
0:26:37
because i didn't make that function a
0:26:43
yeah i probably need to make it a sync
0:26:54
can you go ahead and clear the boards
0:26:59
so we can see if the pose is actually
0:27:01
being posted or not
0:27:25
now which line says that
0:27:40
not sorry i'm actually switching to ts
0:27:46
watch me vouch 40 years from now
0:27:53
yeah java's cool as well
0:28:04
um interesting okay i'm not gonna delete
0:28:07
one of the boards because
0:28:10
that's been acting as a tester for
0:28:13
another person on the team
0:28:18
cool so there's only one board available
0:28:30
did you really tourist comment
0:28:35
you really want to know
0:28:39
i mean he's not throwing at me it's
0:28:40
throwing at john's stop stream
0:28:52
like an old stinky pair of shoes you
0:28:55
don't want to throw out because it's my
0:29:01
but i do that with my football boots
0:29:06
yeah i thought that is actually true is
0:29:14
and it's always good to keep your lucky
0:29:18
forever even though this thing
0:29:27
i'm not sure why this is thinking though
0:29:39
add an await in front of uh
0:29:42
uh after return on up to one minute
0:29:49
i think that should make sense
0:29:54
yeah yeah i think that that makes more
0:29:58
so this is returning object promise
0:30:03
i'm gonna go ahead and
0:30:06
control console.log this thing
0:30:09
just because i i do want it to go to the
0:30:10
next page but i do want to see what's
0:30:14
so what i'm going to do is i'm going to
0:30:15
do this and i'm going to end
0:30:20
yeah so that it stays on the same page
0:30:43
didn't stay on the same page
0:31:04
like one sec let me let us backtrack a
0:31:08
um just gonna stop this from happening
0:31:23
sorry thanks for that
0:31:25
if you have any function here
0:31:38
thanks for the reminder tori really
0:31:49
there's some problem with the whole
0:31:51
initial thing only
0:31:53
it's not even printing the board id
0:32:04
important yesterday i'm pretty sure
0:32:12
do you try and do a hard refresh
0:32:16
maybe do that next i'll do that
0:32:24
oh it's coming it's undefined
0:32:42
yesterday the same thing was working
0:33:06
can i go and see if you're actually
0:33:08
posting the board give me one sec
0:33:17
she's posting the board
0:33:20
oh really what was the last sports name
0:33:30
so it is going ahead and actually
0:33:34
so this is working
0:33:40
this thing gets assigned
0:33:42
oh there's no return that's why
0:33:49
well you don't need a return now oh we
0:33:53
when we kind of do
0:34:00
id is not returning
0:34:08
what am i learning here
0:34:19
yeah just learning repair program i
0:34:21
think that's the big thing
0:34:33
okay we are pretty good
0:34:37
okay let's go okay the board is coming
0:34:42
yeah now i'm gonna go to the next page
0:34:49
i'll just make sure the workflow is
0:34:52
so this thing is going to come up um
0:34:54
it's going to return
0:34:56
i can return the whole board actually
0:35:01
i make it return the whole board
0:35:03
so it's gonna go here it's gonna go to
0:35:08
do the dot board id
0:35:10
and do this yeah i think um
0:35:13
it's the best chance let's see
0:35:17
did you change anything in
0:35:22
not really um i just made it
0:35:26
um we don't assign session board id to
0:35:31
so we had session board id equal to this
0:35:33
thing but i just removed that oh okay
0:35:37
but like we will get rid of it like
0:35:39
we'll make it a local variable
0:35:59
thank you tori appreciate your kind
0:36:04
still undefined here
0:36:17
well i said once again console.log
0:36:29
just before we are returning it
0:36:42
and after we receive it what is it
0:36:45
okay and i decided that this should
0:36:48
always be at least one in the chat
0:36:53
so we're taking tests oh all right
0:36:56
i didn't know that no wonder why when um
0:37:01
jack dempsey you're not here and my
0:37:04
friend you're here he's not here just
0:37:13
it really means a lot tori
0:37:31
promise is there which is fulfilled
0:37:34
how did we resolve the whole thing when
0:37:36
the promise was full till but we didn't
0:37:38
the promised result is undefined
0:37:57
actually i'm gonna check in the
0:38:13
it's able to console the log it here
0:38:16
but once it comes here in this function
0:38:19
it's not able to control or log it
0:38:21
and that's interesting
0:38:25
where you're calling get board from okay
0:38:29
uh i'm calling it from here
0:38:47
where did you say it does it both when
0:38:50
called from a function it doesn't
0:38:53
right now if i console the log session
0:38:57
um here it's gonna the log
0:39:00
but here it's going to say
0:39:04
maybe try to call the gap board in the
0:39:08
go method probably
0:39:11
okay yeah i can do that
0:39:15
yeah i think okay yeah i can do
0:39:20
so if i do after this control dot log
0:39:29
because it's returning something so
0:39:32
what is it returning
0:39:34
i need to do a wait
0:39:37
oh i think that's what i need to do
0:39:41
i'll give it a look here
0:40:09
but what and did you should
0:40:22
tori's the master here it's not
0:40:24
returning anything
0:40:27
you're right sorry it wasn't
0:40:50
come on baby girl show us some loving
0:41:02
okay now that's true
0:41:08
in the pending is still coming up as
0:41:26
troy's saying something really
0:41:27
interesting that you're not storing the
0:41:29
return in a variable
0:41:31
i mean todd is it gonna make any
0:41:33
difference should i store it in a
0:41:36
just try that okay maybe
0:41:54
is that what you mean tori
0:41:58
um once you give me a heads up i'll just
0:42:00
run let's try and see if there's
0:42:09
so i'm calling it a weight
0:42:11
i have a sink here
0:42:25
get myself some war so be right back
0:42:41
is that what you're trying to say um
0:42:44
i'll run it but only give me a heads up
0:43:04
another function for what
0:43:06
just uh getting the board
0:43:24
okay okay board name is already there
0:43:28
and add board name
0:43:32
i can make another function to
0:43:42
but is it going to make any difference
0:43:44
that's what i'm asking
0:43:48
you know why are we uh
0:44:00
in general i'm just saying that this
0:44:03
that it's gonna do get bored name that's
0:44:07
it's not gonna go ahead and add this
0:44:11
then the index file
0:44:15
case it's a single responsibility which
0:44:18
exactly should be right
0:44:23
should we just um isolate them
0:44:31
i'm kind of confused to what's happening
0:44:34
at the moment so you might want to give
0:44:36
me a bit more context
0:44:39
you know what this function is basically
0:44:42
i'm going to go ahead and get you the
0:44:46
by having the port id yeah yeah but it's
0:44:51
not necessarily saying that i'm gonna go
0:44:53
ahead and add this board name as the
0:45:01
need a separate function to add the
0:45:03
board name as a heading
0:45:06
i mean it was just about
0:45:07
it's not it's not gonna make any
0:45:09
difference it's about i'm making okay
0:45:26
let's have a look at that
0:45:47
the promise was promised
0:45:52
care probably hard refreshing because
0:45:56
when i was doing this i was experiencing
0:46:00
soon as i opened incognito
0:46:16
you need some love it
0:46:29
can you expand the promise yeah why
0:46:31
don't you get no we're not getting the
0:46:43
you're gonna need to wait if it's inside
0:46:47
anything function and like if i do it
0:46:51
i don't know if i return something else
0:46:54
it's gonna do it um
0:47:00
i think that uh issue is that we're not
0:47:03
getting anything in promise
0:47:07
and that's internal
0:47:10
causing it to become on um on
0:47:31
so it's doing it here
0:47:36
here it just not seems to do it
0:47:48
let's have a look at
0:47:50
uh just gonna say have a look at
0:48:18
head just battery dice
0:48:20
so just put it on charge now
0:48:29
did you say it was doing it
0:48:34
where did you say it was
0:48:36
um you said that is
0:48:41
uh as in by doing the amazing we just
0:48:44
said this during the promise
0:48:47
result as a board name
0:48:54
but i didn't get that sorry
0:48:57
you know you just said that it's doing
0:49:10
see so what is it doing that
0:49:13
um we have the session board id printed
0:49:16
um then we go here
0:49:18
it doesn't seem to it says it's
0:49:28
finish oh it's just going to say then
0:49:31
it's it's saying undefined in index
0:49:35
right it's it's saying it's showing the
0:49:37
value in home but then when we go to
0:49:40
um index it's showing is undefined
0:49:44
that would be the problem in
0:50:17
what's in that get bored
0:50:24
um so you want me to show you the
0:50:31
probably a vector in middle here
0:50:37
so that's simply returning this session
0:50:42
so we can make it a local variable
0:50:51
so the only reason why we have the sync
0:50:54
function get bored
0:50:56
is to make the session uh the board name
0:51:01
appear in this session board ids
0:51:09
i can try doing one thing which is
0:51:12
probably going to make it work
0:51:15
is that i call the postport name from
0:51:31
if you're an experiment that's all i'm
0:51:33
yeah um need to figure out a way to
0:51:37
so can you go uh can you run the home to
0:51:45
see how it's appearing
0:51:50
what do you want me to run um just
0:51:52
control the blogs i'm doing html and
0:51:54
then i just want to see the board
0:51:57
name appearing in the promised result
0:52:03
on on the home page
0:52:10
you mean the board id right
0:52:12
the promise result as in the board id
0:52:15
and the board name
0:52:42
so if the board id is appearing over
0:52:47
are you sending the entire promise over
0:52:55
um yeah we want this board id over there
0:53:01
i was just going to say like how about
0:53:04
uh do the local storage thing again
0:53:07
um i don't know what you guys think
0:53:09
about that in terms of
0:53:11
you know maybe it's not best practices
0:53:13
or not but how about if we add the local
0:53:15
storage and then save the board id
0:53:17
uh in the still front-end
0:53:20
file and then we access the local
0:53:22
storage again when we uh in the
0:53:30
similar to what we did with the board
0:53:37
so you're saying finish that in instead
0:53:40
of getting the board name from the
0:53:42
database we use the one in local storage
0:53:48
yeah yeah am i right yes yes that's what
0:53:53
yes that could be done
0:54:01
but eventually when
0:54:04
we do a get function
0:54:06
analogy we will come back to this
0:54:12
which means that if we fix this from the
0:54:18
a smooth road ahead
0:54:20
yeah okay yeah that makes sense actually
0:54:29
we want that one over there
0:54:35
okay maybe you've removed those
0:54:45
i think i know what's happening right
0:54:48
the thing which is happening is that
0:54:52
you know how in home
0:54:54
we load still front end
0:54:57
just forget whatever we have yeah just
0:55:01
um the whole scenario
0:55:04
when we do the still front-end thing and
0:55:16
is using still front-end
0:55:19
and the index.html is in for sale
0:55:21
but what index is doing that it's
0:55:23
loading still front-end all over again
0:55:26
it's not loading the still front-end
0:55:29
which home html used
0:55:32
yeah these are too stiff
0:55:37
these two different html files so yeah
0:55:40
while doing a post just while doing the
0:55:44
something along the lines of local
0:55:45
storage is the only thing which is going
0:55:49
yeah just because you can't as soon as
0:55:52
you go from this home html to index
0:55:55
this session board ids um thing is gonna
0:56:08
but that being said it was coming before
0:56:11
isn't it as in the whole board id
0:56:15
you're you're getting it just because
0:56:16
you were putting the board id manually
0:56:25
to be honest i don't think so
0:56:29
you'll start getting it can you give me
0:56:31
a board id let's just test it out
0:56:36
yeah pretty confusing tori ah
0:56:39
i see yes yes yes i think that was the
0:56:42
entire problem yes
0:56:45
today because we ain't
0:56:50
because we wanted to get this done
0:56:53
dynamically right yeah that makes sense
0:57:05
at least while posting
0:57:09
like all right like we can just get our
0:57:12
workflow till index page right we're not
0:57:14
going anywhere after the index page
0:57:18
yes but if you see from
0:57:21
when we come to do the get buttons
0:57:25
functionality that would have to have to
0:57:30
go to the database and then do this
0:57:46
using the local storage okay
0:57:52
when we come for the turn off
0:57:58
for from the persistence storage which
0:58:04
local storage won't help us we will have
0:58:09
um the board from the
0:58:16
display in in index.html
0:58:20
what i am trying to
0:58:22
say is i guess that we will skip this
0:58:25
functionality now but we will eventually
0:58:29
come back anyway to it
0:58:33
i think what you're trying to say is
0:58:37
one second i'll go to where i get diffs
0:58:40
this is um get bored yeah but
0:58:43
coming back to what you're saying right
0:58:48
in in the front end
0:58:55
two inputs like one is the
0:58:57
post board and one is the access
0:59:00
your originally created board
0:59:07
yes yeah so you're gonna have one more
0:59:11
and you're gonna enter the board id or
0:59:13
the session id whatever you're gonna
0:59:15
give the user to enter afterwards so
0:59:20
we're gonna create another fetch method
0:59:21
which is gonna be called get session
0:59:24
um you can just enter that and that's
0:59:26
gonna use local storage as well to go to
0:59:29
and use that session id only
0:59:39
all right so you're you mean to say that
0:59:43
it will still on the
0:59:47
function it would still
0:59:52
local storage until it comes to index
0:59:55
and then is how will it display
0:59:59
um from index it's just gonna call the
1:00:02
get bored really we need just need to
1:00:04
call get bored that's it
1:00:06
get bored is gonna give us board name
1:00:16
we can go ahead and create another
1:00:19
function right we have to anyway add one
1:00:24
key to the back end which is going to be
1:00:26
session id or something like that
1:00:29
which will enable us to find boards
1:00:41
yeah uh do you mean that you you're
1:00:46
the session id once it's when you do
1:00:49
when you post and then
1:00:52
store that in local
1:00:55
um and then when you go into index uh
1:00:58
update the local storage based on uh by
1:01:03
getting using a get request to to update
1:01:06
that that local storage so what do you
1:01:09
can you come again sorry i missed this
1:01:12
so basically we we have a
1:01:14
uh session id in local storage yeah
1:01:21
it will be updated based on the um
1:01:25
when when somebody creates a new board
1:01:29
yeah that'll be so did it
1:01:30
so yeah as soon as you're gonna create a
1:01:34
it's gonna go to the next page and
1:01:36
i don't know we can create a random
1:01:38
number generator to show like oh yeah
1:01:40
this is a session id here
1:01:42
i'm on the top right
1:01:45
and that person can note that down and
1:01:51
but does that make sense
1:01:57
so they have turned again i'm confused
1:02:02
what was the original workflow then like
1:02:04
well workflow when you're coming back
1:02:08
if we are concerned about that right now
1:02:12
no actually like actually
1:02:14
no sorry i was just reading this comment
1:02:16
there's still time for you three to
1:02:27
okay so the original workflow for the
1:02:32
was to as soon as we do the post um we
1:02:35
insert the board and then in
1:02:38
when coming back from the
1:02:41
database to the front end we get the
1:02:44
board id only and then we
1:02:47
play around with the board id and get
1:02:50
everything from that one as in in the
1:02:53
front end that was the original workflow
1:02:57
no i i'm talking about the even the
1:03:00
the load till session where they left it
1:03:10
like when you're gonna store your thing
1:03:13
yeah and you wanna come back to oh yeah
1:03:15
these are the boards
1:03:17
this is this is the board
1:03:21
way it would probably according to my
1:03:24
understanding work as
1:03:29
the person will actually
1:03:33
give it its original board board name
1:03:44
in the s still front end to get the
1:03:49
oh so they're gonna type the board name
1:03:51
is that what you say
1:03:54
they have to type in the board name
1:03:57
so we're not going to generate any sort
1:03:58
of special identification of something
1:04:09
but the board name
1:04:11
will be the one that they would be using
1:04:17
the board and another question there
1:04:20
arises that wave two boards have
1:04:26
way there will be a validation in
1:04:33
be able to have the same
1:04:36
board with different ids
1:04:44
when the person comes back they're going
1:04:46
to go ahead and enter the board name
1:04:47
right yes that means that
1:04:50
no two boards with the same board name
1:04:55
okay so basically board name is our
1:04:59
session id kind of a thing
1:05:02
for the front end yes
1:05:07
that being said i think we need to
1:05:09
go back to the back end at some point
1:05:12
get bored by board name
1:05:18
i agree with that actually
1:05:20
i mean there's another way you can get
1:05:22
okay hang on hang on goodness so this is
1:05:26
the scenario that i was
1:05:32
with yes today but you actually
1:05:36
actually calmed me down
1:05:40
um i will want to say that to you now
1:05:45
jump onto the getting functionality as
1:05:49
overall the holistic
1:05:53
and just focus on the posting
1:05:57
board which would be working as
1:06:02
when the person posts the board it gets
1:06:05
inserted in the dynamodb okay and then
1:06:08
in return we are already
1:06:10
getting bored id in
1:06:16
home.html all we need to do is
1:06:30
to display the board name
1:06:34
yeah the board name could
1:06:36
come on the index am i making
1:06:42
i think what we can do is that see
1:06:45
even if we are thinking about the whole
1:06:46
post right just now
1:06:49
even if we think long term doing it with
1:06:51
local storage is fine like if you're
1:06:53
doing a post that means you're new to
1:06:55
the whole thing you don't need to worry
1:06:57
about the whole getting workflow
1:06:59
exactly so what we can do is to resolve
1:07:04
we can just go ahead and use local
1:07:08
um i don't know like like it's not the
1:07:10
best practice for sure um
1:07:12
so if something yeah in that
1:07:17
can be done tweaking
1:07:26
i don't think that in software
1:07:28
development we can actually
1:07:32
strictly stick and stick to
1:07:36
the best practice was to make this in
1:07:38
the react honestly
1:07:42
we're skipping steps now let's
1:07:46
stick to the scope
1:07:48
okay i'm still sad we're not going to
1:07:53
would have been a lot
1:07:55
i would say worse considering
1:08:00
much experience with react i don't know
1:08:09
we could have gone ahead and learned it
1:08:19
gold task we can choose locust and local
1:08:23
storage in that winner
1:08:27
fine as long as we can achieve
1:08:35
i just do that mm-hmm
1:08:38
okay okey-dokey oh it's fully cast
1:08:45
at the moment i can tell really on to me
1:08:52
i'm gonna do it in react for sure
1:08:54
like any which ways we're gonna do it in
1:08:57
yeah this one doesn't
1:09:00
it feel it will work
1:09:04
not before we actually released the mvp
1:09:11
different french in the dnc shop uh i
1:09:14
could actually bang
1:09:18
yeah a week max if it wasn't she self
1:09:22
i missed my c sharp now
1:09:28
that's a learning curve though
1:09:31
all right all right guys um cool
1:09:35
do you want to just finish off the
1:09:44
uh all right thanks guys thanks for
1:09:46
joining us uh on another episode of
1:09:49
raw coders uh today we worked we
1:09:52
continued working on the scrambler ca
1:09:58
and trying to get display the board name
1:10:02
uh you know getting there getting closer
1:10:05
every time uh for sure and i think we
1:10:08
uh we're getting definitely closer
1:10:10
um and we should should get there i
1:10:13
would say you know in the next few
1:10:20
yeah thanks for joining us guys um join
1:10:29
um stem task actually yeah
1:10:39
good night good night and
1:10:41
enjoy your day and night or
1:10:44
evening internationally cheers guys bye