boarzVideosClipsStatistics

🎬If statements are bad practice

⏪
🎦
⏩
Featured in#️⃣EP 078 - 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:01
[Music]
0:00:23
alrighty welcome back everyone welcome
0:00:25
back to another episode of build break
0:00:28
and fix um first all those people are
0:00:31
new here we are of course
0:00:33
that means we are a team of two
0:00:35
developers
0:00:36
from melbourne australia um and
0:00:39
currently we are working on a project
0:00:40
which adds
0:00:42
persistent storage or basically a login
0:00:44
functionality to a current
0:00:46
representative project
0:00:47
called scramble.ca and also we were
0:00:51
having some issues with the with going
0:00:53
live but i think i can see we got live i
0:00:55
got a message on my phone so saying
0:00:58
would you be kind enough to check it
0:01:00
cool thanks for that um if you are
0:01:02
someone who is interested in
0:01:06
stacks revolving express.js
0:01:09
or fetch apis a lot of aws serverless
0:01:14
github
0:01:15
postman or
0:01:18
just things and scrum methodologies in
0:01:20
general then you're in the right place
0:01:22
um you're going to be seeing a lot of
0:01:24
more of that once you continue with us
0:01:28
um
0:01:29
but yes we are sure it will be fun
0:01:32
um
0:01:33
so yeah yesterday we
0:01:36
worked on correcting the board name
0:01:40
validations that meant that
0:01:42
boards cannot be more than 30
0:01:46
characters in length or
0:01:48
they cannot be anything except
0:01:52
alphanumeric characters and spaces if i
0:01:54
remember yes
0:01:56
um
0:01:57
so if you don't know what board name is
0:01:58
don't worry um
0:02:00
once you join us you'll get to
0:02:02
understand the whole
0:02:03
um architecture of the
0:02:06
application we are building um we're
0:02:09
going
0:02:09
really slow so that our users and our
0:02:13
our viewers would are able to
0:02:15
join us through this process of
0:02:17
um
0:02:18
doing a project
0:02:20
so yes um how do you feel
0:02:23
we are feeling pretty fast and
0:02:26
i got my ethernet cable and at the
0:02:29
moment i'm actually
0:02:31
wired up straight from the road and it's
0:02:33
just amazing
0:02:34
oh i want to see your latencies
0:02:38
yeah so i was actually really
0:02:41
curious about that myself
0:02:43
but it
0:02:44
turns out that it didn't really improve
0:02:46
it's still the same but i was still
0:02:50
share my screen and um
0:02:52
yeah
0:02:54
as in i was i was kind of hoping for a
0:02:57
bit of an improved one but it didn't
0:02:59
really happen
0:03:00
and i was like um all right cool if it's
0:03:05
like a truly viral wireless
0:03:08
connection
0:03:09
then the latency should be near zero
0:03:12
um
0:03:14
not necessarily
0:03:15
wireless or wired
0:03:18
sorry if i had yeah yeah
0:03:21
yeah
0:03:22
um ladies you shouldn't be near zero
0:03:24
um hey kidduff um please get some water
0:03:28
in
0:03:29
your gallet
0:03:30
girls
0:03:36
[Music]
0:03:38
all right i'll just do a speed test
0:03:42
again
0:03:55
that's pretty good like uh
0:04:01
yeah
0:04:03
and
0:04:03
[Music]
0:04:04
upload speed is all right i would say
0:04:10
see this
0:04:12
24 ms
0:04:15
that's interesting
0:04:17
so it didn't change
0:04:19
and i was kind of hoping for it to come
0:04:22
below 20 at least
0:04:27
but um i did a check on
0:04:30
on google that um this said that it
0:04:32
depends on the type of connection you
0:04:35
have and i've got the dsl
0:04:38
connection and for that typical
0:04:42
latency
0:04:44
their fracking is
0:04:46
minimum of
0:04:47
24
0:04:49
and it goes up to 62 to 63.
0:04:53
right
0:04:55
maybe this latency isn't on your end um
0:04:59
it's just the connection provider's
0:05:02
general latency right right right say
0:05:06
do you know how to check um
0:05:09
on my end
0:05:12
i mean if this latency is
0:05:15
across like this is like exact latency
0:05:18
across every device of yours
0:05:20
um
0:05:21
then it's probably not on your end
0:05:23
because there should be some difference
0:05:24
in the mobile
0:05:26
yeah yeah
0:05:28
and
0:05:29
on your own max connection so
0:05:31
maybe have a look around that if it's
0:05:33
around 22 to 25 then it's just not your
0:05:37
fault right right right i'm just doing
0:05:40
this same on my mobile see what happens
0:05:44
but
0:05:45
anyway we will come back on track and
0:05:48
i'll keep you guys up
0:05:50
posted when it finishes on the mobile
0:05:54
right so yes today we did um i think
0:05:58
that one was on post board was done
0:06:01
that one
0:06:03
yep okay
0:06:08
yeah i need to do it from scratch
0:06:12
uh looks
0:06:14
like
0:06:16
i'm pretty sure i saved it
0:06:20
oh really oh oh yeah
0:06:23
i'm pretty sure
0:06:25
i think you
0:06:27
forgot to click save that could be the
0:06:29
case
0:06:30
maybe
0:06:32
that's fine
0:06:33
that's when they're only two tickets
0:06:36
that's not a big all right on the mobile
0:06:38
it shows
0:06:39
26 right okay yeah then this is not not
0:06:43
a thing you can control yeah
0:06:46
right
0:06:47
i wonder what i can't control about
0:06:49
latency though i'm really curious oh i
0:06:52
wanna basically zero latency which is
0:06:55
kind of impossible
0:06:57
um yeah that's impossible
0:07:00
uh right
0:07:02
so
0:07:03
we did
0:07:05
this
0:07:05
this is already done
0:07:10
limit come on zayn
0:07:16
dory littlefield had two fridays he says
0:07:19
happy friday again
0:07:20
[Laughter]
0:07:24
done happy friday she's your tory
0:07:28
littlefield return board it should be
0:07:31
consistent so
0:07:32
we need to just change
0:07:35
this in the to-do method so
0:07:38
i'm gonna open up
0:07:40
you didn't say click save again you
0:07:42
didn't click save oh my god
0:07:45
um
0:07:47
i did
0:07:48
no you didn't click subscribe
0:07:51
no it's if you close the tab it won't ah
0:07:54
right right right right right i see so
0:07:57
what happens is ah yeah that was my
0:08:01
fault then
0:08:02
yeah forgot to pray to save yeah cool
0:08:05
so
0:08:07
zero latency is only possible if you
0:08:09
convert all your if statements to
0:08:11
switches
0:08:14
and that shall be done
0:08:18
dude
0:08:19
i like gekko's um
0:08:23
we do some sort of challenge someday and
0:08:27
i don't know
0:08:28
we are happy to put this as our official
0:08:31
profile pic for a day
0:08:33
yeah
0:08:38
um in a few days
0:08:47
right i'm
0:08:48
i'm
0:08:50
so in the post board
0:08:52
we need to
0:08:54
uh
0:08:55
get our board id replaced with
0:08:59
we need to get our board id
0:09:01
consistent
0:09:05
please convert that if you are on 40
0:09:09
oh
0:09:10
on 40 line number 40.
0:09:13
okay cool
0:09:15
right so
0:09:17
okay what i'm gonna do is we can
0:09:20
actually do a ticket for rep
0:09:24
and we will be coming back i think i've
0:09:27
already got ticket for it i think
0:09:29
convert
0:09:30
switches
0:09:32
oh
0:09:33
no it was that one
0:09:36
i can't tell if everyone is serious
0:09:37
about this whole switch and if thing
0:09:40
i think uh i think they are
0:09:44
not
0:09:45
no no no no i think they are because i'm
0:09:48
from i know a couple of as in other
0:09:51
senior devs as well and they are
0:09:55
that
0:09:56
they're kind of highly
0:09:58
i wouldn't say
0:09:59
against but they don't recommend using
0:10:03
if statements
0:10:05
all right they highly recommend
0:10:07
switches because one they're easy to
0:10:10
read and second they made the code
0:10:14
they make the good
0:10:15
code
0:10:16
a look cleaner
0:10:18
okay
0:10:19
sorry okay
0:10:21
because this was like the first time i
0:10:23
heard about it or maybe it happened in
0:10:26
production i i'm not too sure
0:10:30
no that's cool
0:10:34
okay
0:10:36
that one's done so we will be coming
0:10:38
back to that
0:10:40
so i'm gonna
0:10:42
oh these brackets take extra actually
0:10:45
line
0:10:47
right um
0:10:49
focus on the actual thing zane
0:10:53
so where was the post yeah here we go
0:10:55
and we wanted to change the id of it
0:11:03
so when it creates the board it spits
0:11:07
out the id and that id we wanted to
0:11:09
change isn't it
0:11:11
yep
0:11:13
so update board
0:11:15
yeah this this is the one
0:11:20
shall we
0:11:21
say as board id
0:11:24
um you happy with that
0:11:27
yeah yeah yeah yeah just uh just do it
0:11:30
all standardized that's all yeah mm-hmm
0:11:34
what id board id
0:11:37
one case still write a switch
0:11:48
um yeah it's like the kind of like the
0:11:50
old news
0:11:51
just uh
0:11:53
that was between all us which didn't
0:11:55
post it on like this
0:11:59
oh yeah okay
0:12:02
oh where am i going cool
0:12:05
so that's done
0:12:09
okay
0:12:11
now where do we move on
0:12:13
post is all done
0:12:16
now i go to
0:12:18
delete
0:12:19
okay
0:12:21
deleting a board should not return
0:12:23
anything except 200 right
0:12:27
cool
0:12:27
so do this thank you sorry thank you
0:12:34
also i forgot to make that comment on
0:12:36
youtube dory i'll do it
0:12:38
after the stream
0:12:40
it's really important
0:12:42
about what
0:12:44
there was the command right which i was
0:12:46
telling tori ah okay
0:12:49
yeah so he asked me to make a comment on
0:12:51
that
0:12:53
right right cool
0:12:55
so deleting a board when it's deleted we
0:12:58
should not return anything
0:13:02
when it's done successfully
0:13:05
okay yeah
0:13:06
so 200
0:13:09
we're not returning anything anyway
0:13:14
the board is present yeah so i don't
0:13:16
know why that was there
0:13:22
deleting a boy should not return
0:13:24
anything except
0:13:27
i really want to test
0:13:29
this out
0:13:30
oh my my look at my internet
0:13:34
brother
0:13:35
i don't even catch my own internet
0:13:38
i wrote a comment on yesterday's video
0:13:40
to remind yeah i saw that that's what
0:13:42
i'm referring to
0:13:45
look
0:13:46
diagon alley
0:13:49
i remember you guys did a pronunciation
0:13:52
challenge
0:13:53
the other day
0:13:54
yeah
0:13:57
i think
0:13:59
if there was one person i i don't know
0:14:02
who it was but
0:14:05
they were like
0:14:08
they decided to pull pull my leg from my
0:14:10
accent
0:14:11
and everyone just followed them
0:14:14
i said
0:14:25
okay
0:14:26
and now you sound british
0:14:32
yeah
0:14:33
i guess why they were doing it now
0:14:38
right so what did i want to test uh
0:14:41
let's get all boards first
0:14:44
yep and uh it won't work because i've
0:14:47
got your no okay cool
0:14:51
so if i delete
0:14:53
this board
0:14:56
what do i get back did you did you get
0:14:59
pulled though
0:15:00
i did
0:15:02
did you push it to yours
0:15:05
uh
0:15:06
what do you mean push it's mine
0:15:08
did you build it again
0:15:10
then you could
0:15:16
right
0:15:17
right
0:15:18
saying
0:15:19
should have built it and then checked
0:15:22
um get your get your table name from
0:15:26
that place
0:15:27
yeah
0:15:29
not like i said from that place
0:15:33
i've just stored my devil name now
0:15:36
like um just in a text file
0:15:40
um
0:15:42
how much do i need first i
0:15:45
need to study foreign practitioner
0:15:47
search and developer search
0:15:49
cause feeling pretty lazy
0:15:52
or don't bother it just search i don't
0:15:55
need
0:15:56
i i would say
0:15:57
um it's not about the search it's about
0:16:01
uh i mean yeah exactly
0:16:03
[Laughter]
0:16:06
yeah gekko says you don't need search
0:16:08
has become a scam master
0:16:12
um yeah i guess it's about testing what
0:16:14
you know there's been like a lot of
0:16:16
conversation
0:16:18
why should people do search no not gonna
0:16:20
go into that if you
0:16:23
i mean yeah i know zen would support it
0:16:25
and i support it as well
0:16:27
no no
0:16:28
you haven't heard my answer yet
0:16:30
okay good
0:16:32
i was gonna say don't worry about says
0:16:35
just ring it man
0:16:36
that's your natural talent
0:16:39
in coding
0:16:41
yeah but that being said if you are
0:16:43
looking to get higher it's easier way to
0:16:46
tell your employer
0:16:48
okay that was a joke by the way yeah
0:16:51
by the way continue
0:16:53
you know then when people don't get that
0:16:55
joke it's called that joke i know that's
0:16:59
why i said
0:17:01
anyway just
0:17:02
just continue because it was a bad joke
0:17:04
i agree
0:17:06
uh get this says or become a kobold
0:17:09
programmer or or hear me out
0:17:12
hear me out
0:17:13
i was always there
0:17:15
all driving driving uber
0:17:26
probably hire say a limo
0:17:28
and go out on
0:17:30
friday and saturday nights or you're
0:17:32
going to become a millionaire overnight
0:17:34
or
0:17:35
or hear me out last option a story says
0:17:38
or become a java dev
0:17:39
[Laughter]
0:17:43
uh he's gonna love java
0:17:47
that's always there for you
0:17:52
very nice
0:17:54
okay i'm gonna just deploy
0:18:10
uh
0:18:38
okay are you deploying it
0:18:41
yeah
0:18:42
very nice deploying it now
0:18:45
excuse me if you had it
0:18:48
so good
0:18:52
what'd you have for dinner jen
0:19:01
uh i had
0:19:03
two pancakes with as in two chicken
0:19:06
breasts and cauliflower
0:19:09
little
0:19:10
less
0:19:11
all right okay yeah
0:19:14
you started with i had two pancakes and
0:19:17
i was like
0:19:19
visible confusion
0:19:29
actually just skipping all the compilers
0:19:30
and straight to writing machine code
0:19:32
much faster
0:19:34
development time yeah sure
0:19:40
yeah even tori has that question
0:19:42
is it two pancakes or two chicken
0:19:45
breasts and cauliflower
0:19:48
so each you can okay yeah that sounds
0:19:52
really confusing isn't it
0:19:54
i feel like you just had pancakes
0:19:57
yes yes so pancake uh the chicken
0:20:00
breasts were on the pancakes as pieces
0:20:03
and
0:20:04
the
0:20:05
was on the chicken breast
0:20:07
okay
0:20:08
yeah
0:20:09
if that makes sense now to be honest
0:20:11
when i hear pancakes the sweet ones come
0:20:13
to mind
0:20:15
no
0:20:17
they are wanting to have them but
0:20:19
they're really
0:20:20
sweet for me man i can't stand that
0:20:23
that's the reason i have maple syrup on
0:20:26
my screen
0:20:27
exactly
0:20:29
i've
0:20:30
got that as well i couldn't even stand
0:20:32
that there
0:20:35
really what this is that pancake is all
0:20:38
before
0:20:40
i don't think there's all the rip off of
0:20:42
pancakes
0:20:46
no that's not the one aussie brand
0:20:54
i mean pastries are pretty much really
0:20:57
all you know like chicken pastry oh
0:20:58
sorry meat pastries meat pies
0:21:06
the scottish food isn't it pies and all
0:21:09
that
0:21:10
sorry i missed it
0:21:13
as a squash
0:21:15
as in pies
0:21:17
yeah
0:21:18
but the meat price i guess um yeah okay
0:21:28
all right please board okay
0:21:30
what do we get when we delete the board
0:21:36
okay cool um so we shouldn't get this
0:21:38
one either
0:21:40
yeah
0:21:42
yeah
0:21:46
is that a
0:21:47
thing pancakes and chicken
0:21:50
would let you send cauliflower
0:21:53
you can
0:21:56
you can probably say it's an asian thing
0:22:00
because of cool and asian partner and
0:22:04
she really likes it and
0:22:07
she made it
0:22:08
but it was really tasty man really tasty
0:22:14
very nice
0:22:20
uh
0:22:21
no delete okay so we don't want to send
0:22:25
that
0:22:26
delete
0:22:39
no
0:22:43
i'm just gonna go get some water
0:22:47
oh
0:22:49
uh
0:22:50
delete
0:22:52
this okay
0:22:54
so if you don't have
0:22:56
this one why do we keep that one
0:23:01
params is this
0:23:03
case for present yes
0:23:09
um
0:23:11
so if we are sending this
0:23:16
we don't really need data then
0:23:19
if we're not using here
0:23:22
right okay
0:23:27
send what
0:23:29
justin bourne board delete
0:23:35
oh if i don't send anything back
0:23:38
and
0:23:40
don't send anything back
0:23:42
what would this do
0:23:46
in that way
0:23:49
um any
0:23:51
comments
0:23:53
uh
0:23:54
sounds good if you're
0:23:56
so good to me just
0:23:58
never heard of it okay cool tori i did
0:24:01
you ever find out what i see
0:24:04
cable was
0:24:06
um jack dev
0:24:08
not really i keep on forgetting to watch
0:24:11
the video that i'm tori littlefield
0:24:14
sent on this slack channel um i i will i
0:24:18
will be
0:24:19
watching it as in hopefully tomorrow and
0:24:22
let you
0:24:24
let you know
0:24:25
yeah
0:24:28
just been
0:24:30
visiting some
0:24:32
few
0:24:33
few things uh hopefully they are about
0:24:35
to be over as in
0:24:38
some of them tomorrow so i'll have a
0:24:40
slightly more time then
0:24:47
[Music]
0:24:58
um
0:25:03
[Laughter]
0:25:08
oh you bought it
0:25:17
unless i used to wrap my pancakes in
0:25:20
eggs with some tomatoes
0:25:23
very nice curry um sounds like a
0:25:27
bali thing to do
0:25:30
[Music]
0:25:31
i don't
0:25:32
like
0:25:32
small church though
0:25:34
this
0:25:36
yeah i ate
0:25:38
one tomorrow as in
0:25:41
when i was
0:25:42
probably around 16 or 17
0:25:46
raw one and i just
0:25:49
puked
0:25:50
i i don't know why tomatoes are i guess
0:25:54
i mean sure raw they're really really
0:25:56
bad like as a fruit
0:25:58
they're just disgusting
0:26:00
but in
0:26:02
uh mixed with other stuff it's pretty
0:26:03
good i guess
0:26:06
i say
0:26:07
yeah
0:26:08
my experience
0:26:09
was a bit different to that one and
0:26:12
after that
0:26:15
i don't think i've had any raw as in
0:26:17
those you know how the pus
0:26:19
slices of tomatoes and burgers and all
0:26:22
that
0:26:23
yeah yeah
0:26:25
i can't even have that
0:26:27
oh my goodness okay
0:26:31
very interesting
0:26:33
um
0:26:38
oh i'm sure sorry i
0:26:41
i
0:26:43
tried it and
0:26:45
it's
0:26:46
probably just personal preferences
0:26:50
that's true um
0:26:52
okay i've got the board
0:26:55
and
0:26:56
can't get the board
0:26:59
put this to it
0:27:01
let's check if this does it because we
0:27:04
don't want any
0:27:13
i think yeah
0:27:15
oh i remember shepherds by i don't know
0:27:17
if you guys have had that
0:27:19
ah
0:27:21
yeah i used to have them from calls as
0:27:24
well
0:27:25
really good really good
0:27:28
yeah
0:27:30
um right
0:27:32
so where is jira
0:27:37
okay um
0:27:40
seems
0:27:41
like this is not gonna happen
0:27:44
as in there will be at least an empty
0:27:47
object
0:27:49
coming
0:27:50
as the
0:27:51
response so i'm not going to waste
0:27:54
can you show me the first
0:27:56
can you show me for one second yeah
0:27:59
there we go
0:28:06
um
0:28:11
why is it returning an empty object
0:28:13
though
0:28:20
because
0:28:21
we don't have anything in this send
0:28:24
we don't have
0:28:26
anything in send for let's say patch as
0:28:28
well go to pad let's see what we have
0:28:31
done there
0:28:35
yeah hold on
0:28:37
how are we sending it
0:28:41
same thing
0:28:43
but in patch the anything we don't have
0:28:46
any empty object
0:28:54
do a patch and there's no empty object
0:28:57
there
0:29:06
well you already have the board id set
0:29:08
one i know i'm just checking the board
0:29:12
is actually there which is
0:29:18
yeah that's fine that was that one
0:29:22
okay
0:29:26
see this doesn't return anything
0:29:30
probably because it's saying that is
0:29:33
done and one means
0:29:36
no that's not one that's how postman
0:29:40
does line numbers
0:29:43
that's postman's line number
0:29:48
right okay i see
0:29:51
yeah
0:29:52
um so this doesn't actually return
0:29:55
anything but go to delete uh hang on a
0:29:58
minute
0:29:59
yep
0:30:01
because he's choosing
0:30:03
data
0:30:04
we're not doing anything with the
0:30:07
at all
0:30:08
yeah
0:30:09
can
0:30:11
uh did you declare a data object here
0:30:15
data objects
0:30:20
you didn't even declare it did we
0:30:26
put
0:30:31
did you declare it uh publicly no um
0:30:35
i'll have to check
0:30:37
i don't think
0:30:38
we did at all
0:30:41
what
0:30:42
how did you compile
0:30:44
how is it working then
0:30:47
later
0:30:50
there's a data in a space oh here we go
0:30:53
yes it was in
0:30:55
but that's in the get
0:30:57
yeah
0:30:59
get one that shouldn't really do
0:31:01
anything to that
0:31:02
mm-hmm
0:31:08
this is really interesting
0:31:14
anyway um
0:31:16
let's move on
0:31:19
anyway um
0:31:21
typescript yet i would probably delete
0:31:24
that
0:31:25
data thing
0:31:26
yeah yeah
0:31:28
because
0:31:29
i don't wanna
0:31:30
see what's happening
0:31:32
i'm really really surprised by that
0:31:35
data thing
0:31:36
probably
0:31:37
you know what might be happening
0:31:41
mm-hmm
0:31:44
if this is ghetto boards
0:31:47
i thought this
0:31:49
must have been
0:31:51
a global one but it isn't
0:31:55
no it's not
0:31:58
there's no present false
0:32:02
data
0:32:17
wow
0:32:24
anyways let me
0:32:26
try if removing that data it works
0:32:31
as in it gives at least something
0:32:33
literally impossible
0:32:35
okay i'm just gonna go through the code
0:32:37
which i have i wanna see what's
0:32:39
happening
0:32:40
anyone using typescript yet um
0:32:44
i am using it for my work
0:32:46
this is a real head scratcher guess who
0:32:49
said it
0:32:51
the wine only
0:32:54
yes
0:32:56
big man
0:33:01
okay
0:33:03
delete
0:33:09
there we go
0:33:11
and that was this one point the
0:33:14
hardboard id
0:33:16
is called present delete it
0:33:19
and then send the status that
0:33:28
so it's surely defined as lead because
0:33:31
it says any
0:33:35
[Music]
0:33:37
go to definition
0:33:39
but then it says no definition found
0:33:46
like it's saying no definition found but
0:33:48
it's not trying an error
0:33:56
yeah i don't know
0:33:59
you know what happens in the real world
0:34:03
if we experience this kind of a arrow we
0:34:07
just laugh
0:34:10
and
0:34:11
just if it's working and if it's doing
0:34:14
what we wanted to do
0:34:17
then we just move on
0:34:19
yeah but like i just want to learn
0:34:21
i know
0:34:23
yeah i'm just as in really conscious of
0:34:28
as in the pace of the project is
0:34:32
smells so what
0:34:35
i'm doing at the moment is moving on but
0:34:38
you can actually
0:34:40
stay at that step at your end and just
0:34:44
kind of
0:34:45
dig around and if you find anything
0:34:47
useful i would love to know what that
0:34:49
was
0:34:53
yeah i mean for for me like most of this
0:34:56
is for learning purposes so yeah um
0:35:06
[Music]
0:35:14
okay apparently if you don't
0:35:18
let
0:35:19
anything um
0:35:21
it'll still work
0:35:23
are you finding
0:35:24
um typescript karthik
0:35:27
it's it's pretty
0:35:28
similar um
0:35:31
yeah i mean it's it's pretty good
0:35:33
just uh
0:35:34
getting to work with data types and data
0:35:37
structures
0:35:38
again
0:35:39
that's
0:35:40
and just object orientation that's
0:35:42
pretty fun actually
0:35:44
um
0:35:46
yeah
0:35:47
like i like the whole idea
0:35:50
um in which in programming everything
0:35:53
interacts as an object and classes
0:35:56
um like just like a blueprint so
0:35:59
um or maybe it's just me i'm more
0:36:01
familiar with that like stinky job yes
0:36:07
the code around l
0:36:10
five 550
0:36:12
is raw sewage
0:36:14
what's l5 line 550 oh
0:36:18
can you show us line 550 then
0:36:35
studio if you do control five so which
0:36:39
would be mac command
0:36:42
f
0:36:43
as in control fn and
0:36:46
type no
0:36:48
actually i'll come to the afterwards
0:36:53
five
0:36:55
fifty
0:36:57
fifty
0:36:58
oh yeah yeah yeah um yeah we need to
0:37:01
uh uh i think we have to get for that
0:37:03
already
0:37:07
so
0:37:08
the fact that i did that earlier because
0:37:10
in video studio i if you press ctrl
0:37:14
g and then align
0:37:17
a line number
0:37:18
that you want to go to
0:37:20
it takes you straight to that line but i
0:37:23
just go i just got confused
0:37:26
i was thinking
0:37:28
i'm working
0:37:29
video studio still
0:37:31
then no time for that project
0:37:34
true
0:37:48
beverly
0:37:50
in that one right
0:37:52
so testing and delete is working
0:37:55
delete
0:37:58
does this work
0:38:02
okay so that was the problem you were
0:38:05
right
0:38:06
then data was there undefined
0:38:09
as in um
0:38:11
it wasn't properly properly defined
0:38:15
yes okay cool so let's update that one
0:38:19
this is done
0:38:21
or just open command
0:38:23
palette and type go to
0:38:26
or might just scroll to that line number
0:38:29
you know
0:38:30
that helps um we should delete the board
0:38:33
huh
0:38:35
oh it wasn't really in the board
0:38:38
it wasn't
0:38:40
that's why we added
0:38:42
it
0:38:43
i think so
0:38:45
ah right i think you may be right but
0:38:49
it does work to be
0:38:51
hang on i'm gonna post another board
0:38:54
and see what do i get
0:38:56
do you remember um i think it wasn't
0:38:59
working that's why we were laughing
0:39:02
yeah yeah
0:39:06
so get bored at the moment we have only
0:39:08
one board so if we delete this board
0:39:13
we should get
0:39:15
no boards at all
0:39:19
okay of course that that works
0:39:22
as well maybe it could be something with
0:39:24
the whole data thing only hmm
0:39:27
yeah you're right
0:39:30
now press save
0:39:31
there we go good boy zane
0:39:36
if you need a mouse
0:39:38
but in general or to scroll to a line
0:39:43
i can't use my computer without a mouse
0:39:45
i'm just saying uh
0:39:47
very day update board
0:39:50
did we do this right
0:39:52
update um
0:39:56
there was no
0:39:58
sort of validation implemented for
0:40:00
update board
0:40:01
well we repeated that yes
0:40:04
today didn't we
0:40:06
that was the board name
0:40:09
update4 didn't have any validation
0:40:11
really
0:40:14
yeah
0:40:15
update board
0:40:17
it has validation
0:40:19
i think it's missing some cases
0:40:22
um already
0:40:23
must be limited
0:40:28
right yes yeah okay of course so then
0:40:32
need some work on it
0:40:35
um
0:40:36
in the future i am thinking that we
0:40:39
we should as in
0:40:41
create just one validation method
0:40:45
and then put all the validation
0:40:47
method
0:40:48
into it
0:40:50
and then put one
0:40:52
class for
0:40:54
for validation and pour the methods in
0:40:58
here and just reference it
0:41:00
that way
0:41:04
the whole concept is called an
0:41:06
interceptor
0:41:08
um
0:41:10
yeah so what it basically does is if i'm
0:41:13
not wrong it binds the whole
0:41:16
um program
0:41:19
um into just like it it has like a layer
0:41:23
on top of your running app.js
0:41:26
and you can validate pretty much
0:41:28
everything and anything using that
0:41:30
interceptor
0:41:31
okay
0:41:33
i didn't know about that that would be a
0:41:35
cool as in fury to learn
0:41:38
yeah
0:41:39
um
0:41:40
tory littlefield says
0:41:43
wrong you don't even need a gui that's
0:41:45
true
0:41:46
you only need a terminal and vim
0:41:50
that's yeah
0:41:51
[Music]
0:41:52
yes
0:41:53
i saw this me
0:41:54
a guy named his jim
0:41:56
vim
0:42:00
no one could leave his gym now
0:42:04
don't even use vs code it's garbage
0:42:09
sin
0:42:10
we should stop using is code
0:42:15
what else do we use then if not vs code
0:42:19
um just vim
0:42:22
and the terminal
0:42:26
wow
0:42:28
actually we can experiment it and see
0:42:30
how it turns out
0:42:33
is that
0:42:34
then
0:42:35
project
0:42:36
no we can't
0:42:41
alexa how are you going um okay
0:42:46
didn't you do those uh
0:42:48
limiting characters
0:42:51
validation it's in is alphanumeric
0:42:54
function
0:42:56
is it at the top
0:43:03
i have a feeling that's not right the
0:43:05
jira ticket
0:43:07
ah here we go
0:43:08
is it a phone numeric
0:43:12
yeah
0:43:14
so there are two
0:43:16
one is
0:43:18
is id alpha numeric i think that has to
0:43:21
as in
0:43:23
the method of acid
0:43:25
because
0:43:26
this is not following the single
0:43:29
responsibility at the moment
0:43:32
yeah sure um yeah we can do that but
0:43:34
like the whole implementation is already
0:43:36
there i don't know why the ticket is
0:43:38
there
0:43:40
oh hang on are you talking about the
0:43:42
ticket or the validation now
0:43:45
validation is already implemented that
0:43:47
the board limit both
0:43:49
board id length
0:43:51
is
0:43:52
limited if you look here
0:43:56
um update
0:43:59
is
0:44:00
already
0:44:01
calling
0:44:03
this function
0:44:12
so
0:44:13
gekder says that we should name that
0:44:16
uh
0:44:18
function
0:44:19
const is id
0:44:21
with optional hyphen and lens 36
0:44:27
that's true
0:44:28
yeah
0:44:29
is that something you would do then
0:44:34
come on
0:44:39
yeah
0:44:41
um i'm just thinking of this
0:44:44
if
0:44:45
the
0:44:46
limiting thing is invalid
0:44:49
if the
0:44:50
if we plan to put two two concepts in
0:44:54
one
0:44:55
one method then this
0:44:57
um error name is really as in broad
0:45:00
the user
0:45:02
won't understand it
0:45:04
isn't that what you pointed here today
0:45:08
that the um error message would be
0:45:10
generic and i don't know i don't know
0:45:13
why mantis
0:45:15
see here
0:45:16
you've got this method
0:45:20
yeah sure yep
0:45:22
uh
0:45:23
so at the moment this method is
0:45:27
testing
0:45:28
alphanumeric which is yeah fine so if
0:45:33
this
0:45:34
id isn't alpha
0:45:36
numeric obviously it won't be
0:45:39
valid however
0:45:40
yes today we also added another scenario
0:45:45
in this as in another kind of very
0:45:49
validation in the same method i think
0:45:51
you're getting confused
0:45:53
um yesterday we made a totally new
0:45:56
function
0:45:58
okay so which was checking
0:46:01
if the length is greater than zero or
0:46:04
smaller
0:46:07
this this this has been there since last
0:46:09
10 days this function hasn't been
0:46:11
touched
0:46:12
yes is basically going to check
0:46:15
if all the board ids and node ids are
0:46:18
valid and
0:46:19
there's no other way you can do this
0:46:21
function
0:46:23
what you're referring is i think you've
0:46:24
got confused between board name and
0:46:26
board ids so yeah
0:46:29
hang on hang on
0:46:30
what i meant
0:46:32
was that you know when i said to you
0:46:35
that i think
0:46:37
she did uh the validation
0:46:40
which is a board id length must be
0:46:43
limited
0:46:44
yes you've already done this i'm pretty
0:46:47
sure yes
0:46:48
today but i couldn't see that
0:46:51
method in my version so i
0:46:55
asked you
0:46:58
i can't see and then you pointed
0:47:01
out there is this method
0:47:03
which has that
0:47:05
validation as well but it
0:47:08
doesn't yeah because you just said it
0:47:11
doesn't
0:47:13
yeah wait one second why does he follow
0:47:15
me word id
0:47:17
here
0:47:18
i don't get that
0:47:21
oh wait
0:47:22
okay um
0:47:25
where is the other one which is for
0:47:29
um the board name
0:47:31
that's what i can't find here
0:47:34
did you do get pull or did i not do it
0:47:38
um check on your side because i did do
0:47:42
get pulled i'm pretty sure
0:47:44
okay
0:47:45
yeah then good there you go
0:47:47
my side
0:47:48
just let me have a look
0:47:50
because i'm pretty sure we did that
0:47:51
function and that i don't have that
0:47:54
function here
0:47:55
or unless i'm blind and i can't even see
0:47:58
it
0:47:59
and
0:48:00
let me just
0:48:02
go over
0:48:04
again my eyes have
0:48:07
missed it
0:48:09
because
0:48:10
there's a high chance that i missed it
0:48:12
no that's all good i'll try pushing it
0:48:14
again
0:48:15
[Music]
0:48:19
it's alphanumeric
0:48:22
yeah i don't think
0:48:24
for me it says it's already up to date
0:48:26
without okay hang on i'll just
0:48:29
go to the maybe
0:48:31
you will get full again but
0:48:47
okay
0:48:49
uh why did you hang on
0:48:51
one second i don't believe this
0:48:54
wait one second
0:48:56
did this didn't
0:48:57
um go through because
0:48:59
you already had changes
0:49:06
um
0:49:07
okay don't worry about
0:49:09
these changes that
0:49:11
don't think
0:49:12
so you know
0:49:14
yeah
0:49:15
i'm not afraid by the changes the first
0:49:18
thing i did was
0:49:20
get pull here
0:49:21
but it's already
0:49:23
they're saying
0:49:24
you did
0:49:25
yeah maybe maybe if i did the push now
0:49:28
it got pushed
0:49:31
did you do the push now
0:49:33
i did the push again but it said it's up
0:49:36
to date to me
0:49:38
i'm gonna
0:49:40
i'm really really confused now
0:49:47
so you
0:49:48
no that's not the one
0:49:51
stable backhand
0:49:53
let me just catch up with the chat
0:49:56
what was saying
0:49:58
have you thought this might be
0:50:01
to do in golang
0:50:03
right
0:50:06
oh okay so okay
0:50:09
she just did the push now so maybe that
0:50:12
was the reason why
0:50:14
all right cool anyway
0:50:16
moving on
0:50:18
um i need to make sure all the
0:50:21
changes i've done which are
0:50:24
okay i don't need that change
0:50:27
i need the board id
0:50:29
change
0:50:30
i don't need to
0:50:32
change what i do have you thought this
0:50:34
might be easier to redo in golang
0:50:37
we
0:50:38
have not but
0:50:40
[Music]
0:50:42
as i've mentioned before in this channel
0:50:44
i hear that kobold isn't hard maybe he
0:50:47
keep that
0:50:48
not happening
0:50:50
um
0:50:51
it's a good idea burn down this awful
0:50:53
cold and start over
0:50:56
sorry
0:50:57
maybe we can start in java
0:50:59
if that helps
0:51:03
on line 65 why is it
0:51:06
a let not const
0:51:09
um
0:51:09
[Music]
0:51:12
because
0:51:15
i wasn't thinking right
0:51:18
that's why
0:51:20
and i'll feel um
0:51:23
do that thanks for pointing that out
0:51:25
sorry little feel all gagged up whoever
0:51:28
who oh there are more people
0:51:34
that wasn't important thank you guys
0:51:37
really appreciate that
0:51:39
yeah that was alexa
0:51:41
ah alex
0:51:43
alex hey doing mate you're right
0:51:47
fail first
0:51:48
are you
0:51:55
sure we can do that
0:51:57
this call is so bad the garbage
0:52:00
collector runs before
0:52:11
[Laughter]
0:52:16
and i can get the hat as well as in my
0:52:19
code
0:52:21
i just took the screenshot
0:52:25
is in constant gc
0:52:28
could convert 95 of this to java
0:52:31
by renaming the extension java must
0:52:35
most of it will compile
0:52:37
giza are you installed
0:52:41
in
0:52:44
okay i really don't know what that is i
0:52:46
give up
0:52:48
but yeah uh it's already nice one that
0:52:51
was pretty funny
0:52:53
okay that one's done
0:52:55
so now what i need to do is go back yeah
0:52:59
yeah we can convert this to java for
0:53:01
sure
0:53:02
oh yeah of course
0:53:05
but very
0:53:07
there down the line
0:53:09
yes
0:53:10
something like springbook i guess
0:53:19
well time flies
0:53:23
it's a new plugin came out
0:53:39
here
0:53:43
okay and
0:53:45
where was the
0:53:47
using that extension
0:53:51
there's no extension named code sc
0:53:55
um look though
0:54:02
how will you
0:54:03
run there's there
0:54:06
is one name
0:54:08
yeah i mean
0:54:09
you can't run any of the front end
0:54:11
components with java middleware is one
0:54:14
of them
0:54:15
um
0:54:16
i guess the only
0:54:18
two
0:54:19
um good choices for a middleware would
0:54:21
be either fetch or axios
0:54:25
that
0:54:26
has been much easier um
0:54:29
i i actually i am doing axios for
0:54:33
the university project
0:54:35
uh
0:54:36
turns out fetch is much easier for sure
0:54:39
any day
0:54:40
don't do exist
0:54:46
in google in it search you can find that
0:54:49
legend
0:54:50
perfect for carpet now he can write
0:54:52
javascript and compile it in java
0:54:55
that's the dream that's literally
0:54:58
just go back to the roots
0:55:01
uh it's name valid
0:55:04
so
0:55:08
all right
0:55:11
okay
0:55:13
we need to split
0:55:14
this function to have just one
0:55:20
to just do one thing because at the
0:55:21
moment it's doing two things
0:55:24
all right
0:55:28
so
0:55:29
basically when you tell the user that
0:55:32
the
0:55:33
name is invalid
0:55:37
as in if you come here because
0:55:40
the
0:55:41
this function is
0:55:43
checking the names length
0:55:45
and if it's all
0:55:50
obeying this
0:55:52
regex okay
0:55:54
so if we go down to
0:55:57
create board no i don't need credible if
0:56:00
we go
0:56:02
down to
0:56:03
this thing juicy against the board
0:56:05
name and it comes off as force board
0:56:09
name is in is not valid
0:56:15
how would the user know that
0:56:18
the board name has to be
0:56:21
limited to they two characters
0:56:25
the user won this is the front-end tasks
0:56:28
not the pack and to specify
0:56:31
what type of input we want
0:56:35
when you do when you do pay when you
0:56:37
call a page which is not there let's on
0:56:39
github it doesn't say go to that page
0:56:41
it's just a page not found or this is
0:56:44
not right
0:56:47
because
0:56:48
the way the the thinking works is that
0:56:51
these requirements can change anytime
0:56:53
and the back end shouldn't be telling
0:56:56
um what needs to be in like you know how
0:56:59
things are validated and react
0:57:02
um
0:57:03
like
0:57:03
just like password length or like using
0:57:05
a dollar sign and password
0:57:08
no it doesn't go to back end and
0:57:10
validate these things
0:57:13
so
0:57:16
yeah go ahead all right
0:57:22
no no i'm just
0:57:23
gonna say
0:57:26
that
0:57:28
okay
0:57:28
uh i'll rephrase
0:57:31
my question
0:57:33
just say for example if i
0:57:36
i have typed saying
0:57:40
and car take
0:57:45
uh
0:57:49
good coders
0:57:50
okay
0:57:51
so if it's one two three four five six
0:57:54
seven eight nine ten eleven twelve
0:57:56
thirty okay
0:57:59
say yeah
0:58:00
this is as in
0:58:02
not
0:58:04
32 characters okay this is more than
0:58:07
that
0:58:08
yeah yeah okay for
0:58:10
argument's sake but if you
0:58:13
do
0:58:17
this as well
0:58:18
okay
0:58:20
so if you
0:58:22
have all there and that one
0:58:26
if you have
0:58:27
this
0:58:28
this is failing
0:58:31
okay okay
0:58:32
and if and this as a whole is failing as
0:58:36
well because it's
0:58:38
greater than 32 right
0:58:42
yeah
0:58:43
so
0:58:44
what i'm trying to ask you is that how
0:58:48
would
0:58:48
um the front end guys pick up based on
0:58:54
what we have said it
0:58:56
as into decreasing limit i'm no
0:59:00
not decreasing limit but as into
0:59:05
um the
0:59:06
limit has to be
0:59:08
32 or
0:59:10
the amberson sign doesn't have to be
0:59:12
there
0:59:14
okay um
0:59:16
yeah i'm gonna ask you a question
0:59:19
um
0:59:20
just on top of this okay
0:59:23
even if you want to return let's say in
0:59:25
a
0:59:26
hypothetical sense that we
0:59:28
specify every single message across the
0:59:31
whole
0:59:32
app.js
0:59:35
just for board name
0:59:37
just for the whole board name scenario
0:59:39
there are at least five checks
0:59:42
yeah it's actually present if it's
0:59:44
actually a string
0:59:45
if it's actually 32 length if it's in
0:59:48
the regex
0:59:49
how are you going to every time return a
0:59:52
particular scenario which failed
0:59:55
when board name isn't valid
0:59:57
are you going to
0:59:58
do five different messages return
1:00:01
every time either one of these is filled
1:00:04
no
1:00:05
okay also one more thing which i want to
1:00:07
add that these things would be checked
1:00:09
in the front end as well we are doing
1:00:11
this so that
1:00:13
um any sort of because they like this
1:00:16
thing is open anywhere right so any sort
1:00:19
of data passed in the back end doesn't
1:00:21
actually go to our dynamodb database
1:00:23
but
1:00:24
when the person is going to enter board
1:00:26
name in the front end it's going to be
1:00:28
checked there as well that oh yeah you
1:00:30
didn't um it's more than 32 characters
1:00:33
do it again
1:00:36
okay
1:00:37
i see what you mean so you're
1:00:40
saying that even if you're mixing the
1:00:43
two validation scenarios here
1:00:47
um
1:00:47
it was it will still be uh validated in
1:00:51
the
1:00:52
front and right
1:00:54
yeah yeah so you know how passwords work
1:00:56
like um
1:00:58
in the front end the password is
1:01:00
verified to be
1:01:02
all one capital letter
1:01:04
a number and a special case
1:01:07
and in the back end
1:01:08
it's uh said if it's the right password
1:01:11
or not
1:01:12
not the back end in opposition trying to
1:01:15
see if it has a lowercase uppercase
1:01:18
um yeah and
1:01:19
that makes sense right
1:01:22
okay right right so
1:01:25
i get the conclusion here is that we're
1:01:28
trying to keep the backhand validation a
1:01:31
bit broad
1:01:32
yeah and we will
1:01:34
dive into the
1:01:37
as in the specific foundations in the
1:01:40
front end
1:01:42
yes
1:01:43
cool
1:01:44
all right
1:01:45
cool
1:01:46
in that case that makes sense
1:01:49
i even would
1:01:59
[Music]
1:02:03
probably kobo
1:02:07
i haven't even seen kobold syntax ever
1:02:10
okay so that one's
1:02:12
done then
1:02:14
what snippets funko ball
1:02:18
oh come on
1:02:20
why do you always do this to me
1:02:24
oh interesting
1:02:26
name should be alpha numeric yeah this
1:02:28
is done too
1:02:33
empty board
1:02:35
name should not
1:02:37
go through
1:02:39
oh then see the time
1:02:43
yes
1:02:45
it's a friday
1:02:48
right okay yeah i just didn't realize it
1:02:50
oh okay
1:02:51
yeah that's uh it does
1:02:55
fly faster
1:02:56
yeah yeah i agree with you as an already
1:02:59
half ten
1:03:00
yeah exactly
1:03:06
um
1:03:08
not found scenario probably more
1:03:10
jobs than
1:03:12
i would not agree to that story
1:03:15
empty no not lightly
1:03:20
so
1:03:20
[Music]
1:03:22
do that one
1:03:27
okay that one so empty board name if i
1:03:30
give it that shouldn't go through
1:03:35
java jokes versus
1:03:42
all right empty board name is going
1:03:44
through interesting
1:03:52
oh it's called there
1:03:55
okay cause empty scientific name is
1:03:58
going through into
1:04:00
and
1:04:01
now i want to be checking for it
1:04:06
we are probably not checking for a test
1:04:09
by coming through
1:04:12
i don't
1:04:14
like these
1:04:18
right
1:04:25
is
1:04:26
we need to check for his empty board
1:04:29
name
1:04:30
yep
1:04:31
it is empty
1:04:35
is empty
1:04:40
see what items isn't uh so just give
1:04:44
that one
1:04:46
give it a call
1:04:50
name switch
1:04:52
and then
1:04:57
i'm just gonna write that over there
1:05:00
ordinary switch that one
1:05:04
and then board
1:05:06
name and
1:05:09
um ish
1:05:11
is empty
1:05:16
story
1:05:17
says never validate on the back end it's
1:05:20
poor practice a senior dev told me
1:05:26
that's kind of cool tori
1:05:28
okay
1:05:30
you're in good hands
1:05:31
yeah
1:05:34
so
1:05:35
if this is empty then it would be false
1:05:37
call
1:05:41
it
1:05:43
okay let's test
1:05:45
this one
1:06:01
mm-hmm
1:06:23
okay
1:06:25
there we go it's just deploying at the
1:06:27
moment so the scenario we're checking at
1:06:30
the moment is when we update a board but
1:06:32
pass an empty board name it should not
1:06:35
go through
1:06:40
does every build cost you money though
1:06:43
for sam
1:06:47
um
1:06:49
i don't know about that i'd have to get
1:06:51
back to you
1:06:54
just curious
1:06:55
because like yeah what is kind of it's
1:06:58
kind of bad bad practice like
1:07:00
um just doing so many builds
1:07:05
resource no found
1:07:07
oh you did get pulled and you didn't
1:07:09
update the table name
1:07:15
right
1:07:16
cole
1:07:17
very good chaotic
1:07:21
um yeah i don't see
1:07:23
your name
1:07:24
in a funny voice
1:07:29
[Music]
1:07:31
that being said i looked into the env
1:07:33
stuff
1:07:34
even for our uh uni project i had to
1:07:39
so
1:07:40
apparently there's a way to make dot e
1:07:42
and v files and refer it
1:07:45
okay interesting
1:07:47
italy is definitely charging you because
1:07:50
you
1:07:50
have
1:07:52
pulse have a pulse
1:07:54
what is that supposed to mean oh okay
1:07:58
okay
1:08:00
uh
1:08:02
talking about the charges um
1:08:05
after
1:08:06
actually
1:08:08
tomorrow uh in the
1:08:11
afternoon it might be a good idea to to
1:08:14
just sit together and you can
1:08:18
take me through the
1:08:21
thing that
1:08:24
aws does and um also we can do our
1:08:28
obvious
1:08:29
stuff from my side
1:08:32
um yeah i'll let you know because i
1:08:35
might be
1:08:36
working tomorrow
1:08:38
on saturday
1:08:40
yeah like i'm just working on myself to
1:08:43
just get familiar with the code base
1:08:46
oh oh okay
1:08:48
oh yeah
1:08:50
i mean it's not like
1:08:52
like the cto is happy to sit with me and
1:08:55
just like explain stuff to me so i was
1:08:57
like yeah saturday school
1:08:59
um cool i don't mind i anyway don't have
1:09:02
a life so
1:09:05
what's gonna happen if i were consent
1:09:09
cool man
1:09:14
as long as
1:09:15
you're happy and and it
1:09:18
doesn't affect your personal life
1:09:20
yeah that's good
1:09:22
i mean most of my math works on like
1:09:24
weekends like when they do like
1:09:26
part-time jobs in stores and stuff
1:09:29
so
1:09:30
yeah but that's part-time
1:09:32
uh that's um
1:09:34
just for the money right
1:09:36
hmm yeah
1:09:38
and this is something very bigger for
1:09:40
experience yeah
1:09:42
exactly
1:09:44
okay that one's there cool got the board
1:09:47
id
1:09:49
and go to
1:09:51
patch
1:09:53
and this should not allow me to enter
1:09:56
empty board name
1:10:03
um
1:10:03
[Music]
1:10:06
update
1:10:13
people what am i even doing you're right
1:10:19
i'll create a note
1:10:22
no that's
1:10:24
update
1:10:26
update board
1:10:32
what
1:10:34
career knows for sp
1:10:35
i wanna go to the update board yeah here
1:10:38
we go
1:10:40
if this
1:10:46
was the post
1:10:47
working fine
1:10:49
yes
1:10:52
as in the empty one right
1:10:55
at md
1:10:57
post what do you mean
1:11:00
empty board name
1:11:01
it doesn't it shouldn't go through
1:11:04
okay
1:11:08
i was calling this i promise so
1:11:11
if the board name is a string
1:11:15
yeah which is
1:11:17
uh oh and
1:11:20
it's
1:11:23
ah no no no it's all
1:11:27
so it has to be a string
1:11:32
or if it's empty don't go through or if
1:11:36
it's
1:11:36
not string don't go through
1:11:39
right
1:11:40
let me check if this works
1:11:57
[Music]
1:12:01
do you look at ios 50 engine
1:12:06
ios
1:12:07
um
1:12:09
actually i'm not sure
1:12:13
i still have to upgrade my
1:12:16
system
1:12:20
um it's like um what do you call it
1:12:24
um it's on iphone the ios
1:12:28
ah
1:12:29
yeah
1:12:31
no i haven't uh updated that
1:12:34
yet well i did some pretty cool things
1:12:37
this time
1:12:38
okay
1:12:42
um so if you click a picture now like if
1:12:44
i take a picture of this code
1:12:47
yeah i can
1:12:48
literally go inside the picture
1:12:50
and like you know how you copy text
1:12:52
generally when on in notes or something
1:12:55
you can just tap on the picture and copy
1:12:58
the text from the picture
1:13:01
interesting
1:13:02
just like it's notes
1:13:04
right right try
1:13:06
i didn't know that actually
1:13:08
yeah that's like a inbuilt ocr system
1:13:15
it does it does sound really cool to be
1:13:18
honest yeah
1:13:19
and
1:13:20
facetime can now have things like
1:13:23
sending a meeting link and android users
1:13:26
can join facetime
1:13:29
uh-huh
1:13:30
interesting yeah oh sorry so that's
1:13:33
pretty cool though
1:13:35
tori is asking what's that again
1:13:38
it's like
1:13:39
a
1:13:40
inbuilt ocr system
1:13:43
if i can show
1:13:44
you i'll just take a picture of this
1:13:47
code
1:13:51
it's empty
1:13:53
okay
1:13:54
it's empty board name uh-huh
1:14:02
but i can basically
1:14:05
select things from this image
1:14:08
copy them
1:14:12
and this is like an actual image just
1:14:13
which i just took
1:14:19
yeah it's actually pretty cool
1:14:24
for iphone yeah yes
1:14:34
iphone 13 is pretty cool isn't it
1:14:38
are you planning to get it
1:14:40
no you don't have that much
1:14:43
money it's super expensive
1:14:45
you work now
1:14:47
actually two jobs
1:14:50
that doesn't mean anything
1:14:53
that means you haven't come coming on
1:14:55
which you should be proud of man
1:14:58
it's your first proper job isn't it
1:15:00
it's in only two weeks i started working
1:15:03
yes just
1:15:05
eighteen hundred dollars to spend on a
1:15:07
food
1:15:08
i i i didn't say
1:15:12
go and get it tomorrow
1:15:14
come on it was a figure of speech as in
1:15:16
you're working now you have an income
1:15:18
commission so you should reward yourself
1:15:22
um i don't know i wanna
1:15:25
i don't really think
1:15:27
a phone is the biggest investment right
1:15:29
now
1:15:30
i could probably get something cooler
1:15:32
for the stream
1:15:33
um
1:15:36
there'll be something of a bigger
1:15:38
investment like i'm happy with my phone
1:15:40
right now
1:15:41
i'm not
1:15:44
ah right
1:15:47
oh come on zayn what are you doing
1:15:50
i'm a num nut
1:15:58
uh board
1:16:00
so if it's
1:16:02
not
1:16:04
empty then if it's false
1:16:07
then do that
1:16:09
so
1:16:10
if the board name is a string
1:16:17
which is true
1:16:21
and
1:16:22
if it's not empty
1:16:25
i see another feature and i have 10
1:16:28
years
1:16:30
yeah that's true though that's a bit of
1:16:32
an exaggeration right here
1:16:36
10 years ago was 2011 when iphone
1:16:40
3gs came out
1:16:45
yeah
1:16:47
and i was
1:16:48
10 years old
1:16:53
oh okay
1:16:54
i was more than that
1:16:57
yeah
1:16:57
how old were you then
1:16:59
be honest i can't remember ball is
1:17:02
definitely more than 10.
1:17:08
oh wait okay iphone 4 came out my bad
1:17:12
iphone 4 still was the last iphone steve
1:17:16
jobs saw
1:17:18
um
1:17:19
so i think he passed in like
1:17:21
september of 2012
1:17:26
um
1:17:27
do you follow steve jobs or
1:17:30
any of that
1:17:32
sort of things
1:17:40
are you talking to me
1:17:42
yeah
1:17:43
oh uh i thought
1:17:45
you were talking to one of the
1:17:47
viewers
1:17:48
no
1:17:50
um steve jobs i
1:17:53
i follow him on instagram by just voids
1:17:57
as in really
1:18:02
just for his
1:18:03
wisdom
1:18:06
um
1:18:08
if you know what that means
1:18:11
i do um
1:18:14
then he's not allowed to sing
1:18:19
i'm okay oh okay joke okay
1:18:24
you should you should really try
1:18:27
specifying
1:18:32
now maybe i should level up on my sense
1:18:34
of humor
1:18:35
could go either way
1:18:37
and it's just
1:18:40
like
1:18:42
you know how how people use those wisdom
1:18:46
first book
1:18:47
combined with a person
1:18:50
where but their videos are still live
1:18:52
because they've
1:18:54
actually created their
1:18:56
legacy
1:18:57
in that way yeah okay
1:19:00
wow fair enough
1:19:03
another joke which then had to explain
1:19:14
i don't know who would get my sense of
1:19:16
humor one day it will happen
1:19:19
yes
1:19:21
ah
1:19:23
right so
1:19:24
update named it
1:19:27
okay so here is
1:19:29
saying this if the board
1:19:32
name is a string
1:19:35
or
1:19:36
is not
1:19:38
is empty
1:19:39
not
1:19:41
no no no i
1:19:43
need is empty
1:19:46
if the board
1:19:47
name is empty
1:19:56
i feel like we're not being productive
1:19:58
right now though
1:19:59
and string
1:20:07
[Applause]
1:20:12
everyone's left
1:20:13
yeah i'm gonna
1:20:15
call it a day
1:20:20
yeah cuz
1:20:22
i feel like i'm just there coding but my
1:20:26
brain is isn't really there
1:20:29
yeah
1:20:30
if you know what that means
1:20:32
i do
1:20:34
yeah that's like pretty much every uni
1:20:36
assignment i do
1:20:39
i know i used to do the same
1:20:43
in my days of
1:20:45
uni lives
1:20:47
red bull just walking
1:20:50
yeah and
1:20:53
not really
1:20:54
brain functional at all
1:20:58
cool yeah right guys
1:21:00
happy
1:21:01
happy friday mate um
1:21:04
cool guys
1:21:05
thanks vlog for tuning on uh
1:21:08
in really
1:21:11
appreciate you all um
1:21:15
so for
1:21:16
being a bit of a productive
1:21:19
session but i think feel the
1:21:22
validation as in just probably
1:21:25
yeah really few um more to go which we
1:21:29
will be completing hopefully on sunday
1:21:32
now
1:21:33
um
1:21:35
until then really have a great night and
1:21:37
um
1:21:39
have you got
1:21:40
anything to add k
1:21:42
yeah i mean i think we uh covered pretty
1:21:44
much all of it but yeah um
1:21:46
it's uh going great um goal would be to
1:21:50
complete most of the validation soon and
1:21:52
uh
1:21:53
look into stuff revolving environment
1:21:56
variables and
1:21:58
course cd um
1:22:02
but
1:22:02
um
1:22:03
we probably want to focus on to a lot
1:22:06
more
1:22:07
um react maybe in the coming days um
1:22:11
um first of all we need to focus on
1:22:14
getting the
1:22:16
aws architecture up right yes
1:22:19
architecture point of view
1:22:21
yes um
1:22:23
so yes a lot more devops stuff coming
1:22:26
here yeah um
1:22:28
a lot less
1:22:29
development i guess yeah that's the part
1:22:31
of the
1:22:33
whole project uh
1:22:35
mindset
1:22:36
yeah
1:22:39
thanks for joining us
1:22:41
perfect guys we'll see you on sundays
1:22:45
same time
1:22:46
same place and case turn is
1:22:50
a different task i thought i'll do this
1:22:52
for now it's next turn or that
1:22:55
ah okay yeah
1:22:59
yeah sure
1:23:01
perfect guys have a good night and we'll
1:23:04
see you back then
1:23:06
thank you
1:23:09
[Music]
Other clips featured in this episode