boarzVideosClipsStatistics

🎬Switched-on hat

⏪
🎦
⏩
Featured in#️⃣EP 064 - Today's Broadcast
AllClipsEpisodesHas Blog PostZainThaneshKartikTorey
🎬
Krunchmaster Kartik
Build, Break & Fix
ZainboarKartikboar
🎬
Killing it
Special Edition: We don't stop until we get our code working
ZainboarKartikboar
🎬
Schooling in brown countries
Build,Break & Fix // Weekend two hour special
ZainboarKartikboar
🎬
Unprofessional Kartik
Build,Break & Fix // Weekend two hour special
ZainboarKartikboar
🎬
Brain Refresh
Build, Break & Fix // Setting a blog using Hugo and AWS Amplify
ZainboarKartikboar
🎬
Finger driven architecture
Build, Break & Fix // Working out Software design
ZainboarKartikboar
🎬
Fast food driven architecture
Build, Break & Fix // Working out Software design
ZainboarKartikboar
🎬
Can't be ashamed if there's never a first version
Build, Break & Fix
ZainboarKartikboar
🎬
Not a uni student
Build, Break & Fix
ZainboarKartikboar
🎬
Can't work, deploying
30 mins of deployment 😠 || 30 mins of coding 🥲
ZainboarKartikboar
🎬
Two points of contact
Today's Broadcast
ZainboarKartikboar
🎬
CORS exclusive lovin'
Today's Broadcast
ZainboarKartikboar
🎬
Sensible policy
Today's Stream
ZainboarKartikboar
🎬
Shoes in mouth
Today's Stream
ZainboarKartikboar
🎬
The code always wins
Buidl Break Fix
ZainboarKartikboar
🎬
Chicken curry in the brown way
Buidl Break Fix
ZainboarKartikboar
🎬
Finger memory practice
Build Break Fix
ZainboarKartikboar
🎬
See you later Kartik
Build Break Fix
ZainboarKartikboar
🎬
Keep your code looking sexy
Today's Broadcast
ZainboarKartikboar
🎬
Echo chamber Zain
Today's Broadcast
ZainboarKartikboar
🎬
And Kartik never got a job again...
Today's Broadcast
ZainboarKartikboar
🎬
Pilot? What even iz dat kind of fing
Today's Broascast
ZainboarKartikboar
🎬
Fish and Chips
Build - Break - Fix
ZainboarKartikboar
🎬
Backup career
Build - Break - Fix
ZainboarKartikboar
🎬
Professional background? Wat even iz dat?
Today's Broadcast
ZainboarKartikboar
🎬
Private mentorship group
Today's Broadcast
ZainboarKartikboar
🎬
Actually good job advice from Zain
Today's Stream
ZainboarKartikboar
🎬
What a classic!
Today's Stream
ZainboarKartikboar
🎬
Uber driver in training
Today's Stream
ZainboarKartikboar
🎬
Viewer burn
Today's Broadcast
ZainboarKartikboar
🎬
Time for a nap
Today's Broadcast
ZainboarKartikboar
🎬
A sniffer of a line
Today's Broadcast
ZainboarKartikboar
🎬
Slow Zain
Today's Broadcast
ZainboarKartikboar
🎬
No single point of failure
Today's Broadcast
ZainboarKartikboar
🎬
Gambling on bad logic
Today's Broadcast
ZainboarKartikboar
🎬
Estimated Time of New-Careers
Today's Broadcast
ZainboarKartikboar
🎬
Fake Nod
Today's Broadcast
ZainboarKartikboar
🎬
Investing in 'the brand'
NEW SETUP!!
ZainboarKartikboar
🎬
Hitting a brick
NEW SETUP!!
ZainboarKartikboar
🎬
Master of the green screen
NEW SETUP!!
ZainboarKartikboar
🎬
Logiclesstech
NEW SETUP!!
ZainboarKartikboar
🎬
Get him to the greenscreen
Today's Stream
ZainboarKartikboar
🎬
Change the digit to a number
Today's Stream
ZainboarKartikboar
🎬
The benefits of pair programming
Today's Broadcast
ZainboarKartikboar
🎬
Xs, the healthy choice
Today's Stream
ZainboarKartikboar
🎬
Xs vs mother
Today's Stream
ZainboarKartikboar
🎬
The beginning of the end of productivity
Today's Stream
ZainboarKartikboar
🎬
Unprofessional Zain
Today's Stream
ZainboarKartikboar
🎬
Blazing fast
Today's Stream
ZainboarKartikboar
🎬
Premature celebratory dance
Today's Stream
ZainboarKartikboar
🎬
Timeline slippage
Today's Stream
ZainboarKartikboar
🎬
Speed coding
Today's Stream
ZainboarKartikboar
🎬
Sorry I dont know that voice
Today's Broadcast
ZainboarKartikboar
🎬
Definition of done
Today's Broadcast
ZainboarKartikboar
🎬
Amway bites
Today's Broadcast
ZainboarKartikboar
🎬
A cool stream
Today's Broadcast
ZainboarKartikboar
🎬
Spooky Kartik
Today's Broadcast
ZainboarKartikboar
🎬
Water physics 101
Today's Stream
ZainboarKartikboar
🎬
Scrum master Zain
Today's Stream
ZainboarKartikboar
🎬
Zain applying his scrum master skills
Today's Stream
ZainboarKartikboar
🎬
Zain the blunderer
Today's Stream
ZainboarKartikboar
🎬
Healthier than other traditional drinks
Today's Stream
ZainboarKartikboar
🎬
Real headscratcha
Today's Stream
ZainboarKartikboar
🎬
Bracket blues
Today's Stream
ZainboarKartikboar
🎬
If statements are not good practice
Today's Stream
ZainboarKartikboar
🎬
Kappa Quality Code
Today's Stream
ZainboarKartikboar
🎬
Exciting switch statements
Today's Stream
ZainboarKartikboar
▶️
Switched-on hat
Today's Broadcast
ZainboarKartikboar
🎬
Functions, one of the big coding challenges
Today's Broadcast
ZainboarKartikboar
🎬
Break fast
Today's Broadcast
ZainboarKartikboar
🎬
Blood and breath pumping up
Today's Broadcast
ZainboarKartikboar
🎬
Wrong since day 1
Today's Broadcast
ZainboarKartikboar
🎬
Electronic waves
test
ZainboarKartikboar
🎬
RAWR coders
test
ZainboarKartikboar
🎬
Transit in Japawn
test
ZainboarKartikboar
🎬
Xs sponsorship
test
ZainboarKartikboar
🎬
Lame roars
test
ZainboarKartikboar
🎬
Setting up a suppository in Diagon Alley
test
ZainboarKartikboar
🎬
Background Diagon Alley
test
ZainboarKartikboar
🎬
Half speed zain
test
ZainboarKartikboar
🎬
One second penetration
test
ZainboarKartikboar
🎬
Top loading switches
test
ZainboarKartikboar
🎬
Making it rain with CodeBuild
test
ZainboarKartikboar
🎬
What is a sea cable?
Today's Stream
ZainboarKartikboarToreyboar
🎬
If statements are bad practice
Today's Broadcast
ZainboarKartikboar
🎬
Tomato fan
Today's Broadcast
ZainboarKartikboar
🎬
Strong intro
Today's Stream
ZainboarKartikboar
🎬
Impossible URL
Today's Stream
ZainboarKartikboar
🎬
Clever devs
Today's Stream
ZainboarKartikboar
🎬
Always CORS related problems
Today's Stream
ZainboarKartikboar
🎬
CORS headscratcha
Today's Stream
ZainboarKartikboar
🎬
Torres Strait Icelander people
Today's Stream
ZainboarKartikboarThaneshboar
🎬
Icelander or Islander?
Today's Stream
ZainboarKartikboarThaneshboar
🎬
Best Practices
101/200 Episodes
ZainboarThaneshboar
🎬
ROAR coders
105/200
ZainboarThaneshboar
🎬
Diagon Alley? What is that kind of fing?
112/200
ZainboarKartikboar
🎬
C.O.D.I.N.G
113/200
Zainboar
🎬
What's testing
115/200
ZainboarThaneshboar
🎬
CORS coders
115/200
ZainboarThaneshboar
🎬
Complimenting the wrong person
Today's Stream
ZainboarThaneshboar
🎬
Alt+F4 Zain
Today's Stream
ZainboarThaneshboar
🎬
Fixing and failing
Today's Stream
ZainboarThaneshboar
🎬
Brown is always better than white
AWS Websocket + DyanmoDb + Lambda
ZainboarThaneshboar
🎬
Wild street dogs
Today's Stream
ZainboarToreyboar
🎬
The more you know
How to Host Web App Using AWS S3, CloudFront and Route53
ZainboarThaneshboar
🎬
Inactive brain
How To Host Web App In AWS S3 with Custom Domain Using Route 53
ZainboarThaneshboar
🎬
No electricity in Bali
Today's Stream
ZainboarToreyboar
🎬
Francesco
Today's Stream
ZainboarToreyboar
🎬
Indian givers
Compare Hashed Passwords Using Bcryptjs
ZainboarToreyboar
🎬
Cold coffee, cold tea
Today's Stream
ZainboarToreyboar
🎬
Tough questions
Verify Passcode Saving Information to DynamoDB with NodeJs
ZainboarThaneshboar
🎬
Tandoor? Wat even iz dat kind of fing
Today's Stream
ZainboarThaneshboar
🎬
This is why you don't click ops
Today's Stream
ZainboarToreyboar
🎬
Bish Bash Bosh
Get Board Columns from Frontend to Backend NodeJS
ZainboarThaneshboarToreyboar
🎬
Zip first developer
Today's Stream
ZainboarThaneshboar
🎬
Busted again
Today's Stream
Zainboar
🎬
Torey the stinker
Beta Testing Fixes Part 2
ZainboarToreyboar
🎬
Torcoders which are roarers
Beta Testing Fixes Part 3
ZainboarThaneshboar
🎬
Delusional Zain
Beta Testing Fixes Part 3
ZainboarThaneshboar
🎬
Hey guys, torey here
Beta Testing Fixes Part 3
ZainboarThaneshboar
🎬
Zain's going platinum
Today's Stream
ZainboarThaneshboar
🎬
Doggy dog
Today's Stream
ZainboarThaneshboar
🎬
Fartik
How To Test Prevention XSS Attack
ZainboarKartikboar
🎬
Second Favourite
Today's Stream
Zainboar
🎬
Disco Zain
Today's Stream
Zainboar
🎬
Keyboard allergies
Hook Up AWS Websocket
Zainboar
🎬
As you been poopin?
Hook Up Board Columns to Websockets Nodejs + AWS Websockets
Zainboar

Subtitles

0:00:00
[Music]
0:00:21
all right welcome back everyone welcome
0:00:24
back to
0:00:25
another episode of build break and fix
0:00:27
as we call it
0:00:29
to all those people who are new here we
0:00:31
are door coders
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:42
scrambler.ca
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:51
we
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:02
so
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:19
we can because
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:35
so
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:44
fun part which is
0:01:47
recording
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:01:58
yep i'm sure
0:02:00
yes um
0:02:02
do you want me to code today
0:02:05
is that okay
0:02:08
take away
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:20
there we go
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:34
roid
0:02:36
yeah that
0:02:38
makes sense
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:02:53
link and point
0:02:55
um
0:02:58
okay
0:03:01
thanks logan
0:03:07
again we have a few selection
0:03:10
humans yeah
0:03:11
there you go
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:31
you think
0:03:35
i would
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:43
coding
0:03:45
as in it's raining it's minus degrees
0:03:48
and
0:03:50
yeah
0:03:50
okay
0:03:52
let me open the window
0:03:57
okay the windows are now open okay that
0:03:59
should be fine
0:04:01
oh boy
0:04:02
perfect
0:04:04
yeah
0:04:05
i just continue
0:04:07
for that seems
0:04:09
jack dev has approved the aid one
0:04:13
yeah for sure
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:19
the city so
0:04:20
there's a lot of things going on
0:04:22
[Music]
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:38
lot of like
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:52
yeah
0:04:54
oh yeah
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:06
a back
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:27
yesterday
0:05:28
and i was like super sleepy today
0:05:31
right right i say
0:05:33
yeah so it does how are you feeling now
0:05:35
side
0:05:36
effects
0:05:38
okay
0:05:40
all right
0:05:42
let me know if you can see my screen
0:05:47
yes i can
0:05:50
i'll make a bigger one all right that's
0:05:51
fine
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:02
had to just
0:06:04
leave afterwards
0:06:06
give me a minute
0:06:12
there we go
0:06:24
um
0:06:26
so the scenario that we were working on
0:06:29
was
0:06:31
validate if the board id is present or
0:06:34
not
0:06:37
yeah
0:06:38
um
0:06:40
and let go
0:06:42
as well
0:06:44
oh okay yeah i think that should be fine
0:06:47
good branch
0:06:49
minus a and one's table back in
0:06:52
and
0:06:53
okay
0:06:54
cool so it's about the board okay right
0:06:58
that makes sense
0:07:00
yeah that should be easy all right
0:07:12
granny board
0:07:15
um
0:07:16
[Music]
0:07:22
are we on get a board method right
0:07:26
yeah
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:32
be
0:07:34
right after the
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:06
is an empty
0:08:08
empty string i reckon we shouldn't even
0:08:11
try and go
0:08:13
any further just
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:25
i mean or not
0:08:27
yeah i do i'm just thinking one thing
0:08:31
which is
0:08:33
which is that we're gonna write this
0:08:34
particular line of code a lot of times
0:08:36
which
0:08:37
i don't want to do
0:08:39
okay i'm just gonna generalize the whole
0:08:41
thing right okay
0:08:43
let me just do one
0:08:45
that would be the best approach to
0:08:48
generally yeah
0:08:49
yeah
0:08:50
um this i don't think this is the latest
0:08:54
code is it
0:08:55
because i'm pretty sure that i changed
0:08:57
the variable
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:13
um that's fine
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:22
all right
0:09:23
now my
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:36
79
0:09:40
oh you mean
0:09:42
80.
0:09:45
why are we doing that soviet
0:09:48
check
0:09:58
so
0:09:59
we're checking if um
0:10:05
so
0:10:06
in this case
0:10:08
we're first
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:20
go into
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:31
the
0:10:32
the scan
0:10:34
hmm
0:10:36
right
0:10:37
um
0:10:38
i'm just trying to think one thing
0:10:42
i do
0:10:45
is method here
0:10:48
is method
0:10:50
you might
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:06
that makes sense
0:11:08
uh tori littlefield was saying um
0:11:12
this is where frying up comment is
0:11:14
helpful
0:11:16
yeah true true
0:11:18
yeah i'd agree with that
0:11:22
hmm
0:11:29
um
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:34
do is
0:11:35
i'm going to create a boolean
0:11:37
here
0:11:39
and i'm going to create a message
0:11:42
and
0:11:44
put the message
0:11:45
yeah never mind there's no other way to
0:11:47
do it yeah i think just
0:11:49
[Music]
0:11:51
why um
0:11:52
[Music]
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:02
yeah
0:12:04
girls like
0:12:06
go for it
0:12:08
how do i create another function here
0:12:10
which takes in two parameters
0:12:14
just
0:12:15
i want to call it from here
0:12:17
just fry function
0:12:20
or if you want to use the error function
0:12:23
then it would be
0:12:25
from the best of my knowledge although
0:12:27
i'm not javascript dev but it might be
0:12:31
const then the
0:12:33
function name that you want to put
0:12:36
then equals
0:12:37
and then open and close brackets
0:12:45
is
0:12:47
better returned i'll change it later
0:12:50
don't worry
0:12:53
equals um
0:12:54
open and close brackets
0:12:57
no no no no no no no i i
0:13:00
didn't say
0:13:02
arrow
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:12
close brackets
0:13:13
now the
0:13:15
error functions arrow functions sign
0:13:20
as in equals and then a greater than
0:13:23
sign
0:13:24
together
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:33
i believe
0:13:34
that's an es6
0:13:36
function which is an arrow function here
0:13:39
you can correct parameters here yes
0:13:43
okay
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:11
support
0:14:12
get item function it only supports
0:14:14
query
0:14:16
um
0:14:17
then why did you tell me to add
0:14:20
something when
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:30
this one
0:14:31
uh-huh
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:38
in this one
0:14:40
i didn't get your points
0:14:42
um you told me to write something here
0:14:45
right on line 69
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:07
oh good
0:15:09
[Music]
0:15:10
is not present in parameters
0:15:23
status
0:15:26
[Music]
0:15:29
it will probably be
0:15:31
good to say full response
0:15:34
status
0:15:36
okay yeah that's fine because
0:15:39
rest can also be result
0:15:42
that's why
0:15:44
and can you make your camera case
0:15:47
when you can
0:15:48
yeah just give me one second i'll do
0:15:50
that
0:15:51
let me write the logic and then we can
0:15:53
um
0:15:55
oh
0:15:56
right
0:15:57
[Music]
0:16:00
the message
0:16:04
on
0:16:18
do you want to make i mean this camera
0:16:20
crease
0:16:25
[Music]
0:16:27
that looks fine that looks fine
0:16:30
i'm just gonna get rid of
0:16:33
this
0:16:49
[Music]
0:16:58
okay
0:17:00
i just hope that
0:17:02
works
0:17:04
uh
0:17:06
response
0:17:15
right uh-huh
0:17:18
[Music]
0:17:30
yeah
0:17:33
and tutorial phil was saying got sam
0:17:36
installed
0:17:38
today and docker was a huge fan
0:17:42
yeah
0:17:44
did you say docker
0:17:46
docker was a huge pain
0:17:48
oh yeah yeah
0:17:50
yeah it is is of it
0:17:52
but
0:17:53
i think
0:17:54
sam's a fun part
0:17:56
yes
0:17:58
but um i don't know if you
0:18:00
knew
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:06
use
0:18:09
as in
0:18:10
um
0:18:11
necessarily
0:18:13
use docker to do the testing of sam
0:18:17
locally
0:18:18
you can just
0:18:20
invoke it
0:18:22
locally by doing sam local style api
0:18:27
if that helps
0:18:30
then i opened up the demo dock so open
0:18:35
open from aws
0:18:41
you're
0:18:42
you're reminding me when i just started
0:18:45
to experiment with uh
0:18:47
aws
0:18:50
i was
0:18:52
breaking things every second
0:18:55
[Music]
0:19:05
all right right
0:19:07
right right
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:17
all the
0:19:19
parameters that we pull as in enter
0:19:22
until yes yes
0:19:24
just as evaluates
0:19:28
evaluate and then we'll make a
0:19:31
actual config file or build spec file
0:19:34
yeah need
0:19:36
to
0:19:37
make sure that the stack is built
0:19:40
properly
0:19:41
and you have to drill them manually
0:19:44
i got a way how to get them
0:19:47
uh
0:19:50
i was thinking of searches to serve us
0:19:52
instead
0:19:54
because the docs are bad
0:19:57
oh boy
0:19:59
i got reply to mine
0:20:01
that should be fine
0:20:07
yeah
0:20:08
that should be alright because um
0:20:10
they're both the same
0:20:12
um instead
0:20:16
except um
0:20:18
the number of
0:20:20
tables so you should
0:20:22
your end point
0:20:24
is in spammed
0:20:26
but minus
0:20:27
actually that's a better thing we can
0:20:29
put your end point in like github and
0:20:30
stuff
0:20:32
true
0:20:33
and when i'll push it i'll just put your
0:20:34
end point in
0:20:39
the person got the endpoint from
0:20:42
i believe
0:20:43
yeah
0:20:44
yeah for sure
0:20:46
oh by the way i was thinking that i'm
0:20:49
gonna
0:20:51
make
0:20:52
the this project private
0:20:55
so until
0:20:57
we do
0:20:58
the first as in beta release
0:21:01
because
0:21:02
um
0:21:04
yeah the bill is
0:21:06
just
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:19
um
0:21:21
uh we can we can do the course policy
0:21:25
also um
0:21:26
you can we can go ahead and apply for
0:21:29
the
0:21:30
um there's an age of aws
0:21:33
uh i forgot the name startups program
0:21:36
and
0:21:37
um
0:21:40
they got two other
0:21:41
aws creds so
0:21:43
actually
0:21:45
i might do that but don't i need a
0:21:47
company name
0:21:49
for that
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:06
yeah
0:22:07
work is 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:19
oh yeah yeah
0:22:20
i do not totally first thing i do not
0:22:23
push my endpoints to
0:22:27
github yeah
0:22:29
toy you'll feel that's a really
0:22:32
really smart choice i think
0:22:34
i'm
0:22:35
learning that in the hard way
0:22:39
so
0:22:40
yeah
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:22:59
well as in the
0:23:01
end point
0:23:04
not the end
0:23:05
formation thingy
0:23:13
okay there you go
0:23:14
resources
0:23:18
dynamodb table got it
0:23:22
we'll see
0:23:25
and it's good
0:23:27
uh speaking of
0:23:29
how
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:55
variable
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:00
sign
0:24:01
um
0:24:02
url
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:29
first and then
0:24:30
draw an error um
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:38
is still course
0:24:40
yeah
0:24:41
yeah
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:49
initially
0:24:51
yeah yeah
0:24:53
that makes sense though
0:24:55
okay
0:24:57
i'm trying to figure out
0:25:00
that
0:25:01
out but amazon is trying to chris
0:25:04
manage on me okay
0:25:07
uh
0:25:08
the joys of family
0:25:12
starting to learn awsa
0:25:16
okay that looks fine
0:25:20
please return
0:25:21
okay yep that title works
0:25:24
fantastic
0:25:26
so the function was successful let me
0:25:28
just
0:25:30
go ahead and quickly write everything up
0:25:32
teams
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:40
kind of uh
0:25:42
say
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:02
um
0:26:03
you need to do it i'm in the phone
0:26:05
i was just
0:26:07
gonna
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:13
wait for it yeah
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:31
both plays oh
0:26:33
okay
0:26:35
all right
0:26:36
let's do it let's get out of the zone
0:26:44
[Music]
0:26:49
all right
0:26:51
camera is gonna fall
0:26:53
i'm gonna hide all the mess
0:26:55
that's
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:07
all right
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:22
yes
0:27:23
okay no
0:27:24
anyway i'll just do it now
0:27:27
okay okay you go three
0:27:30
two
0:27:31
one go
0:27:32
ten
0:27:33
nine
0:27:35
seven
0:27:36
six
0:27:37
five
0:27:38
four bro i just got the jab i can't do
0:27:41
more than five
0:27:42
i just
0:27:44
my shoulder isn't allowed
0:27:45
i did ten
0:27:47
so
0:27:48
nice
0:27:50
we exceeded
0:27:51
jack dev's expectations
0:27:55
nah can't do 10 my shoulder will just
0:27:57
pop out
0:27:59
the vaccine's still hitting me
0:28:02
no one my mentors that
0:28:05
gekko wanted
0:28:07
five each but i did
0:28:11
we did fifteen
0:28:13
so
0:28:14
plus five
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:28
streamers
0:28:34
um if
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:43
um
0:28:44
so
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:00
the
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:06
you can
0:29:07
yeah just let me implement the logic
0:29:10
um
0:29:11
yeah
0:29:12
[Music]
0:29:13
yep
0:29:14
please
0:29:16
okay
0:29:19
uh
0:29:22
it's empty
0:29:25
uh
0:29:27
tori little philly
0:29:28
you're funny right you're really funny
0:29:32
um
0:29:34
pronounced uh
0:29:37
jupiter ref is saying
0:29:40
that pronounced
0:29:43
like
0:29:45
raw
0:29:46
actually that's
0:29:48
one way to put it but we are more
0:29:51
more like that
0:29:57
the lions roar
0:30:04
oh man that really got my
0:30:07
my blood and my breath pumping up
0:30:12
nice
0:30:14
um
0:30:26
is
0:30:28
alpha
0:30:31
numeric
0:30:33
[Music]
0:30:34
okay
0:30:36
is some
0:30:38
numeric
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:45
okay
0:30:47
right okay now we are working on the
0:30:49
post
0:30:50
so i can go down with the post
0:30:54
the world comes in on the posts
0:30:58
um
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:12
what scenario
0:31:14
i'm just thinking if post um
0:31:19
yeah if what can go wrong in pause
0:31:22
ah okay
0:31:23
right
0:31:26
no
0:31:27
i don't think anything can go wrong
0:31:30
in post except
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:41
so
0:31:42
your name
0:31:46
i'm gonna call him empty object why did
0:31:48
i make this function to use it
0:31:51
no exactly
0:31:54
his board
0:31:55
name is empty
0:31:58
fit
0:31:58
is okay
0:32:01
return
0:32:03
404 and the message is
0:32:06
um
0:32:08
board
0:32:09
name
0:32:11
is
0:32:12
empty and and you know what's the good
0:32:16
part about this creating error return
0:32:18
function is
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:38
function
0:32:39
[Music]
0:32:41
objective saying security error function
0:32:43
the middleware
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:53
def
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:06
well
0:33:09
like we're doing at the
0:33:11
hair
0:33:12
in the back end
0:33:14
okay yes
0:33:16
it means there
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:34
right okay so
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:43
checked
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:00
it
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:07
anything
0:34:09
now get rid of it
0:34:12
we don't need it
0:34:17
okay
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:28
so
0:34:29
if
0:34:30
it comes into try
0:34:32
and then tries to play if it doesn't
0:34:35
work
0:34:36
it will go straight in the catch
0:34:40
no is there a boolean return of this as
0:34:42
well or something
0:34:45
just trying to in
0:34:47
error so you know how it says catch uh
0:34:51
and then yeah
0:34:52
in brackets
0:34:54
error that tells it as you what's wrong
0:34:59
right
0:35:01
okay that's
0:35:03
fair
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:16
difference here
0:35:17
um board id object is created
0:35:21
um you know we still need to figure out
0:35:23
yeah that's fine
0:35:24
and just in signify the error yeah
0:35:27
that's fine okay let's look at patch
0:35:30
patch um
0:35:32
right let me call
0:35:33
this here
0:35:36
so i think the same would play
0:35:41
now in patch the
0:35:43
board id can match but the board id as
0:35:46
well
0:35:46
yeah we need to make sure of that
0:35:50
board id
0:35:53
[Music]
0:35:55
i just make a standardizer
0:35:59
poor id is
0:36:00
not found in the
0:36:02
not present in the parameters
0:36:06
right
0:36:09
[Music]
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:27
uh jira as well
0:36:29
yes that's what i'm doing at the moment
0:36:32
so that is important
0:36:33
[Music]
0:36:35
or not
0:36:36
next thing is board is
0:36:39
signed
0:36:41
all right yep that's fine
0:36:44
um okay
0:36:45
then table name can't go wrong
0:36:48
poor id we already checked okay now
0:36:50
we're gonna check
0:36:51
you know what said
0:36:54
i think
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:17
okay
0:37:18
cool
0:37:22
and
0:37:23
can you repeat why do we
0:37:26
need
0:37:27
a normal
0:37:29
another function
0:37:31
or
0:37:31
what do what did you say against sorry
0:37:35
um
0:37:37
nothing just like
0:37:39
um
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:52
and
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:16
no
0:38:18
[Music]
0:38:20
why aren't we using
0:38:24
our
0:38:25
function here
0:38:27
right
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:37
me again
0:38:40
just replace that coins and then
0:38:43
off cell phone number put
0:38:46
space okay space
0:38:48
okay and then uh
0:38:50
arrow function
0:38:51
arrow and yeah there we go perfect
0:38:54
[Music]
0:39:06
[Music]
0:39:09
um i don't know i need this variable i
0:39:11
don't actually know
0:39:13
[Music]
0:39:19
right okay i'm gonna keep on updating
0:39:23
the board
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:36
we come to
0:39:39
uh
0:39:40
validate update board name
0:39:42
[Music]
0:39:44
validate update board
0:39:48
okay and then we do this
0:39:52
check if
0:39:58
is present
0:40:00
and
0:40:01
valid
0:40:12
and
0:40:14
check
0:40:15
if
0:40:16
or
0:40:17
[Music]
0:40:19
name is present and
0:40:33
so at
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:42
okay
0:40:43
just fry that into progress
0:40:50
cure
0:40:51
[Music]
0:41:02
it looks fine this looks fine little
0:41:05
patch
0:41:08
yep we need a
0:41:11
switch for is
0:41:13
a numeric
0:41:15
board id
0:41:18
and we're going to open it case true
0:41:21
we're going to say
0:41:23
um
0:41:24
error return
0:41:25
[Music]
0:41:27
so follow for message is
0:41:30
board id is
0:41:33
isn't
0:41:35
valid
0:41:37
and we're gonna send the response object
0:41:40
and
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:48
well
0:41:50
um
0:41:51
right okay
0:41:52
table name it's fine we are giving it
0:41:54
board id
0:41:55
we are already checked so that should be
0:41:58
fine
0:42:00
um update expression we are getting the
0:42:02
board name did we check the board name
0:42:05
no we haven't
0:42:07
until now
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:12
name
0:42:14
is
0:42:17
it a string variable we that's all we
0:42:19
need to make sure
0:42:22
rest of front tension make sure
0:42:24
things like is the board name valid or
0:42:27
not
0:42:30
we just need to make sure if it's string
0:42:32
or not
0:42:33
this should be done in the rear
0:42:35
yes uh
0:42:37
the rest should be done in react yeah
0:42:40
true
0:42:42
let me make another
0:42:44
function
0:42:46
is for name valid
0:42:51
okay this is a string function that's
0:42:53
all we need to do
0:42:56
um jess
0:42:59
let's see
0:43:05
oh yeah yeah
0:43:16
okay yep
0:43:18
alright
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:30
um
0:43:33
yup guard
0:43:37
body
0:43:38
dot
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:51
case
0:43:53
false
0:43:55
um
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:04
[Music]
0:44:07
name
0:44:09
is not valid
0:44:12
we're given the response object
0:44:14
and we'll make the case
0:44:16
true we should
0:44:18
make a default case as well
0:44:22
okay let's see
0:44:24
what else
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:47
okay
0:44:48
yeah that's fine
0:44:50
yeah we'll give it a go
0:44:53
and we can come back to that
0:44:55
rest looks fine
0:44:58
just wanna see the time okay 15 more
0:45:00
minutes
0:45:01
you can
0:45:03
um
0:45:05
this will automatically do that
0:45:13
you know
0:45:15
instead of
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:29
going to say
0:45:31
board
0:45:34
um
0:45:35
id
0:45:37
is
0:45:38
not
0:45:40
present in the parameter
0:45:44
okay that'll do it
0:45:47
um
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:55
is go right
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:06
um right okay if
0:46:08
it is alphanumeric then we want it to go
0:46:12
so case false
0:46:14
it's gonna be error
0:46:17
return
0:46:19
four four the message is
0:46:22
board id is not
0:46:25
valid
0:46:27
and the
0:46:30
response object
0:46:34
here
0:46:35
[Music]
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:47
right okay
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:46:59
stop on line 199
0:47:03
line 199
0:47:06
yes so i'll tell you what's happening
0:47:08
here if
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:16
slash board id
0:47:18
if the board id is null
0:47:20
which means that
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:37
parameters
0:47:38
and um
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:45
it
0:47:45
um
0:47:46
okay just to uh retrieve
0:47:50
the board id isn't present in the path
0:47:53
name
0:47:54
as in in the
0:47:56
url path it wouldn't be called the
0:47:58
parameters
0:47:59
yeah
0:48:00
yeah that makes sense
0:48:01
okay
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:15
not wrong
0:48:17
and
0:48:18
class b
0:48:23
is asking have you heard about the
0:48:26
return keyword
0:48:28
i don't know what you're talking about
0:48:37
good one
0:48:38
if if this function is called it's gonna
0:48:40
return itself right because
0:48:43
um
0:48:45
yeah this is gonna return
0:48:47
he's pulling your leg that's all
0:48:51
that's funny
0:48:52
um okay
0:48:54
if it is um he's saying
0:48:56
don't
0:48:57
choose it it's bad practice
0:48:59
like if
0:49:01
what do you want to use then
0:49:08
oh
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:22
said
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:34
reduce redundancy
0:49:37
uh
0:49:38
that is what he's talking about
0:49:43
i actually didn't get it
0:49:46
to do
0:49:47
what did you just say to him that she
0:49:48
said yep
0:49:51
as in
0:49:52
he means that don't use a function to
0:49:55
return
0:49:56
something
0:49:58
why
0:50:00
oh i think what means that as in
0:50:03
return the
0:50:05
error on this
0:50:07
line don't
0:50:08
use a function
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:20
isn't that
0:50:21
um i don't think
0:50:24
we are
0:50:25
all right okay
0:50:28
so he wants me to return here is that
0:50:31
what you're saying
0:50:32
okay
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:06
lost now
0:51:08
you can use
0:51:11
rest or send but
0:51:13
but then you still need to return
0:51:16
otherwise the code will continue
0:51:18
execution
0:51:19
all right okay so that's that means we
0:51:22
have been doing this since wrong since
0:51:24
day one then
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:00
is
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:16
yeah return
0:52:20
okie dokie that makes sense thank you
0:52:22
guys
0:52:23
that's
0:52:24
that
0:52:24
yeah that makes more sense
0:52:32
just for future reference can you
0:52:35
try and use
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:47
no
0:52:48
as in if it's
0:52:50
not at the end just in the middle of the
0:52:53
code
0:52:55
okay yeah i'll do that
0:52:57
okay let me just copy and paste my
0:52:59
return semicolon
0:53:02
uh
0:53:03
jupiter i've seen that if some condition
0:53:06
then error return yeah
0:53:09
yeah
0:53:11
don't
0:53:13
thank you jupiter right there really
0:53:16
that um
0:53:17
example really helps yep and thank you
0:53:20
good girl thanks for pointing it out
0:53:21
yeah
0:53:25
i'm just gonna get my
0:53:26
water is already
0:53:28
finished i'll be right back
0:53:30
okay
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:40
we're gonna do
0:53:41
four
0:53:43
and we're gonna say
0:53:44
um
0:53:45
[Music]
0:53:46
more boards
0:53:49
found in
0:53:52
error base
0:53:53
and we're gonna send this as object and
0:53:56
we're gonna
0:53:57
return semicolon
0:53:59
it's false but we might do something
0:54:01
like afterwards and
0:54:04
uh
0:54:11
[Music]
0:54:13
let's finish this one and we might want
0:54:15
to test it before it's temporary
0:54:18
um
0:54:23
i'll just try to return after everywhere
0:54:26
i did error return
0:54:28
oh
0:54:29
[Music]
0:54:32
that looks fine that looks fine
0:54:35
that looks fine that does not look fine
0:54:42
that looks
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:52
yep not okay
0:54:54
all 11 of them
0:54:56
let me just finish this one
0:54:58
then
0:54:59
go back
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:08
in the database
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:13
just
0:55:14
get rid of it
0:55:17
um right if there are bored
0:55:21
uh
0:55:22
we're gonna
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:38
um right okay
0:55:42
okay yeah else it wasn't present then we
0:55:44
have to say
0:55:46
error return
0:55:49
uh
0:55:51
board
0:55:53
not
0:55:54
found
0:55:57
um and res object
0:56:00
and of course
0:56:03
our little return
0:56:05
um table we are giving board id which we
0:56:07
already validated
0:56:09
um
0:56:10
[Music]
0:56:12
i don't think so we need to delete then
0:56:13
do we
0:56:18
okay
0:56:19
oh zen's not here
0:56:21
guys you tell me do we need this delete
0:56:23
or not
0:56:24
[Music]
0:56:27
press f
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:40
come back
0:56:42
okay i'm just gonna confirm everything
0:56:44
is right and then i'll test it
0:56:56
okay
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:24
okay um
0:57:26
yep yep
0:57:28
that looks fine that looks fine
0:57:32
fine
0:57:35
okay
0:57:37
let's give it a test
0:57:41
sam build
0:57:46
okay
0:57:53
and deploy minus t
0:57:57
yup yup
0:57:59
s yes yes
0:58:01
yes yes
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:18
stuff
0:58:20
also what's up with the emojis i said to
0:58:21
press f nothing
0:58:25
okay this one's the funniest one
0:58:30
yeah this one's pretty funny as well
0:58:34
very nice
0:58:39
okay welcome to our special guest zen
0:58:44
sorry about that my laptop's battery
0:58:47
died completely
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:58:58
all right cool
0:59:02
okey dokey
0:59:04
if i just give it to brush
0:59:09
yeah
0:59:10
and if that gibberish is of the light
0:59:12
lent
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:30
that's fine um
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:44
is
0:59:45
um if we write some other gibberish
0:59:49
or it is invalid okay
0:59:52
yes
0:59:54
um
0:59:56
we
0:59:57
yeah
0:59:58
what else did we do
1:00:01
let's see
1:00:04
so we made sure
1:00:08
get board id is working
1:00:11
we then make sure if we actually find
1:00:15
the board or not
1:00:25
one
1:00:26
second oh yeah that's true
1:00:30
oh wait we did make sure
1:00:33
it's empty yeah
1:00:35
oh
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:51
the board is not
1:00:52
[Music]
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:03
let's move on
1:01:06
okay
1:01:07
um
1:01:08
right
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:33
done it
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:01:50
i was
1:01:52
after this one
1:01:55
okay i think it
1:01:58
is empty
1:01:59
there you go
1:02:05
is instead of doing a zero
1:02:08
why not we do a null
1:02:12
um
1:02:15
because
1:02:18
because
1:02:19
zero is still
1:02:20
something
1:02:23
the board could be null
1:02:25
that's not the problem it shouldn't be
1:02:27
nothing
1:02:29
or i'm not um
1:02:32
we can try that yeah we can try that and
1:02:34
just let me
1:02:36
um
1:02:37
object is empty in javascript
1:02:41
let me bring my opinion to the
1:02:43
main screen
1:02:45
um
1:02:50
[Music]
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:02
one
1:03:08
okay so it is actually checking that
1:03:12
yeah
1:03:13
that's right we'll come back to it let
1:03:15
me just check other ones
1:03:18
for okay
1:03:20
right
1:03:21
posting the board
1:03:23
um
1:03:24
if board name is empty let's try that
1:03:31
okay
1:03:32
let's post an empty board without a body
1:03:39
huh
1:03:40
okay it's definitely something to do
1:03:41
with the
1:03:43
um
1:03:45
the agency function uh i'll get back to
1:03:47
that
1:03:48
um
1:03:49
let's see patch
1:03:51
in patch
1:03:55
right alpha numeric one
1:03:57
okay
1:03:59
let's
1:04:01
give the board name
1:04:04
as
1:04:05
a not
1:04:07
um not a string
1:04:09
while patching it
1:04:16
okay let's get the board
1:04:30
go away
1:04:31
let's get the board
1:04:33
let's patch it
1:04:38
some raw data
1:04:41
um go down bro
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:04:56
interesting
1:05:01
name
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:24
had the extension
1:05:26
uh
1:05:26
okay yeah don't worry about that
1:05:30
um
1:05:32
let's say delete
1:05:34
um red
1:05:36
and delete
1:05:39
if we don't have to
1:05:42
yeah if we don't get a board
1:05:45
yes
1:05:47
um
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:01
it should not
1:06:02
it should give me another message
1:06:04
saying all boards in the database let's
1:06:06
see
1:06:08
where's my table there it is
1:06:15
oh go
1:06:16
away no one needs good
1:06:22
i guess after this first round of
1:06:24
testing
1:06:26
let's call that night
1:06:28
yes
1:06:29
i have a project oh sorry
1:06:32
what you got looking assignment to do so
1:06:34
yeah
1:06:39
oh boy they made it really annoying
1:06:48
okey-dokey
1:06:52
yep brilliant yeah that seems to be good
1:06:55
now
1:06:56
try the board
1:07:00
um
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:08
delete
1:07:12
okay okay
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:36
which is good
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:46
ah yeah
1:07:48
being spammed again
1:07:49
yeah that's fine
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:04
you can't post it
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:20
but this
1:08:21
bad boy is coming here and postman
1:08:26
let's
1:08:27
check it out
1:08:33
well it's formatting
1:08:35
it's that much
1:08:42
boy oh boy
1:08:47
oh boy
1:08:49
you know what
1:08:50
tomorrow
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:03
know one
1:09:04
thing let this person post the board and
1:09:08
i'll comment on the post method in
1:09:10
totality
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:22
i appreciate it
1:09:23
yeah i really appreciate that
1:09:27
right
1:09:28
uh
1:09:29
have a
1:09:31
great
1:09:32
night tour
1:09:34
thanks for coming thanks for
1:09:37
joining in
1:09:38
and
1:09:40
yeah enjoy your night
1:09:41
yeah
1:09:43
thanks tori
1:09:44
see you tomorrow
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:58
oh no
1:09:59
can we smash out this validation first
1:10:01
because
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:08
tomorrow
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:23
then
1:10:25
i'm
1:10:27
gonna do that as well
1:10:29
so that
1:10:35
if you don't have that many boards
1:10:44
these emojis man
1:10:47
yeah
1:10:48
just love them isn't it
1:10:51
come on
1:10:56
okay um
1:10:59
pork chop okay
1:11:01
interesting
1:11:04
i need some of the boards i'll not
1:11:06
delete all
1:11:10
all right i'll just leave
1:11:13
five boards
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:27
not deployed yet
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:11:57
how
1:11:58
give up your time
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:12
now
1:12:13
yeah
1:12:14
one
1:12:16
jupiter rat has a good question when i
1:12:18
just seen gonna be
1:12:19
1080p
1:12:21
um
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:37
that's so funny
1:12:40
huh
1:12:42
um are we not streaming in 1080p
1:12:45
yeah i'm not
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:52
have a look
1:12:57
okay um that's fine we are anyway gonna
1:12:59
switch to obs we were using
1:13:02
till now
1:13:03
but yes we're gonna come back and switch
1:13:04
to
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
um
1:13:13
maybe that's the reason you're finding
1:13:15
it a bit hard
1:13:17
um
1:13:19
right okay yeah now the person can't do
1:13:22
it
1:13:23
perfect so
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:36
right
1:13:37
yeah i kind of agree with
1:13:39
you
1:13:40
jupiter ref that is kind of hard
1:13:44
to read
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:13:56
a lot clearer
1:13:59
yep just give us
1:14:01
um this week
1:14:03
yeah
1:14:04
so by monday you you
1:14:07
it will hopefully be that quality
1:14:09
for sure
1:14:10
oh wow okay now the person is doing
1:14:14
notes
1:14:16
okay hang on i'm gonna actually
1:14:18
i'm gonna
1:14:20
do oh
1:14:22
uh
1:14:24
right
1:14:26
delete
1:14:29
um i'm done with the validation for sure
1:14:31
i'm gonna
1:14:33
configure course after doing env for
1:14:35
sure
1:14:36
yeah
1:14:37
this is kind of what i really need to
1:14:42
oh yeah
1:14:44
that's good that someone is telling us
1:14:46
to do it
1:14:47
yeah yeah
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:07
notes as well
1:15:09
yep thank you
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:16
on twitch
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:24
saturdays
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:37
whole post note
1:15:40
yeah that should be fine
1:15:42
okay i've just deployed my end as well
1:15:55
okay mine stopped
1:15:57
i believe
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:12
scrambler.ca
1:16:14
um we've been streaming for over uh
1:16:17
two months now i believe today is the
1:16:20
65th episode
1:16:23
that means we've been streaming 65 days
1:16:25
consecutively except the last saturday
1:16:29
uh but yes
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:36
um
1:16:38
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:46
yes um
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:05
i don't know
1:17:06
it's at least going to take two hours i
1:17:08
think
1:17:10
um but yeah
1:17:11
it's going to be a longer stream
1:17:12
tomorrow for sure doing the validation
1:17:15
yeah
1:17:16
there's a lot of debugging to do right
1:17:18
now
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:27
other things
1:17:28
to do as well and we have to yeah
1:17:32
yes i have to do the
1:17:34
assignment
1:17:36
so
1:17:37
yeah
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:47
tomorrow
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:55
guess yeah
1:17:57
so that's true yeah did you update all
1:18:00
the jira stuff then i
1:18:03
have
1:18:04
but i would say until
1:18:06
not the part that
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:42
um i
1:18:43
i think yeah yeah we give it a
1:18:46
thought we still haven't decided
1:18:47
anything but
1:18:48
most likely yes
1:18:50
yeah
1:18:51
i would say
1:18:53
the same as well
1:18:54
and yeah missed
1:18:56
you get f2 and
1:18:59
all the others on
1:19:01
venice
1:19:02
there i i just had a really late night
1:19:06
and then couldn't really get up
1:19:09
on time
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:24
just explain that
1:19:26
people who drink
1:19:28
healthy energy drinks
1:19:31
i don't think the energy drink but
1:19:33
anyway
1:19:35
it's healthier than other energy drinks
1:19:40
not healthy it's healthier energy
1:19:42
healthier
1:19:43
healthier than other energy drinks
1:19:46
by anyone
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:53
place and
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:11
yeah so
1:20:12
a different problem yes for sure
1:20:16
yeah
1:20:20
yeah talking about sign my sign is going
1:20:21
to be there tomorrow
1:20:23
whoa
1:20:25
yeah just get excited
1:20:30
yeah yes see you guys
1:20:34
tomorrow we get
1:20:35
to see s
1:20:38
as well and
1:20:39
have a good night bye cool good night
1:20:42
cheers bye
Other clips featured in this episode