IRC log of #novawebdev for Friday, 2026-09-18

resl has quit (Quit: resl)01:44
resl has quit (None)01:57
smohamud has quit (Ping timeout: 480 seconds)09:08
smohamudHi Jallah10:58
jallahkoleahHow are you doing, smohamud?11:01
smohamudGood. How're you?11:01
jallahkoleahI'm good as well11:01
jallahkoleahHow's it going?11:01
smohamudStandup - reviewed AMS data definitions draft (added Q's for NSS team), reviewed/replied AMS Workflow Questions doc (added Q's), drafted document with columns from non Main spreadsheet fields (NSS currently maintains several, original meeting captured one). Studied 3NF DB design / how it applies to AMS tables/relationships. Replied Capital Music Network collaboration request (potential work starting soon, Chris Jones a team member with them), 11:07
smohamudreplied Steve/Vanessa Community Wealth Building site work. Planning requirements drafting meeting with both. Have a functioning branch/(see Gitlab Project) of CJS production branch with minimal code changes (less than the v.8.0, I believe) ready to be worked with. Planned improvements for Project Management process, Development process to be proposed soon. 11:07
smohamudRest of today will be refining AMS data definitions, ensuring all columns are in main Data Definitions draft and continuing work to ensure 3NF (normalized) database. 11:08
smohamudGlad to hear that. There's a lot to do but all is well.11:09
smohamudHi Mulbah. 11:09
smohamudI am not sure why we are no longer having a full team here for standup, since Jeff stopped showing.11:09
smohamudWould you guys like to have JS class now?11:10
jallahkoleah+111:10
mulbah+111:11
smohamudOk. We have two options. We can go through the main lesson (despite multiple members absent) or we can do a review of all the concepts we've covered to now.11:13
smohamudThe main lesson would be finishing up the Operators.js11:13
smohamudCorrection: it would be function types.11:13
smohamud(main lesson)11:14
smohamudWhat do you two prefer?11:14
smohamudhttps://prod.liveshare.vsengsaas.visualstudio.com/join?B64D2AA52C9DDA0120DF7D2E53ED7483E56311:15
smohamud(we will be switching to P2P Live Share extension but I will need you both to install the extension between now and next class (Monday).11:15
jallahkoleahI already have that extension11:16
smohamudGood, we only have to wait till everyone else catches up :)11:17
smohamudI don't see either of you in the Live Share. Please join.11:17
jallahkoleahI'm joining11:20
smohamudMulbah please begin on the Quiz.11:20
mulbahwhere is the quiz?11:21
smohamud/Quiz11:23
smohamud/1.) In your own words, what's the difference between a statement and an expression11:23
smohamud/2.) Is function functionDeclaration(){ console.log("Random function definition")} always a statement?11:23
smohamud/2.1) If not, what makes it an expression?11:23
smohamud/3.) Briefly explain how Scope of a function is affected by whether it's a function declaration or expression.11:23
smohamud(This quiz was Given last Wednesday but we did not finish the class...)11:23
smohamudAnd, you were not in attendance.11:23
smohamudHi Janet :)11:24
smohamudGot you Jallah11:24
smohamudEveryone dropped after the Quiz last time, so we didn't get to cover the class materials.11:25
smohamudStill only Mulbah in session.11:26
jallahkoleahI joined but aren't seeing anything11:27
smohamudNow just Jallah here.11:27
jallahkoleahgot it now11:28
jallahkoleahcan I give my answers in here or in vs code11:29
jallahkoleahsmohamud?11:30
smohamudHere please.11:30
jallahkoleahokay11:31
smohamudComrades, only Jallah is in and it's been a full 20m. There is a-lot of work to do. Jallah, are you almost done with the Quiz? We can still go over that and discuss.11:36
jallahkoleah1. The difference between a statement and an expression is; A statement execute or performs an action or the instruction that was given by the user, or in other word, an instruction that tells JS what to do for example; we have let age = 25; this tell JS that when we call out age, it should give the value of age. while expression is the produces the value. 11:39
smohamudSolid!11:44
jallahkoleah2. No, it's not always a statement. Because in this particular position or form, it is a function declaration. 3. A function expression happens when the function is part of an expression - usually when the function is assigned to a variable, passed as an argument or otherwise used where JS expects a value.11:50
jallahkoleah has quit (Read error: No route to host)11:53
smohamudJanet and Mulbah - any questions for me before we end?11:54
jkollie has quit (Read error: No route to host)11:55
smohamudJallah - for 2 - exactly - it's about the position of the declaration. Is it being assigned (right hand side of the =) or is it standalone acting as a statement.11:55
smohamud*expression11:55
smohamudGood job acknoweldging that functionDeclatations are also *expressions* when passed as an argument to another function. 11:56
smohamudAn example is using the built-in setTimeout(function(){ console.log("log out this in 100ms")}, 100)11:57
smohamudThere, it's also serving as an expression, since setTimeout takes a callback function that executes after the amount of time specified in the second argument)11:58
jallahkoleah_got it, thanks11:58
smohamudAnd finally, how about the last question?11:59
smohamud /3.) Briefly explain how Scope of a function is affected by whether it's a function declaration or expression11:59
jallahkoleah_refreshing on that :)11:59
smohamudPlease attempt it with what you know now.12:00
smohamudWrong answers are valuable! I can help fill the gap.12:00
smohamudAnd who knows, you might be more prepared than you think.12:00
smohamudJallah...12:03
smohamud:)12:03
smohamudGo for it. You got this.12:03
jallahkoleah_This is what I think of it........ Function declarations are hoisted (they can even be called before declaration) and their names are available in their surrounding scope before the declaration is reached. Function expressions are usually assigned to variables, and the scope of the function's name is determined by that variable's declaration (let, const, or var). With let and const, the binding is block-scoped. 12:04
smohamudBingo. Function declarations are hoisted and can be called *before* they're declared. Expressions are *partially* hoisted *if* they use var to declare it. Rather than throw an error, if something tries to call/use the expression *even if* it uses var ftnExpression = function(){} it will be undefined but won't be a reference error.12:08
smohamudLet's run a little test in Live Share to confirm what we expect and then call it a class.12:08
smohamudSound good?12:08
jallahkoleah_+112:11
smohamudOn line 20 we call functionDeclaration and it executes just fine.12:18
smohamudIt logs out and can be called.12:18
smohamudNotice that on line 23, we can log out functionExpressionWithVar12:19
smohamudAnd it will show as "undefined"12:19
smohamudIf we try to call it, it says "not a function." This is because that would be the same as doing undefined() [trying to call undefined...]12:19
smohamudWhat's interesting is when we use "const" to declare the expression.12:20
smohamudWhat do you expect to happen if we log out the value of functionExpressionWithConst ?12:20
smohamudOn line 2312:20
smohamudGo for it. Remember, it's fine not to know. I *do not* want you to do research for questions during class.12:22
smohamudThe point of asking questions during class is specifically to uncover the gaps...12:22
smohamudDon't worry.12:22
smohamudOk Jallah - I will have to get going today but please share your *own* answer to me via our chat.12:26
smohamudWhatsApp.12:26
smohamudHave a good rest of your day - I have another meeting in 10m.12:26
smohamudGreat job today!12:26
jallahkoleah_okay, thanks for today12:26
jallahkoleah_I will do just that12:26
smohamud has quit (Ping timeout: 480 seconds)12:34
janet_ has quit (Read error: No route to host)13:28
jallahkoleah_ has quit (Remote host closed the connection)13:29
smohamud has quit (Ping timeout: 480 seconds)13:54
mulbah has quit (Remote host closed the connection)14:12
jallahkoleah__ has quit (Ping timeout: 480 seconds)14:23
janet__ has quit (Ping timeout: 480 seconds)14:52
mulbah has quit (Remote host closed the connection)14:58
janet_ has quit (None)15:06
jkollie has quit (Ping timeout: 480 seconds)15:09
resl has quit (Remote host closed the connection)15:13
mulbah has quit (Remote host closed the connection)15:31
mulbah has quit (Remote host closed the connection)15:47
mulbah has quit (Remote host closed the connection)16:05
mulbah07_ has quit (Remote host closed the connection)16:06
smohamud has quit (Ping timeout: 480 seconds)20:07
gabriel_jetroHi22:51
gabriel_jetro has quit (Read error: Connection reset by peer)23:06

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!