Debugging

2017-10-22

Java: FizzBuzz original

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.util.Scanner;
public class FizzBuzz {
public static void main (String[] args) {
int n = 100;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
System.out.println("FizzBuzz");
} else if (i % 5 == 0) {
System.out.println("Buzz");
} else if (i % 3 == 0) {
System.out.println("Fizz");
} else {
System.out.println(i);
}
}
}
}

Language has not been declared.
As you can see there is an unusual section of whitespace in the codeblock. Looks like this on my local machine: https://imgur.com/a/7sph0

Java: FizzBuzz original

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import java.util.Scanner;
public class FizzBuzz {
public static void main (String[] args) {
int n = 100;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
System.out.println("FizzBuzz");
} else if (i % 5 == 0) {
System.out.println("Buzz");
} else if (i % 3 == 0) {
System.out.println("Fizz");
} else {
System.out.println(i);
}
}
}
}

Language has been declared (Java). Looks fine.

Java: FizzBuzz extended

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import java.util.Scanner;
public class FizzBuzz {
public static void main (String[] args) {
System.out.println("I will print the numbers 1 to n using the FizzBuzz rules. Choose n: ");
Scanner in = new Scanner(System.in);
System.out.print("> ");
n = in.nextInt();
while (n < 1) {
System.out.println("Choose a valid n which lies in the positive real integers.");
System.out.print("> ");
n = in.nextInt();
}
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 && i % 5 == 0) {
System.out.println("FizzBuzz");
} else if (i % 5 == 0) {
System.out.println("Buzz");
} else if (i % 3 == 0) {
System.out.println("Fizz");
} else {
System.out.println(i);
}
}
}
}

Language (Java) has been declared and scrollboxes triggered.
As you can see the horizontal scrollboxes are broken. Looks like this on my local machine: https://imgur.com/ehcGaPF

I could not find equivalent examples in either HTML5Up’s demo or your demo.

Rounded corners are broken in all examples and both browsers (Chrome and Edge).

Blockquotes

Spacing broken, regardless of whether I use > Quote or % blockquote % / % endblockquote % (with curly braces). Looks like this: https://imgur.com/GAdzyDW

Lorem ipsum
Lorem ipsum
Lorem ipsum

Compare example from HTML5Up’s demo: https://imgur.com/qkLvmGb
Your GitHub repository and helloworld pages have no equivalent example (I checked).

The spacing between the end of an image and text is off as well (although I am sure I could fix this by brushing up on HTML/CSS): https://imgur.com/hJxSTrv

Thanks for taking the time to go through all this.

All examples done in Chrome. The same issues persist in Edge too.


Comments: