« first day (4436 days earlier)      last day (729 days later) » 

00:00
No amount of careful planning will ever replace dumb luck. (source)
 
4 hours later…
04:12
 
3 hours later…
06:48
@SergeyZolotarev It's just how while loops are designed (and how Java is designed)
For loops have a bit that lets you declare a variable, but in Java, you can't have variable declarations in arbitrary statements
AFAIK, the for loop is the only one that lets you declare a variable
You can assign stuff in statements though, but you need to be very careful with that
There's very few places where that's useful
 
2 hours later…
09:14
How did you guys manage to make peace with all these inconsistencies? One loop allows you to declare a variable, others don't, chars go with single quotes, strings with double quotes, arrays have length fields, strings only have length methods, arrays are declared similarly to regular objects, arrayLists are declared with <> (where you have to write Integer instead of just int)... The list goes on and on...
it is called "history"
char single quotes and string double quotes is good design though
That assumes you have enough background to make use of history
there has to be a difference between 'A' and "A"
also, we use IntelliJ, which helps a lot
@SergeyZolotarev ArrayLists being declared with <> is a consequence of generics. It's another concept you'll learn eventually
As for the rest... you generally just have to deal with it
no matter which language you use, there will always be exceptions to the rules
normally, I would recommend learning a language with much fewer exceptions, but I dont know the reason for why you are learning Java, so can't really recommend anything in particular
09:23
The first language is always the worst as well, because you're not able to recognize consistencies between different languages
A lot of languages have similar quirks (such as 'c' for chars and "s" for strings), or similarly-functioning for loops
in most languages, the loops have the same behaviour and the same quirks
so I guess you get used to it
 
9 hours later…
18:19
Happy holidays ⛄
18:36
bit early, innit?
19:02
Yes 😊
 
5 hours later…
23:39
Madara Uchiha completed parts 1 and 2 of day 7! \o/

« first day (4436 days earlier)      last day (729 days later) »