6,988 reputation
32251
bio website
location Poland
age 34
visits member for 3 years, 9 months
seen 8 hours ago

Software engineer with a few years of professional experience, skilled in C# and Java (I've done some work in PHP as well). Microsoft Certified Technology Specialist in Windows applications.

Also active on: http://stackoverflow.com/users/168719/konrad-morawski

My profile on LinkedIn: http://pl.linkedin.com/pub/konrad-morawski/a6/129/b07


Polish equivalent to StackOverflow: http://devpytania.pl/

My profile there: http://devpytania.pl/users/1672/konrad-morawski


Mar
23
comment Is it a good idea to contextually name predefined functional interfaces?
But typing is implicit anyway, right? It's just registerMessageHandler((str) -> doSomething(str)) one way or the other, no? Where is it that you benefit from having aliased the Consumer? Finding usages?
Mar
23
answered Algorithm that generates a group of men and women who are each interested in everyone from the other gender
Mar
23
comment Algorithm that generates a group of men and women who are each interested in everyone from the other gender
A 29 year old woman who likes tennis and is looking for a man between x<=31 and y>=31 - a woman who knows what she wants (when it comes to age at least)
Mar
20
comment What is the name of a function that takes no argument and returns nothing?
@user949300 but it depends on the context - Java is a big world you see, I'm an Android developer (now) and I have no J2EE-related idiosyncrasies ;) I agree, of course, that chosen naming convention shouldn't clash with the one your framework uses.
Mar
20
awarded  Nice Answer
Mar
20
comment What is the name of a function that takes no argument and returns nothing?
I've deleted my comment in meantime Mike, because I noticed that my objections have already been addressed in comments under the question
Mar
20
revised What is the name of a function that takes no argument and returns nothing?
deleted 16 characters in body
Mar
20
answered What is the name of a function that takes no argument and returns nothing?
Mar
20
awarded  Curious
Mar
13
comment Delphi to Java change - career advice
but in my country, Java is NOT as common as .NET for learning or available jobs - what country is that, out of curiosity? (I'm aware that your answer is 4 years old already, but I assume things haven't taken a 180-degree turn since)
Mar
13
comment Calculating winning probability for 2 teams using their history?
Okay then! Thanks for accepting the answer
Mar
12
comment Calculating winning probability for 2 teams using their history?
@MartinJ I see what you mean, but if you want to attribute more weight to direct encounters between team1 and team2 (disregarding, or giving less relevance to how they both ranked against team3, team4 etc.), you can simply recalculate the ratings of team1 and team2 based on the outcomes of matches they played against eachother, and these matches only. So ELO is still useful, you just feed the algorithm with a narrowed down subset of game results. How about that?
Mar
11
revised Calculating winning probability for 2 teams using their history?
added 43 characters in body
Mar
11
answered Calculating winning probability for 2 teams using their history?
Mar
5
comment What is it called when you set properties on object initialization?
Well that is simply not true. There is a difference - using object initializer won't allow you to set the same property twice. And it's not purely theoretical; it can prevent bugs. See my answer
Mar
5
answered What is it called when you set properties on object initialization?
Feb
22
comment Exception versus return code in DAO pattern
if [...] user supplies a path to a file that does not exist, then you should throw an exception - but why? I'd just check whether the file exists and show an error message if it doesn't. While you can trigger this by throwing an exception, what's the reason you should?
Feb
22
comment How is a dictionary better than a big switch, when mapping data to action?
Not a major reason to do this, but using a dictionary prevents mistaken duplicates (I mean something like if value == a elif value == b and elif value == a again whereas one actually meant c)
Feb
20
comment Interface design - Parameter choice
Glad to be of help :) Thanks for accepting the answer
Feb
20
revised Interface design - Parameter choice
added 132 characters in body