So we can reduce this list to just passwords that are 9 characters or more to speed up our check. We already have code that doesn’t allow the user to sign up with a password less than 9 characters long. Our app is going to check the user’s password on sign up and not allow them to create a password that is from this list.īut before we do that, we want to refine this list. Imagine we have a list of the world’s most commonly-used passwords: const passwords = [ What is Imperative Programming?Īs a beginner, you've probably mostly coded in an imperative style: you give the computer a set of instructions to follow and the computer does what you want in an easy-to-follow sequence. This is where their brains start to pop and sizzle and melt like marshmallows over a fire. Once my students have learned basic JavaScript, we go over functional programming and the array methods used in a declarative coding style. A major shift in thinking occurs when we switch from imperative to declarative programming. As a coding instructor, it’s my duty to send programmers out into the world thinking in new ways.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |