*** shmohamud has quit (Remote host closed the connection) | 01:16 | |
*** shmohamud has quit (Remote host closed the connection) | 01:18 | |
*** shmohamud has quit (Remote host closed the connection) | 02:04 | |
tmickelson | hello scooper and fkoikoi | 13:27 |
---|---|---|
scooper | Good morning tmickelson | 13:28 |
fkoikoi | Hi tmickelson | 13:28 |
fkoikoi | How are you? | 13:28 |
scooper | and Jeff | 13:28 |
tmickelson | im good how are you | 13:28 |
jelkner | Good day, fkoikoi and scooper! | 13:28 |
fkoikoi | Good morning Jeff | 13:28 |
tmickelson | scooper, what output did running `git tag` give | 13:31 |
fkoikoi | Scooper went to the latrine but he will soon be back | 13:34 |
tmickelson | ok | 13:34 |
scooper | sorry for late respond | 13:37 |
scooper | i m back | 13:37 |
scooper | tmickelson | 13:38 |
tmickelson | ok | 13:39 |
scooper | unfortunately "git tag" didn't give me any fedback in my directory | 13:39 |
tmickelson | run `git tag -m "test"` | 13:40 |
scooper | I cd into a directory called "ForkWithTmickelson" and type the command "git tag" | 13:40 |
tmickelson | it didnt return anything because you didnt have any tagged commits | 13:40 |
scooper | yes | 13:41 |
scooper | a set of git instruction | 13:41 |
scooper | which include but not limited to: usage: git tag [-a | -s | -u <key-id>] [-f] [-m <msg> | -F <file>] | 13:41 |
scooper | or: git tag -d <tagname>... | 13:42 |
scooper | or: git tag -l [-n[<num>]] [--contains <commit>] [--no-contains <commit>] [--points-at <object>] | 13:42 |
scooper | [--format=<format>] [--merged <commit>] [--no-merged <commit>] [<pattern>...] | 13:42 |
scooper | or: git tag -v [--format=<format>] <tagname>... | 13:42 |
scooper | -l, --list list tag names | 13:42 |
scooper | -n[<n>] print <n> lines of each tag message | 13:42 |
scooper | -d, --delete delete tags | 13:42 |
scooper | -v, --verify verify tags | 13:42 |
tmickelson | try this `git commit -a v0.0 -m "test"` | 13:42 |
scooper | fatal: paths 'v0.0 ...' with -a does not make sense | 13:44 |
scooper | that was what I got | 13:44 |
tmickelson | are you in a git repo | 13:45 |
scooper | yes | 13:45 |
scooper | the first project I clone when you were teaching me | 13:45 |
tmickelson | can you copy and paste the exact command that you ran | 13:46 |
scooper | git commit -a v0.0 -m "test" | 13:47 |
scooper | this is the path to my git repos: Desktop/ForkwithTmickelson/website$ | 13:48 |
tmickelson | sorry, my mistake | 13:48 |
tmickelson | git tag not git commit | 13:48 |
tmickelson | did that work | 13:49 |
scooper | sorry thing like this right "git tag -a v0.0 - "test" | 13:49 |
scooper | something like that right??? | 13:50 |
tmickelson | yes | 13:50 |
tmickelson | `-m` before test not `-` | 13:50 |
scooper | it tag -a v0.0 - "test" | 13:50 |
scooper | fatal: too many params | 13:50 |
tmickelson | git tag -a v0.0 -m "test" | 13:51 |
scooper | git tag -a v0.0 - "test" | 13:51 |
scooper | fatal: too many params | 13:51 |
scooper | yes it what I did | 13:51 |
tmickelson | youre missing `m` after the second `-` | 13:52 |
scooper | command ran without feedback | 13:53 |
scooper | git tag -a v0.0 -m "test" | 13:54 |
tmickelson | that should be correct | 13:54 |
scooper | it work | 13:54 |
tmickelson | now run `git tag` or `git tag -l` | 13:55 |
scooper | Because I tried running it again and I was told fatal: tag 'v0.0' already exists | 13:55 |
tmickelson | that means the tag was created | 13:55 |
scooper | Yes that what I suspend too | 13:56 |
scooper | I got v0.0 as the result | 13:56 |
tmickelson | now you can push the changes | 13:58 |
tmickelson | (no files were changed but a tag was added) | 13:58 |
scooper | tmickelson | 13:58 |
scooper | this repos don't have another branch into it... I m presently on the main branch | 13:59 |
scooper | But for the other repos I created called "codeeatsleep" with my colleagues have branches | 13:59 |
scooper | hope you understand.. | 14:00 |
tmickelson | you could push to a new branch | 14:00 |
scooper | by creating a new branch right??? | 14:00 |
tmickelson | yes | 14:01 |
tmickelson | then `git push -u origin <new branch>` | 14:02 |
scooper | got you | 14:02 |
tmickelson | bye | 14:02 |
scooper | using this command will push directly to the master or to the new branch origin | 14:03 |
scooper | OK | 14:03 |
tmickelson | the new branch | 14:03 |
tmickelson | ACTION leaves | 14:03 |
*** tmickelson has quit (Quit: leaving) | 14:03 | |
scooper | Good morning shmohamud | 14:03 |
shmohamud | good morning scooper | 14:03 |
shmohamud | have you completed the homeowork? | 14:04 |
*** sysadmin_ has quit (None) | 14:07 | |
*** scooper has quit (Ping timeout: 480 seconds) | 14:11 | |
shmohamud | you there scooper? | 14:14 |
scooper | I will complete it today.... been reading the book and the links you give me | 14:14 |
scooper | yes | 14:14 |
scooper | I m here | 14:14 |
shmohamud | Ok, just checking :) | 14:14 |
scooper | fkoikoi is here today is there anything you have for us??? | 14:15 |
shmohamud | So, I read the assignment more carefully, and noticed it specifically wants to know the behaviors you expect from different user mouse movements | 14:15 |
scooper | yes | 14:15 |
shmohamud | specifically, Mouse Events | 14:15 |
shmohamud | Just read the lines carefully and look at the links I shared | 14:15 |
scooper | The link you give me | 14:15 |
shmohamud | Well, I don't have anything off the top of my head - do you have any questions that I might be able to answer? | 14:15 |
scooper | introduce me to lot of MOuse Events | 14:15 |
shmohamud | Good good | 14:16 |
shmohamud | Hi fkoikoi :) | 14:16 |
fkoikoi | Hello shmohamud | 14:16 |
shmohamud | do you have any questions I can help with today? | 14:17 |
scooper | Not really | 14:17 |
scooper | I m finding that links to be so interesting..... so no question for now | 14:17 |
shmohamud | that's cool! Shall I come back tomorrow, same time? | 14:18 |
scooper | shmohamud | 14:18 |
scooper | thought you said you are going to help fkoikoi and I will some lesson | 14:18 |
shmohamud | Would you like to do some javascript today? | 14:19 |
scooper | yes if the time is available for your end | 14:19 |
shmohamud | time is available! | 14:19 |
scooper | giving us books will also help | 14:20 |
shmohamud | Ok, do you have a way to run javascript and see output? | 14:20 |
scooper | Mainly beginner books in javascript | 14:20 |
shmohamud | Or should we work on finding a way for you to do that on your system. | 14:20 |
shmohamud | The best book on JS is Eloquent Javascript - let me see if I can find a free copy (I doubt it) | 14:20 |
scooper | yes | 14:21 |
scooper | by running it in the browser | 14:21 |
shmohamud | https://developer.mozilla.org/en-US/docs/Web/javascript | 14:21 |
scooper | or IDE??? | 14:21 |
shmohamud | this is the best JS resource i know, it goes into detail on specific built-in functions, language features, and keywords in JS | 14:21 |
shmohamud | Browser or IDE works | 14:22 |
shmohamud | so, if I asked you to write a program that logs out "Hello World" using JS, would you be able to do it? | 14:22 |
scooper | I think for beginner it good to start in the browser | 14:22 |
shmohamud | That works! | 14:23 |
shmohamud | Could you write a JS program that logs "Hello World!" to the console? | 14:23 |
scooper | yes | 14:24 |
shmohamud | write it and paste it to me please | 14:24 |
scooper | console.log('Hello, World!'); | 14:25 |
shmohamud | perfect | 14:25 |
shmohamud | do you know the difference between an Arrow Function and a Regular Function? | 14:26 |
scooper | No | 14:26 |
scooper | But I know about function in Python | 14:26 |
scooper | Are they similar??? | 14:27 |
shmohamud | They are very similar. There are a few important differences. | 14:27 |
shmohamud | Arrow functions don't have their own bindings to this, arguments, or super, and should not be used as methods. | 14:28 |
shmohamud | Arrow functions cannot be used as constructors. Calling them with new throws a TypeError. They also don't have access to the new.target keyword. | 14:28 |
shmohamud | So basically, if you're defining a new class, do not use arrow functions because they don't have the binding to "this" keyword which is usually important | 14:29 |
shmohamud | They're becoming popular in JS code though, because they're more readable for a lot of people than clunky regular functions. | 14:29 |
shmohamud | const logHelloWorld = () => console.log("Hello World!") | 14:30 |
shmohamud | function logHelloWorld(){ return console.log("Hello World!")} | 14:32 |
shmohamud | notice that the second one is longer and must explicitly return something (otherwise it would return undefined). | 14:32 |
shmohamud | Can you write me an arrow function that logs out "This is a practice arrow function" ? | 14:34 |
scooper | const logHelloWorld = () => console.log("Hello Spencer"); | 14:34 |
scooper | I type in the console and receive an error message "say undefined" | 14:35 |
shmohamud | That's good, but don't get in the habit of copying and pasting. | 14:35 |
shmohamud | It's better to rewrite even if you're copying - not that you copied just in case. | 14:35 |
scooper | No I rewrite | 14:35 |
scooper | the code that you paste in here | 14:36 |
shmohamud | Cool, gotcha. Ok, so that's a good arrow function expression. | 14:36 |
scooper | shmohamud | 14:36 |
shmohamud | can you write me a regular function expression logging the same thing? | 14:36 |
shmohamud | yes? | 14:36 |
scooper | I didn't answer your first question yet | 14:36 |
scooper | I was explaining to you what I encounter why writing the code | 14:37 |
shmohamud | Which question? | 14:37 |
shmohamud | Oh, you're getting an error | 14:37 |
scooper | Yes | 14:37 |
shmohamud | const logHelloWorld = () => console.log("Hello Spencer"); | 14:37 |
shmohamud | This is giving an error? | 14:37 |
scooper | yes in the browser | 14:38 |
shmohamud | did you call the function? | 14:38 |
scooper | if you run the command in the browser it get executed immediately | 14:39 |
shmohamud | you have to do "logHelloWorld()" | 14:39 |
shmohamud | that will run it. The expression evaluates to undefined initially, that doesn't mean the function doesn't work. Really good question!! | 14:40 |
shmohamud | Google Chrome's console shows return value as undefined for everything that doesn't return any value in addition to expressions that actually evaluate into undefined. That means, that it will show undefined for statements that simply cannot return anything because it's not allowed by language specification, like variable and function declarations. | 14:42 |
shmohamud | So, no you're not doing anything wrong, it's just the way how console works. | 14:42 |
scooper | shmohamud starting from the basic should include variables, and data type in javascript I think it will be ok for now because I have fkoikoi here | 14:42 |
shmohamud | really good questions scooper. Ok, thanks for letting me know. | 14:43 |
shmohamud | Fkoikoi are you guys in the same room by the way? Just curious | 14:43 |
scooper | yes | 14:43 |
scooper | she is here with me | 14:43 |
shmohamud | Fkoikoi are you familiar with variables and functions? | 14:43 |
fkoikoi | I just begun with python | 14:44 |
shmohamud | I don't want to confuse you. Do you understand how variables and functions are defined in Python yet? | 14:44 |
fkoikoi | yes i do | 14:45 |
shmohamud | Ok, can you declare a variable called "price" and set it to 20. Then print the price? | 14:45 |
fkoikoi | yes | 14:46 |
shmohamud | please do it here so I can see | 14:47 |
fkoikoi | price = 20 | 14:47 |
fkoikoi | print (price) | 14:48 |
shmohamud | perfect | 14:48 |
shmohamud | are you familiar with loops and conditionals? | 14:48 |
fkoikoi | no | 14:48 |
shmohamud | spencer, are you? | 14:48 |
scooper | yes | 14:49 |
shmohamud | can you write us a for loop that prints every even number between 0 and 100? | 14:49 |
shmohamud | here please | 14:49 |
scooper | firstly the are two loops in python for and while loop | 14:49 |
scooper | ok | 14:50 |
shmohamud | good | 14:50 |
scooper | give me two minutes | 14:50 |
shmohamud | Ok, please do it without the aid of any outside materials | 14:51 |
scooper | sure | 14:51 |
scooper | let me do it bit by here | 14:52 |
scooper | value = 100 | 14:52 |
shmohamud | ok first take your time thinking. Thinking should be 80% of programming at least, only 20% writing | 14:52 |
scooper | if value % 2 == 0 print("even number") elif value / 2 == 1 print("odd number") | 14:54 |
shmohamud | close, but read the question carefully. What did I ask you to print? | 14:55 |
scooper | oh | 14:55 |
shmohamud | and this is half of the solution, where is the loop> | 14:56 |
shmohamud | *? | 14:56 |
scooper | the question says even number betwewwn 0 and 100 | 14:56 |
shmohamud | yes, I want you to loop through every number and *only* print it if it's even | 14:56 |
scooper | ok coming | 14:56 |
shmohamud | ok | 14:56 |
shmohamud | fkoikoi are you following so far? | 14:57 |
scooper | value = 100 for x in value: | 14:57 |
fkoikoi | yes, I'm following | 14:57 |
shmohamud | good | 14:57 |
shmohamud | scooper, is that how we declare for loop or variable? | 14:57 |
scooper | no | 14:58 |
scooper | indention most be observed | 14:58 |
shmohamud | I'll let you finish first, then we wlil run it to see. | 14:58 |
shmohamud | ok? | 14:58 |
shmohamud | fkoikoi start reading this: https://www.w3schools.com/python/python_for_loops.asp | 15:00 |
scooper | I m a bit lost on the increamenting part | 15:00 |
scooper | but the logical is there | 15:00 |
shmohamud | that's fine, so can you write what your current solution is and we'll tweak it? | 15:00 |
scooper | logic is the | 15:00 |
shmohamud | ok let me give you a hint. Start with a simpler problem. | 15:00 |
shmohamud | Write me a loop that prints *every* number between 0 and 100 | 15:01 |
shmohamud | can you do that? | 15:01 |
scooper | yes | 15:01 |
shmohamud | ok, let's see it | 15:01 |
scooper | countnumber = 100 | 15:01 |
scooper | for num in countnumber | 15:02 |
scooper | print(num) | 15:02 |
shmohamud | Close again , but when you run are you getting error? | 15:03 |
shmohamud | Traceback (most recent call last): | 15:03 |
shmohamud | File "main.py", line 6, in <module> | 15:03 |
shmohamud | for num in count: | 15:03 |
shmohamud | TypeError: 'int' object is not iterable | 15:03 |
shmohamud | | 15:03 |
shmohamud | I'm getting this one: | 15:03 |
shmohamud | you can't iterate of a number in python with that syntax | 15:03 |
scooper | no | 15:04 |
scooper | I did try it in the terminal | 15:04 |
scooper | I type directly here | 15:04 |
shmohamud | that worked? | 15:04 |
scooper | Let me try it in ther terminal before paste here | 15:04 |
shmohamud | count = 100 | 15:05 |
shmohamud | for num in range(0, count): | 15:05 |
shmohamud | print(num) | 15:05 |
shmohamud | this is what works for me: | 15:05 |
scooper | yes | 15:05 |
shmohamud | You're missing the range keyword, unless my python interpreter is not working properly | 15:05 |
scooper | you got it | 15:05 |
shmohamud | did you include the "range" keyword? | 15:05 |
scooper | I did mentioned the python in built function "range | 15:06 |
shmohamud | well keep in mind I'm only seeing what you paster here. | 15:06 |
shmohamud | Now that we have something that prints every number | 15:06 |
shmohamud | count = 100 | 15:06 |
shmohamud | for num in range(0, count): | 15:06 |
shmohamud | print(num) | 15:06 |
shmohamud | how can you make sure this only prints evens? You almost had it earlier. | 15:06 |
scooper | firstly you need to include a condition statement | 15:07 |
shmohamud | yes | 15:08 |
scooper | should I continue?? | 15:08 |
shmohamud | yes please. change the current answer that prints all numbers so it only prints even numbers | 15:09 |
shmohamud | fkoikoi do you have any questions for me? | 15:12 |
fkoikoi | yes I do | 15:13 |
shmohamud | please share while scooper thinks | 15:13 |
fkoikoi | In the book, the reading talks about the condition being a boolean expression | 15:14 |
shmohamud | yes | 15:15 |
fkoikoi | so I want to know what is a boolean expression | 15:15 |
shmohamud | great question | 15:15 |
shmohamud | Boolean means it's either True or False | 15:15 |
shmohamud | There are lots of conditions we can use in if/else statemenets | 15:16 |
shmohamud | if 2 > 3: (this won't execute because 2 is not greater than 3) | 15:17 |
scooper | for num in range(0, count): | 15:17 |
scooper | if num % 2 == 0: | 15:17 |
scooper | print(num) | 15:17 |
scooper | else: | 15:17 |
scooper | print("No answer") | 15:17 |
shmohamud | if 5 > 2: (this will execute because 5 is greater than 2) | 15:17 |
shmohamud | Scooper, you got it! There's one important thing though, did I ask you to print "no answer" if it's not even? | 15:17 |
scooper | NO | 15:18 |
scooper | FOR THE QUESTION IT ONLY ASK FOR | 15:18 |
shmohamud | fkoikoi notice that scooper has the condition (if num % 2 == 0) ---> This evaluates to a Boolean of True | 15:18 |
shmohamud | If it's even | 15:18 |
fkoikoi | so are they saying that when you are using a condition statement like "if or else" the answer either be true or false | 15:19 |
shmohamud | close fkoikoi. | 15:19 |
shmohamud | So, we use conditionals to tell the program to ONLY execute the following code IF it's True | 15:20 |
fkoikoi | alright | 15:20 |
shmohamud | It's not about an answer, it's about telling the program how to flow | 15:20 |
shmohamud | Computers are dumb, they need us to tell them exactly when to execute code in a program. | 15:20 |
shmohamud | LOL Scooper | 15:21 |
shmohamud | You're good my friend, and you're correct | 15:21 |
shmohamud | I only emphasize this because thinking as a programmer you must become very good at catching details of questions. | 15:21 |
shmohamud | If you wanted to add that, you should've asked me and I would've said nope, I only want to see the evens printed. Remove the extra lines | 15:22 |
shmohamud | does that make sense? | 15:22 |
scooper | for num in range(0, count): | 15:23 |
scooper | if num % 2 == 0: | 15:23 |
scooper | print(num) | 15:23 |
scooper | 15:23 | |
scooper | yes | 15:23 |
shmohamud | beautiful :) | 15:23 |
shmohamud | well done. I think we've had a successful session so far, what do you guys think? | 15:24 |
scooper | Sure can we know what time we should be online everyday excluding saturday with you???? | 15:25 |
fkoikoi | sure it was great | 15:25 |
shmohamud | same time as today | 15:25 |
shmohamud | good to hear :) | 15:25 |
fkoikoi | but I hope this continue everyday | 15:25 |
shmohamud | I will put in at least as much effort as you guys | 15:25 |
shmohamud | The hard part is studying on your own in between our sessions. It takes time for concepts to sink in. | 15:26 |
shmohamud | Do you have any more questions for today? | 15:26 |
scooper | Yes | 15:26 |
shmohamud | Ok, let's hear it | 15:26 |
scooper | sorry not a question but a suggestion | 15:27 |
shmohamud | Yes | 15:27 |
scooper | I advice we stick with python for a while before proceeding to javascript.... | 15:27 |
shmohamud | I think that's a great idea. Once we have Python down, we will be able to learn Javascript much more easily. | 15:27 |
scooper | What I notice when you tried asking me to do some stuff I got lost because I was in hurry to give you a result | 15:28 |
shmohamud | As a programmer, you must prioritize thinking above typing | 15:28 |
shmohamud | Think through the solution first, have at least some big ideas, then type it up | 15:29 |
shmohamud | Good that you caught yourself rushing. | 15:29 |
shmohamud | any further questions? | 15:30 |
scooper | NO I think we are done for today | 15:30 |
scooper | Thanks Shmohamud and Jeff | 15:30 |
shmohamud | sounds good. Make sure to get some of the reading done, both of you. | 15:30 |
fkoikoi | We will definitely put in more effort because i am looking forward to learning from you. | 15:30 |
shmohamud | I'm looking forward to learning with you, I love to teach :) | 15:31 |
*** scooper has quit (Quit: Leaving) | 15:31 | |
fkoikoi | alright | 15:31 |
shmohamud | You're welcome Scooper. Have a good rest of your day Fkoikoi | 15:31 |
fkoikoi | Thank you so much | 15:31 |
shmohamud | You're welcome fkoikoi :) | 15:31 |
fkoikoi | have a nice day too shmohamud | 15:31 |
shmohamud | thank you | 15:32 |
*** shmohamud has quit (Remote host closed the connection) | 15:32 | |
fkoikoi | okay | 15:34 |
*** fkoikoi has quit (Remote host closed the connection) | 15:39 | |
*** fkoikoi has quit (Read error: Connection reset by peer) | 15:40 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 15:41 | |
*** fkoikoi_ has quit (Remote host closed the connection) | 15:43 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 15:57 | |
*** fkoikoi_ has quit (Quit: Leaving) | 16:03 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 17:01 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 18:11 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 18:26 | |
*** jelkner has quit (Quit: Leaving) | 18:31 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 19:25 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 20:55 | |
*** shmohamud has quit (Ping timeout: 480 seconds) | 22:49 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!