0:00:21
all right welcome back everyone welcome
0:00:25
another episode of build break and fix
0:00:29
to all those people who are new here we
0:00:32
that means that we're a team of two
0:00:34
developers from melbourne victoria um
0:00:36
working on a project
0:00:38
which adds persistent storage to the
0:00:40
current open source project called
0:00:44
and of course if you're new here we are
0:00:45
working with stacks like
0:00:47
express.js we do a lot of aws um
0:00:52
do a lot of fetch apis as well so
0:00:56
yes and if you're into scrum
0:00:57
methodologies as well it might be worth
0:01:00
following us for that as well
0:01:03
yesterday we were working on a lot of
0:01:06
defensive programming methods and
0:01:08
um a lot of validations as well
0:01:11
i think today we plan to fast track a
0:01:13
little uh first track that a little
0:01:16
um and just get done with it as soon as
0:01:21
there's a lot of things which we need to
0:01:23
work on in terms of the um general um
0:01:28
like the developer operations or
0:01:30
the general deployment of the app which
0:01:32
we quite haven't configured yet
0:01:36
yes how are we willing to return
0:01:38
we're feeling pretty good uh without
0:01:41
further ado let's get diving into the
0:01:48
that's right and let's
0:01:51
get some war in our regardless before we
0:01:54
start hacking as our giza gangster says
0:02:02
do you want me to code today
0:02:10
um you can change your screen and i can
0:02:14
put you at the stream your screen in
0:02:17
which you're sharing on my big screen
0:02:22
um yeah i can do that and
0:02:25
have you pushed the latest i did here
0:02:30
yeah in the stable back end branch
0:02:39
i'm just wondering
0:02:42
which link does it correlate to
0:02:47
your link right okay smiling so you you
0:02:50
would have to use my link as in my api
0:03:07
again we have a few selection
0:03:15
how about this one or i have one more i
0:03:18
check the other one
0:03:20
as well how does that look
0:03:23
i feel this one looks pretty cool on you
0:03:26
yeah it's just that it's hiding my eyes
0:03:28
i have a feeling ah all right what do
0:03:37
say that if you wear the other other one
0:03:40
it feels like you're in the north pole
0:03:45
as in it's raining it's minus degrees
0:03:52
let me open the window
0:03:57
okay the windows are now open okay that
0:04:09
jack dev has approved the aid one
0:04:15
um let me know if you could hear noises
0:04:16
from the street though because i live in
0:04:20
there's a lot of things going on
0:04:26
i lived just a block away from you
0:04:29
yeah like i live on i live on a place
0:04:31
where the tram is like ah
0:04:34
right right right like yeah just
0:04:36
downstairs the tram line so there's a
0:04:39
um the tram uh they honk as well i don't
0:04:43
know if it's called honking they're like
0:04:47
yeah exactly isn't it
0:04:50
yeah they do that a lot
0:04:59
yes on here i don't have any trams north
0:05:03
so on queen street the buses come but on
0:05:08
yeah i'm i'm just on the buses route
0:05:12
yeah uh tori littlefield is
0:05:15
saying that hope you're feeling bad
0:05:19
today okay yeah um yes i think
0:05:22
in the morning the
0:05:24
pain rose like it was way worse than
0:05:28
and i was like super sleepy today
0:05:33
yeah so it does how are you feeling now
0:05:42
let me know if you can see my screen
0:05:50
i'll make a bigger one all right that's
0:05:53
right um so what will we i'm just gonna
0:05:56
go into jira and see what exactly the
0:06:00
scenario that we were working on that we
0:06:26
so the scenario that we were working on
0:06:31
validate if the board id is present or
0:06:44
oh okay yeah i think that should be fine
0:06:49
minus a and one's table back in
0:06:54
cool so it's about the board okay right
0:07:00
yeah that should be easy all right
0:07:22
are we on get a board method right
0:07:27
i don't you think that the validation of
0:07:30
if the board id is present or not should
0:07:38
as in if you go up
0:07:42
it should be right after the
0:07:44
infinite statement
0:07:48
that if the board is present or not as
0:07:51
in the board id is present or not so
0:07:54
if the board id is blank or not
0:07:58
that's what we are checking here
0:08:00
that's actually what this statement is
0:08:02
like exactly so if it if the board id
0:08:08
empty string i reckon we shouldn't even
0:08:16
return the user a meaningful error
0:08:19
that's what i'm thinking
0:08:22
and okay do you get what do you get what
0:08:27
yeah i do i'm just thinking one thing
0:08:33
which is that we're gonna write this
0:08:34
particular line of code a lot of times
0:08:37
i don't want to do
0:08:39
okay i'm just gonna generalize the whole
0:08:43
let me just do one
0:08:45
that would be the best approach to
0:08:50
um this i don't think this is the latest
0:08:55
because i'm pretty sure that i changed
0:09:00
name from test to is bought valid
0:09:05
i can go get pull for you again unless i
0:09:08
haven't checked that change in
0:09:15
i'm sure it works for now i think you
0:09:18
just changed it on your own you didn't
0:09:19
push it ah that might have been the case
0:09:24
friends continue now
0:09:26
you're understanding one thing
0:09:31
why do you have uh jackdev is asking why
0:09:34
do you have to scan the table online
0:09:45
why are we doing that soviet
0:09:59
we're checking if um
0:10:10
checking that that table has
0:10:13
rows as in the boards in there and
0:10:18
if it does then we
0:10:22
the board id bar i see you
0:10:25
what you're saying geckdev that we can
0:10:27
just use a query in instead of
0:10:38
i'm just trying to think one thing
0:10:51
want to think out loud because this is
0:10:54
the purpose of p p programming
0:10:57
yeah i just want to articulate what i'm
0:10:59
thinking then only i wanna right right i
0:11:01
say say something i just don't wanna say
0:11:04
it for the sake of saying that yeah yeah
0:11:08
uh tori littlefield was saying um
0:11:12
this is where frying up comment is
0:11:18
yeah i'd agree with that
0:11:30
the thing is i don't want to write this
0:11:32
line a lot of times so what i'm going to
0:11:35
i'm going to create a boolean
0:11:39
and i'm going to create a message
0:11:45
yeah never mind there's no other way to
0:11:47
do it yeah i think just
0:11:54
no no no actually i know what to do i
0:11:56
exactly know what to do can we create
0:11:59
another function here then
0:12:08
how do i create another function here
0:12:10
which takes in two parameters
0:12:15
i want to call it from here
0:12:20
or if you want to use the error function
0:12:25
from the best of my knowledge although
0:12:27
i'm not javascript dev but it might be
0:12:33
function name that you want to put
0:12:37
and then open and close brackets
0:12:47
better returned i'll change it later
0:12:54
open and close brackets
0:12:57
no no no no no no no i i
0:13:03
function i just said equals no hang on
0:13:07
okay okay there you go
0:13:09
arrow return space equal space open and
0:13:15
error functions arrow functions sign
0:13:20
as in equals and then a greater than
0:13:26
that's an error function and open and
0:13:28
close curly brackets
0:13:31
there you go that's your
0:13:36
function which is an arrow function here
0:13:39
you can correct parameters here yes
0:13:44
that's what it's full to put
0:13:46
put the parameters there
0:13:50
can uh get dev saying
0:13:54
convert to a get item or a
0:13:56
query so get that i think um for the
0:14:00
library that we're choosing to interact
0:14:02
with dynamodb which is a document client
0:14:06
that from the best of my knowledge and
0:14:08
corrects me if i'm wrong here it doesn't
0:14:12
get item function it only supports
0:14:17
then why did you tell me to add
0:14:21
the board id isn't present
0:14:24
because even if it's not present
0:14:28
remember we discovered that it'll go to
0:14:34
but yeah i'll still write it
0:14:36
but i don't think it's ever gonna come
0:14:40
i didn't get your points
0:14:42
um you told me to write something here
0:14:48
and line 16 when we don't get the bold
0:14:52
id in the parameters
0:15:03
i can't remember now
0:15:05
that's fine um yeah
0:15:10
is not present in parameters
0:15:29
it will probably be
0:15:31
good to say full response
0:15:36
okay yeah that's fine because
0:15:39
rest can also be result
0:15:44
and can you make your camera case
0:15:48
yeah just give me one second i'll do
0:15:51
let me write the logic and then we can
0:16:18
do you want to make i mean this camera
0:16:27
that looks fine that looks fine
0:16:30
i'm just gonna get rid of
0:17:33
and tutorial phil was saying got sam
0:17:38
today and docker was a huge fan
0:17:44
did you say docker
0:17:46
docker was a huge pain
0:17:50
yeah it is is of it
0:17:58
but um i don't know if you
0:18:01
tutorials they'll feel that you can you
0:18:04
don't i don't think you need to
0:18:13
use docker to do the testing of sam
0:18:22
locally by doing sam local style api
0:18:30
then i opened up the demo dock so open
0:18:42
you're reminding me when i just started
0:18:45
to experiment with uh
0:18:52
breaking things every second
0:19:09
yes yes yep config
0:19:12
actually i'll see what's in this config
0:19:14
file um it's got all the
0:19:19
parameters that we pull as in enter
0:19:28
evaluate and then we'll make a
0:19:31
actual config file or build spec file
0:19:37
make sure that the stack is built
0:19:41
and you have to drill them manually
0:19:44
i got a way how to get them
0:19:50
i was thinking of searches to serve us
0:19:54
because the docs are bad
0:19:59
i got reply to mine
0:20:01
that should be fine
0:20:08
that should be alright because um
0:20:10
they're both the same
0:20:20
tables so you should
0:20:27
actually that's a better thing we can
0:20:29
put your end point in like github and
0:20:33
and when i'll push it i'll just put your
0:20:39
the person got the endpoint from
0:20:46
oh by the way i was thinking that i'm
0:20:52
the this project private
0:20:58
the first as in beta release
0:21:07
coming higher and higher every month now
0:21:10
but like if you're if you're doing this
0:21:12
because someone's spamming us that's not
0:21:14
the right approach because we can just
0:21:16
go ahead and uh what you call it
0:21:21
uh we can we can do the course policy
0:21:26
you can we can go ahead and apply for
0:21:30
um there's an age of aws
0:21:33
uh i forgot the name startups program
0:21:40
they got two other
0:21:45
i might do that but don't i need a
0:21:50
no we just need a website and stuff but
0:21:51
i'll make you do it um okay
0:21:54
i've done it in the past okay cool
0:21:57
that'll be fantastic man cause
0:21:59
yeah yeah that'll really help
0:22:03
uh get them saying how's we're going
0:22:09
pretty good like death resource not
0:22:12
found all right okay i need to
0:22:15
change the table name
0:22:20
i do not totally first thing i do not
0:22:23
push my endpoints to
0:22:29
toy you'll feel that's a really
0:22:32
really smart choice i think
0:22:35
learning that in the hard way
0:22:42
that's a pretty good one
0:22:50
okay i'm just doing
0:22:52
that i'll just do it in a second i won't
0:22:55
bring it up on the screen
0:23:18
dynamodb table got it
0:23:30
poor environment variables in the
0:23:33
gmo files i've done that in the past
0:23:36
touring little field um ages ago i can't
0:23:39
remember until my head
0:23:42
yeah but i would tell you how um what do
0:23:46
we need to do to put the
0:23:49
these hard coded as in table names or
0:23:52
the api endpoints um as an environment
0:23:56
if you wanna yeah what why aren't we
0:23:58
doing that why can't we just like dollar
0:24:04
dollar sign what you mean dollar sign
0:24:06
right you're right using placeholders
0:24:09
like environment variables
0:24:11
in github i think we can
0:24:14
we can use price environment variables
0:24:18
i've done that in the past but i i kind
0:24:20
of forgot and the only reason why i'm
0:24:24
putting that off is because it will
0:24:26
require a bit of research
0:24:33
i mean it's pretty easy i've done it um
0:24:36
but that being said the better approach
0:24:41
i mean if yeah if we don't get time to
0:24:44
do course we can just save your build
0:24:46
with environment vehicles
0:24:53
that makes sense though
0:24:57
i'm trying to figure out
0:25:01
out but amazon is trying to chris
0:25:08
the joys of family
0:25:12
starting to learn awsa
0:25:16
okay that looks fine
0:25:21
okay yep that title works
0:25:26
so the function was successful let me
0:25:30
go ahead and quickly write everything up
0:25:34
i want to open this thing
0:25:36
i'm thinking how but if we do as in one
0:25:43
half a session as is very soon on how to
0:25:48
do environment variables
0:25:51
yeah sure you can do that
0:25:53
that'd be an interesting one um can you
0:25:56
please do five push ups as a thanks
0:26:00
jake there was asking
0:26:03
you need to do it i'm in the phone
0:26:08
say away for it we're free he's pumps
0:26:11
about the code and he's not gonna do it
0:26:14
you do it you should do it i'm just
0:26:17
really okay uh uh i'll do on behalf of
0:26:22
yes you do 10. okay as well
0:26:25
yep you do that okay no jagdev doesn't
0:26:28
allow it he said that he need to see
0:26:36
let's do it let's get out of the zone
0:26:51
camera is gonna fall
0:26:53
i'm gonna hide all the mess
0:26:56
in the background with the green screen
0:27:02
it actually works you
0:27:04
know oh you're gonna count
0:27:10
is that switch on line number 79 doing
0:27:12
the job of an f yes it is yeah
0:27:19
oh yes should be able to see me or not
0:27:24
anyway i'll just do it now
0:27:27
okay okay you go three
0:27:38
four bro i just got the jab i can't do
0:27:44
my shoulder isn't allowed
0:27:51
jack dev's expectations
0:27:55
nah can't do 10 my shoulder will just
0:27:59
the vaccine's still hitting me
0:28:02
no one my mentors that
0:28:07
five each but i did
0:28:21
yes um also i just want to clear out we
0:28:23
are not a fitness youtube uh fitness
0:28:26
streamers yeah we are good coding
0:28:35
we just didn't want to use if
0:28:37
that's literally all it is
0:28:40
no overthinking yeah
0:28:46
okay and can you possibly um
0:28:50
change that test very
0:28:52
variables to is board valid
0:28:56
because i don't want to give the users
0:29:01
impression off as in yeah i'll test test
0:29:04
all of that just when you can yeah when
0:29:07
yeah just let me implement the logic
0:29:27
tori little philly
0:29:28
you're funny right you're really funny
0:29:37
jupiter ref is saying
0:29:48
one way to put it but we are more
0:30:04
oh man that really got my
0:30:07
my blood and my breath pumping up
0:30:40
that clears that up
0:30:42
yeah that looks fine i'm gonna work on
0:30:43
the next one and then i'm gonna deploy
0:30:47
right okay now we are working on the
0:30:50
so i can go down with the post
0:30:54
the world comes in on the posts
0:31:01
right the board id generated
0:31:04
table name should be fine
0:31:08
what you working on at the moment as a
0:31:14
i'm just thinking if post um
0:31:19
yeah if what can go wrong in pause
0:31:27
i don't think anything can go wrong
0:31:33
um we don't want to do if we don't have
0:31:35
a board name says absurd
0:31:38
yes we already don't give a board name
0:31:46
i'm gonna call him empty object why did
0:31:48
i make this function to use it
0:32:03
404 and the message is
0:32:12
empty and and you know what's the good
0:32:16
part about this creating error return
0:32:19
if we have to remove all the validation
0:32:22
from the back end like we just don't
0:32:23
need it and we want to test it for
0:32:24
something we can just comment out this
0:32:26
error return function exactly
0:32:29
exactly we don't have to go ahead and
0:32:31
comment on everything um
0:32:34
and res yeah that should be fine
0:32:41
objective saying security error function
0:32:46
i don't know what happens
0:32:47
i have i was just about to ask him
0:32:52
what do you mean by that
0:32:54
sorry didn't get you
0:32:59
oh uh do you mean that we put
0:33:03
a security function in the middleware as
0:33:09
like we're doing at the
0:33:18
create skill as in the
0:33:21
error function like we're doing here in
0:33:24
the middle of it as well
0:33:26
that seems to be a really
0:33:29
good approach apparently
0:33:31
yeah sure we can do that
0:33:36
table name can't go wrong
0:33:39
that's just the general error
0:33:41
board id is given um board name is
0:33:44
for node has already made
0:33:47
the data uh we're trying this are we
0:33:50
using data yes we are using we are right
0:33:53
um and we are doing a put
0:33:57
why do we need it at all we don't need
0:34:01
i don't know why we have it
0:34:03
you know why we have it
0:34:05
we don't have to assign our way to
0:34:19
is there any way that dynamodb tells us
0:34:22
if anything is successful or not
0:34:25
yes by going in the catch
0:34:32
and then tries to play if it doesn't
0:34:36
it will go straight in the catch
0:34:40
no is there a boolean return of this as
0:34:47
error so you know how it says catch uh
0:34:54
error that tells it as you what's wrong
0:35:04
i just want to know before going down
0:35:09
actually it's fine um
0:35:11
yep poor idea sorry
0:35:14
yeah it's fine it really doesn't make a
0:35:17
um board id object is created
0:35:21
um you know we still need to figure out
0:35:24
and just in signify the error yeah
0:35:27
that's fine okay let's look at patch
0:35:36
so i think the same would play
0:35:43
board id can match but the board id as
0:35:46
yeah we need to make sure of that
0:35:55
i just make a standardizer
0:36:02
not present in the parameters
0:36:16
i'll just keep on notes of all the
0:36:19
scenarios that we're doing as well so we
0:36:22
know which one is done and which yeah
0:36:25
yeah can you go ahead and keep updating
0:36:29
yes that's what i'm doing at the moment
0:36:32
so that is important
0:36:36
next thing is board is
0:36:41
all right yep that's fine
0:36:45
then table name can't go wrong
0:36:48
poor id we already checked okay now
0:36:51
you know what said
0:36:55
this function we should make it another
0:36:58
function i'll tell you while one second
0:37:02
this shouldn't be uh because there's a
0:37:04
lot of places we get the board id
0:37:11
okay i'll just make a normal function
0:37:23
can you repeat why do we
0:37:31
what do what did you say against sorry
0:37:40
just the thing that
0:37:42
this functionality of checking if board
0:37:44
id is alphanumeric or not
0:37:47
we're gonna do it more than one time in
0:37:49
different scenarios in patch and delete
0:37:53
in get the board so writing it inside
0:37:55
get is not sensible i'm just gonna make
0:37:58
it another function checking that board
0:38:00
id is alphanumeric or not uh
0:38:02
yeah that makes sense
0:38:05
so you want to make a
0:38:07
global function right
0:38:10
um yes i mean it could be it's kind of
0:38:13
called a member function but yeah all
0:38:15
right what you mean
0:38:20
why aren't we using
0:38:29
why aren't we using arrow function here
0:38:33
to keep them consistent yes again we can
0:38:36
i don't know how to do it can you tell
0:38:40
just replace that coins and then
0:38:43
off cell phone number put
0:38:51
arrow and yeah there we go perfect
0:39:09
um i don't know i need this variable i
0:39:11
don't actually know
0:39:19
right okay i'm gonna keep on updating
0:39:24
yep that's done checkpoint
0:39:27
name is present that's what i made
0:39:31
board name is present in the post yes
0:39:34
that's all and then
0:39:40
validate update board name
0:39:44
validate update board
0:39:48
okay and then we do this
0:40:19
name is present and
0:40:34
just to confirm we are doing the board
0:40:37
name is is present and valid for the
0:40:40
patch here at the moment
0:40:43
just fry that into progress
0:41:02
it looks fine this looks fine little
0:41:18
and we're going to open it case true
0:41:21
we're going to say
0:41:27
so follow for message is
0:41:37
and we're gonna send the response object
0:41:42
it's false we're gonna leave it empty
0:41:44
we're gonna let it fall through
0:41:46
and default we're gonna leave empty as
0:41:52
table name it's fine we are giving it
0:41:55
we are already checked so that should be
0:42:00
um update expression we are getting the
0:42:02
board name did we check the board name
0:42:08
oh and that's uh that's already never
0:42:10
mind yes we need to check if the board
0:42:17
it a string variable we that's all we
0:42:22
rest of front tension make sure
0:42:24
things like is the board name valid or
0:42:30
we just need to make sure if it's string
0:42:33
this should be done in the rear
0:42:37
the rest should be done in react yeah
0:42:42
let me make another
0:42:51
okay this is a string function that's
0:43:21
okay okay where was i
0:43:23
let's do it if actually i'll just do a
0:43:27
switch to make it consistent
0:43:44
if it's a string type
0:43:47
then we want to let it go through
0:43:50
which means that in
0:43:55
you want to make an error
0:43:58
and we want to say 404
0:44:02
that says that board
0:44:12
we're given the response object
0:44:14
and we'll make the case
0:44:18
make a default case as well
0:44:25
code name is validated
0:44:28
um that's an update i don't think the
0:44:31
type validation as in the type off
0:44:35
that you're specified as in the board
0:44:38
named triple equals string
0:44:42
that might not work
0:44:50
yeah we'll give it a go
0:44:53
and we can come back to that
0:44:58
just wanna see the time okay 15 more
0:45:05
this will automatically do that
0:45:16
naming actually no it's fine it's fine
0:45:20
i'm just overthinking right okay delete
0:45:22
function let's see
0:45:24
okay the first one is at a return
0:45:28
we're going to give it a 404 and we're
0:45:40
present in the parameter
0:45:44
okay that'll do it
0:45:48
yep else it's a sign next we want to
0:45:50
check if port id is
0:45:52
alpha correct so we're gonna do switch
0:45:57
and we're gonna pass in the board id
0:46:00
and then we're going to open the switch
0:46:02
and we're going to write the case
0:46:08
it is alphanumeric then we want it to go
0:46:14
it's gonna be error
0:46:19
four four the message is
0:46:38
and i'll create another case for
0:46:39
readability purposes case two and
0:46:43
we always need a default case and switch
0:46:49
so board id is verified now
0:46:52
um table name we are gonna give it um
0:46:54
jupiter wrath is asking there he's
0:46:57
asking that is the execution meant to
0:47:06
yes so i'll tell you what's happening
0:47:09
we're gonna call the delete controller
0:47:12
and it's gonna have two things inside it
0:47:14
it's gonna have a board and a forward
0:47:18
if the board id is null
0:47:22
it is not in the string
0:47:24
yeah yeah it's an empty string that it
0:47:26
means not in the paragraph
0:47:28
we're gonna we made this custom function
0:47:30
which is error return
0:47:32
this is the status
0:47:34
this is the message that means that
0:47:35
board id is not present in the
0:47:40
this is the response object which we are
0:47:42
sending it so that we are able to return
0:47:46
okay just to uh retrieve
0:47:50
the board id isn't present in the path
0:47:56
url path it wouldn't be called the
0:48:00
yeah that makes sense
0:48:02
right okay um i just want to check here
0:48:06
so we are scanning the boards
0:48:08
i want to see if the board object is
0:48:09
empty okay let's do a switch case again
0:48:13
and i made a function is empty if i'm
0:48:23
is asking have you heard about the
0:48:28
i don't know what you're talking about
0:48:38
if if this function is called it's gonna
0:48:40
return itself right because
0:48:45
yeah this is gonna return
0:48:47
he's pulling your leg that's all
0:48:54
if it is um he's saying
0:48:57
choose it it's bad practice
0:49:01
what do you want to use then
0:49:08
are we doing something wrong then
0:49:10
i thought he was pulling our leg but
0:49:13
apparently he's serious
0:49:16
don't use it it's bad practice um
0:49:19
have you heard about uh so he's probably
0:49:23
saying that don't use the function
0:49:27
to return something um mri kick death
0:49:32
is there any other way to
0:49:38
that is what he's talking about
0:49:43
i actually didn't get it
0:49:47
what did you just say to him that she
0:49:52
he means that don't use a function to
0:50:00
oh i think what means that as in
0:50:10
and call a and then when it goes in the
0:50:13
function then return it just
0:50:16
that's what we're doing straight away
0:50:18
that's what we're doing
0:50:28
so he wants me to return here is that
0:50:31
what you're saying
0:50:37
no wait not not here yeah no no this is
0:50:41
not the place right
0:50:43
what do i return it's it's the
0:50:45
controller i can't turn something i have
0:50:47
to send something right
0:50:52
this is my actual is empty function and
0:50:55
i'm returning only
0:51:04
to be honest i'm kind of
0:51:13
but then you still need to return
0:51:16
otherwise the code will continue
0:51:19
all right okay so that's that means we
0:51:22
have been doing this since wrong since
0:51:25
but apparently yeah yeah so can i return
0:51:29
empty return semicolon can i do that
0:51:56
you know on line 1 26
0:52:01
probably what it means is that do a
0:52:03
return as in by pressing enter and then
0:52:07
on line 27 the return would come
0:52:10
if i'm not understanding you're wrong
0:52:13
yeah so what they're saying is they're
0:52:14
saying basically this yeah
0:52:20
okie dokie that makes sense thank you
0:52:24
yeah that makes more sense
0:52:32
just for future reference can you
0:52:38
spaces between the punctuation
0:52:42
no i think this is
0:52:44
um how it is though or
0:52:50
not at the end just in the middle of the
0:52:55
okay yeah i'll do that
0:52:57
okay let me just copy and paste my
0:53:03
jupiter i've seen that if some condition
0:53:06
then error return yeah
0:53:13
thank you jupiter right there really
0:53:17
example really helps yep and thank you
0:53:20
good girl thanks for pointing it out
0:53:25
i'm just gonna get my
0:53:28
finished i'll be right back
0:53:32
is board empty um so we're seeing if
0:53:35
board is empty if it is empty
0:53:38
we're gonna do an error return and then
0:53:43
and we're gonna say
0:53:53
and we're gonna send this as object and
0:53:59
it's false but we might do something
0:54:01
like afterwards and
0:54:13
let's finish this one and we might want
0:54:15
to test it before it's temporary
0:54:23
i'll just try to return after everywhere
0:54:26
i did error return
0:54:32
that looks fine that looks fine
0:54:35
that looks fine that does not look fine
0:54:43
meant to not look fine as well
0:54:47
oh that looks fine that's fine it looks
0:54:49
fine that looks kind of fine
0:54:56
let me just finish this one
0:55:00
okay so if it boards are empty that
0:55:02
means no board is found to delete um
0:55:06
then it's just gonna say no words found
0:55:09
um if there are boards i don't know why
0:55:12
we have data we're not using it i'll
0:55:17
um right if there are bored
0:55:23
i'll not change the follow but we need
0:55:25
to change it afterwards
0:55:27
um we're gonna go into the board items
0:55:29
and if we find a board
0:55:31
that we're gonna say that
0:55:34
the word was present
0:55:42
okay yeah else it wasn't present then we
0:56:05
um table we are giving board id which we
0:56:12
i don't think so we need to delete then
0:56:21
guys you tell me do we need this delete
0:56:29
just press f in the chat please
0:56:36
okay i don't think so we need it but
0:56:42
okay i'm just gonna confirm everything
0:56:44
is right and then i'll test it
0:56:59
let's text zen and see where he is
0:57:03
okay he's not here for sure
0:57:14
i'll say sand where are you
0:57:28
that looks fine that looks fine
0:57:37
let's give it a test
0:57:53
and deploy minus t
0:58:04
okay let's see what happens
0:58:07
the moment of truth
0:58:14
if it all works then we
0:58:16
probably smashed a lot of the validation
0:58:20
also what's up with the emojis i said to
0:58:25
okay this one's the funniest one
0:58:30
yeah this one's pretty funny as well
0:58:39
okay welcome to our special guest zen
0:58:44
sorry about that my laptop's battery
0:58:48
i saw that and i didn't
0:58:51
i didn't realize it
0:58:54
okay um i just deployed and i'm just
0:58:56
gonna test everything out
0:59:04
if i just give it to brush
0:59:10
and if that gibberish is of the light
0:59:14
let us see what happens
0:59:21
but it is still gibberish
0:59:26
oh boy okay there's one error which we
0:59:29
need to figure out okay
0:59:38
why is the board name alert glitch
0:59:42
that's a bit of a head scratcher yes it
0:59:45
um if we write some other gibberish
0:59:49
or it is invalid okay
0:59:58
what else did we do
1:00:08
get board id is working
1:00:11
we then make sure if we actually find
1:00:26
second oh yeah that's true
1:00:30
oh wait we did make sure
1:00:37
i know what's happening here
1:00:42
wait if the ball is not found then
1:00:44
what's the problem with it
1:00:48
like the board id is fine
1:00:54
formed um let's make it an s
1:01:00
okay but let's see what's happening here
1:01:11
something to do with my is object method
1:01:16
but i'll come and figure that out okay
1:01:20
um posting the board
1:01:23
while posting the board
1:01:27
go to your is empty method
1:01:31
yes please want to check how you have
1:01:34
is empty method as in which you have
1:01:37
declared the method and implemented it
1:01:42
i did it somewhere
1:01:44
i can assure you that
1:01:46
just don't control that
1:01:49
no i think i know where it is
1:02:05
is instead of doing a zero
1:02:08
why not we do a null
1:02:23
the board could be null
1:02:25
that's not the problem it shouldn't be
1:02:32
we can try that yeah we can try that and
1:02:37
object is empty in javascript
1:02:41
let me bring my opinion to the
1:02:56
yeah that's how i got it as well
1:02:59
um i think i i'll go from here yeah this
1:03:08
okay so it is actually checking that
1:03:13
that's right we'll come back to it let
1:03:15
me just check other ones
1:03:24
if board name is empty let's try that
1:03:32
let's post an empty board without a body
1:03:40
okay it's definitely something to do
1:03:45
the agency function uh i'll get back to
1:03:55
right alpha numeric one
1:04:01
give the board name
1:04:16
okay let's get the board
1:04:31
let's get the board
1:04:44
and i'm gonna say board name
1:04:50
let me just put this
1:04:52
only missing alt token
1:05:04
what are we trying to do now
1:05:07
i'm just trying to see um if patches
1:05:10
patch authentications are working fine
1:05:13
um i found errors in two places till now
1:05:16
um i'll come back to them as well
1:05:20
oh okay i think i know what's happening
1:05:22
with the missing author token remember i
1:05:26
okay yeah don't worry about that
1:05:39
if we don't have to
1:05:42
yeah if we don't get a board
1:05:49
you know where just
1:05:50
and no boards okay yeah that's fine
1:05:54
don't worry about it
1:05:55
yep so i'll just go ahead and empty my
1:05:58
dynamodb table and then call delete
1:06:02
it should give me another message
1:06:04
saying all boards in the database let's
1:06:08
where's my table there it is
1:06:16
away no one needs good
1:06:22
i guess after this first round of
1:06:26
let's call that night
1:06:29
i have a project oh sorry
1:06:32
what you got looking assignment to do so
1:06:39
oh boy they made it really annoying
1:06:52
yep brilliant yeah that seems to be good
1:07:02
i thought it was supposed to be a delete
1:07:05
yeah i know um yeah that's fine
1:07:15
i need to get a valid board
1:07:18
can you get me a board id then
1:07:20
it'll be really nice of you
1:07:24
but then you should have to use my
1:07:28
api endpoint isn't it i just need a
1:07:30
violin oh there you go
1:07:32
yeah but not found is working
1:07:37
get all the boards
1:07:41
yeah which is good sign
1:07:44
okay so someone did post a book oh boy
1:07:48
being spammed again
1:07:52
you know what i'm gonna do next time i'm
1:07:54
gonna create a cap of two five boards
1:08:00
yeah i'm just gonna write a code if
1:08:01
board the length is more than five just
1:08:05
yeah that's it yeah
1:08:07
keep your phone to yourself hmm
1:08:11
why don't i have it
1:08:15
this is really interesting so it's not
1:08:18
coming in dining tv
1:08:21
bad boy is coming here and postman
1:08:33
well it's formatting
1:08:52
let's get a bit of a diversion and
1:08:56
work on the course um the
1:08:59
another cause thing
1:09:01
oh yeah the cause thing yeah just let me
1:09:04
thing let this person post the board and
1:09:08
i'll comment on the post method in
1:09:12
so now okay overnight
1:09:15
that makes sense yeah i just want yeah
1:09:18
cool thank you so much for posting
1:09:20
boards now i'll be able to test
1:09:23
yeah i really appreciate that
1:09:34
thanks for coming thanks for
1:09:40
yeah enjoy your night
1:09:47
yes we will be doing the environment
1:09:50
variables hopefully tomorrow is okay as
1:09:54
in the first half of this session
1:09:59
can we smash out this validation first
1:10:02
i can't interrupt some one thing and
1:10:05
yeah but if you're able to do it
1:10:09
then day after tomorrow for sure
1:10:12
like yeah it shouldn't take too long so
1:10:14
that should be fine cool
1:10:18
um yeah i'm just commenting on my post
1:10:20
board i recommend you do that as well
1:10:27
gonna do that as well
1:10:35
if you don't have that many boards
1:10:48
just love them isn't it
1:11:04
i need some of the boards i'll not
1:11:10
all right i'll just leave
1:11:19
why didn't you do this in yours earlier
1:11:21
though excuse me just like come in the
1:11:24
first four oh wow okay i i think it's
1:11:28
okay i'm gonna do in mine as well then
1:11:46
create a new board there you go it has
1:11:48
the post method oh okay
1:11:52
it's still happening for some reason
1:12:03
i'll just give the code after the
1:12:07
maybe on adventure one as well
1:12:09
because of me so i'm just deploying it
1:12:16
jupiter rat has a good question when i
1:12:18
just seen gonna be
1:12:22
is the screen not 1080p is it
1:12:25
are we not streaming in 1080p
1:12:33
is there a question for me
1:12:35
i'm asking you are we
1:12:42
um are we not streaming in 1080p
1:12:46
totally sure what there must be a saying
1:12:49
in which we can tell i probably have to
1:12:57
okay um that's fine we are anyway gonna
1:12:59
switch to obs we were using
1:13:03
but yes we're gonna come back and switch
1:13:05
obs then it's gonna be 1080p for sure
1:13:09
i know my screen is a little bit small
1:13:13
maybe that's the reason you're finding
1:13:19
right okay yeah now the person can't do
1:13:24
it was because of me
1:13:27
no yeah i was just taking time to
1:13:29
penetrate but i think we should have
1:13:30
done it it just go just comment the post
1:13:33
board and that's literally all it is
1:13:37
yeah i kind of agree with
1:13:40
jupiter ref that is kind of hard
1:13:45
text at times for the
1:13:48
viewers but we will be setting up obs
1:13:52
and um then it will be a long
1:14:04
so by monday you you
1:14:07
it will hopefully be that quality
1:14:10
oh wow okay now the person is doing
1:14:16
okay hang on i'm gonna actually
1:14:29
um i'm done with the validation for sure
1:14:33
configure course after doing env for
1:14:37
this is kind of what i really need to
1:14:44
that's good that someone is telling us
1:14:49
yeah for sure of course happening
1:14:54
the next thing the validation ends but
1:14:57
till then the post method are
1:15:00
um commented so try your best
1:15:04
i'm gonna just do the post method for
1:15:11
all right okay jupiter rat just give us
1:15:13
um this week and maybe give us a follow
1:15:17
and on youtube as well then
1:15:20
you'll be able to join us tomorrow as
1:15:21
well we stream every night except
1:15:25
from the last week but yeah um if you
1:15:29
if you're interested you're gonna see
1:15:30
this tomorrow 9 30
1:15:33
melbourne time as well
1:15:35
um that being said i think that was the
1:15:40
yeah that should be fine
1:15:42
okay i've just deployed my end as well
1:15:58
cool that's brilliant
1:16:04
so the project relates to
1:16:07
adding persistent storage to a current
1:16:11
open source project which is called
1:16:14
um we've been streaming for over uh
1:16:17
two months now i believe today is the
1:16:23
that means we've been streaming 65 days
1:16:25
consecutively except the last saturday
1:16:30
since the last 65 days we've been
1:16:32
working on this and um is one of the
1:16:40
like it's the earliest people to join us
1:16:43
tomorrow is it to our regular
1:16:47
kick dev yeah i think
1:16:49
i mean this was also one and a half
1:16:51
hours kind of they can come back
1:16:52
tomorrow at i think we are then saying
1:16:55
that to our stream i think
1:16:56
tomorrow what we aim to do would be is
1:16:59
doing the validation
1:17:00
completely even if we get it done in
1:17:02
like half an hour but
1:17:06
it's at least going to take two hours i
1:17:11
it's going to be a longer stream
1:17:12
tomorrow for sure doing the validation
1:17:16
there's a lot of debugging to do right
1:17:20
all right in that case
1:17:22
that's called a knife for today
1:17:24
i'm pretty sure the viewers have um
1:17:28
to do as well and we have to yeah
1:17:32
yes i have to do the
1:17:38
but yeah thanks for joining in um i
1:17:40
think today was really productive
1:17:43
um i think we got a bit of code done but
1:17:46
i still need to make sure it works
1:17:48
and yes for kick dev again um
1:17:51
tomorrow we're gonna do more of a goal
1:17:53
based stream rather than a time base i
1:17:57
so that's true yeah did you update all
1:18:00
the jira stuff then i
1:18:04
but i would say until
1:18:09
we came up to and testing and what
1:18:12
worked and what didn't so i kind of got
1:18:15
last night because i was um
1:18:18
trying to identify with you why
1:18:21
why they're not working
1:18:23
as expected yeah that's fine you can
1:18:26
come back and test tomorrow again and
1:18:29
um if you're on a call you can code or
1:18:30
if you know follow the jira board you're
1:18:32
welcome to do that as well
1:18:34
yeah are you guys gonna do your course
1:18:36
your next step cop
1:18:38
yes i'm sorry i wasn't able to attend
1:18:40
the death corp this time but
1:18:43
i think yeah yeah we give it a
1:18:46
thought we still haven't decided
1:19:02
there i i just had a really late night
1:19:06
and then couldn't really get up
1:19:10
zen's having late nights on tuesdays
1:19:15
that sounds really wrong
1:19:18
oh my god is this wrong
1:19:21
who has late nights on a weekday
1:19:28
healthy energy drinks
1:19:31
i don't think the energy drink but
1:19:35
it's healthier than other energy drinks
1:19:40
not healthy it's healthier energy
1:19:43
healthier than other energy drinks
1:19:47
guys thanks a lot for joining in and
1:19:50
we'll see you tomorrow same time uh same
1:19:55
oh a different task actually
1:19:58
actually the same task nevermind
1:20:00
if i'm on useful day just photo i don't
1:20:12
a different problem yes for sure
1:20:20
yeah talking about sign my sign is going
1:20:21
to be there tomorrow
1:20:25
yeah just get excited
1:20:30
yeah yes see you guys
1:20:39
have a good night bye cool good night