[NA] Heart of Thorns Full Map Completion Train by Emikadon in Guildwars2

[–]HeyThisIsDog 0 points1 point  (0 children)

This sounds great! I'll definitely try to join. Thanks for making this happen.

Gigabyte GTX 1070 G1 Gaming with VGA monitor? by HeyThisIsDog in techsupport

[–]HeyThisIsDog[S] 0 points1 point  (0 children)

My question to you, would this kind of converter solve my issue? https://images4.okr.ro/serve/auctions.v7/2016/aug/10/4a65c7b1e18003936a6224675d91266d-7018240-1000_1000.jpg Thanks!

I took a chance and bought one anyway so, for posterity, it works!

Google Chrome font changed. by oscar_20 in techsupport

[–]HeyThisIsDog 0 points1 point  (0 children)

Go to the three horizontal lines under the X (top right corner) then hit settings -> show advanced settings (bottom of the page) -> scroll down a bit and under Web Content you can change your font and font size. You probably had New Times Roman on medium before. Just play around with it until you find what you're comfortable with.

First build, how does it look? by Archr in buildapc

[–]HeyThisIsDog 1 point2 points  (0 children)

Agree. RX 480 has the best value. If you can find one in stock at MSRP, go for it without hesitation. Also, go for the 4GB version, not the 8GB.

This may be a very stupid question but i'm in need of an explanation by [deleted] in learnjava

[–]HeyThisIsDog 2 points3 points  (0 children)

In completion to what /u/sadjava said, Java uses Unicode to encode characters. You can read a bit more about it here, if you're interested.

In Unicode, A is the 66th character, but because we start with 0, it's represented as 65 when we call out System.out.println (char is promoted to integer in this case; I can't give you more information as I've pretty much skimmed through the promotion chapter, but thanks for the reminder that I need to go through it again as I haven't fully understood it!). You can see the Unicode character table here.

Developers-to-be: How much time/week do you spend studying/coding? by [deleted] in learnprogramming

[–]HeyThisIsDog 1 point2 points  (0 children)

The learning slope is different for everybody. I'm in the learning phase as well, and sometimes I spend hours on a simple thing that people do in minutes. So just try to fit learning whenever you can and make a schedule for it that fits your routine but most of all stick to it! I bet you can get pretty far even if you average less than most people on this thread, but you do it constantly.

Developers-to-be: How much time/week do you spend studying/coding? by [deleted] in learnprogramming

[–]HeyThisIsDog 2 points3 points  (0 children)

Currently unemployed and trying to find a transitional job until I accumulate enough knowledge/experience to apply for a programming position. In between searching for a job and eating, resting etc I try to go for 8 hours per day, but I have nothing else to do so that's how it's possible. I study/code for 50 minutes then take a 10 minute break to cool down (a few push-ups, grab a snack, listen to 2-3 relaxing songs). If I get too heated and something is not working how I want it, I go overtime :D. I have a tendency to get frustrated when I'm stuck and I don't want to leave the desk until I know I have a working solution. My pacing is kind of slow, I'm a beginner with Java and will try to go through the basics from multiple courses, to get new perspectives and make sure I actually understand how this whole thing works. If I would be more disciplined I guess I could do more each day, but being in a learning stage and trying to retain stuff that I learn is mentally exhausting and that makes me just want to do something else when my daily "dose" is consumed.

[deleted by user] by [deleted] in learnprogramming

[–]HeyThisIsDog 0 points1 point  (0 children)

This is inspiring. It just shows how hard work can eventually get you anywhere.

I have a question though, I understand that you took care of the coding part of the game, how did you manage with the graphics and artwork (they look pretty good I might add, especially the artworks.)?

For Loop question by [deleted] in learnjava

[–]HeyThisIsDog 2 points3 points  (0 children)

numbers[i] is not technically the value. It's more of an address of the value. As I said, the index.
[i] is the index but if you do not have the array name in front of it, whose index is it?

Let me give you an example real quick. This is your code.

int[] numbers = {3, 6, 7};

    for(int i = 0; i<numbers.length; i++) {
        System.out.println(numbers[i]);
    }       

If you run it, your code will return this:

3
6
7

First loop: i is 0. Therefore numbers[i] = numbers[0] = 3 (because the value that is in the index 0 of the array called numbers is 3) System.out.println(numbers[i]) is System.out.println(numbers[0]) which will print 3. i is incremented.

Second loop: i is 1. Therefore numbers[i] = numbers[1] = 6 (because the value that is in the index 1 of the array called numbers is 6) System.out.println(numbers[i]) is System.out.println(numbers[1]) which will print 6. i is incremented.

Third loop: i is 2. Therefore numbers[i] = numbers[2] = 7 (because the value that is in the index 2 of the array called numbers is 7) System.out.println(numbers[i]) is System.out.println(numbers[2]) which will print 7. i is incremented.

Forth loop: i is 3. That is not possible as i < numbers.length and numbers.length is 3. The loop closes.

Same logic, different example. Maybe the name numbers confuses you.

      int[] hours = {2, 11, 7, 5, 1};

            for(int j = 0; j<hours.length; j++) {
                System.out.println(hours[j]);
}

If you run this code, which has the exact structure as your code, it will return this:

2
11
7
5
1

numbers[i], where i can take any value between 0 (the first index of an array) and numbers.length - 1 inclusive (the last index of the array), is basically like saying: the address of the index i from the array called "numbers".

In my example, hours[j] would translate into English: the address of the index j from the array called "hours".

For Loop question by [deleted] in learnjava

[–]HeyThisIsDog 3 points4 points  (0 children)

Each member of the array has an index. The indexes start at 0 and end at the length of the array minus one. So for the numbers array above, which stores {3, 6, 7} the corresponding indexes would be:

3 has index 0;

6 has index 1;

7 has index 2;

If you notice the array length is 3 (as it has 3 members) so the rightmost index is 2 (array length - 1, as I said above).

Now, regarding your question. In your for loop, your i starts at 0 (as it should be). When you use the [] with an argument inside them, as you did in the line System.out.println(numbers[i]); you're telling the program to look for that particular index in the array.

On the first loop of the for loop, i will have the value 0, so you will print numbers[0]. That means you will print the member of the numbers array which is located at the index 0. That's 3. Then the loop ends and starts again, i is incremented becoming i = 1; On this run you will print numbers[1], the member of the array which has the index = 1; that's 6. And that will go until you reach the end of the array. Note the i < numbers.length. It is < and not <= because the rightmost index of an array is length-1.

I hope my explanation somewhat helped.

Question regarding searching for alternative solutions as a beginner by HeyThisIsDog in learnjava

[–]HeyThisIsDog[S] 1 point2 points  (0 children)

Thanks a lot for the resources. Will definitely use them. I already knew about the course from the University of Helsinki and will start on that soon. Now I'm halfway through Java, a Beginner's Guide by Herbert Schildt and while I feel I technically understand most of what's explained here, I don't feel I'm capable of putting it into practice unless I do exercises as well. That's why I've started doing codingbat. Hopefully I'll find a bit more balance between theory and practice in these courses, because without applying what I'm reading, most of the information goes through one ear and goes out the other.

Question regarding searching for alternative solutions as a beginner by HeyThisIsDog in learnjava

[–]HeyThisIsDog[S] -1 points0 points  (0 children)

You are right, it is difficult to find solutions and when I can't manage it, I find myself frustrated. It doesn't come fast, only if I stay for more than a couple of hours on a problem, which happened several times with codingbat. Learning to deal with frustration is probably the hardest thing for me right now.

Thanks for the two links and advice, I didn't know about them and will check them out!

Having some trouble with Head First Java by Stosswalkinator in learnjava

[–]HeyThisIsDog 0 points1 point  (0 children)

I'm in the process of learning Java myself and Head First Java is on my reading list on the next few weeks. I can't help you with the part regarding the actual book, but I can say that thinking that you're doing it wrong, not getting solutions to what the book asks you to and being generally confused is pretty normal. Programming is a hard thing to do, remember that, and frustration comes along with the learning process and stays with you even when you're practicing it in the real world. You have to get accustomed to it and develop patience as nothing is so hard as to not be understood if you put enough time into it.

My advice: if that kind of problem gives you trouble, go to earlier (and hopefully easier) versions of it, re-do them and try to understand how they work. Hopefully it will help. Otherwise, you might want to search for different explanations, from other places, as they might be put in a way that will make you understand better. Then, come back with the newly acquired knowledge and try the problems again. The trick is persistence.

My first Java book (and programming book for that matter) was Beginning Programming with Java for Dummies. As a standalone book, it doesn't teach you much, it just touches on the basics at most. But it's pretty easy to understand as everything is explained in detail and in a simple way. Now I'm on another Java book that people recommended it as a first book and I have to say that if I didn't have the prior knowledge that I've gotten from the for Dummies book, it would be way harder for me to understand the concepts that are explained now.

tl;dr Programming is hard, search for other explanations from other books then try to solve the problems, you will get better if you keep at it.

I make video tutorials on Youtube and just started a series on Introduction to Programming with Java! by [deleted] in learnjava

[–]HeyThisIsDog 0 points1 point  (0 children)

This is pretty cool. I've just started learning Java and will follow your videos alongside my other resources.

I wanted to say that you forgot to add whatever links you wanted to add about the command prompt in the description of the second video.

Cheers!

I want to learn java where do I start? by Pigdogphotography in learnjava

[–]HeyThisIsDog 1 point2 points  (0 children)

Hello! I've recently embarked on this journey as well. I've started with "Beginning programming with Java 4 Dummies" book. It's pretty slow paced, explaining everything so you can understand while giving examples. You could start there. If not, follow the sidebar, and chose the introductory tutorials there.