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

6:41 AM
Morning Java!
Anyone out there?
as nobody is here at this moment, I posted it as a question
0
Q: Generate a String for a given size

Crazy NinjaHow can I generate a String of a given size? int someLimit = GlobalLimits.BULK_SIZE; I want 3 Strings which satisfy the below conditions. - RandomStr.length < someLimit.length - RandomStr.length = someLimit.length - RandomStr.length > someLimit.length This is what I have tried so far. pri...

feel free to share your opinions. You are always welcomed :)
 
7:12 AM
morn
there you go
 
morn
o/@CrazyNinja
 
7:42 AM
morn
 
hey
 
yo hans
 
im still alive
^^
wheres caprica
:(
 
@Hans1984 o/ meow
 
do you have any nice cats ? :(
 
7:48 AM
@Nicktar thanks :)
 
ugh this hurts my eyes
but thx anyway
 
8:00 AM
bud spencer died :(
 
stopwatch benchmarking vs caliper test
?
 
@Hans1984 spencer?
 
yes
you dont know him?
 
Bud Spencer?
 
yes like i said
 
8:12 AM
I see
 
he was 86
thats a long life
:)
 
true
 
8:38 AM
cast close and reopen votes - You earned this privilege
[chuckles wickedly]
 
:)
Fanatic would be nice
100 days on SO in a row
i try to get that one
 
I got my Enthusiast but that's it
 
got that recently
 
got it more that 5 years ago
 
fanatic is pretty hard to get
it means beeing on this site for over 3months every day
but its a gold one after all
;)
 
8:49 AM
I'll never get it... I'm getting old and taking the weekends of
 
yes the weekends is the problem
and its like ten weekends
i mean 14
 
haha true
but atleast he didnt scratch his balls or ass this time
hes our national coach
but italy will be a tough test
 
true that
 
its basicaly the final
whoever wins this game wins the torunament
tournament
italy is our nightmare
we can never beat these guys
its about time..
spain was so awfull yesterday
i couldnt believe my eyes
 
"Italy is coming"
All the very best
 
ewwww :p
 
9:18 AM
;)
 
That looks like serious smell
 
9:34 AM
simple question
I am writing some unit tests for a code that someone has wrote few days ago
there are many helper methods which just using String#equals()
something like this one
public String getRadiologyInboxType(String type){
if (type.equalsIgnoreCase(ParserConstants.REPORT_TYPE_COMPLETE)){
  return RoSConstants.EMPTY_STRING;
 }else if (type.equalsIgnoreCase(ParserConstants.REPORT_TYPE_ADDITIONAL)){
  return ResultStatus.STATUS_K;
 }
 return type;
}
I just thought myself, should I really wanna write a test method for this? as long as the input is not null, this will definitely works 0% error
what do you think?
 
10:13 AM
You don't only test for exceptions (which in this case would be type == null) but for edge cases, special cases and common cases as well... So there would be at least 4 tests for this method (null, ParserConstants.REPORT_TYPE_COMPLETE, ParserConstants.REPORT_TYPE_ADDITIONAL and "somethingElse")
 
Do you think, is it worth to write a test for this method?
for me, it feels like, i'm just trying to test whether String#equals() is working correct or not
actually it's equalsIgnoreCase()
 
You're testing if your coworker used equalsIgnoreCase correctly
But then you shouldn't write your testcases looking at the code but looking at the specs, maybe he missed a special case...
 
but then you shouldnt code anyway but post catgifs instead
;)
 
10:43 AM
UK first got out of the EU
and then got out of the tournament
:P
 
11:01 AM
UK left Europe twice in a week :p
 
11:22 AM
you guys can't imagine how many times I've heard that joke already :D
 
haha yeah @CrazyNinja
 
Bt, Tavo seems so tired of hearing it :p
 
hey tavo wanna hear a joke?
oh wait...
;)
 
ahaha-ha
 
12:08 PM
@CrazyNinja Did that really happen?
It happened to me once. I felt Iike I am going to die. No one even noticed that I was drowning.
 
@ItachiUchiha woah, would have been a bit exciting news for media
:p
nope. I can't swim, but i could somehow manage :p
 
Then there was this adrenal rush and I dragged myself out with all the energy I had
It was quite an experience ;)
 
hahahah.... adrenal rush lol
 
12:43 PM
People think drowning is a loud event. Drowning is actually very quiet
 
1:06 PM
Mornin'
 
morn
 
I've come close to drowning too - it's freaky
 
hey
 
eyy
 
Good afternoon folks
 
1:15 PM
Morning, Java!
 
hello
 
Hey @Hans.
 
germany vs italy on saturday
its the game of the tournament
whoever wins that game gonna winthe tournament
 
Anybody good in regex? I have a question.
 
1:29 PM
 
@Vogel612 please check this link. regexr.com/3dn2j

I want all the characters to be matched except yearid="10287"
 
1:44 PM
@Ozuf don't use regex
 
What should I use?
 
html parser
 
 
2 hours later…
3:25 PM
bye
 
cya hans
 
 
2 hours later…
5:55 PM
http://www.commitstrip.com/en/2016/06/28/best-cms-2016/
CommitStrip
Best CMS 2016
CommitStrip
1467135767
 

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