boarzVideosClipsStatistics

🎬The benefits of pair programming

🎦
Featured in#️⃣EP 056 - 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:25
all right welcome back everyone welcome
0:00:27
back to another episode of bill break
0:00:28
and fix um to all those people who are
0:00:31
new here we are rollercolors
0:00:33
that means we stream every night at 9 30
0:00:36
um
0:00:37
everything about software development
0:00:39
and
0:00:40
um we're working on a project as well
0:00:42
called scrambler.ca
0:00:44
we are adding persistent storage to this
0:00:46
current open source project
0:00:48
and
0:00:49
yeah um join us every night at 9 30.
0:00:53
so yesterday we've been working on
0:00:54
fixing a github
0:00:56
problem uh which we encountered um
0:01:00
and we were successful to and fixing
0:01:03
that
0:01:04
today we're gonna continue on our quest
0:01:06
to enhance the middleware
0:01:09
so how are we feeling today
0:01:11
they're feeling pretty good uh so i'm
0:01:14
just uh
0:01:16
i'll just add to that what i'm currently
0:01:19
doing because you might have seen
0:01:23
me doing
0:01:24
something while you were talking i'll
0:01:26
just
0:01:26
i'll just gain the latest from
0:01:29
the
0:01:30
uh
0:01:31
xpercepts
0:01:33
master branch and keeping it up today
0:01:37
everything
0:01:38
so now i'm gonna do is okay cool
0:01:42
um i'm just
0:01:46
gonna
0:01:47
share my screen and we can continue with
0:01:51
the
0:01:52
with the testing of the notes
0:01:55
if they are working as intended
0:01:58
yeah sure sure let's do that and uh
0:02:01
um so what what you need to do is maybe
0:02:03
first go in the dev branch and then
0:02:05
build it again
0:02:07
and then update all the stuff
0:02:08
yeah that's what i'm gonna do so
0:02:12
or maybe
0:02:13
it'll be kind of faster if i do it
0:02:14
because it's already
0:02:16
built on my side on aws yeah
0:02:19
yeah
0:02:21
yeah and you keep working on the
0:02:24
um getting it back maybe yeah cool
0:02:27
i'll go ahead and
0:02:29
test the notes functionality
0:02:34
oh no no no no no
0:02:37
what did i do
0:02:39
i need to unchange everything
0:02:44
tell me that's big enough
0:02:48
uh yes okay that's much better now
0:02:52
uh we have someone
0:02:54
dad was that a brother and you're right
0:02:57
dave's dad how's it going
0:03:02
okay
0:03:04
let's see this
0:03:10
let's see i'm gonna get all the greens
0:03:13
um
0:03:19
oh and why are we
0:03:22
testing all the balls now i thought we
0:03:24
already know yesterday i'm just trying
0:03:27
to get to the
0:03:29
uh note that's why i'm getting all the
0:03:31
boards to see you on board oh okay cool
0:03:33
cool right right right
0:03:36
makes perfect sense
0:03:39
yep
0:03:41
um
0:03:43
let me get the board
0:03:45
have you got your water over here
0:03:49
i have
0:03:51
bubbled even helps
0:03:54
that's no war mate water water
0:03:57
take the healthy option mate
0:04:00
i have a iron drink if it helps okay
0:04:03
yeah that's fair enough still which i'm
0:04:06
not gonna drink
0:04:08
fine what's the point of having it
0:04:12
not in the mood
0:04:22
[Music]
0:04:25
what's
0:04:26
it what's the
0:04:30
am i doing the right way yes you are
0:04:33
uh
0:04:35
no no no it's single note
0:04:39
sorry all right
0:04:41
i got a bit double minded there
0:04:44
yeah we need to make it
0:04:47
the right name afterwards yeah
0:04:49
is that fine and capital
0:04:52
yes
0:04:56
just to n1 it's a lot simpler
0:05:00
uh
0:05:02
right
0:05:03
i think
0:05:05
the notes things has to change to
0:05:07
uppercase b
0:05:09
and a board id as well i think i did
0:05:11
something wrong here oh that's fine
0:05:15
what did you do
0:05:17
i didn't know the note ah all right i
0:05:19
see
0:05:24
okay uh that was fine
0:05:28
um right post is working
0:05:31
get let's see get
0:05:44
cool
0:05:45
so that's working as well um
0:05:49
dispatch
0:05:50
update it
0:06:04
huh interesting
0:06:08
did i do something now that's fine
0:06:10
[Music]
0:06:14
then go back in the api
0:06:16
yeah oh one second let's test all of
0:06:18
them and then go back
0:06:23
delete
0:06:28
that's fine
0:06:33
what no i think i deleted
0:06:38
give me one more second let me try it
0:06:40
again
0:06:44
so it says it got deleted let me get the
0:06:49
word
0:06:53
is it lying to us
0:06:57
it didn't get delayed but
0:06:59
it was trying to save god deleted
0:07:02
okay so delete isn't working as well but
0:07:04
it's compiling it's not working
0:07:10
so the delete
0:07:12
of the notes isn't working
0:07:15
now let's do that first because you'll
0:07:17
be ignoring
0:07:18
and
0:07:20
that's the board
0:07:23
delete
0:07:26
okay
0:07:28
so you might have to change that to
0:07:31
uppercase
0:07:32
this one
0:07:33
hang on uh
0:07:40
no no we don't need to change the uh the
0:07:44
board note is fine
0:07:47
no it's just not id not yeah
0:07:51
it's what id and then broad id
0:07:54
this is fine
0:07:56
um
0:07:57
promise okay
0:08:01
not
0:08:05
exploding we are doing the right thing
0:08:08
i'm pretty sure it's just that
0:08:10
small little thing we need to do
0:08:14
when we splice it
0:08:19
yes
0:08:20
sending the response off after
0:08:23
everything is
0:08:24
done hmm
0:08:27
yeah which is fine which is what we want
0:08:30
exactly
0:08:32
is this dodgy the note i did not no i
0:08:34
think that's fine
0:08:37
yeah
0:08:38
um go to the response thing
0:08:43
as in
0:08:45
in postman
0:08:47
just want to check the key of the no
0:08:49
idea there
0:08:51
okay i'll do it again
0:08:53
yeah that's fine no this is our board
0:08:56
and this oh
0:08:58
um
0:09:01
so at the moment what we're trying to do
0:09:03
is delete right
0:09:04
yes
0:09:07
okay
0:09:08
go
0:09:09
back
0:09:18
so see it does say that now it's empty
0:09:23
know what i mean
0:09:24
um
0:09:26
now here it says empty
0:09:28
but when in actuality
0:09:31
if you get that board
0:09:33
it is not going to be empty
0:09:36
all right for that matter if you get all
0:09:37
the notes f6a
0:09:41
oh
0:09:42
sees i can't do that
0:09:48
let's see still there so
0:09:51
um no it's not
0:09:54
hang on
0:09:55
oh uh i was
0:09:57
looking at the wrong stuff okay cool so
0:10:01
so
0:10:03
technically it is splicing it but it's
0:10:05
not getting assigned
0:10:06
ah
0:10:08
no no no no that's actually not the
0:10:10
problem
0:10:12
i think the problem is that we're not
0:10:14
uh splashing it from the table itself
0:10:18
yeah exactly that's something so we are
0:10:20
doing it from the array but it's not
0:10:21
actually being implemented in the table
0:10:23
yes yes
0:10:25
so that's what we need to do as in
0:10:28
delete in the
0:10:32
i'm just seeing how we deleting the
0:10:34
board
0:10:36
right okay so this one we
0:10:38
literally choosing the params and
0:10:41
everything
0:10:43
oh
0:10:44
that's how we should
0:10:47
be
0:10:49
deleting
0:10:51
how would we do it here
0:10:54
so we got the board
0:10:56
okay and we are splicing it from the
0:10:58
array as well
0:11:03
now we have to
0:11:05
all right
0:11:06
now we have to assign this new area
0:11:09
um
0:11:11
to the board
0:11:12
board nodes yeah
0:11:15
uh
0:11:17
can i just do
0:11:24
board
0:11:34
the board now changing
0:11:38
this work
0:11:46
uh
0:11:47
so what's
0:11:50
fine
0:11:54
[Music]
0:11:58
is in
0:11:58
items first index only getting the first
0:12:01
index
0:12:03
yes
0:12:04
yeah so
0:12:08
why are we replacing the first index
0:12:10
for the entire array
0:12:13
we're not we're just getting into the
0:12:14
items array
0:12:16
by doing this but we are going through
0:12:17
the notes
0:12:19
and then replacing i didn't get it
0:12:23
we're not doing what that also i remove
0:12:25
this place like
0:12:27
one second
0:12:30
what'd you say again
0:12:32
ah now it makes sense
0:12:34
yeah
0:12:35
i was like what
0:12:44
just seeing how to do
0:12:50
it is are you splashing something
0:12:54
physically
0:12:58
i'm just looking on um
0:13:01
what do you call the thing stack
0:13:02
overflow
0:13:10
yeah i think we can do this i have a
0:13:11
feeling we can do this
0:13:13
i'm just gonna
0:13:15
how to assign
0:13:17
because this is gonna do a memory
0:13:19
transfer not an actual hard transfer
0:13:22
like
0:13:24
how to
0:13:26
um
0:13:26
[Music]
0:13:29
because array array is immutable right
0:13:31
um
0:13:54
so
0:14:04
hello
0:14:12
right
0:14:37
can you confirm this
0:14:44
yeah that's your
0:14:49
yep
0:14:55
and
0:14:56
yeah
0:15:03
i'm just worried why isn't it getting
0:15:04
the board notes
0:15:12
you know um what i think what's
0:15:15
happening is that it's
0:15:19
deleting that note in memory only but in
0:15:22
the
0:15:23
the dynamodb table is still present
0:15:27
so when you delete it from the memory uh
0:15:30
bug gets it from the table that doesn't
0:15:33
really match
0:15:36
that's why i'm assigning it this time
0:15:38
yeah yeah which would make sense now
0:15:41
because the only reason why i wasn't
0:15:44
review because
0:15:45
line two to seven wasn't there and i'm
0:15:48
like um
0:15:50
right okay
0:15:52
no i'm just curious that i wouldn't be
0:15:54
able to get to board notes
0:15:57
because
0:15:59
right now it says um
0:16:02
[Music]
0:16:05
we should because uh
0:16:07
we are accessing board
0:16:09
notes from the board which is a global
0:16:12
variable at the moment yeah over there
0:16:16
right okay
0:16:19
but
0:16:25
i've got a bit of a doubt
0:16:28
now
0:16:29
i guess we'll figure it out
0:16:38
okay
0:16:40
there is a note for sure
0:16:47
right
0:16:51
uh go back
0:16:55
to the code
0:16:57
yes
0:16:58
do you know how you have said in
0:17:00
line 230 board dot board underscore
0:17:03
notes
0:17:05
it should be board dot
0:17:12
items
0:17:16
dot board notes oh
0:17:18
all right
0:17:24
yeah that's motions
0:17:26
[Music]
0:17:31
see the benefit of paper
0:17:34
programming
0:17:35
yeah i miss something
0:17:37
you catch if you miss something i catch
0:17:39
it
0:17:41
it's the better benefit of having a
0:17:42
non-sleepy zen with me today
0:17:45
huh
0:17:47
having a
0:17:49
non-sleepy zen
0:17:52
i agree
0:17:54
oh by the way i've just had those um
0:17:58
healthy
0:17:59
energy drinks that i
0:18:01
mainly have instead of coffees
0:18:04
so
0:18:05
they're working now
0:18:11
thank you coding garden fans really
0:18:13
needed them
0:18:15
yeah
0:18:16
thank you very much
0:18:19
can you keep an eye on the child then i
0:18:21
will yes so that was my fault
0:18:26
i completely
0:18:27
zoned out from the comments because i
0:18:29
was
0:18:30
focused
0:18:32
in in the code
0:18:34
but yeah
0:18:34
i will
0:18:36
um
0:18:39
okay good is working
0:18:44
uh can we go to cloud watch
0:18:48
yes we can i'm just curious why did this
0:18:50
come in a json format
0:18:53
it always comes in a json format
0:18:57
you sure
0:18:58
yes
0:19:03
um
0:19:05
oh it does
0:19:06
okay
0:19:16
i know it's not letting me get bigger
0:19:18
awesome day
0:19:25
uh by the way i'm gonna be
0:19:28
getting um obs and
0:19:31
doing some
0:19:33
training on that
0:19:34
in my spare time a bit
0:19:40
because we really have to level up now
0:19:43
instead of the streaming software as
0:19:46
well
0:19:47
yeah yeah for sure
0:19:48
[Music]
0:19:50
really how did i miss that
0:19:54
i can't tell because it's too unreadable
0:19:57
for me so
0:20:04
is this better
0:20:07
uh yes
0:20:09
much better
0:20:10
to logs
0:20:15
and then was there saying pro streamers
0:20:20
yeah on the way
0:20:24
on the way that was that
0:20:27
yeah i mean we upgrade our setup so yeah
0:20:31
and then
0:20:32
i bought new mac and then kartik
0:20:35
got
0:20:36
a microphone a 35 inches monitor
0:20:40
um
0:20:41
a good camera as well
0:20:44
and his wing for his
0:20:47
all right i won't tell everyone that no
0:20:50
not yet yeah don't don't get there
0:20:59
the problem is something with slice
0:21:03
and seeing the format
0:21:05
oh i need to do zero i reckon
0:21:21
uh
0:21:22
why
0:21:24
do you want to do zero
0:21:27
and why are you using slice in the first
0:21:29
place
0:21:30
um that's why how you
0:21:33
uh actually assign an array
0:21:36
like you can't just do equal to right
0:21:38
because it's immutable
0:21:41
so where
0:21:42
i thought we were
0:21:47
sorry no hang on
0:21:49
i think i i'm a bit confused now do you
0:21:52
want me to tell you what to do
0:21:54
if you can yeah
0:21:56
yep
0:21:59
so
0:22:00
items first note this array
0:22:04
yeah
0:22:05
is gonna have oh
0:22:08
okay one second i think i did a bit of
0:22:11
oopsie here as well
0:22:15
oh okay that's
0:22:17
why um
0:22:18
yeah i'm thinking
0:22:21
something is odd there
0:22:30
break
0:22:32
you love the
0:22:34
break statements don't you um i think
0:22:36
this time we have to do it i'm just
0:22:39
teasing you and don't take it firstly
0:22:41
for reals okay here's the deal this is
0:22:43
what you're doing yeah items first index
0:22:46
is a global variable right so yeah
0:22:50
you find the board id and stuff like
0:22:52
that
0:22:52
and it's removed from this array the
0:22:55
board notes array
0:22:56
that makes sense and then you go to
0:22:58
board items and board notes
0:23:01
and assign
0:23:02
items are first in first index
0:23:05
board notes and splice so what basically
0:23:08
splice does it
0:23:09
splice zero does nice or supplies sorry
0:23:12
slice my bad yeah
0:23:13
um
0:23:15
it's just basically gonna
0:23:17
create
0:23:18
sorry
0:23:20
thank it
0:23:22
creates
0:23:23
a new fresh rave without update content
0:23:27
yes if you if i remove this and then do
0:23:29
it
0:23:30
that's basically saying the address of
0:23:32
this is equal to this but you don't want
0:23:34
to do that we don't want to sign it we
0:23:36
actually want to assign all right
0:23:38
so
0:23:39
just to make it what is
0:23:42
it
0:23:42
zero in there
0:23:44
um you know how uh
0:23:47
substring works is exactly how this
0:23:49
works
0:23:51
so if you do one comma three it's gonna
0:23:52
do one comma three so if you do this
0:23:55
zero it's gonna take all the array
0:24:01
does that make sense all right you know
0:24:04
how something works right
0:24:06
yeah
0:24:07
so if you do substring one comma three
0:24:09
it takes the first index and the second
0:24:12
index right
0:24:13
yeah yeah
0:24:14
so if you do
0:24:15
substring zero it takes the whole string
0:24:17
so same for slice if you take slice zero
0:24:21
it just takes the whole array
0:24:23
yeah that makes sense
0:24:28
hey
0:24:29
begin what's happening
0:24:31
so
0:24:32
today we are just making sure
0:24:35
all of what our notes functions work as
0:24:39
in notes request which is the crude
0:24:42
operations
0:24:43
specifically for notes and at the moment
0:24:47
to be really precise what we're doing
0:24:50
we are making sure that when we delete a
0:24:55
note from a board
0:24:57
and then try and get
0:25:01
the whole board
0:25:02
we
0:25:04
we
0:25:05
don't get that
0:25:07
deleted
0:25:08
notes as well but at the moment we are
0:25:11
getting it so we're just trying to fix
0:25:13
that one if that makes sense
0:25:16
exactly
0:25:18
all right
0:25:19
so
0:25:20
the project that we're working on it
0:25:24
would be called as a web-based kanban
0:25:27
board
0:25:29
so we are
0:25:30
replicating an existing or open source
0:25:35
project by enhancing it to add
0:25:38
persistent storage and
0:25:40
a few additional s security features and
0:25:43
also migrating the entire architecture
0:25:46
in
0:25:47
aws
0:25:49
incredible alternative um you can say
0:25:52
yes
0:25:53
but
0:25:54
not as beautiful as
0:25:57
trello
0:25:58
at the moment
0:26:02
i mean
0:26:04
bacon github
0:26:06
i'm gonna check out the um url that
0:26:10
begins sent
0:26:12
yeah
0:26:15
uh
0:26:17
they can get github
0:26:24
yes
0:26:26
i can
0:26:28
get tags
0:26:33
i o
0:26:37
all right um
0:26:40
let's have a look
0:26:41
what a cool thing guys
0:26:45
uh begins showing us
0:26:48
oh right um
0:26:50
no this is not the one i'll actually say
0:26:53
uh up
0:26:55
send
0:26:57
your link what exactly we are
0:27:00
trying to do as in
0:27:02
trying to
0:27:04
replicate just bear with me for a minute
0:27:11
we are basically replicating
0:27:14
this
0:27:16
but also uh
0:27:18
adding um
0:27:21
persistent storage
0:27:25
some security features and also um
0:27:30
migrating the architecture to
0:27:37
right so
0:27:38
how are we doing k
0:27:40
um
0:27:41
just having a look
0:27:48
[Music]
0:27:52
yes
0:27:54
thanks bring it um so the tech stack
0:27:58
that we're
0:27:59
working on or obviously a aws
0:28:03
then we are doing also node
0:28:07
form front end we are
0:28:11
keeping it simple for
0:28:13
the time being which is using javascript
0:28:16
html css um
0:28:20
and for the middleware
0:28:22
we're doing fetch api
0:28:25
to
0:28:26
uh
0:28:27
make the frontend tool
0:28:29
tool to the back end
0:28:36
i think we need to change the key
0:28:39
um
0:28:40
listen out how it's going to work
0:28:47
we need
0:28:59
um can't we do it in a way that we can
0:29:05
um
0:29:08
when we delete a note
0:29:10
yep
0:29:12
we can just delete that object but the
0:29:15
remaining one
0:29:17
for all the remaining
0:29:19
objects
0:29:21
we can
0:29:22
make a
0:29:23
new array and then
0:29:27
assign all those remaining objects to
0:29:30
then new
0:29:31
ray and that one
0:29:33
and then we can assign that brand new
0:29:36
array to the
0:29:38
board instead
0:29:41
hmm
0:29:42
yeah
0:29:43
um i'm just having a look
0:29:47
um i i kind of get what you mean maybe
0:29:49
do you want to go ahead and try that i
0:29:50
will push this code up
0:29:52
on that branch
0:29:54
i'll have a look here
0:29:56
cool is that okay
0:30:00
yeah for sure
0:30:03
let me make sure i'm fine i'm on oh i am
0:30:13
wow
0:30:15
this is why we need um the
0:30:18
uh
0:30:19
software that actually
0:30:21
shows us a branch as well but
0:30:23
that's a really good picture from you
0:30:26
well done for that
0:30:31
yep
0:30:35
[Music]
0:30:37
i
0:30:38
begin saying thought about graphql
0:30:42
yes but
0:30:43
we're just keeping you really basic
0:30:46
at the moment to
0:30:48
build up a mvp and as soon as that's
0:30:52
done then
0:30:53
we're actually gonna be
0:30:55
using all the
0:30:57
modern tech scan uh tech stack
0:31:02
yeah graphql will be really interesting
0:31:05
to implement yeah because
0:31:07
it'll make all the jobs so much easier
0:31:12
you can just say what task we need to do
0:31:14
and it'll actually
0:31:16
do it in an easier fashion but i think
0:31:18
like
0:31:19
right
0:31:20
yeah i haven't
0:31:22
worked with graphql but yeah i've heard
0:31:25
that it's used for this purpose
0:31:28
yeah so but i feel like it's fine we're
0:31:30
using that mode
0:31:32
yeah it's also a good deal to have of
0:31:34
course right that's right
0:31:36
and
0:31:37
you think kati kumar sounds
0:31:41
like a wow
0:31:43
a south indian name
0:31:47
is really precise apparently
0:31:49
oh
0:31:50
yeah
0:31:51
no i'm not south indian though
0:31:57
um
0:32:05
do you have a lot of friends from
0:32:08
south in
0:32:10
india bend
0:32:21
all right
0:32:22
[Music]
0:32:23
begins is building a new app with next
0:32:27
js postgres prisma apollo graphql oh no
0:32:34
and his
0:32:35
url is
0:32:37
really interesting as in
0:32:43
look at that
0:32:45
that party yeah
0:32:47
i like that
0:32:49
that's pretty cool
0:32:50
yeah isn't it something similar to like
0:32:53
dev.com or was it
0:32:55
ortio
0:32:58
broad name
0:33:00
like isn't there already
0:33:03
which already exists
0:33:05
f
0:33:07
i o
0:33:08
yeah that's cool though
0:33:11
let's see
0:33:13
nice this is pretty awesome man yeah
0:33:17
welcome to social media for
0:33:19
developers only ah interesting
0:33:24
yeah
0:33:27
brilliant
0:33:30
oh yes um then you're gonna replicate
0:33:32
this code
0:33:33
okay yes i'm gonna
0:33:36
get get your code and it's on
0:33:40
that branch isn't it
0:33:42
okay
0:33:47
all right i'll just add
0:33:49
my screen
0:33:52
if you can also keep an eye on the
0:33:54
checkers i'm
0:33:56
going to be diving in the code now
0:33:59
all we are
0:34:01
huh
0:34:02
i'll do that okay cool
0:34:04
uh
0:34:05
right i can't do that one so i need to
0:34:08
open it from there
0:34:10
right um i need to get rid of all these
0:34:13
things first make sure you want to stage
0:34:15
with much confidence no i don't want to
0:34:19
wow okay cool i'm gonna have to solve
0:34:22
this issue first
0:34:24
get
0:34:25
merged
0:34:28
oh
0:34:31
uh yeah
0:34:33
two slashes
0:34:35
all right and
0:34:38
i don't want any of my
0:34:40
changes
0:34:42
this am i master where
0:35:00
okay oh nice brilliant that's pretty
0:35:03
cool
0:35:05
so beginnings are more than dev.t.o
0:35:09
that's actually pretty cool
0:35:11
oh nice one
0:35:13
brilliant
0:35:26
first of all have to merge it and then
0:35:28
move on right yes sir incoming change
0:35:31
yeah don't exit this one don't accept
0:35:33
this one because that's your
0:35:35
um table name
0:35:37
that needs to be yours
0:35:39
ah okay cool right so accept current
0:35:42
change
0:35:45
except incoming change
0:35:47
yes
0:35:49
no what what
0:35:51
i thought that was let's do control x
0:35:53
that's fine
0:35:55
what is it
0:35:57
that i mean that
0:36:00
incoming current change
0:36:03
is bored yeah this is the one i want
0:36:05
except current change isn't it
0:36:10
hang on i need to go back and start from
0:36:14
the first one that's not the first one
0:36:17
go up yeah as in uh yeah so current
0:36:21
change
0:36:23
literally the same
0:36:25
blow it except mine yeah because the
0:36:28
board id is global now
0:36:30
yeah yeah
0:36:32
so
0:36:33
the current change yeah this one or this
0:36:37
one good one
0:36:40
incoming change
0:36:45
[Music]
0:36:48
um
0:36:49
except
0:36:50
the incoming one because we used find
0:36:52
in my one and we don't have the for loop
0:36:56
uh yeah yeah true
0:36:59
incoming and then current change
0:37:02
this one or incoming change
0:37:07
this one
0:37:09
board id
0:37:11
yeah current change
0:37:13
yep that would be it
0:37:16
then
0:37:19
that
0:37:20
one then just
0:37:23
just accept all the incoming changes
0:37:27
uh also delete board id from 1998
0:37:34
it's already coming in line number 110
0:37:36
yeah so
0:37:38
we
0:37:39
so why do we delete it okay cool because
0:37:42
it's already
0:37:43
yeah
0:37:45
and there's a reason why it's in the try
0:37:46
block yeah
0:37:49
yeah true
0:37:51
so accept incoming change right yeah
0:37:54
just accept i guess accept all of them
0:37:57
change
0:37:59
accept incoming change
0:38:03
something coming change
0:38:06
except current change incoming change
0:38:09
yeah
0:38:10
incoming change
0:38:15
okay cool
0:38:19
so i'm in master at the moment
0:38:24
what
0:38:27
did you pull it from death
0:38:30
no because my master isn't up to date
0:38:34
actually don't worry about it
0:38:36
i'm gonna have to do it in that way
0:38:40
uh okay
0:38:41
[Music]
0:38:43
what was
0:38:44
that
0:38:46
what is that come on called
0:38:48
mergeable
0:38:52
okay let's check out
0:38:57
[Music]
0:39:08
okay well so i'm there now
0:39:14
um all right
0:39:16
so we wanted to unlock on
0:39:19
guest specific
0:39:22
you know
0:39:25
we needed to delete a note
0:39:33
so if we have this one then we supplies
0:39:38
that one and then if we
0:39:41
create another one new
0:39:45
board
0:39:49
notes
0:39:52
all right
0:39:55
and then if we um
0:39:59
so all the
0:40:01
existing
0:40:05
the rest of the
0:40:11
things so that one
0:40:14
inputs is equal to how do we um
0:40:18
do that
0:40:20
look
0:40:21
um
0:40:23
copy all the other objects that i in the
0:40:27
right into a new one
0:40:31
copy
0:40:36
make
0:40:37
[Music]
0:40:40
make a new
0:40:43
phone
0:40:46
and
0:40:48
update it
0:40:55
ah here we go
0:40:57
how to extend existing
0:40:58
within our no
0:41:00
we need from
0:41:02
the from set method creates new shallow
0:41:04
copied array instance from an real
0:41:08
like that
0:41:09
so what do we have
0:41:11
from
0:41:12
huh
0:41:14
what does this do again um right
0:41:16
it creates a new shallow
0:41:20
copied
0:41:21
array instance from an array
0:41:25
like of
0:41:26
literal objects
0:41:28
but don't we need a deep copy
0:41:32
wait i'm actually doing copy
0:41:35
there are two types of copies right like
0:41:36
shallow copy and deep copy
0:41:38
i didn't know that
0:41:41
yeah it's just that um
0:41:43
the different comes down to like social
0:41:46
copy constraint a new click compound
0:41:48
object
0:41:49
i don't know if that makes sense
0:41:51
um
0:41:53
what's that compound object
0:41:56
is this that in a shallow copy you
0:41:58
insert references
0:42:00
but in a deep copy you actually um
0:42:02
recursively insert
0:42:05
on the objects
0:42:06
ah
0:42:07
so
0:42:08
you can search the meaning i think it'll
0:42:10
be pretty um like
0:42:12
useful
0:42:13
in in general
0:42:14
afterwards just do deep deep copy versus
0:42:17
sell a copy
0:42:26
you probably stores copy of the object's
0:42:29
values shadow copy reflex changes made
0:42:34
to the new
0:42:36
object in original
0:42:39
i didn't get
0:42:42
that so breath which is
0:42:45
shallow is this one so thinking so the
0:42:48
free tr
0:42:50
reference with your object as a root
0:42:52
node
0:42:56
all right
0:43:03
this is a and this is b so this is a
0:43:07
close b
0:43:09
wow this is um
0:43:23
yeah
0:43:25
so if you've seen the first one shallow
0:43:27
copy there you are a and b
0:43:30
um
0:43:31
and
0:43:32
the head of array a
0:43:34
is assigned to
0:43:36
with yeah the head of array b is
0:43:39
assigned to head of area here so
0:43:40
basically heads are
0:43:42
like just a memory address
0:43:45
is being assigned to a
0:43:47
so that they both become same
0:43:50
does that make sense
0:43:52
do you see that do you see the red line
0:43:54
yeah that represents the head of both
0:43:56
the arrows you know how arrays are
0:43:58
stored in the memory right like yeah
0:44:00
yeah
0:44:01
the the first element has been like
0:44:04
referred
0:44:06
like if you do
0:44:08
in java um or any other object-oriented
0:44:12
language if you just print the array it
0:44:14
will give you the address of the first
0:44:17
element
0:44:20
yeah yeah yeah so
0:44:23
this is how it's referenced in um
0:44:26
shallow copy in which this uh
0:44:28
the heads are made the same
0:44:31
so the addresses are made the same but
0:44:33
if you go in the deep copy
0:44:35
there are two arrays
0:44:37
and
0:44:38
each one is assigned
0:44:40
individually
0:44:42
like each element of the array
0:44:44
is assigned individually
0:44:47
all right right so we need a deep copy
0:44:51
then yes and if you look at it
0:44:54
if you make in any change in the b array
0:44:58
like let's say
0:44:59
we change b at one to something else
0:45:02
it will reflect in a array as well like
0:45:04
in shallow copy in shallow copy
0:45:06
indeed
0:45:08
right right right right i see
0:45:11
yeah so we definitely need a deep copy
0:45:14
then
0:45:29
i'm just reading this that it would
0:45:31
actually duplicate everything
0:45:34
yeah so that's why we want right like we
0:45:35
don't you want a totally new area
0:45:38
yes
0:45:41
active copy is a
0:45:43
calculation of two pleasure with all of
0:45:45
this
0:45:47
right uh-huh
0:45:49
cool so how do we do this now um
0:45:59
so in here
0:46:02
we would say
0:46:04
uh
0:46:09
whatever we've got for our board
0:46:13
yep
0:46:14
note
0:46:16
array at the moment
0:46:19
as in after
0:46:20
the suppliers we want to assign
0:46:22
everything to
0:46:24
new board
0:46:26
nodes
0:46:27
yeah
0:46:28
so how about if we do
0:46:30
this
0:46:33
this work
0:46:38
let's assign everything to this
0:46:52
this
0:46:54
fail no
0:46:59
i'll try this
0:47:01
oh we don't
0:47:02
zoom something else
0:47:04
okay
0:47:05
yeah
0:47:07
i don't know if it's gonna work well all
0:47:10
we can do is try and see if it works
0:47:16
um
0:47:22
right
0:47:25
and you're not assigning it yet
0:47:28
to
0:47:29
you're not assigning it to board board
0:47:31
notes
0:47:42
then you're not you're not actually
0:47:43
assigning it
0:47:44
you made a new variable
0:47:48
i need an
0:47:49
another energy drink
0:48:07
we don't need that third variable though
0:48:09
but i guess that's fine just let's just
0:48:10
try it for now
0:48:44
please compare your version with the
0:48:46
file contents
0:48:48
no right what
0:48:51
why didn't he tell me this before
0:48:56
oh
0:48:58
compare right
0:49:00
so which one is
0:49:02
my one
0:49:08
what oh okay this must be
0:49:12
oh no no no no no i need to stop him
0:49:21
the
0:49:23
the new guy
0:49:25
yeah
0:49:26
he's actually
0:49:28
making these changes as well
0:49:30
on the same branch
0:49:32
is it on death
0:49:34
apparently
0:49:37
yeah just don't accept it
0:49:42
i need to stop him from doing this
0:49:49
thing is i can't even do that
0:49:53
uh what's this
0:49:56
discard your changes and revert to file
0:49:58
content use your changes and over our
0:50:01
file content yeah
0:50:04
that's it
0:50:07
there you go
0:50:09
[Music]
0:50:25
having dinner
0:50:27
sorry
0:50:28
having dinner
0:50:30
dinner oh i haven't had it yet have you
0:50:34
yeah i've had it
0:50:36
but i don't need my water so i'll come
0:50:38
back uh i had
0:50:41
i had
0:50:44
what did i have
0:50:49
i had fish
0:50:51
steamed veggies
0:50:53
and rice
0:50:54
and
0:50:56
fernando's sauce on it i'll be back
0:51:30
i'm back
0:51:33
oh
0:51:34
honestly i can't wait for my packages to
0:51:37
come
0:51:39
i really want to use my
0:51:41
macbook pro for everything but at the
0:51:43
moment i'm just using it for
0:51:45
programming
0:51:47
yeah
0:51:48
know what you mean
0:51:50
okay all right all right cool so i'm
0:51:53
gonna do that
0:51:56
open on my
0:52:14
uh
0:52:26
cool yo
0:52:27
update successfully up wow
0:52:31
up there ran successful already
0:52:34
nice one
0:52:35
brilliant right focusing focus
0:52:43
all right that's
0:52:45
bored
0:52:49
do that one
0:52:52
not
0:52:54
okay post
0:52:57
body
0:52:58
roll jason
0:53:03
single note
0:53:15
one
0:53:22
two
0:53:23
i think i kind of know what to do now
0:53:25
ready
0:53:27
okay
0:53:28
i'm just gonna try it
0:53:53
okay so i'm one two three and now if i
0:53:57
delete note 3.
0:54:10
okay oh no
0:54:15
all right that doesn't do it
0:54:19
all right by the way my
0:54:21
my thing didn't work
0:54:23
yep um like that's how good
0:54:26
i'm just
0:54:29
oh what's the update expression
0:54:34
yeah okay look at my screen um i'll
0:54:36
share my screen
0:54:39
so i think what we need to do is we
0:54:41
already did it
0:54:43
already
0:54:46
uh we can't just delete it we have to
0:54:47
use the update
0:54:50
um
0:54:52
if you know what i mean you know what i
0:54:54
mean um
0:54:55
i'm just feeling this dumb as in why
0:54:58
didn't
0:55:00
it's a real
0:55:01
thing as in just upload the array
0:55:04
simple's name
0:55:05
yeah
0:55:06
so we we can't just do it right like we
0:55:08
have to update
0:55:10
so i made this query um
0:55:13
if you find the note id
0:55:15
and you splice it
0:55:18
table key is equal to board id board id
0:55:21
update expression is set board id is
0:55:23
equal to now i need to figure out
0:55:25
what should be here because it's an
0:55:27
array
0:55:39
[Music]
0:55:43
i'm gonna have
0:55:45
something for you
0:55:49
right
0:55:51
and
0:55:52
i don't know
0:55:54
maybe
0:56:01
yes i just want to update the array
0:56:03
right like
0:56:04
yeah
0:56:05
to update
0:56:08
an array
0:56:10
see
0:56:12
this one let's send you
0:56:14
a link
0:56:19
[Music]
0:56:23
oh
0:56:24
so this guy
0:56:27
has done it all
0:56:33
you're saying you choose a string set
0:56:36
are you looking at the one which says
0:56:39
update item in dynamodb
0:56:44
yes
0:56:46
so i'll see my screen yeah one sec
0:56:53
did that come true
0:56:58
that's fine nothing
0:57:14
okay so these guys are struck that's
0:57:17
fine that's all good
0:57:20
so you updated the code
0:57:24
it's updated expression is
0:57:28
the dxp i don't know what that is
0:57:34
list append
0:57:40
oh
0:57:44
oh okay so he just did authors is equal
0:57:46
to
0:57:49
what is his
0:57:51
so this is the author
0:57:53
oh sorry
0:57:54
so this is the book book struct
0:57:57
and he's inside the book
0:57:59
um right
0:58:01
and in update expression he did
0:58:05
his update expression was set title this
0:58:08
um photo to this
0:58:11
so we just assigned it
0:58:13
easy
0:58:15
um
0:58:17
authors comma test i don't know what
0:58:20
that means
0:58:25
now this isn't the one which is not
0:58:27
working
0:58:29
um let's see
0:58:32
and if that issue is about updating an
0:58:34
entire array using a data item yep
0:58:37
solving similar problems but i wanted to
0:58:39
explore it because
0:58:41
my own there's no much to find without
0:58:43
updating arrays with dynamod and us
0:58:46
okay so you want to update your author's
0:58:49
array along with
0:58:51
titles say
0:58:53
okay
0:58:54
so you want authors to look like this
0:58:56
yep
0:58:57
that's fine
0:58:58
um i would run a for loop which would
0:59:02
look like
0:59:03
yep so he runs from all the authors
0:59:09
and
0:59:10
okay he just basically constructs
0:59:13
a mac
0:59:15
um it's actually an array only
0:59:18
oh yes the
0:59:20
an array is
0:59:22
is pushing a map object
0:59:25
oh yeah right yep
0:59:26
right that makes sense so you just need
0:59:28
a map
0:59:29
then we prepare an update
0:59:32
i just want to see what he did to append
0:59:34
the map and that's what i mean
0:59:41
what's a u
0:59:44
a
0:59:49
so he made a variable a u
0:59:52
i don't know what l means what does l
0:59:54
mean here
0:59:56
l means length
0:59:58
probably
0:59:59
on
1:00:00
no need comments
1:00:03
list this is string yeah yeah um
1:00:06
[Music]
1:00:07
this is that's a map object
1:00:11
no that's ph can't be map object
1:00:14
it's a phone number
1:00:16
ph oh that's photo right right
1:00:20
that's media that's me obviously ah
1:00:23
media yeah i'm checking i'm just gonna
1:00:25
have a look
1:00:42
their data types
1:00:48
right so
1:00:50
yeah number is fine we need to see a
1:00:52
list
1:00:54
uh not related items
1:00:57
there's an array somewhere
1:01:04
that doesn't work
1:01:15
yeah i think
1:01:17
yeah we need to do l
1:01:19
hello
1:01:21
but this guy has a map object for
1:01:23
everything
1:01:24
i don't know why
1:01:42
one second
1:01:45
let's just try this
1:01:48
um
1:01:49
update
1:01:50
expression attribute
1:01:52
all right
1:01:58
okay
1:02:00
yes
1:02:02
i'm just making a screen big one give me
1:02:04
one second
1:02:09
is it big enough can you see
1:02:12
yeah
1:02:15
okay
1:02:17
um
1:02:18
this shouldn't be
1:02:22
instead of
1:02:23
[Music]
1:02:25
deleting i know with one method and then
1:02:28
using another method to updating the
1:02:30
array why not
1:02:32
why don't we just um delete the
1:02:36
note straight from the database
1:02:39
how can we do that
1:02:43
by using the
1:02:46
delete on the array
1:02:49
in dynamodb using doclined
1:02:53
straight away
1:02:55
oh you know do that
1:02:57
yeah
1:03:00
yeah just i'll try and
1:03:03
check how that goes
1:03:05
yep
1:03:10
so say we already have
1:03:13
these one no no
1:03:21
deleting it
1:03:22
so if we do we already have
1:03:26
this
1:03:28
if we do all actually i don't want to
1:03:30
delete that one
1:03:32
just delete this
1:03:36
i
1:03:37
might need to come back to that one so
1:03:39
you know how the delete function for
1:03:42
the board was
1:03:45
yes it was using delete
1:03:49
yes
1:03:52
in that way
1:03:57
oh
1:03:58
no no no hang on hang on
1:04:00
we can use the update function
1:04:03
or
1:04:04
do it
1:04:05
delete on there
1:04:08
like how how will you get to the board
1:04:10
using nodes using params
1:04:13
that's my question
1:04:17
in this way
1:04:23
that's getting you to the board
1:04:25
yes
1:04:26
but we can also instead of this paul we
1:04:30
can set
1:04:31
the
1:04:32
notes
1:04:35
just live with me for a sec
1:04:38
yep so um try and do one thing that's in
1:04:42
my mind
1:04:46
if i do
1:04:48
i don't need that one i need this one
1:04:50
yet yeah
1:04:52
so you find params again
1:04:56
this one
1:05:00
i press my table yeah that's fine
1:05:03
then if i do
1:05:06
how was i doing the notes yeah set notes
1:05:10
oh they're then
1:05:13
uh we've already
1:05:15
done this
1:05:17
the list appending
1:05:20
yeah which is the online
1:05:23
188.
1:05:24
line number one idiot
1:05:27
uh-huh
1:05:28
yeah see this
1:05:34
yeah so what we
1:05:40
in this one we're updating oh no isn't
1:05:44
it now we're posting a note yeah us
1:05:48
sorry yeah append
1:05:50
post so
1:05:52
we can just change the whole array here
1:05:54
or maybe let's try our way first i think
1:05:56
that sounds easier
1:06:09
i don't really know how
1:06:12
with the exact thing as in the
1:06:15
hang on a minute
1:06:18
a specific note i'm lost in my own
1:06:22
in our own code
1:06:24
wow
1:06:25
delete a particular note yeah here we go
1:06:28
cool
1:06:28
so
1:06:29
one thinking that we could do
1:06:32
this
1:06:38
um
1:06:39
set
1:06:40
board notes
1:06:44
and what was that
1:06:45
equals
1:06:49
to list it must be a function that
1:06:54
removes it
1:06:59
so you're doing the same thing you're
1:07:01
updating it only
1:07:03
yeah
1:07:04
are you not deleting it
1:07:16
i was supposed to really say yeah i was
1:07:19
posting people
1:07:21
but like i don't think you can right
1:07:24
because
1:07:25
how will you get to the notes like it's
1:07:27
not a
1:07:29
it's not a
1:07:31
primary key
1:07:34
yeah but we've got this
1:07:37
note id to use
1:07:40
this id to actually
1:07:43
delete the notes
1:07:45
all right okay let's try that yep
1:07:56
you know what's the time
1:07:58
huh
1:07:59
check the time
1:08:01
oh
1:08:03
seriously
1:08:06
oh my goodness egg my opponent is gonna
1:08:08
kill me again
1:08:14
my passion comes first
1:08:17
just hope she's not watching this thing
1:08:20
she is in the
1:08:22
other studying for her
1:08:26
cpa exam
1:08:27
oh she's doing cpa that's pretty cool
1:08:29
yeah
1:08:32
uh
1:08:34
all right i need to get a handgun on
1:08:37
mine on these this code all right here
1:08:40
we go
1:08:41
clear particularly no from the board yes
1:08:43
okay here we go perfect
1:08:45
so if i do this
1:08:50
notes and
1:08:52
i would say that
1:08:55
i would need the note complete as in the
1:08:59
complete note
1:09:06
out and
1:09:09
oh this wouldn't work would it
1:09:13
because
1:09:14
i was thinking that here if i can just
1:09:17
delete the entire
1:09:18
note from this array
1:09:22
how would you do it
1:09:28
and you can make it null
1:09:30
if that helps
1:09:46
nice then you put
1:09:49
that index
1:09:52
and
1:09:56
and then we do
1:10:01
one
1:10:05
and
1:10:07
yes this one
1:10:10
this work
1:10:14
and then
1:10:28
yeah that was my ques that that should
1:10:31
be my question to myself
1:10:35
no that's not good
1:10:40
yeah here we go
1:10:42
first
1:10:54
why would i do this
1:10:57
wake up saying wake up
1:11:09
oh no no no no no it won't work it won't
1:11:11
work on two
1:11:13
i'm not
1:11:14
things i'm i'm rushing things now
1:11:17
well just shouldn't
1:11:19
because of this
1:11:24
because of this try catch as you were
1:11:27
nicely updating
1:11:29
calling the update command
1:11:32
so we can just go up
1:11:35
yeah
1:11:37
yeah online number
1:11:39
just 195 just copy that
1:11:45
yeah do that
1:11:47
i want to do this both
1:11:52
okay if
1:11:55
yeah and then if that's the case
1:11:59
then uh do this
1:12:01
[Music]
1:12:04
and params one
1:12:09
on the floor do it outside the for loop
1:12:14
where is my energy drink
1:12:25
what's the
1:12:26
238 line curly braces for
1:12:29
i don't think they should be there
1:12:31
2 32 3
1:12:33
8
1:12:34
2 3 8
1:12:38
four
1:12:39
no
1:12:41
ah
1:12:45
before this yeah
1:12:48
let's have a read okay so board you're
1:12:50
getting a board items that's fine um
1:12:52
you're getting the note id
1:12:54
creating parents one as table top table
1:12:58
yep make it global
1:13:00
um
1:13:02
right key condition expression
1:13:03
expression
1:13:04
attribute value
1:13:07
oh
1:13:09
okay yeah that's fine
1:13:12
yep
1:13:13
um i'll wait and you're doing an update
1:13:16
you're promising it
1:13:18
change the message on line number 238
1:13:22
delete it
1:13:26
yep and uh delete line number 239
1:13:33
okay happy
1:13:35
yeah
1:13:39
let's see
1:13:40
if my
1:13:43
brain is really working
1:13:46
[Music]
1:13:49
oh wow this is speed
1:13:52
hmm
1:14:13
i really need a haircut to be honest
1:14:16
yeah everyone knows
1:14:23
deploy it
1:14:28
i think i'm gonna text um
1:14:32
the new team member then make sure you
1:14:35
make your own branch
1:14:36
and then
1:14:37
and then do it
1:14:39
yes
1:14:41
actually what we should want to do is
1:14:46
we should probably get rid of
1:14:52
what no i want
1:14:54
no no don't worry about it this is
1:14:56
completely
1:14:57
off topic
1:14:59
yeah we can discuss that obviously yeah
1:15:02
cool
1:15:03
right um so now i'm gonna get
1:15:07
get all the boards
1:15:10
i only have one
1:15:18
actually i have two
1:15:20
i'm rich
1:15:27
first get the note oh you're trying
1:15:29
yeah
1:15:31
yeah
1:15:33
and one
1:15:35
a little
1:15:36
bit okay
1:15:40
delete
1:15:41
note
1:15:45
i knew it wouldn't work for some reason
1:15:49
she was there
1:15:51
huh see what's there
1:15:53
yeah that's how what that's exactly what
1:15:56
i'm gonna do now
1:15:58
[Music]
1:16:04
i'm in serious trouble
1:16:31
blazing fast
1:16:40
oh yeah
1:16:41
look at that i'm flying
1:16:45
nice
1:16:50
arrow type
1:16:51
machine required key in params wow
1:16:55
oh yeah
1:16:57
wow zayn well done
1:17:01
well done saying you're not you don't
1:17:03
deserve a promotion
1:17:07
um just copy the key from up
1:17:11
yeah there you go that's okay
1:17:13
number
1:17:16
um
1:17:17
269
1:17:19
let's copy and put it there
1:17:21
maybe it's an expression there we go
1:17:26
no no no no this is not the one
1:17:41
the primary key how it
1:17:43
right
1:17:44
yes that's where i messed up
1:17:47
congratulations
1:17:52
so this would be the primary key
1:17:59
no one not there
1:18:02
okay
1:18:03
all right cool
1:18:05
key condition expression and then update
1:18:07
expression should be that one
1:18:09
yeah
1:18:17
cold
1:18:20
let's check this
1:18:22
okay
1:19:00
programming can be this addictive
1:19:02
sometimes
1:19:03
yep
1:19:05
this is a weekend episode not though
1:19:09
that means that
1:19:10
[Music]
1:19:12
we do one day
1:19:14
on the weekend
1:19:16
for one hour
1:19:19
yeah we can do that
1:19:21
all right there we go so i'm gonna
1:19:24
delete this again
1:19:26
actually no no no no
1:19:29
don't delete this again
1:19:31
do we yeah yeah we do
1:19:37
you know what
1:19:39
sorry um don't think so i worked
1:19:46
missing your quiet kicking
1:19:49
[Music]
1:19:50
just really that one two yeah
1:19:54
missing record kikin params did you did
1:19:57
you try it
1:19:58
i did
1:19:59
yeah oh you didn't put the key
1:20:02
where's it for the key
1:20:04
you just build the same code
1:20:06
no no no no no no it's there
1:20:10
he key condition
1:20:12
no keys
1:20:15
why key
1:20:17
oh my god okay go up i'll tell you what
1:20:19
to do
1:20:21
oh yeah stop uh copy line number 185
1:20:26
till 187 185
1:20:29
i'm
1:20:30
ah all right that's fine i'm gone
1:20:35
i'm gone
1:20:41
my goodness zayn
1:20:43
you don't need a key condition
1:20:46
you need the key how you match the
1:20:47
primary key to your primary key
1:20:52
don't tell anyone i did this
1:20:54
i'll tell everyone it
1:20:57
saying is online stream it's all there
1:21:08
come on dane come on
1:21:13
what
1:21:35
one sec i'll be back one second
1:21:38
cool
1:21:46
uh
1:21:58
okay
1:22:46
do
1:22:58
all righty how'd you go
1:23:00
let's do testing
1:23:06
is the board
1:23:09
this is the note i need
1:23:15
it won't give that at all for sure
1:23:18
that's a given
1:23:26
but i didn't say it won't give any error
1:23:30
this is programming i love it
1:23:40
come on come on
1:23:43
all right let's think sarah
1:23:45
we can't do that you know the expression
1:23:48
of
1:23:49
what i was thinking to do okay we'll
1:23:51
have to come back to tomorrow but we
1:23:52
know what to do
1:23:54
definitely
1:23:55
cool
1:23:57
let's do that
1:23:58
we will come back to tomorrow
1:24:06
[Music]
1:24:12
what are you trying to do
1:24:13
i'm still blurry
1:24:16
okay
1:24:17
now it's fine
1:24:19
all right guys thanks for
1:24:22
tuning in one more episode done
1:24:25
with a good progress hey andre what's
1:24:28
happening he's a gang hey i'm sorry
1:24:32
we just starting the stream so
1:24:36
we were
1:24:37
one and a half hours
1:24:39
late today so we just afford to do a
1:24:42
bill over time in that way now
1:24:50
because that's convenient to you that
1:24:52
helps
1:24:54
that helps oh goodness oh
1:24:57
andre you have no idea what you're
1:25:00
saying you're gonna get me killed
1:25:04
yeah i think we have
1:25:06
information which is gonna contrary that
1:25:09
yeah
1:25:10
yeah
1:25:12
all right guys and thanks a lot for
1:25:15
tuning in good to have you and honda
1:25:18
thanks for making it to the last minute
1:25:21
we really appreciate it
1:25:23
and
1:25:24
hopefully we'll see you guys tomorrow's
1:25:27
same
1:25:28
same place
1:25:30
same time
1:25:33
and
1:25:34
different actually the same task
1:25:37
same time
1:25:39
okay guys catch you later have a good
1:25:41
night good night