0:00:23
what is going on people
0:00:25
welcome back to another
0:00:27
series of build breaks and fix we are
0:00:31
raw coders and my co-host
0:00:38
aka kofik um is running a bit late
0:00:45
for john and continue
0:00:48
with the show right um we are online and
0:00:57
from 9 30 so in the weekdays is from
0:01:05
and then in the weekends
0:01:07
it's 10 30 um 9 30 to
0:01:14
so essentially weekdays is for one hour
0:01:19
weekends is for two hours sessions all
0:01:24
uh we'll just continue back on
0:01:31
give a bit of a refresh here yes today
0:01:34
what we worked on we
0:01:36
set up our blog um
0:01:48
streaming which is raw coder so that's
0:01:55
we will be sharing the link very soon
0:02:01
what we are going to be actually working
0:02:02
on today is uh with our api so trying to
0:02:08
get the board name
0:02:10
into the api which
0:02:17
from get the board name from the front
0:02:22
and pass it to the back edge using fetch
0:02:25
api which is our middleware and then
0:02:28
the backhand inserts the board name into
0:02:32
the dynamodb all right
0:02:37
we're gonna do that today so
0:02:43
where we left off so
0:02:45
let's get let's get down to it and get
0:02:49
have some fun coding all right
0:02:53
gonna put this i should share my screen
0:02:59
really quickly do that there
0:03:03
you share my screen there which is
0:03:11
what we're going to do is open up our vs
0:03:14
code which is already there but this is
0:03:17
another project so we're not going to
0:03:20
we'll open another window
0:03:26
continue over there all right
0:03:30
just maximize a bit
0:03:33
and then i'm gonna
0:03:37
forget about this one
0:03:40
i'm gonna be a bit long i'll just
0:03:43
open it up from the terminal
0:03:46
all right so i'll just zoom in a bit
0:03:49
so you guys can see
0:03:52
okay i'll go into my workspace where all
0:03:55
repos are and then i'll simply do
0:03:58
scrambler um enhancement and install you
0:04:02
should give me all of them
0:04:06
apparently that's interesting that's not
0:04:13
hello how's it going
0:04:25
ah not again then no i was able to hear
0:04:29
you i was able to hear you
0:04:37
i thought i did them that mistake
0:04:49
brilliant um i'm not entirely sure how
0:04:54
how and if my intro
0:04:56
came at the start of this of the screen
0:05:01
i mean i was able to hear you when i
0:05:14
would have been all right then if you
0:05:16
were able to hear me so
0:05:18
when you join in stream yard if you go
0:05:21
to cam slash mike there's an option to
0:05:25
before you just before you start
0:05:27
yeah i think i need to start doing that
0:05:34
so there we go our nice co-host is here
0:05:41
all right um so i i just told uh i just
0:05:45
gave a bit of an intro who be i am what
0:05:49
what we did yesterday
0:05:51
and i was just updating the viewers that
0:05:54
we're going to be working on that same
0:05:57
issue as in trying to get our board name
0:06:00
from from the front end to the back end
0:06:04
and at the at the moment i was
0:06:07
in the middle of opening the reaper
0:06:11
that's cool yeah that makes sense
0:06:22
did that count since dinner
0:06:24
nah brilliant yeah that's um kev's is
0:06:28
really really tasty though i love it
0:06:32
also um i don't know if you know this or
0:06:34
not today is the 20th episode
0:06:43
i wanted to wait for you to come and
0:06:47
we can actually announce it
0:06:54
youtube and see how many hours of
0:07:00
just gonna put the mac on charge because
0:07:05
running out battery i'll just be back
0:07:27
you wanna take a guess how many
0:07:29
hours of content knows
0:07:35
how many hours of content did you say
0:07:39
um i would say at least
0:07:56
oh i thought you were minutes
0:08:05
uh probably 20 days that would be
0:08:20
i'm just guessing now
0:08:22
100 minutes or 100
0:08:24
hours can't be hundred dollars no we
0:08:27
can't that's the way
0:08:33
i would say around
0:08:38
okay yeah yeah pretty close uh
0:08:40
yeah it's 31. nice brilliant
0:08:45
we're making good progress though as in
0:08:48
in terms of consistency
0:09:01
screen protector from amazon
0:09:07
this is what i got
0:09:14
can you see it see the crack yeah
0:09:17
it's already cracked
0:09:28
it wasn't handled properly at all
0:09:32
yeah the people who packed him for being
0:09:34
careless and they didn't really care
0:09:54
i don't think it's good but yeah
0:09:58
oh this year precisely to be honest yeah
0:10:02
um i'll just give you
0:10:06
oh so you would doing the fetch api and
0:10:10
i was focusing on the api right right
0:10:16
take the patch yeah if you had to
0:10:24
right i'll just open up
0:10:44
there we go and get a board name from
0:10:57
just for the viewers if you guys are
0:11:00
wondering what these are
0:11:05
cleaves do you know the different
0:11:08
branches my gear repo has
0:11:13
what i normally do is whenever when i
0:11:18
a new feature or fix a bug i normally
0:11:27
this is that kind of a branch
0:11:36
middleware implementation
0:11:39
this is our backhand so i've done get
0:11:42
board name from the front end does that
0:11:44
make sense karthik
0:11:49
all right cool so let's get down to that
0:11:58
where did we left off here
0:12:03
so the board name was actually coming in
0:12:06
the request body isn't it
0:12:13
the board name wasn't
0:12:18
it was coming up as text but known as
0:12:22
so we were doing a two string
0:12:26
yeah which didn't really help did it
0:12:30
we just didn't deploy it after that
0:12:36
in that case let's
0:12:44
i'll do this over here as well
0:12:47
here just do a lot of console.logs
0:12:53
so we don't really have to
0:12:59
over and over again
0:13:01
and that's just a waste of time
0:13:21
what's the update with the green screens
0:13:27
so they're coming in so my
0:13:31
spotlight is coming
0:13:34
awarded two thing the spotlight and then
0:13:39
and they're both coming in two different
0:13:46
one of them should should be here by the
0:13:54
not entirely sure because i haven't
0:13:55
really got the email so which one's
0:14:00
to be honest i don't know
0:14:13
choose a case this is body this
0:14:19
so actually this one i'm gonna
0:14:51
no that's not right
0:14:55
jason stringifies that
0:15:12
that one's done that once done
0:15:15
and then board name that's basically it
0:15:42
let's see what that does
0:15:47
can you actually add a type of thing you
0:17:01
all right build the app now
0:17:05
it's the way to go
0:17:08
did you announce about our
0:17:11
guest for this week's then
0:17:14
i haven't i wanted to do all these
0:17:17
important things as in together so i
0:17:21
yeah and then mostly when sam is
0:17:23
building so yeah yeah that's right
0:17:26
to do these things yeah exactly
0:17:29
yeah you should go ahead and tell us
0:17:34
and i'll continue because um i can't do
0:17:39
i have one so i want to be able to focus
0:17:43
code as well all right um so yeah we
0:17:46
special guest coming in on
0:17:49
thursday which is 5th of august
0:18:00
what's seek yeah yeah seek.com
0:18:03
but he has worked in a lot of different
0:18:04
companies like nab or that easy um
0:18:08
so his name is andre um he's really
0:18:10
experienced and we have a lot of fun on
0:18:14
join us at 9 30 pm aesc
0:18:19
let's see where's there with andre
0:18:23
that's phenomenal yeah
0:18:26
he's an amazing amazing guy man as in i
0:18:29
really already look up to him
0:18:32
nice he's pretty proficient in what he
0:18:37
that's pretty good um
0:18:47
uh i would think so yeah
0:18:49
tomorrow is the one
0:18:52
who decides that it'll be cuter when
0:18:54
select how did this oh it's uh every on
0:18:57
10th day of the week of four nightly
0:19:01
every alternative days so if it was
0:19:07
tuesday this for nightly it would be
0:19:12
then the next four nightly
0:19:14
it will be tuesday again
0:19:16
oh i didn't know that
0:19:19
that's how it works
0:19:21
do you want to go for it yes i want to
0:19:35
and in the meanwhile open up my
0:19:44
take it from there
0:20:05
now i feel weird why is it working
0:20:09
it's not working anymore
0:20:11
it is working that's all okay
0:20:23
what happened to you
0:20:26
i just fired up the server
0:20:33
it's already going inside test i don't
0:20:52
that's fine that's fine
0:20:59
maybe it's not fine
0:21:01
i think that might be
0:21:12
do we have the homework here
0:21:20
actually go to your
0:21:28
why is it taking that much load up
0:21:33
it doesn't normally take that long
0:22:00
okay i'll just go into
0:22:06
i'll just get it from here i'll need to
0:22:13
yeah i wanna be able to see the logs
0:22:16
oh yeah that's true
0:22:23
also if you're going to dynamodb on aws
0:22:27
all the current boards
0:23:30
so it's almost there just bear with me
0:23:45
okay let's go into this and see what
0:23:50
lovings it gives us okay so in ball
0:23:55
so if we do json.s stringify
0:23:59
and then do a dot to string then it
0:24:02
gives us the board
0:24:07
okay but why is it not assigning it to
0:24:25
so the thing is that why is it not
0:24:31
so this basically works so
0:24:34
just jason stringify all this
0:24:40
oh that worked right yes
0:24:50
and then if we pass in the board now
0:25:07
it's really interesting how
0:25:10
you have actually changed the concept of
0:25:19
because you haven't
0:25:21
hopefully for me yeah
0:25:25
you haven't changed the concept of
0:25:36
hopefully then that
0:25:41
for the best plan for the worst
0:25:45
i'll just say it'll work
0:25:49
you can never ever say that and
0:25:52
unless you're probably
0:25:57
unless you're poor you can't say that
0:26:02
you can't be optimistic and
0:26:04
get your heart broken after that
0:26:20
should be doing it ah
0:26:39
um by the way i told my
0:26:44
how he just you used the word wow
0:26:48
that sentence she was really admiring
0:26:53
that oh he he he sounds really bad um
0:26:57
not past he missed
0:27:05
know we already have hands
0:27:13
okay um do this uh
0:27:31
there we go so just building uh as in
0:27:43
when i started the siemens in by
0:27:59
yeah says six months max to actually
0:28:02
finish this project
0:28:04
all right and how much time it has been
0:28:08
it's been probably
0:28:12
i mean it has been 20 episodes for us so
0:28:14
with me joining it has been around 20
0:28:19
just more than a month then
0:28:32
hopefully it's working now
0:28:37
on the board in the database
0:28:39
uh no i'll just go and do that now
0:28:42
yeah don't want to do this
0:29:09
delete it first and then you can
0:29:12
continue and do that
0:29:14
yeah i'm sharing your screen anyway okay
0:29:17
scrambler db users table
0:29:35
well that's already showing
0:29:37
no no that's what we did in
0:29:41
manually when we were doing it from post
0:29:44
ah okay yes you're right
0:29:48
if it would have worked it would have
0:29:49
shown for at least 10 boards
0:29:57
i'll just come to your screen now
0:30:00
and just making sure it has been deleted
0:30:02
yeah yeah yeah that's always good to
0:30:09
um okay i'll redeploy
0:30:14
yeah we should do that
0:30:35
uh by typing abc you
0:30:38
should remind me about abc chicken
0:30:49
let's see what we got
0:31:02
i don't know what this means though
0:31:08
we shouldn't json stringify it
0:31:12
but then it's not working
0:31:15
well we haven't checked
0:31:20
json stringify it doesn't work
0:31:25
i don't think we have
0:31:27
right let's check that
0:31:29
because i really don't want the force
0:31:32
slashes to come in the string
0:31:35
i mean we can just go ahead and trim
0:31:41
obviously but that would
0:31:44
i guess probably be the workaround isn't
0:31:48
no we don't want this we don't want this
0:31:50
we don't want any of this also i was
0:31:53
wondering uh are we gonna work on
0:31:56
making it send a json object right now
0:32:01
making it send a json object in what
0:32:05
you know how we are sending text right
0:32:06
now we're not actually sending a json
0:32:11
and we'll have to make it
0:32:13
send a json object
0:32:26
i think we should work on that as well
0:32:29
so in the fair shape here how are we
0:32:31
sending at the moment as it that's text
0:32:43
in the future we'll have attributes like
0:32:46
board size um boot color
0:32:51
so there's gonna be a lot more um
0:32:54
data revolving board this id and name
0:33:00
uh well at the moment
0:33:05
right from a sense that
0:33:12
cater it for different uses
0:33:16
but i'm thinking that
0:33:19
just to a bit minimalistic approach at
0:33:23
to just to get the basic
0:33:25
functionality working
0:33:28
and then we can always enhance it
0:33:31
it's not about even enhancing it's just
0:33:36
we anyway like we have to send just an
0:33:40
like that's probably the right
0:33:46
we can go ahead and yeah
0:33:49
it is the right thing to do i
0:33:53
agree with you but
0:33:56
i was thinking to take it step by step
0:33:59
rather than focusing on one entire part
0:34:03
first for the entire
0:34:06
project and then going to the next
0:34:11
yeah you are actually right there we
0:34:14
should be sending you a json object so
0:34:18
we can work on that as well now then
0:34:22
is this that it only makes sense that
0:34:23
before we step onto something else we
0:34:26
make sure that the basis of it is clear
0:34:31
yeah i'd agree on that one because uh in
0:34:36
my mind the idea was that the only issue
0:34:39
that we're working on at the moment is
0:34:43
getting the board name from the front
0:34:45
end to the back end yeah and yeah now
0:34:49
do that yeah just want to do it in
0:34:51
adjacent object format yeah yeah okay
0:34:55
we can do that in there
0:34:58
one and i think that would actually be
0:35:01
the right approach because
0:35:07
transfer data from one
0:35:10
um and to another in a json format
0:35:20
hang on i'll just do this
0:35:28
i'll pour some snacks then
0:35:33
get some snacks as well
0:35:44
and you're wondering i'm having
0:35:59
okay you're having healthy stuff now i
0:36:01
feel bad health health
0:36:03
it's all about as in preferences man
0:36:06
when i was your age i
0:36:09
used three pizzas burgers all the time
0:36:13
if it helps i have whole grain chips
0:36:21
i'll have smiths only
0:36:31
smiths and mountain dew i choose to have
0:36:34
them as well oh yeah nice they're really
0:36:38
they're really okay especially the
0:36:46
yeah mountain view
0:36:51
um normally sour but sweet and sour
0:37:00
fresh flavor are you having often spits
0:37:08
yeah which one's the other pump
0:37:16
uh either original one or so one vinegar
0:37:40
there you go that's done
0:37:43
what's it done to it
0:37:47
no no no i meant the
0:37:57
actual done is done yeah right
0:38:06
yeah it's done now
0:38:10
i'll go to cloud watch
0:38:33
are you ready then
0:38:47
okay we got a board which is good
0:38:57
yes in string without the
0:39:12
hmm brilliant okay
0:39:19
so now basically what we need to do is
0:39:26
of that text box input
0:39:32
replace it with a string
0:39:36
i didn't get that oh yeah yeah
0:39:45
yeah we just need to see how we can
0:39:59
how are we going to access this
0:40:07
html as in the page itself
0:40:23
go down but slowly
0:40:27
down down down down down down midwest
0:40:38
you want to go function or are you going
0:40:41
no just um the goal
0:40:48
girl is being used
0:40:50
without only over there
0:40:56
you've got the input
0:40:58
which is text and then name
0:41:20
go to middleweight
0:41:26
see how it's been you use at the top
0:41:32
use what sorry line nine
0:41:40
okay so i can just copy this i guess
0:42:47
all right let's see maturity
0:42:54
no that didn't work
0:42:56
i want to see if it
0:42:58
didn't go through or not
0:43:01
it must have gone through
0:43:06
no the previous quote
0:43:09
one sec i know what to do
0:43:40
really interesting now
0:44:06
we're not doing abcs then okay that
0:44:10
it works right that should work yeah
0:44:15
so the board is there
0:44:19
now we need to work on the json object
0:44:27
i don't know how this code works and
0:44:29
pretty sure you wrote it do you know how
0:44:48
where i'm using fetch
0:44:51
as in that's the request part as in i'm
0:44:54
sending that request to the server
0:45:02
handles the response so once i've sent
0:45:05
the request and then the server will
0:45:10
respond something as in as
0:45:16
that will come in the response
0:45:23
it's called any errors then it will
0:45:25
automatically go to the catch
0:45:36
why is it being a issue that if we in
0:45:38
text instead of text we do json
0:45:41
isn't that a parameter as
0:45:55
i mean uh instead of in terms of server
0:45:58
format it's not the right thing but
0:46:00
let's see if it goes through first
0:46:04
oh my god i'm not entirely sure about
0:46:07
i think i have to clear cache every time
0:46:12
why don't you should just
0:46:14
press hard refresh
0:46:34
one cause unexpected end of input
0:46:48
that is the weirdest thing i've seen in
0:46:52
so it's airing up but it's coming from
0:46:56
no that's not the problem
0:46:58
actually that is the problem
0:47:01
we are not sending it in adjacent format
0:47:08
we should be sending in a json format
0:47:22
the whole the off to the underscore yeah
0:47:46
now it is a decent format
0:47:53
experience talks huh
0:47:56
like it only makes sense because we
0:47:57
haven't done it in the api like yeah
0:48:10
okay if it works now i'm going to eat my
0:48:19
no the good part is it's going yeah it's
0:48:21
literally going you just need to just
0:48:22
string your fight and why is it going
0:48:29
it wasn't doing like a week ago
0:48:37
this is real world programming for you
0:48:40
welcome to the real world this is
0:48:51
what are we doing now
0:48:59
jason stringifier and do dot board name
0:49:05
now what we are passing is a json object
0:49:17
it's not okay can you hear me eating
0:49:27
you mean to say in this way isn't it
0:49:47
actually no this should be fine yeah
0:49:50
this should be all right
0:49:57
you want to do some controller logs
0:49:59
because it might not work
0:50:38
uh request.body as well
0:50:54
in this way you're saying
0:51:14
console.log is so helpful while
0:51:19
it was so frustrating when it wasn't
0:51:22
i can actually debug it line by line
0:51:29
but then we can't see the values can we
0:51:31
like the values too
0:51:43
more professional approach to doing
0:52:03
actually what i'm thinking that might uh
0:52:15
have a beautiful taste of it as well
0:52:20
every time i have mountain dew it makes
0:52:22
me realize why i don't have mountain dew
0:52:24
and why i have coke or pepsi instead
0:52:30
you really love mountain dew isn't it
0:52:33
i don't and that's why every time i have
0:52:37
why i don't have it every time
0:52:40
i mean it's not like i hate it it's just
0:52:43
it's not pepsi oh it's not good okay
0:52:52
i would say i'm not a huge fan of fizzy
0:52:58
i'm more like drink juices or just or or
0:53:05
but those healthy ones that i've got i
0:53:12
they're making me feel bad now
0:53:16
i've been there man
0:53:19
as your age the last thing i would case
0:53:24
is about how healthy you want to eat
0:53:31
as you get older you your metabolism
0:53:36
actually become slow
0:53:40
stop putting on where regardless
0:53:43
right oh um there is a comment i just
0:53:49
for you more help oh
0:53:51
well healthy energy
0:53:54
drinks andre asks so um the
0:54:00
have uh they have their
0:54:07
sugar at all and they also have fruit
0:54:12
and it's it's really helpful
0:54:19
they're not as harsh as red bull
0:54:22
because yeah it's pretty strong it's
0:54:25
really harsh as in
0:54:27
it's got a lot of sugar it's got a lot
0:54:31
it's not healthy for you
0:54:42
how much money do you get from the
0:54:43
company to sponsor advertise this zen
0:54:53
i love them them them most that i'm if
0:54:59
me about what energy drinks
0:55:02
yeah i have i just share it and that's
0:55:08
people want to try it um
0:55:13
get it for them and because i feel
0:55:17
exclusive as in access to that brand as
0:55:22
it's not accessible to the public
0:55:26
did you cr did you were you one of the
0:55:33
like did you you know how when companies
0:55:34
start they crowdfund their projects
0:55:39
i don't know what you mean
0:55:40
people just put in money um to start a
0:55:44
oh no no no no i'm
0:55:50
nice um this is deploys so you might
0:56:00
well andre andre you might want to check
0:56:04
on send your message
0:56:13
more than more than more than me i'm i'm
0:56:23
or he's been really busy
0:56:26
what else i didn't get
0:56:30
that's fine um i mean yeah he's a really
0:56:34
busy person as in being a senior dev or
0:56:38
principal developer
0:56:40
it's not easy job as in
0:56:43
i've got really high respects for him
0:56:46
that's pretty good
0:56:53
object is right that's right
0:56:56
we got an error ray
0:57:07
go to laptop and see what it says
0:57:15
i sent you another message if you
0:57:18
if you get time just have a look and
0:57:29
we had water already now i'm having
0:57:33
but zayn's having water i'm still having
0:57:35
water because i love water
0:57:46
okay focusing focus
0:57:49
and 19 that is not the one i'm in the
0:57:57
so i need to be in the latest one
0:58:10
doesn't do what name is becoming
0:58:16
board name is undefined and this is how
0:58:19
it comes if i just
0:58:26
i think what i might need to do is i
0:58:44
should i try to string instead
0:58:47
yeah yeah you should
0:59:06
okay let's do that again
0:59:09
wow the time really flies is half 10
0:59:22
great i'm really sorry um i think
0:59:29
slacking and not really looking at my
0:59:36
regularly that's my
0:59:42
that's interesting
0:59:45
i think it's something to do with slack
0:59:48
andre i didn't really get your message
0:59:52
if you send it to me
0:59:57
it might be just some slack problem then
1:00:04
i think i already have two accounts or
1:00:06
something like that
1:00:12
anyway um yeah it's fine um
1:00:33
let's call it a day we have actually
1:00:37
made progress which i'm pretty happy
1:00:49
yeah for sure i think um
1:00:51
we can probably go ahead and do that
1:00:56
gonna stop sharing
1:00:58
right cool um it's like
1:01:04
thanks so fun thanks a lot for joining
1:01:07
us it's been a pleasure um
1:01:11
looking forward to more
1:01:14
session with you guys and um
1:01:17
today we'll be here tomorrow again same
1:01:22
same place and a slightly different
1:01:28
all right cool um yeah today was
1:01:30
productive we got the board name working
1:01:33
probably will get the json object
1:01:35
working it's not a big task um yeah see
1:01:38
you guys tomorrow at 9 30 and don't
1:01:40
forget to set your timers for thursday
1:01:44
because we have a really special
1:01:47
really proficient dev coming who's andre
1:01:59
see you guys tomorrow guys thanks cheers