« first day (2377 days earlier)      last day (2578 days later) » 
00:00 - 14:0014:00 - 23:00

2:01 PM
I know loops yes
I see
I'm currently mixed between doing SQL and Java
 
2:16 PM
I've just had a look at this article:
Explains very well how good Project Euler is in understanding code
 
2:31 PM
"What happened instead is that I burned out after a week. The text itself was dense and unsmiling; the exercises were difficult. It was quite possibly the least fun I've ever had with a book, or, for that matter, with anything at all. I dropped it as quickly as I had picked it up."
sucks for you :p
 
morn
 
Morning ballBreaker
It sounds just like me, I get overly frustrated when I can't do something
But I keep going in circles with inspiration to learn Java
 
when I can't do something I outsource my problem to india for a dollar
 
anyway, I've only read one programming book, and it was way after I've already been in it
my first programming experience was making games in flash
project euler is only as good as any other fictional problem, it's more fun to solve real world problems, like automating cookie clicker
calculating cookies per second for each purchase and waiting to buy it, etc
 
Heyya Uni and @ballBreaker :)
 
2:34 PM
@ballBreaker xD
What is the quickest and most efficient way of learning Java
I know everyone has their own learning ways
Just want some opinions
 
program in Java
 
That was all serious
 
start a java job with no experience
 
@ballBreaker was almost exactly what I did xD
 
2:36 PM
I'm currently in a Java job
But I'm learning whilst working
 
I got a project there and I had to do it. Which leads to my first statement :D
 
I see, sorry for misunderstanding
 
then there ya go
 
reading a book.
in fact, I learned Java by reading the manual, the javadocs.
 
that sounds fucking boring
You literally just read through that stuff?
 
2:39 PM
hahahaha
xD
I'd personally get bored after a few pages
 
the words of someone who are incapable of understanding the power of words
@geisterfurz007 no, I read while I do
 
How do you go about dealing with something you can't quite understand
 
@Unihedron so you learned during programming?
 
I got myself a sample Hello World program, looked up the pages of every keyword involved
tahdah java apprentice
then I searched for simple tasks to help me pass questions in codingbat, then looked up every page that could be relevant
tahdah java expert
no joke
 
yeah so you got yourself tasks and looked up what you needed
 
2:41 PM
@CrashBandicoot by understanding it
 
@Unihedron What do you mean by sample Hello World Program?
and what is codingbat
?
 
it's just like reading an academic paper, if you're unqualified to understand the concepts, just read 4 other papers explaining the concept
if 4 isn't enough, read 4 more
 
I see
Ah, codingbat is java practice
 
If you can't read, then learn how to read as well
 
convenient
@ballBreaker xD
 
2:43 PM
it's easier in manuals over books, because you already have blue links everywhere
 
What is a sample Hello World program?
 
Just a program someone wrote
 
you can't write one? then get one
 
then check how far you understand the code
 
you're connected to the internet right now
 
2:44 PM
and if you are stuck, look it up
 
yes yes
1
Q: JavaFX Splash sceen with GIF

some FolkRecently I have developed a personal software to help me with my daily schedule. I have tried to have a splash screen of Homer Simpson eating, as a cool startup splash screen, But unfortunately the GIF won't play. here is the whole code public class Homer extends Application { public static...

 
Nice dp there
Thanks for all the help guys!
 
3:23 PM
if I have this statement:
int speed = calcAveSpeed();
Is calc a mathematical function in Java, or is it just the name of the variable?
 
calcAveSpeed() is a method. () after a name represents that it is a method.
 
I see
So it isn't "calculating" anything?
 
nope, not unless you define the calcAveSpeed() method
 
Ah, it makes sense
So anything with brackets next to it is a method?
()
*after a name
what do i use for snippets of code?
 
essentially, yes
I don't understand "snippets of code"
do you mean to paste into the chat?
 
3:37 PM
yes
 
I have no idea
I don't put code in here
 
ok never mind
With "Switch Statements" what is classed as the default block? Is it case 0?
 
no
What documents are you referring to?
 
Say I had this code:
 
the default case is the one executed if none of the other conditions are met
 
3:48 PM
switch (score) {
case 0:
res = "Clean Sheet";
break;
case 1:
etc...
would case 0 be the default block?
 
the default is literally called default
switch (month) {
            case 1:  monthString = "January";
                     break;
 . . .
            case 12: monthString = "December";
                     break;
            default: monthString = "Invalid month";
                     break;
        }
 
oh cool
ok g2g
have a great day!
 
honestly just read through the java docs man
 
bye guys!
 
they will tell you everything you need to know
 
3:52 PM
ok cool, thanks
 
cya
 
whereabouts are they?
 
thanks bye
 
those are just simple tutorials
otherwise use google
I found that through "switch statement java" .. first link
 
3:57 PM
ohai @ballBreaker
 
ohey @wonder
 
posted on April 26, 2017 by CommitStrip

 
@wonder I'm going to the gym, cya buddy!
 
4:15 PM
It's snowing.
 
pic or it didn't happen :P
 
4:32 PM
I have a static variable that is lazy initialized by a static method. In the static method, I have need to access non-static member variables. Clearly this is not allowed. Is there a pattern to solve this issue?
 
4:57 PM
make the static variable non-static?
on calling the static method, create a static reference to an instance of the class?
 
A static method that needs to access non-static members should not be a static method.
Though you could just pass an instance of the object that contains those members to the method.
 
5:35 PM
Or more cleanly, make them exportable from an instance in a functionally relevant container a la public FooData getFooData()
I mean, if this set of data is not too strongly coupled to the instance. Really depends on the context
 
5:57 PM
@wonderb0lt just back man
let me read
the static variable is a server object. It needs to be static. I call a lazy initialisation method that configures the server. The issue is, the config is some member variables of the containing class (set in the class's constructor)
 
6:40 PM
@JennaSloan yer fingey iz on da lens
 
@ballBreaker Yup.
 
you got nice finger tips
very cute
 
@JennaSloan would you mind elaborating on this?
Though you could just pass an instance of the object that contains those members to the method.
 
7:30 PM
@ballBreaker you able to help me out?
 
@TheCoder Something like this? pastebin.com/nPphb7dh
 
Thanks - where would Baz be called from? Here's my addition but I don't know what to pass to configureServer(). pastebin.com/kJhTd3YK
 
 
1 hour later…
8:41 PM
4 messages moved to bin
 
 
2 hours later…
10:54 PM
morn
 
00:00 - 14:0014:00 - 23:00

« first day (2377 days earlier)      last day (2578 days later) »