0:00:24
all right welcome back everyone welcome
0:00:27
another episode of bill break and fix to
0:00:31
all those people who are new here
0:00:33
um of course we are rokurus which means
0:00:36
that we are a team of developers from
0:00:38
melbourne uh working on a project called
0:00:40
which has persistent stories to the open
0:00:43
source projects converts here
0:00:45
and we've been working on the stack
0:00:47
which relates to express.js fetch apis
0:00:51
we'll jump into a bit of react as well
0:00:54
but right now mostly we work with a lot
0:00:56
of technology including jira github and
0:01:00
cool so welcome back tori come back how
0:01:05
after yesterday i feel amazing
0:01:10
thanks for having me again guys
0:01:12
um yes do you want to give another
0:01:14
introduction today
0:01:19
uh was that for tori or myself yes do
0:01:22
you want to introduce again
0:01:24
hi my name's uh tori i'm in bali
0:01:28
indonesia and i'm a react developer
0:01:34
fantastic i love reality although i
0:01:37
still have to learn it properly
0:01:43
that's pretty good
0:01:46
i guess without any further ado
0:02:01
yeah okay welcome back tori
0:02:11
you know it's it's it's weird for me
0:02:13
like i i don't know why but
0:02:19
for some reason kartik's audio is just
0:02:22
coming in all fuzzy for me
0:02:27
okay let me get here
0:02:29
fine maybe we'll just
0:02:49
because we need to set the
0:02:52
limitations on dynamodb
0:02:57
yes that's what we're going to do hey
0:02:59
tori can you hear me
0:03:01
yeah it's perfect now
0:03:04
mom saying do you want to go ahead and
0:03:09
i'm going to be um obvious so i don't if
0:03:12
you remember but uh if you guys
0:03:16
remember that yes today get there um
0:03:20
said that it should be really time
0:03:22
effective if we just put some limits on
0:03:29
we will just go and do that instead what
0:03:32
was it called again pre-provisioning
0:03:34
right yeah pre-provisioning i believe it
0:03:38
so i'm just gonna share my screen
0:03:42
uh which one do i wanna share
0:03:49
bring my aws thing over there
0:03:53
dory can you hear everyone already
0:03:55
yeah now it's it's funny now i now
0:03:59
now the issue i was having with you is
0:04:01
is happening with zane
0:04:07
maybe it's maybe it's something with
0:04:12
are you able to like understand is it
0:04:20
okay let's do one more rejoin and we'll
0:04:55
sounds okay yeah it's it's working now
0:04:57
very nice okay brilliant
0:04:59
so it's probably one joint per viewer
0:05:08
it's it's because stream yard didn't
0:05:10
sponsor you guys that's why
0:05:15
there are sponsoring us because this
0:05:18
version that we're using at the moment
0:05:21
um sponsored by them oh really okay then
0:05:31
thanks for sponsoring this program
0:05:40
let's go pre-provision dynamodb right
0:05:46
what do you do every day
0:05:48
what does your day look like
0:05:54
like today was today was definitely one
0:05:59
i'm really i'm really trying
0:06:01
to make the switch over to typescript
0:06:05
okay yeah and then like just just some
0:06:10
some edge cases there just tripped me up
0:06:13
and then i'm like oh wait i don't know
0:06:15
anything about typescript actually
0:06:18
are you working on a framework or just
0:06:22
just you know just my own
0:06:28
um and then i'm like you know what i'm
0:06:30
just gonna use typescript from now on
0:06:31
for everything i do
0:06:34
yeah and it's actually pretty good um
0:06:36
yeah for the new place where i started
0:06:40
um they use nest chest which is
0:06:43
oh yeah that's cool build on express but
0:06:47
um yeah i like it better than yes for
0:06:51
yeah i definitely heard a lot of i
0:06:53
haven't checked it out myself but i've
0:06:55
heard a lot of really good things like
0:06:58
super fast and easy to throw up server
0:07:04
plays plays nicely with a lot of
0:07:07
other things like typescript as well and
0:07:12
yeah no for sure but
0:07:15
are you are you learning or are using
0:07:17
protected in a production environment or
0:07:22
but but it's you know
0:07:25
it's it's it's the it's all the rage so
0:07:28
it's more popular than react like
0:07:32
two or three times more popular so like
0:07:37
is is going type script like
0:07:40
so you don't you know
0:07:42
you don't want to be left behind on this
0:07:48
reacts like pretty cool right but like
0:07:50
most of the native framework is on
0:07:53
typescript like it's built on top of
0:07:56
so that's how it works
0:08:06
yeah what was the first language you
0:08:08
learned was it javascript only
0:08:15
like deeply javascript yeah
0:08:18
deeply javascript like probably the
0:08:21
programming language
0:08:25
um well i don't know actually i don't
0:08:27
even know if it's a language but the
0:08:29
first thing i ever learned was matlab
0:08:33
okay that's a technology
0:08:35
yeah i don't i don't know what it's
0:08:41
but yeah that was way back in university
0:08:45
and i don't know i can't remember a lick
0:08:50
i remember it was pretty pretty awful
0:08:56
that's something to remember
0:09:00
but but you know like the product itself
0:09:02
is really cool it's probably awful
0:09:04
because i knew nothing about programming
0:09:08
um so it just it probably just felt so
0:09:10
painful but like it was it was really it
0:09:14
was really cool to you know like i
0:09:17
studied mathematics and universities so
0:09:19
like all right was that your major like
0:09:25
yeah so eventually like
0:09:31
like you know eventually i i can't
0:09:33
remember maybe junior level like
0:09:36
introduced maybe it was sophomore i
0:09:37
introduced like matlab and then
0:09:40
there was another course like in python
0:09:42
too like some really basic stuff but
0:09:48
very nice so that was your first
0:09:52
the software world
0:09:54
yeah and then i forgot about it for from
0:09:57
for many many years um and and i think
0:10:01
you know that was that was a while ago
0:10:05
years since i last touched code like
0:10:08
things just evolved so much that's true
0:10:11
and i guess these 10 years were like the
0:10:14
most evolving for sure
0:10:21
it's it's yeah it's like
0:10:28
be i mean there's there's a lot to learn
0:10:33
that part's challenging but yeah there's
0:10:36
just so many tools and resources out
0:10:38
there like back then there were there
0:10:44
and in general like it's such a new
0:10:46
industry it's like only 40 years old
0:10:48
like industries like civil engineering
0:10:51
or i don't know they have been around
0:10:52
for like thousands of years
0:10:54
so there's obviously a lot more
0:11:02
yeah for sure there's a lot more to come
0:11:04
in the softer world
0:11:09
um guys i've i'm just
0:11:13
just working on the uh i think that's
0:11:15
called the concept and then
0:11:16
pre-provisioning but i'm not entirely
0:11:19
um i've read in this
0:11:23
particular uh can you see it properly or
0:11:31
see here it says um
0:11:37
provision capacity on an existing table
0:11:40
and to do that we need to go to the
0:11:42
capacity tab this tab has
0:11:46
all this as in what we need to do so i
0:11:50
based on what i'm understanding is done
0:11:53
in the capacity tab which is over here
0:11:57
okay yeah and then
0:12:00
mode and if i do edit edit capacity
0:12:05
it would be provisioned and then i would
0:12:08
probably do this to one i i guess i
0:12:12
don't even know what that means
0:12:20
i think i've done this before let me
0:12:23
just see what i've done
0:12:30
just just just just turn on auto scaling
0:12:33
and put it at a thousand
0:12:47
you got that credit you got credit cards
0:13:02
stupid but i'm not
0:13:09
um right so the read capacity unit
0:13:13
um when you use so basically dynamodb
0:13:18
global indexes right so yeah it's
0:13:20
basically each api call to read from the
0:13:23
table it's just a read request
0:13:26
it's literally how it sounds
0:13:28
so that's not then what we need we
0:13:33
need to do the right passage yeah so you
0:13:39
probably make it to
0:13:44
i'll just tell you what i did um
0:13:57
yeah there is the calculator which i
0:14:01
i think it was called tutorial don't you
0:14:03
know it's not this one
0:14:05
um yeah i'll send you a link and you can
0:14:09
how these are calculated
0:14:11
so when i was giving my aws dev exam um
0:14:16
whole thing on calculation of write
0:14:20
you might wrong look into it
0:14:25
all right i'll just get one from there
0:14:30
but don't bring me on this because i
0:14:31
that was like eight months ago so
0:14:35
i don't remember it
0:14:49
by capacity you know on demand yeah
0:14:52
that's the one we need for the boundary
0:14:55
you don't know we need the provision one
0:15:02
ah because we are trying to
0:15:04
pre-provision it right right right yeah
0:15:10
ah go away i don't need you
0:15:13
i got the same thing
0:15:19
you specified the fruit
0:15:24
you specified the frequent capacity in
0:15:28
yeah so one wc right capacity
0:15:32
unit equals one right or one kbps
0:15:38
equals one transactional
0:15:43
one right per second
0:15:44
four items up to one
0:15:49
for rise greater than one kb we're never
0:15:52
gonna have anything good 1k we don't
0:15:56
but that being said
0:16:03
may i ask a question
0:16:05
yeah for sure yeah so uh yeah i'm not
0:16:09
i'm not great with
0:16:11
databases so in the examples
0:16:14
on the bottom of that
0:16:21
um eventually consistent read
0:16:25
per second strongly like what what does
0:16:29
strongly eventually
0:16:33
you know when in databases um
0:16:37
when you try to input something there is
0:16:41
not not exactly a latency but like
0:16:44
there is a delay um
0:16:47
in which these values are inserted so
0:16:49
the way it works is that this is
0:16:51
basically read consistency and
0:16:54
the response like might not reflect the
0:16:59
um i'll tell you the exact difference
0:17:02
i think the difference relates to i'll
0:17:21
so whenever we use multiple replicas of
0:17:22
data to store and let's say write
0:17:26
come to one of the replicas in this
0:17:28
situation database had to discover a
0:17:32
this write request at only one replica
0:17:36
or reach other replicas so that they
0:17:38
all could write data
0:17:40
of the request and become more consist
0:17:42
become consistent sorry
0:17:44
um yes i would say like
0:17:48
eventually consistent make sure that
0:17:49
data like it's kind of stored in nodes
0:17:52
and it just become
0:17:54
consistent eventually
0:17:56
but i think for our case
0:17:58
um strongly consistent is better
0:18:04
actually this is not a good way to
0:18:06
explain it i'll open gigs for geeks
0:18:11
am i making sense or not
0:18:16
i i think i'm following you yeah
0:18:22
okay so the one of the real example is
0:18:25
think of a popular
0:18:27
micro blogging site deployed across the
0:18:30
world in different geographical regions
0:18:33
moreover each geographical region has
0:18:35
multiple data centers on
0:18:37
furthermore its own has multiple
0:18:38
clusters so that many data store nodes
0:18:43
um with the micro blogging
0:18:52
um i mean strongly consistent implements
0:18:54
that the data must be strongly okay
0:18:57
that's what it says
0:18:59
do you have anything to add them
0:19:06
i knew all this from my solutions
0:19:10
architect but it's been a while so i
0:19:12
forgot everything and i'm
0:19:15
as in as you're talking
0:19:20
do you do you know that the human brain
0:19:23
has a storage capacity of like one
0:19:29
what happens to all of that
0:19:40
explain you what happened
0:19:43
to that from this i'm just
0:19:48
go and get i don't it's so easy to
0:19:55
eventually consistently
0:20:03
you would explain while you were saying
0:20:05
the word explained
0:20:09
i i didn't i didn't mean to throw you
0:20:10
guys off on a tangent so like it's it's
0:20:13
cool i can't i can't i can't i can learn
0:20:16
the thing is that we want to learn as
0:20:22
eventually consistent
0:20:26
and strongly consistent
0:20:29
there we go i remember seeing a meme
0:20:31
recently on eventually strongly
0:20:38
i guess in a nutshell
0:20:40
strongly consistent
0:20:44
up to date data by a higher latency
0:20:51
eventually consists of as long then
0:20:55
may reply to read requests to steal data
0:21:06
so i guess was trying to
0:21:08
say that strongly consistently
0:21:11
makes sure that you always have the
0:21:17
but yeah eventually
0:21:22
care too much but it gives you the
0:21:25
latest and latest data
0:21:32
if that makes sense
0:21:34
that makes yeah that's that that seems
0:21:37
pretty clear i guess it's in the name
0:21:41
we're gonna guarantee this first like
0:21:44
you're gonna get it eventually but if
0:21:46
you try to read me right away like i may
0:21:49
give you what you just tried to write to
0:21:52
yeah but i'll take my time it will
0:21:55
eventually come to you
0:22:00
interesting all right let's get back on
0:22:12
i'm just really curious are we actually
0:22:20
let's just do this and see what happens
0:22:24
eventually breathe consistency is
0:22:27
eventually consistent easy i don't
0:22:29
basically hear about that
0:22:32
what's the difference between standard
0:22:39
everything i learned that like
0:22:40
dev associate is just coming back to me
0:22:48
let's dive into that as well
0:22:52
difference between
0:22:57
all my typing is off the charts
0:23:05
difference between right consistency
0:23:11
yeah right standard right consistency
0:23:29
any update on the c cable story
0:23:33
oh uh this the c cable is still having
0:23:39
but i i found a i found a really cool
0:23:42
map today of all the i didn't know
0:23:44
they're actually called submarine cables
0:23:51
and you guys there in australia
0:23:55
i think three coming from indonesia from
0:24:06
and three i think melbourne sydney maybe
0:24:13
yeah and then this over here in
0:24:16
southeast asia is is bananas there's
0:24:18
like just all these cables all over the
0:24:23
i mean that's the central part of the
0:24:25
whole asia pacific so
0:24:28
yeah that's that's why it surprised me
0:24:32
it looks like there's a lot of redundant
0:24:36
yeah i i didn't know anything about it
0:24:39
so i was naive and i'm like there's
0:24:40
probably like one or two
0:24:43
sometimes there's like
0:24:46
going going the same place the
0:24:48
surprising part too was like looking at
0:24:52
like hawaii is just hooked up so well
0:24:56
which is crazy because it's
0:24:59
floating in the pacific
0:25:00
yeah yeah wait what's the website called
0:25:03
like is that a map
0:25:05
uh you know what i shared it in the in
0:25:07
the in the dev cops um
0:25:24
i think i put it in the random
0:25:28
yep oh god it's submarine cable note
0:25:33
interesting let's have a look
0:25:35
and if you're a developer in the asia
0:25:37
pacific and you're really interested in
0:25:40
devops you should join deaf cops
0:25:47
this whole series is
0:25:53
oh wow that's a very cool globe
0:25:57
yeah there's one on the bottom you can
0:25:59
spin i think it's like webgl or
0:26:06
that's the fun part
0:26:09
like everything between um
0:26:12
indonesia and cambodia it's just
0:26:15
still china supermarket
0:26:20
and then it's funny there there are
0:26:22
places where there's like one
0:26:24
one or two cables and and
0:26:27
obviously they're remote but like you
0:26:29
know if your cable goes out i don't know
0:26:32
is it over for you for a while or
0:26:35
do you get something else i mean this is
0:26:38
mostly really reliable right like
0:26:40
they can't just be
0:26:42
clearly i never i never have problems
0:26:51
first first time experience
0:26:54
this is interesting
0:27:02
then we can see you
0:27:06
i'm just kidding we can't
0:27:10
you're you're in dark mode zen
0:27:13
i know man i'm too dark already
0:27:17
you need to hit the toggle yeah
0:27:22
uh i'm just trying to find
0:27:27
let's talk to take your time
0:27:29
i'll show everyone the
0:27:34
oh you're back you're back all right no
0:27:47
submarine cable map wow
0:27:56
and we have like only three cables to
0:28:05
uh and is this why
0:28:08
look at that what a hub
0:28:12
i don't know what they're doing over
0:28:25
that would be i i expected that though
0:28:28
yeah sure oh because
0:28:31
i'm not understanding what's happened to
0:28:33
my camera to be honest
0:28:38
are you using the grouper or
0:28:41
no the live camera you can use that one
0:28:51
it was working a second ago weapon to
0:28:56
it like you turn the lights off
0:29:00
start running the lights on hang on i'm
0:29:05
there's a switch in the corner of your
0:29:14
why is it doing this
0:29:16
maybe just try using your
0:29:27
do you want to continue while i was
0:29:36
maybe there's something up with stream
0:29:43
yeah that day i wasn't able to detect my
0:29:44
camera the other day
0:29:51
come on stream yeah you can do better
0:29:56
it's because you guys are on the
0:29:57
sponsored tier then
0:30:00
maybe you shouldn't have said victory
0:30:08
okay i'm gonna jump off and come back
0:30:14
let me just copy that one
0:30:17
there are never any problems with stream
0:30:32
oh no not this one
0:30:47
stack overflow i want cyborg
0:30:52
okay clearly this is not a
0:31:02
oh we can do it from code as well okay
0:31:21
someone's listening to the song peaches
0:31:28
i can hear this on peaches is that from
0:31:30
me i don't know it's just like i can
0:31:35
could be my side as well don't worry
0:31:46
you'll receive a provision throughput
0:31:49
exceeded exception error
0:31:52
the exception handling documentation
0:31:57
actually then this won't work
0:32:00
oh santa's in here but sorry i'll
0:32:02
explain to you why this one works hey
0:32:04
kartik for some reason your your screen
0:32:12
the pager on like i see a blank google
0:32:15
search page i don't know why
0:32:20
this is the weirdest thing ever okay
0:32:28
yep okay it's back
0:32:33
i'll actually invite this one work um
0:32:36
let me just remove my screen
0:32:38
so you know how we have
0:32:42
boards which are the actual items in the
0:32:47
you know what i mean like there's a
0:32:50
like the table has some items which are
0:32:54
even if we pre-provision the boards like
0:32:57
even if we pre-provision items to let's
0:33:00
um we are only limiting the boards
0:33:04
you can still insert notes inside those
0:33:08
boards i don't think so you can
0:33:12
things inside the um
0:33:15
elements of the table
0:33:18
but i could be wrong
0:33:24
also let me text to zen
0:33:44
right until he comes back looks like
0:33:46
everyone's sleeping today
0:33:48
oh yeah sleepy day
0:33:51
yeah monday oh no wait oh it's tuesday
0:34:01
all right i'll use oh zane's back
0:34:06
it doesn't want to work
0:34:08
it doesn't want to work maybe this isn't
0:34:12
i'll be i'll be right back then guys
0:34:14
while you guys are sorting this out i'm
0:34:26
what probably have
0:34:28
to do is just use the mac for now all
0:34:32
bear with me for a minute
0:34:39
everyone left me alone
0:34:49
um let's see what pre-provisioning has
0:35:16
okay pretty poor listening hooks
0:35:21
i don't think so we need a hulk but
0:35:35
and there we go we have tori as well
0:35:51
can you guys hear me yeah i can't hear
0:35:56
huh this is interesting
0:36:04
how could you hear it
0:36:10
one incredible turn to the stream
0:36:14
okay i'm look good five more minutes if
0:36:16
it doesn't work we'll probably call it
0:36:17
for the sorry tory i'm going to know
0:36:20
where it is jump out and then
0:36:22
backhand back again back in again
0:36:26
what's happened to my english
0:36:36
yes unexpected for sure
0:36:39
sure we weren't expecting this
0:36:41
so so uh what are you what are you
0:36:43
hoping to accomplish with with the
0:36:47
oh zayn's coming back
0:36:50
with dan coming back
0:36:52
zen can hear us and now i can finally
0:36:56
yeah what's your question again tori
0:36:59
i was just gonna ask like what do you
0:37:00
what are you hoping to accomplish with
0:37:03
with uh the task right now you're trying
0:37:12
realized something um you know what
0:37:14
we're trying to do we are trying to
0:37:17
the number of items which can exist in
0:37:25
that is a that is a problem right now
0:37:29
so the boards are the items not the
0:37:32
notes if you know what i mean so even if
0:37:35
you pre-provision the number of boards
0:37:37
the number of notes a board has one
0:37:45
okay thinking about this
0:37:47
logic and scenario again
0:37:51
i think it's really taking a bit too
0:37:57
eventually diverted to
0:38:00
eventually divert after tangent
0:38:04
so how about if we
0:38:09
not to show the url
0:38:16
we can what we can do is that before
0:38:18
posting to github we can just remove the
0:38:22
um that being said i guess we can jump
0:38:24
back to validation
0:38:28
validate in the notes
0:38:34
let's do that yep okay um sorry i'll
0:38:37
give you the overview of of what we're
0:38:42
so basically we're trying to make the
0:38:44
backend api a bit more secure a bit more
0:38:48
reliable in the sense that
0:38:51
even if you get faulty data to the
0:38:53
backend um it should return with
0:38:55
something responsive
0:38:56
so we're just kind of adding just basic
0:38:59
validations to the back
0:39:03
and they've already added the boards
0:39:07
validation i'm sure you're already aware
0:39:10
of that because you attend
0:39:13
our stream pretty much every day
0:39:17
and um we just and thank you for that i
0:39:20
really appreciate it um
0:39:22
so we're just moving on to the notes one
0:39:27
okay let's do notes
0:39:28
where is mine finally back to the
0:39:36
um so we go on the posting of the notes
0:39:44
if we are posting the note oh sorry
0:39:48
the board id should be alpha numeric
0:39:51
are we checking that
0:39:53
just to confirm that
0:39:55
did you do in kippur or not yeah
0:39:58
i don't think we have i'd we post
0:40:02
anything after that but i'll still do it
0:40:14
right okay so to post a note
0:40:17
we should the board id should be
0:40:20
that's all we checked
0:40:22
uh and the body id has to be present
0:40:28
it can't be nothing
0:40:33
um right okay text for note now single
0:40:36
note also i'm going to change the name
0:40:39
yeah go for it i don't
0:40:42
yeah i'll give you a
0:40:44
meaningful one yeah
0:40:48
text for note should be a string so what
0:40:53
um see if we are getting a string see
0:40:57
so in the board in the board name
0:41:04
okay plus board yeah there we go
0:41:08
wait can you guys hear me
0:41:10
yes all right okay oh dory made himself
0:41:18
oh we did not actually check
0:41:21
we did check in the patch
0:41:27
that is personal okay where's patch note
0:41:37
yeah okay this one yep
0:41:39
so that's how you check that
0:41:44
what do you call it
0:41:49
note topic is actually alphanumeric oh
0:41:52
sorry it's actually
0:42:01
i'll make a text for
0:42:15
oh if it's true then it's fine
0:42:25
okay just to let you know can we
0:42:29
possibly do it uh or do the brackets
0:42:33
around the methods or
0:42:36
wherever we use the brackets using the
0:42:38
curly ones as in consistently
0:42:52
okay i'm starting to be a bit annoying
0:42:56
oh all good um right
0:43:09
yeah i should have or not
0:43:21
the column is true
0:43:23
it's nothing default
0:43:35
should we find what's the next thing
0:43:38
that has been checked
0:43:44
so from here we construct this
0:43:48
all right yep this can't go wrong
0:43:52
did which uh are we checking if the
0:43:58
what do you mean as in if there's
0:44:05
i mean you should be able to create the
0:44:07
note right without even any topic
0:44:12
that's how the current app works
0:44:18
okay if that's how it works
0:44:21
we don't want our version
0:44:23
to work in that way then because it's
0:44:26
just a waste of a record
0:44:30
if a topic has um if one
0:44:33
note hasn't got a topic why
0:44:36
do we want to save in the first place
0:44:40
i mean you can have like empty notes
0:44:42
which you want to fill up afterwards
0:44:48
and that would probably be an edge case
0:44:53
okay so do you want me to put it or not
0:45:04
we can always come back to that one yes
0:45:07
i can just check here right like if it's
0:45:12
yeah there's no problem but
0:45:14
the issue is that it'll throw error here
0:45:19
that it won't find single node
0:45:22
actually it would find signal
0:45:25
yeah i can just check if it's null um
0:45:30
okay text for note
0:45:37
okay it's empty right um
0:45:39
what's the function i made
0:45:47
are you with a story
0:45:49
i am um there's just like there's a bit
0:45:58
with stream yard like the the the video
0:46:01
feed from the screen
0:46:03
all right okay all right so
0:46:05
i don't know i don't know why
0:46:08
it's fine like i'll just i'll just
0:46:10
follow along with what you guys are
0:46:13
right i i just see the code in my head
0:46:19
okay uh i'll see you have done this this
0:46:25
just probably go briefly
0:46:30
you worry as a really briefly yeah sure
0:46:34
pretty much finished
0:46:39
right so what we are trying to do here
0:46:43
we are getting the note from the front
0:46:46
and right like there should be a body of
0:46:49
so simply what we're trying to check is
0:46:53
that body of the note
0:46:54
should be a string
0:46:56
and it shouldn't be empty i see that
0:47:01
and for that matter i guess one of the
0:47:03
things which we'll probably do
0:47:05
afterwards would be limiting how many
0:47:07
characters you can have
0:47:08
but that should be a front-end job
0:47:17
a single node object
0:47:20
which has a node id which can't go wrong
0:47:22
topic we already checked for
0:47:24
um date created this con should not go
0:47:30
let boards okay this is a scan operation
0:47:34
okay okay so we need to see if
0:47:57
well if this is true
0:48:04
then just send the um
0:48:07
the response i think it was 404
0:48:12
i understand the thing yeah that should
0:48:14
be fine yeah if the case is true then
0:48:17
an error return of 44 saying that
0:48:24
what did i say before
0:48:28
can you make a note of this somewhere on
0:48:33
uh just like all the error messages
0:48:35
which we are giving okay
0:48:39
boards table is empty we are saying
0:48:41
board not found in database
0:48:47
so maybe create like a word document or
0:48:51
i'll put that in the um
0:49:01
yeah sure i mean we are not using
0:49:03
confluence right now so that's probably
0:49:14
do you use tools like on things and jira
0:49:20
haven't been introduced
0:49:23
i mean our stream pretty much does it a
0:49:28
that somebody said
0:49:31
zayn is a jira master
0:49:38
well actually a lot it'll be fantastic a
0:49:40
lot of people say that
0:49:42
they were being sarcastic
0:49:58
it should be not that was funny
0:50:05
yep if we don't find boards we'll return
0:50:10
okay now we're going inside the board
0:50:13
we're trying to find a board
0:50:34
why is it update board
0:50:36
i'm not working in a patch
0:50:40
what's it called update board no
0:50:42
oh okay yeah fair enough
0:50:46
port present is equal to true
0:51:01
so here we are trying to see if we
0:51:02
actually got the board which we did
0:51:08
and before actually trying to do an
0:51:11
update let's see oh no we don't use if
0:51:21
if it's not present
0:51:24
you're going to do an error return of
0:51:28
actually this shouldn't be 404 because
0:51:30
the request is valid
0:51:48
exists but not found
0:51:57
it should be four or four only
0:52:01
right okay stick with four four
0:52:04
very nice four four
0:52:12
and press object and we do
0:52:16
return um semicolon case true is empty
0:52:30
it is um yep this will do its thing
0:52:35
cool this should be fine send you an
0:52:37
update jira board please
0:52:39
i am in the middle of
0:52:46
validation of the post note
0:52:52
validation of the post notes
0:52:55
just please all right just give me a
0:53:04
mac speed honestly i feel
0:53:12
within a night in that way
0:53:15
which is not true which is not true this
0:53:19
it can never be true
0:53:21
i don't know how that feels then
0:53:28
living on energy drinks
0:53:33
uh all right so validation of the api so
0:53:36
um validation for posting
0:53:42
in testing did you say now
0:53:45
i mean oh yeah interesting yes okay
0:53:49
cool so i'm thinking you're working on
0:53:52
deleting the notes now
0:53:54
yeah i'm just trying to change the name
0:53:59
i don't want it to be called him
0:54:06
i also want to send
0:54:08
is id alpha numeric the note id
0:54:22
we're gonna say return
0:54:27
with ids invalid right what's the status
0:54:57
press object and return
0:55:13
that has been checked now we are trying
0:55:17
params this has been checked
0:55:20
this can't go wrong
0:55:32
oh i made a mistake oh
0:55:38
yeah it should be bored stone item
0:55:46
cool yeah i'll just do delete and then
0:55:49
we can probably call it a night um
0:55:52
cool and i'll probably
0:55:56
to finish this validation
0:56:08
i finished this one yep thank you
0:56:25
and i'm gonna do error
0:56:48
nothing default nothing
0:56:55
you know we should actually externally
0:57:02
i forget is is this a
0:57:04
com is this a is this a serverless
0:57:27
now we go inside it
0:57:38
okay then okay yeah that's fine because
0:57:41
yeah we already got the board
0:57:44
um very nice okay now we're going inside
0:57:56
sorry it should be not this time
0:58:00
it should be false initially
0:58:04
is not present is equal to
0:58:09
let's place it that should be fine
0:58:12
we have the note already
0:58:16
yep that should all be fine and
0:58:26
do a case if it's not present
0:58:30
which means the case is false
0:58:33
we're gonna do an error return of 404
0:58:37
and we're gonna save
0:58:45
we're gonna pop the rest object and
0:58:47
we're gonna say return
0:58:56
and do nothing for now but you might do
0:58:58
anything something afterwards
0:59:03
um and this should work fine okay now
0:59:05
let's give it a go and let me just test
0:59:08
oh i discovered this command um it will
0:59:11
then you know you should see the story
0:59:16
it goes something like
0:59:18
darker go away darker
0:59:24
yes um i think i remember it
0:59:32
the screen minus the
0:59:41
yep i'll just remember it currently
0:59:50
we might need to go over the
0:59:59
yeah now that's fine but we'll do it
1:00:04
what's what so what's what's this
1:00:06
command what does it do
1:00:09
oh so basically this hides all the
1:00:12
things which you are trying to do here
1:00:14
yeah oh cool cool so that our
1:00:17
thing doesn't show the url i'll try
1:00:22
see this so the command is sam build
1:00:26
but i wrote screen minus this and built
1:00:28
let's see what it does
1:00:34
i think it should be minus a
1:00:37
so it's just hiding it from the console
1:00:39
yeah yeah right there you go that's
1:00:45
there is a screen on
1:00:50
let me just remember
1:00:53
how to hide commands
1:01:00
ready i think i think i think the sam
1:01:06
like a no print to the console flag if i
1:01:09
remember but i'm totally new to it so i
1:01:15
it wasn't silent because generally oh no
1:01:18
mine is my excitement
1:01:22
i don't know if you i feel like i mean
1:01:25
you do you have done react right and all
1:01:28
it has always been minus minus silent
1:01:31
okay well i it's it's never been an of
1:01:34
concern to me i i feel like i've just
1:01:43
because if i if i'm gonna lie code
1:01:45
nobody's gonna watch i got nothing to
1:01:50
yeah we're gonna be there
1:01:54
oh boy okay i'll just leave this
1:01:56
oh it should be screen
1:02:02
yep see the screen terminated
1:02:10
so that app.js file is one big lambda
1:02:14
yes running running
1:02:25
oh fun that's that's so cool like
1:02:29
you can just throw it in a lambda
1:02:37
what's happening here
1:02:40
i think i i've done the validation
1:02:43
messages by the way
1:02:47
in conflict really yeah
1:02:50
cool we got this confidence
1:02:54
do you guys use um have you ever used
1:02:57
the serverless application within with
1:03:02
i don't think i have
1:03:07
i i i was just like learning
1:03:12
like i'm trying to learn type worm
1:03:14
alongside typescript
1:03:18
and um and then like i was talking to a
1:03:21
buddy of mine and he's like don't ever
1:03:26
inside of a lambda
1:03:28
and if you do let me know because like i
1:03:31
i'll i'll i'll tell you about all the
1:03:35
ah right right right i see
1:03:40
yeah so i don't know i was curious if
1:03:42
you guys had any experience with that
1:03:46
i tried just for fun
1:03:50
and um this as in the first releases out
1:03:54
and we get celebrate
1:04:00
let's see what happens or how about if
1:04:03
celebrate by using a lambda in all who
1:04:08
like tory's saying
1:04:21
time for postman to rock up
1:04:29
did you guys see the
1:04:30
did you see the protest today so
1:04:33
no i saw you guys there on the news yeah
1:04:44
did he have a baseball bat
1:04:49
he was he was shouting about
1:04:52
you guys are robots
1:04:58
you're all mindless robots yep
1:05:05
this is really sexy man bass euro is
1:05:19
oh that's cool i didn't know you could
1:05:21
throw variables in the url
1:05:24
like yeah yeah i didn't know like
1:05:27
like three days ago
1:05:37
to be honest i i actually can't believe
1:05:41
learning just by streaming
1:05:45
that's yeah it's awesome that you guys
1:05:47
are doing it you guys are my heroes
1:05:53
okay this one makes me blush now and you
1:05:56
guys just bare all you just you lay it
1:06:11
you're not giving your permanent
1:06:12
position on the show
1:06:28
so you probably don't want me back
1:06:34
okay we probably need to come back to it
1:06:35
tomorrow um but yeah i think oh it's
1:06:38
face seven already
1:06:40
let's call it a night and um do you want
1:06:43
me to show you the
1:06:45
confluence page or you should go down
1:06:48
sure um show me instead of me all right
1:06:50
i'll just share my screen then
1:06:54
this is the part i've done
1:06:56
that's it it's really simple
1:07:00
yeah that's that's pretty good
1:07:07
i'm just going to share this
1:07:09
with you as well so you guys and the
1:07:12
team from the front end can see this
1:07:15
this one not that they
1:07:21
need to buy if they want to
1:07:32
joining in it's been a pleasure having
1:07:34
you and having some humorous talks as
1:07:37
well and laughing at the same time
1:07:42
well thanks so much for having me guys
1:07:46
quite awesome to join you
1:07:49
on the show that i watch every night
1:07:57
melbourne time i don't know what it
1:08:01
well what what what time is it for you
1:08:03
is it like six oh no i'm two hours
1:08:06
behind you guys so it's almost
1:08:15
nice cool but yeah thanks thanks sorry
1:08:17
thank you and thank everyone who's
1:08:19
watching or will watch this on youtube
1:08:22
yeah today was pretty fun even though we
1:08:24
had one r i think we did a lot of stuff
1:08:28
we validated two functions and we
1:08:29
learned a lot about
1:08:31
just databases and um provisioning them
1:08:35
which is pretty cool and we also
1:08:38
get to start using chrome
1:08:41
influence as our documentation base
1:08:48
yeah so um if you're available
1:08:50
tomorrow make sure you guys join us uh
1:08:53
tomorrow same time
1:08:57
some different talks
1:09:06
different task thanks guys have a good
1:09:08
night take care amen thank you thank you
1:09:11
thank you thanks for