« first day (1536 days earlier)      last day (3388 days later) » 

4:04 PM
Enums are constants.
PERIOD.
 
The instance references are constant, but technically java enums can have mutable data. (Anyone implementing such an enum deserves a whack though)
 
@kiheru Well, that's pretty much "constant" means, you can have constant arrays but they are indeed mutable, just fixed in length as you cannot reassign with a different lengthed array
 
(does not concern special cases, like when implementing singletons with enums. then there can be valid reasons for mutability)
 
don't implement singletons with enums if it's dumb though..
because a public final eagerly initialized INSTANCE field does exactly the same..
 
4:20 PM
@Vogel612 The class also has to be final & constructor is protected so no new instances can be created.
 
well that's singleton for you..
it makes no actual sense to implement a singleton class as non-final...
at least no apparent sense to me..
 
@ItachiUchiha requires effort that noones care about. Do things fast and you'll get appreciation, clumsy code doesn't matter
 
Enum singletons look odd to me too, but there are valid reasons for using them. For instance, if serialization is an issue, enums are the easiest way to get that right. If it becomes a common pattern, maybe it starts some day to look less odd.
 
appreciation ? Nobody appreciates clumsy code
 
@ItachiUchiha the appreciation that matters comes from people who don't even know code. I am talking about money man :D
 
4:23 PM
@DroidDev invalid
People only appreciate if you act busy, not that you actually do a lot.
Because the people who doesn't understand code can't measure tasks as effort spent.
 
@Unihedro I got 25% of my salary as bonus recently, because I finished a 2 months project in about one month or so. You do projects fast, company's value increase and they can get more projects
this is one thing that is appreciated
 
@DroidDev Yes, I definitely recommend acing every project.
 
@Unihedro well...you can write a code good or you can write a code fast. Two things can't be done at same time...at-least not in most conditions
 
@DroidDev Unless you're a Jedi.
 
@Unihedro lol, ya...if no-one is going to appreciate a good written code, then its like wasting time. If I have to train a person, I'll tell them about project architectures and good code writing techniques, but, when it comes to money, IT'S SPARTAAA!!!
 
4:31 PM
@DroidDev no it's not
 
@Unihedro you'll know
 
I hope I'll never have to maintain your code
 
When you write spaghetti and unmaintainable code and expecting no one will notice simply because it passes QAs you're passing it to Them and giving up your abilities to code well.
It's a slippery downhill, oh well, your own loss not mine
 
@Unihedro Reminds me of Kylar
 
Lol
 
user4202350
4:33 PM
Hi Shinchan
 
user4202350
Please
 
@ItachiUchiha Heh, made me wonder where Kylar is.
 
user4202350
Unihedro
 
user4202350
DroidDev
 
user4202350
You guys are awesome
 
user4202350
4:34 PM
Show some courtesy
 
In courtesy of the Meta spirit!
 
lol, meta spirit! Next thing you know, OP is showing suicidal instincts :P
Never ask for an upvote AND never ask for upvote with sugar coated request
 
@ShaU When you post a question here, it gets more visibility, and that means often more votes - and most likely the votes go to the same direction as votes before. A good question will get more upvotes, and a bad question will get more downvotes. It's not that people are after you, but you posted a link to a question that was already at -1. The expected result was getting more downvotes
 
^
 
4:38 PM
Begging for votes most likely ends in the opposing way because it encourages people to vote correctly.
 
user4202350
No
 
user4202350
Some enemy is after me
 
@ShaU Your profile pic suits your current condition :P
 
user4202350
He created one bot which which will downvote everything i do.
 
lolz
 
> He created one bot which which will downvote everything i do.
LMAO!!
 
user4202350
Hey Shinchan You are my old freind. FOR THE SAKE OF OUR FREINDSHIP
 
OH COME'ON!!!
 
4:44 PM
Upvoting a question, knowing it is trash
 
@ShaU If you keep highlighting the question enough, someone here who thinks it might indeed deserve a -4 may notice it
 
user4202350
For the sake of Lambda Expressiom
 
He is at 19 reputation :P
You need 20 to chat in a chatroom
 
10 mins ago, by Unihedro
Turns on the downvote missiles launcher...
 
how are you able to chat?
 
4:45 PM
Caching.
eagerly waits for cache to refresh
 
user4202350
Hey Thanks Shinchan
 
user4202350
You are my True Freind
 
@ItachiUchiha You actually upvoted it? xD
 
:O
 
4:46 PM
Aborts the missiles, tunes on higher firepower
 
At-least don't BEG. Self-respect is also a thing. It is called reputation, because it is earned and not BEGGED
 
@Unihedro What?
I didn't do anything :P
 
@ShaU It's public domain, how would anyone in the room not be watching?
 
> Paranoid thinking typically includes persecutory beliefs, or beliefs of conspiracy concerning a perceived threat towards oneself (e.g. "Everyone is out to get me")
 
-3 again, but apparently -4/+1
 
4:50 PM
@ShaU You need some sleep! And some time away from SO!
 
@ShaU lol, votes can only be cast once, how can he downvote again
@ItachiUchiha no, let him chat. I am enjoying kinda :P
 
@DroidDev You're polluting the transcript with your selfishness. :P
 
@DroidDev He is driving me crazy!
 
isCornered
 
fge
yawn
Two days before job interview
 
4:52 PM
@ShaU Please change your profile pic
 
@fge Good luck!!
 
> It is irritating me more than you are :P
@fge May your Talent shine :)
@fge Btw, what is the post they are hiring you for?
 
@fge All the best!! :D
 
@ItachiUchiha I think it's Oracle
 
fge
@ItachiUchiha dev
Beginner dev (which I am)
I want that instead of experienced systems engineer (which I am, too)
 
user4202350
4:54 PM
I cahnged
 
Beginner DEV?
 
:O
Systems engineering is fun!!
 
@ShaU Ohh, come on :@
I don't like 2 shinchan in the same room
 
fge
@ItachiUchiha well, as a professional, yes
Developing for oneself and developing in a professional environment are two different things
 
Sometimes I do not understand what @fge was in his past
 
fge
4:56 PM
@ItachiUchiha as I said; systems engineer
I designed server architectures and implemented them from scratch
With logging, backups and tutti quanti
 
Sounds boring to me :P
It is good, you have switched to DEV!
 
fge
@ItachiUchiha oh it wasn't; but it was highly frustrating
The problem is that when you want to experiment in this branch, you need funding; and I've never had that, so I just quit out of sheer frustration
Experimenting in programming, by contrast, is very easy
 
49 messages moved to Trash
 
fge
Just code!
 
Oooh!
 
5:01 PM
thinks "Just code!" is fge's parody of "Just Dance"
 
fge
Yeah well, I can't dance
 
But you can code :P
 
@ItachiUchiha ummm....??
 
@ItachiUchiha I like that site because it has an avatar plate.
 
5:04 PM
@ItachiUchiha I haven't played much RPGs. That site is filled with arcade RPG that I never played
 
I am kind of solo, until someone don't challenge me in my favorite
 
/ Thinks @DroidDev hass never played MMORPG
 
fge
Hmwell
Time to start a new chapter in grappa
 
14 messages moved to Trash
@fge :O
 
fge
5:10 PM
Goal: easing the production of results from parsing
Parsing is all good and well, but if this is all you do, it's useless
 
Improved processing?
 
fge
"This is a valid CSS document" -- "OK, but where is my CSS then?"
@Unihedro yep...
parboiled1 gives nothing really usable for that
And I want to change that
 
@ItachiUchiha you are right. In fact, I've never played an ORPG. I just played some NFS with some guys over wi-fi LAN for two days or so...
 
fge
I already did with event based parsing but that's not enough
 
Somehow I predict that you're going to get your job halfway across your work on Grappa and then the project will get indefinitely on hold. :p
 
fge
5:12 PM
@Unihedro no, certainly not, I want to see grappa to a usable state; and all other projects as well
This will take time but I'll do it
 
:D
 
fge
And of course I never refuse help :p
 
on the other hand, I am still writing libraries for various re-occurring stuff in apps
I wrote one for remote calls
another for chatting apps over pubnub
 
likes (and am) coding APIs and frameworks
Once I finish at least a few of the projects I'll work on the website again.
 
fge
@DroidDev I'd have thought the offers were plentiful given that remote everything is all the rage
 
5:14 PM
those things are fun :D
 
Yes, they are! Right now I only bought it for the package name.
com.gmail.inverseconduit.* -> com.unihedro.*
So... There's that.
#LifeHack
 
YAY!
 
fge
I may buy my own domain, since it's still free... low.iq
 
:|
If you really need a cheap one, go for .xyz
 
I just wanna buys some internet space for my idea of logging and all that for an app that I want to develop
 
fge
5:15 PM
It's Iraqi though, so not easy to obtain
 
^^^ good music
 
@fge well...it still needs some improvements...so...
 
fge
@DroidDev do you test it?
I mean, like, really testing it, mocking failures and everything?
 
^^^
Thorough testing!!
 
@fge ya, I have implemented it on my projects at work. So, it is tested in real-time
 
5:17 PM
@DroidDev no, automated testing, unit tests and mocks, etc
 
fge
Uh, no, code should not be tested in production
 
^
 
@ItachiUchiha thanks
 
@Unihedro never done that, but, once I am sure of its completeness, I'll go for those too.
 
5:18 PM
@DroidDev :|
^ this user has never written tests
ermergerd
 
actually, the secure channels are still to be integrated
 
fge
Uh... json-schema-validator starred 324 times and json-patch 69
 
<--- Wants to earn moar
 
work more
Get a part-time while you freelance
 
Heya All
 
5:20 PM
@DroidDev You... won't
 
Which is what I used to do until I lose my part time job :P
@TheLittleNaruto Hiya!
 
@Ita Can you tell me the anime name again ?
 
<--- is working about 16-18 hours a day
 
@TheLittleNaruto Which one?>
 
<-- is coding whenever they can
JCE is long overdue :P Been dealing with static pages with Sam and Fox
 
5:22 PM
@DroidDev Oh, snap o_O
 
@ItachiUchiha starts from F, I cant remember, You told me about , having only 25 episodes.. etc..
 
Fate Stay Night
 
Ok thanks
 
fge
Oh? Not Zero?
 
@ItachiUchiha Which site ? Youtube or anime44 ?
 
5:23 PM
Let him first watch FSN :P
 
fge
OK...
 
Then the Prequel
FSN -> 2005
 
@OlegKuznetsov fighting to get some jobs on odesk. Bidding is bitch ;)
 
F/Zero -> 2006
 
Site ? @Ita
 
5:23 PM
@DroidDev Oh, at least it's not an office...
 
yawns
Got to go now. See you all in another three years or so!
 
See you @Uni
 
fge
<-- has recently watched GIST-SAC again
I can't get enough of this, it's just fantastic
 
@OlegKuznetsov I have a full-time job too. But, thank god, there are no restrictions about what I do with my time after the job, so I can try to earn some extra bucks :D
 
5:25 PM
@DroidDev O_o
 
@ItachiUchiha Closed the tab in eight seconds. Thanks but no thanks :p
 
@TheLittleNaruto I don't know, google :P
 
@OlegKuznetsov I know lot of people who do that...
 
@DroidDev I'd try to do it too, but I busy with other things on the week, so every week is like a marathon :-/ Plus, I've heard it's hard to get your first contract on oDesk [it may take months] :(
 
Unihedro has stopped a feed from being posted into this room
 
@ItachiUchiha Thanks
 
Unihedro has stopped a feed from being posted into this room
 
Cya later
 
5:29 PM
bye
 
Cya
@fge What is it about?
 
@OlegKuznetsov hard is a very very small word for it. But hey, assume good faith.
 
ouch...
 
Using Eclipse Luna i'll be thrown no such element exception when trying to read my Txt file. I have the file in my project folder, any ideas?
 
@charen try to drag and drop file
 
5:33 PM
What has it to do with Eclipse Luna??
 
user4202350
I hate Luna
 
Well i kind of ripoffed my similar code from Kepler and there it worked, so i thought maybe it has to do something with that
 
@ItachiUchiha Eclipse does use its own (crappy) compiler.
 
@Unihedro It has its own dynamic compiler :)
 
@ItachiUchiha That's practically what I just said.
But what does "dynamic" mean?
 
5:34 PM
@Unihedro Go to sleep :P
 
user4202350
Some thing which is not static
 
fge
@ItachiUchiha you know Ghost in the Shell, right?
 
Anyways, i create a File name = new File("Movies.txt"); then i'll read it in with while(sc.hasNextLine) where sc is a Scanner but then nothing happens
 
fge
Ick
 
@fge Ghost in the Shell: Stand Alone Complex
 
fge
5:35 PM
twitch
 
Oh, boy...
 
i get thrown error, nosuchelement
 
fge
@ItachiUchiha yes, that
 
@fge :D
 
File, ohh
I close my eyes
 
5:36 PM
@charen Well, that
 
@fge FILE ALERT
 
@fge This was calm!
wasn't expecting this
 
.nio? or .io?
 
@fge Is it good?
 
5:37 PM
nio is an error anyways
but yes i am using .io file
 
you shouldn't.
use nio
 
fge
I can't go postal every time someone mentions File, otherwise I'd be in a perpetual rage
4
@ItachiUchiha excellent; one of the best animes I've ever seen
 
@fge :')
 
proposing to add to the room description
 
fge
On par with Fate/Stay Zero
 
5:38 PM
^^ +1
 
@fge standalone complex, eh...
 
@ItachiUchiha But wait! It includes a link to the essay of why File sucks!
:O
 
I didn't really understand that one..
 
import java.nio.File gives an error..
I'm confused
 
But I never finished it..
@charen what java version are you on?
 
fge
5:39 PM
@charen read the link I posted
 
@charen Do you use JDK 6?
 
@charen You need Java 7
 
fge
@charen File exists no more, it's a Path
@Unihedro here you go :p
 
is stunned
 
i have latest
 
fge
5:41 PM
@charen read this, and then read it again for good measure
 
Okay reading this..
How should i create Path object? Just Path name = new Path();
 
fge
@OlegKuznetsov why not just use Files.newBufferedReader()?
 
Oh, well <_<
 
fge
@OlegKuznetsov also, if you want to process line by line you have two other solutions; Files.readAllLines(), and, starting with Java 8, Files.lines()
(the latter returns a Stream which you should initialize in a try-with-resources; Stream implements AutoCloseable after all, and Files.lines() is I/O bound)
try (final Stream<String> lines = Files.lines(...)) { lines.filter(blah).forEach(blah).orWhateverElse() }
 
5:53 PM
@charen looks like @fge provided solution... And a nice code review, lol :D
@fge omg. Wrappers, wrappers are everywhere! O_o
 
fge
@OlegKuznetsov you're doing I/O; I/O can fail; deal with it :p
 
Changed it into @fge way, now ended up with NullPointerException
 
fge
@charen pastebin code and stack trace
 
fge
And line 34 is what?
Also, use Files.newBufferedReader() as mentioned earlier
 
6:02 PM
It's .split(";")
 
fge
Ahwell, it's obvious what happens, isn't it?
You read two lines each time
One in the condition of the while loop and another time at the beginning of each loop iteration
Remove the second read
And use Files.newBufferedReader()
The way you create your reader here, it is never closed
 
Removed it. How could i skip the first line tho?
Okay i'm stupid
 
fge
Ah, it's a CSV
Well then use a CSV library
 
Anyways, it's working for now, thank you
 
fge
6:19 PM
np
 
Does PrintWriter work with Path or is there something equivalent?
 
fge
It will as long as you obtain the necessary Writer to wrap
For instance a writer issued from Files.newBufferedWriter()
 
mm, okay will try
 
fge
java.nio.file only provides buffered versions of readers and writers since there is little reason to use anything else; but if you want to "do it raw" you can always obtain a *Stream instead and wrap that into a Reader or Writer yourself. However, always do that in the resource opening of try-with-resources
You are not limited to one resource
 
fge
6:45 PM
git bisect absolutely rocks
Worse thing is, such a simple thing was never in any other SCM before
 
6:56 PM
Hi all
 
heyo!
@fge Can't agree more :(
 
user4202350
Hi Team,
 
Which do you guys like better - Glassfish or Tomcat?
 
@taco neither.
 
user4202350
webshpere
 
7:04 PM
Glassfish bugs and Tomcat is a pain to configure
 
websphere is by ibm, right?
 
user4202350
Yes
 
I'm just learning, so not looking for anything for production. Which is the lesser of the two evils? I'd eventually want to be able to have failover between my apps
I've gotten Tomcat working with one of our production apps, and Glassfish I'm just trying for the first time
 
There's other evil's...
 
Those are my choices
:/
I've heard my co-workers opinions, but when you have a hammer, everything looks like a nail
 
7:09 PM
how is that different for us??
 
fge
@Vogel612 Tomcat, a pain to configure? I haven't had any trouble configuring it
 
CATILINA_HOME
random splitting of configuration directories...
a colleague of mine had all of it..
 
Tomcat a pain? o_O
You will die with any other AS
 
I'm using Maven with IntelliJ and haven't had to configure much yet.... I'm guessing my combo is hiding some of the pain for me
 
fge
@taco relying on your IDE is good as long as you use your IDE to run your container; in production it's a different story
 
7:20 PM
@fge good to know. I'm new to Java. Our senior engineers handles that part. We work in sprints, so I'm just picking up tasks in projects, and am doing fine so far, I'd just like to know this from the ground up
 
fge
@taco application failover is a tricky subject; there are many solutions available, and you should pick your solution according to two criteria at least: 1. how easy is it to deploy? 2. how easy can you test it?
 
I'm trying to remember how a previous company I worked for did it
 
fge
@taco at the developer level, what you should be able to test is the behavior of your particular app instance when it faces an error; it should react as defined by the design
 
I think they had two solaris zones running tomcat instances and somehow failed between them
 
fge
Well, forget about zones or anythng
As a dev this is not your concern
 
7:23 PM
maybe it was BEA weblogic
 
fge
As a dev you should have the means to test the failover API
 
i think it was weblogic actually, come to think of it
 
fge
You should have the means to inject failures and test that the behavior of your application matches what the global design document says
 
It sounds like Oracle bought BEA, hmm
Our shop isn't very big, so we do concern ourselves with some of this stuff
Ideally, we wouldn't
thanks for the input, still not sure which to use tomcat or glassfish. I'll do more research
 
8:11 PM
    Hey @fge, you helped me before and i'd really appreciate if you'd consider again wasting your time on me. So i'm trying (still) to write in the file. I've done some googling and got to this:

    try (BufferedWriter writer = Files.newBufferedWriter(moviePath, StandardCharsets.UTF_8,StandardOpenOption.APPEND, StandardOpenOption.WRITE)){
    			writer.write(movie.returnToTxt());

    		} catch (IOException e) {
    			// TODO Auto-generated catch block
    			e.printStackTrace();
    		}

Although, this does not do anything. If i remove .APPEND from Open.. then it will WRITE in the top of
Gosh, all went in fixed font
I'm really bad at this
 
8:48 PM
Morning fellow Java peeps!
 
1 message moved from JavaScript
 
fge
@charen you have no choice but to read that first line and treat it in a special manner
 
@rlemon for one message?? you're being overzealous IMO..
 
@Vogel612 he wanted to say hi
what is overzealous about that
 
no need to move it, just tell him...
then he can say Hi, too..
 
8:57 PM
but we have the tools in place to move the message to the appropriate room. there is no problem in that
 
I think it's shooting tank rounds at flies when you do this for one message..
sure trash to trash, but normal conversation can (and IMO should) be led without messages getting moved around ;)
 
why? what problem does moving messages bring up? it is one message saying hi to the Java devs
 
 
2 hours later…
11:19 PM
helloooo
ii need to know how to get textArea to show, why can't i just line it up with the buttons?
i've set bounds set visible
trying to make a button open a new pane but it sounds like a pain
 
fge
11:47 PM
@GettingNifty Swing?
 
hey guys, still learning things about Path. Is there any ways to rename Path like it could be done with a File?
 

« first day (1536 days earlier)      last day (3388 days later) »