« first day (2860 days earlier)      last day (2095 days later) » 

6:00 PM
OakBot becomes more and more useless the more we try to use it for something useful :P
 
I could have sworn that Joshua Bloch had something to say about that. xD
 
He does
 
/ej inner
 
@Michael No matches found.
 
/ej inner class
 
6:01 PM
@AMDG No matches found.
 
/ej static class
 
@AMDG No matches found.
 
/ej Enum.values()
 
@motaa No matches found.
 
Meh, whatever
 
6:01 PM
what does the /ej command do?
 
/ej 24
 
Item 24: Favor static member classes over nonstatic
There are four different kinds of nested classes, and each has its place. If a nested class needs to be visible outside of a single method or is too long to fit comfortably inside a method, use a member class. If each instance of a member class needs a reference to its enclosing instance, make it nonstatic; otherwise, make it static. Assuming the class belongs inside a method, if you need to create instances from only one location and there is a preexisting type that characterizes the class, make it an anonymous class; otherwise, make it a
 
tf?
 
Effective Java
EJ
 
ah... so much clearer now
 
6:03 PM
Ah, that's the one! Nested class
 
/ej enum
 
Item 3: Enforce the singleton property with a private constructor or an enum type
Item 34: Use enums instead of int constants
Item 35: Use instance fields instead of ordinals
Item 36: Use EnumSet instead of bit fields
Item 37: Use EnumMap instead of ordinal indexing
Item 38: Emulate extensible enums with interfaces
Item 62: Avoid strings where other types are more appropriate
Item 89: For instance control, prefer enum types to readResolve
 
lol wut wow
/ej inner
 
@AMDG No matches found.
 
/ej class
 
6:03 PM
Item 4: Enforce noninstantiability with a private constructor
Item 5: Prefer dependency injection to hardwiring resources
Item 10: Obey the general contract when overriding equals
Item 12: Always override toString
Item 13: Override clone judiciously
Item 14: Consider implementing Comparable
Item 15: Minimize the accessibility of classes and members
Item 16: In public classes, use accessor methods, not public fields
Item 17: Minimize mutability
Item 18: Favor composition over inheritance
Item 19: Design and document for inheritance or else prohibit it
 
/ej pointless commands
 
@rabbitguy No matches found.
 
He uses the term "nested class" not "inner class".
 
^ he's lying
 
well shoot. I tried
 
6:03 PM
/ej 38
 
Item 38: Emulate extensible enums with interfaces
While you cannot write an extensible enum type, you can emulate it by writing interface to accompany a basic enum type that represents the interface. This allows clients to write their own enums (or other types) that implement the interface. Instances of these types can then be used wherever instances of the basic enum type can be used, assuming APIs are written in terms of the interface.
(source: Effective Java, Third Edition by Joshua Bloch, p.176)
 
/ej pi
 
Item 13: Override clone judiciously
Item 15: Minimize the accessibility of classes and members
Item 20: Prefer interfaces to abstract classes
Item 25: Limit source files to a single top-level class
Item 28: Prefer lists to arrays
Item 31: Use bounded wildcards to increase API flexibility
Item 33: Consider typesafe heterogeneous containers
Item 38: Emulate extensible enums with interfaces
Item 40: Consistently use the Override annotation
Item 44: Favor the use of standard functional interfaces
Item 46: Prefer side-effect-free functions in streams
 
/sandbox
 
Please go play in the sandbox
 
6:04 PM
so, it definitely knows numbers
 
lol is this just a regex serach
 
/ej eleventy-two
 
@rabbitguy No matches found.
 
they have to be real numbers it seems
 
/ej 112
 
6:05 PM
@AMDG There are only 90 items.
 
XD
 
/ej 91
 
@rabbitguy There are only 90 items.
 
/ej -1
 
@rabbitguy Item number must be greater than 0.
 
6:05 PM
lol
 
hahahahaha that effective java item 38 solves my problem that I was having for 2 days!
 
Lemme guess
 
@AMDG No, just String.contains().
 
/ej 1.1
 
@rabbitguy No matches found.
 
6:06 PM
sigh
 
I just put the enum into an interface that I implement in an abstract class in my XSD. That class I can extend and implement the rest in my code
 
try {
    ...
    Integer.parseInt(...);
    ...
} catch(ArrayIndexOutOfBoundsException e) {
    broadcast(String.format("@%s Item number must be greater than 0.", lastUser.getNickName());
}
Imagine a conference with Josh Bloch, but everytime Josh says something, you hear Trump just saying "Wrong." into the microphone. XD
And a clip of Josh staring appears.
Please be a thing
I must have done something wrong. hits F5 Huh, no one said anything still.
Anyone except for @Wietlol heard of Kopi Luwak coffee?
 
Kopi who?
 
Well, it looks like javachat.github.io works now
 
Congrats, all I see is an <h1>
 
6:14 PM
 
Zoe
@JennaSloan Is there actually gonna be something there?
 
@Vogel612 thanks, but no dice. Literally nothing uses that tag. How useful. :L
Oh wait, wrong site. That's on meta.
 
@Zoe Eventually
 
@AMDG Umm, no thanks. xD
 
@AMDG fixed
whyever that does not have a - nor a tag-synonym
 
6:16 PM
So why did you give me this tag?
 
because that single <h1> is the currently intended content :)
 
Oh
Seemed totally random to me until you said that. Sorry.
 
I have no idea what to put on it
 
A form requesting all of our personal information and 2FA to sign in to chat for SO's java room.
 
Sorry, GitHub pages is not secure
 
6:22 PM
Ah right, I can't access javachat.github.io or hackers might steal my info. Got it.
oh wow
the link actually works
Well enjoy your free HTTPS
 
> Tip: GitHub Pages sites are always publicly accessible when published, even if their repository is private, and they shouldn't be used for sensitive transactions like sending passwords or credit card numbers. For more information, see "What is GitHub Pages?"
 
Meh, I was joking about the form
 
@JennaSloan A link to the actual room would be nice. xD
 
Zoe
@AMDG GH pages offers free HTTPS, and they're working on expanding it to custom domains too
 
@Zoe sounds great. I'm sure everyone will be glad to use Microsoft IIS Express w/ HTTPS
 
6:37 PM
There, I added an index page
 
Alright, I'm back to work, and also shopping at a farm.
Bye!
 
6:56 PM
Hello
I have a silly question, now I run my application in a tomcat server, I just installed a websphere server in my computer
can I set both app servers in eclipse or do I have to delete one in order to have the other one?
 
7:31 PM
I think I figured out how to do it
but I got the error "Error creating new liberty server (1: ). Reason: Error creating new Liberty server (1: )." lol
 
8:01 PM
I believe that my issue is that I have "vanilla Websphere 8.5" in my computer, but liberty installed in the eclipse as some kind of plugin
I wonder if I can use the regular websphere, when I click in "IBM" in my servers config, it only shows "liberty" and "IBM bluemix tools"
 
8:20 PM
How about a question unrelated to programming? What does "think of a couple of the messages about life and music that it presents" mean?
 
8:42 PM
1 message moved to friendly bin
 
9:01 PM
nvm
 

« first day (2860 days earlier)      last day (2095 days later) »