Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Announcements and Showcase
Another JS Tutorial video

okeoke
Registered User
Quote
2023-08-01 23:56:21

Hi,

I've recorded another JS CopperCube tutorial.
It's available here:https://www.youtube.com/playlist...

I hope you find it useful. If you have any questions regarding its content I can answer them here or on youtube. Or I can record another 8 videos - it's quite easy if you have time and don't have a quality bar.

@Luposian I'm looking at you. We need chapter two to be completed till the end of summer.


andgameplay
Registered User
Quote
2023-08-02 03:59:34

Great, I will watch and study your videos, thanks a lot okeoke!


Guest
Guest
Quote
2023-08-02 05:41:31

Thank!


Guest
Guest
Quote
2023-08-02 17:04:15

@okeoke

Great work, friend! It's about time this community had a decent set of JS intro videos. Too bad I'm beyond that part of my learning now. I even learned to say angel instead of angle, Slav-style. Cheers.


luposian
Registered User
Quote
2023-08-04 06:34:39

okeoke wrote:
Hi,

I've recorded another JS CopperCube tutorial.
It's available here:https://www.youtube.com/playlist...

I hope you find it useful. If you have any questions regarding its content I can answer them here or on youtube. Or I can record another 8 videos - it's quite easy if you have time and don't have a quality bar.

@Luposian I'm looking at you. We need chapter two to be completed till the end of summer.

You can be looking at me all you like, but it's hard enough trying to parse through a (I assume, based on the name) Russian or similar country accent, while YouTube does a horrible job with subtitles (doesn't help at all). And then, throw in the fact that CopperCube isn't even used at all in the tutorial and the person is jumping to this program and that file and this command and that output... ugh! There is absolutely NO way I can follow! I'm as lost as a blind kitten in a tornado!

My hearing is not that good anyways (I only really hear moderately out of one ear), so that doesn't help either. I need an amp connected to my headphones and my laptop isn't connected to one (though my M1 Mac Mini is, but I'm not at it very often)

So, yeah... you just keep looking at me... 'cause you'll be looking a looooooong time. I need examples explained to me in (as I call it) "Fool's English" (so simple, even a fool could understand it).


okeoke
Registered User
Quote
2023-08-04 08:17:41

Thanks for your response guys - unfortunately, this is my current level in terms of tutoring and language:) Also today is 1 year as I live abroad, and during this year I sort of embraced my slavicity.

@Luposian
Ok, I see.

Codeacademy doesn't work for you.
Codealong videos doesn't work for you.
Let's do one more step back:https://pepa.holla.cz/wp-content...

You only need chapter 1.


Guest
Guest
Quote
2023-08-04 09:19:42

He probably meant the entire Part 1 and not just Chapter 1.


okeoke
Registered User
Quote
2023-08-04 09:50:34

Yes, the entire first part. In soviet union we only have one part


luposian
Registered User
Quote
2023-08-04 19:34:55

wrote:
Thanks for your response guys - unfortunately, this is my current level in terms of tutoring and language:) Also today is 1 year as I live abroad, and during this year I sort of embraced my slavicity.

@Luposian
Ok, I see.

Codeacademy doesn't work for you.
Codealong videos doesn't work for you.
Let's do one more step back:https://pepa.holla.cz/wp-content...

You only need chapter 1.

Ah, yes... now THAT is more my speed!


luposian
Registered User
Quote
2023-08-04 20:48:17

The examples in the text are slightly different than what I'm seeing, most likely because it's an older version in the text. But I kinda find it interesting that when doing math, it shows a greyed out (temporary?) version of the current calculation, but then produces a solid black number when you hit [Enter].

Also, the "cat face" example produced an error of "undefined" when it should have just ended at the 9th cat face (well, 10th, technically), as shown in the text example. Is there something wrong with the code that a newer version of Javascript doesn't do the same way? What is it?


okeoke
Registered User
Quote
2023-08-04 21:06:59

It works as intended. If you run it in browser it shows you the result of last executed command in the end. That's why you can see 2 if you put 1 + 1 into the console.
drawFaces function returns no value, which means it's undefined. You can modify the the function so it actually returns a value, in this case it will be shown in the console:
var drawCats = function (howManyTimes) {
for (var i = 0; i < howManyTimes; i++) {
console.log(i + " =^.^=");
}
return 'last line'; // new line
};
drawCats(10);



luposian
Registered User
Quote
2023-08-05 03:29:02

wrote:
It works as intended. If you run it in browser it shows you the result of last executed command in the end. That's why you can see 2 if you put 1 + 1 into the console.
drawFaces function returns no value, which means it's undefined. You can modify the the function so it actually returns a value, in this case it will be shown in the console:
var drawCats = function (howManyTimes) {
for (var i = 0; i < howManyTimes; i++) {
console.log(i + " =^.^=");
}
return 'last line'; // new line
};
drawCats(10);

I'm trying to figure out how to make the last Cat Face the last output. The Return only creates a reddish text cat face, which doesn't look right. So you either get "Undefined" or a reddish cat face. I'm thinking if you were to define "howManyTimes" as the maximum number, wouldn't that solve this situation? But I don't know how to write it out. Something seems "off" about the program (what little bit of coding I actually understand gives me that feeling). Is there another way of doing this program to stop at the last cat face and simply have the input prompt with no error message or reddish cat face before it?


okeoke
Registered User
Quote
2023-08-05 06:19:19

Yes - it's further in the book. Keep reading until the end of part 1.


luposian
Registered User
Quote
2023-08-05 08:09:25

wrote:
Yes - it's further in the book. Keep reading until the end of part 1.

Yeah, been there and long past it... I've crashed through so many brick walls, my face looks like a Persian Cat! Or Grumpy Cat. Yeah, probably that, since I'm so unhappy.

The instant I saw the words "Arrays", I remembered my old foe. And I got pummeled just like I did as a kid. Age hasn't made me any smarter in programming, no matter how many times I get up. I just get smacked down again. But I still try... I guess I'm just a glutton for punishment.

I just have to accept the fact, programming of ANY kind is something that I'm simply not geared for... not even a kid's-level book can fix it! I doubt even "Javascript for Dummies" would fair me any better. I'd be willing to bet money on it!

Thankfully, kindness and compassion is not in short supply around here. Tis likely the only way Stage 1 will see conclusion. Thankfully, not too much else needs to be done for that, I don't think.


okeoke
Registered User
Quote
2023-08-05 09:41:41

You're just lazy, I told it to you first time you posted your game. And you're proving my point. If you spend all the time you use to type your vague messages to actually learning something or working on your game it would be done already.

Array is a super simple concept if you think about it longer than 15 seconds. Do you do grocery shopping? Have you ever bought a box of eggs?

The box itself is an array. Each egg is an element of the array. It can contain different amount of eggs - 4, 6, 10, 12, 24. This is the length of the array. In order to cook a fried egg you need to get an egg from the box first. You can get any, the only difference is its position in the box. If you take a pen and mark all egg slots starting from 0 - this will be an index of each slot. Now you can take the egg from index 1, or 7, or 3. Exactly, how you do it with arrays.

Now imagine, the you were putting am egg box into the fridge and it felt from your hands. You don't want a cracked egg in your fridge, so you start getting each egg one by one, inspect it and if it's not cracked - put it back. You do it for every egg from top left corner of the box to the bottom right. That's a for loop.

So what is so complex about it?


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact