548 reputation
28
bio website goeminne.eu
location Belgium
age 29
visits member for 1 year, 8 months
seen yesterday

I'm a PhD student at the University of Mons (Belgium), working on the evolution of Open Source Software ecosystems.


2d
comment Automatically create or update object in database
I would not ask anything to the database directly from the UI, since it's a clear violation of the MVC design pattern. Even if you don't intend to strictly respect it, consider the fact that you will probably want to access to the database without using the GUI. In OOP, I would also avoid to pass states such as Add or Edit. Prefer the use of inheritance or, generally even better, composition to specialise the GUI's behaviour. In this context, you could consider the ActionListener as the Strategy of a Strategy Design Pattern.
Nov
18
comment Ordering if conditions for efficiency and clean code
I don't think it's foolhardy, in the worse case you spend time for no perceptible speed improvement. But, indeed, generally tests are not so heterogeneous that a such "optimisation" is interesting.
Nov
12
comment Multiple Instantiate of 1 class affects memory?
Also note that, in Java, class names should start with a capital letter. And you must place a variable in the switch brackets, of course.
Jun
4
comment Sorting and averaging the highest values of pixel data
Damien said building a histogram is not practical in his situation. (The real question is: why?) In addition, you probably should give a Java code since he is programming in Java/Android.
Dec
7
comment How to handle sorting of complex objects?
I prefer the comparator variant: a car has no natural order and you should provide a comparator as one of the sorting strategies. Also, why play with Treeset if you only want to sort your collection?
Dec
7
comment How to handle sorting of complex objects?
I looks to be the better solution: hard to do less than add the field on the considered class and express "somewhere" how to deal with all the fields used in the comparison.
Nov
26
comment What's a good length for Javadoc for a class that is say 800 lines long?
I would add a small sentence for saying if the class can be safely used in a concurrent environment. It is probably part of State Information.
Nov
15
comment Am I sending large amounts of data sensibly?
If there is only one writing during the file's creation, and if you don't look at unfinished files (thanks to a message mechanism, for instance), no locking mechanism is needed.
Nov
2
comment Why don't research papers that mention custom software release the source code?
@Paul I don't see the connection with the source code publication. Anyway, good editors pay attention to the notes the reviewers write to justify their decisions. Therefore mentions like "It's bullshit" are not taken into account. If the editor estimates the reviewers' recommandations are not relevant enough, he asks for the opinion of an other expert. The grad students don't take part in the review process. And if you cannot let your paper accepted after some years of submission, you should envisage this paper (or its content) is not so good.
Oct
25
comment Why don't research papers that mention custom software release the source code?
Not really because (a) The reviewers ask to publish the code in a place they can access anonymously (or the authentication is done by the journal) (b) Since your paper is published, the other researchers can franckly use the same methodology/tools to replicate your study on an other data set or even on the same data set. The replications are less prestigious than the original paper, they will cite your work, and they offer a strong validation to your paper. So the original authors are glad to let the others do all this work for them.
Oct
25
comment Why don't research papers that mention custom software release the source code?
@Dirk As far as I know, this is relatively common in software empirical studies. In the last (not yet accepted) submission of my team in this domain, one of the reviewers explicitly asked for a public access to our data as well as some pieces of code. I don't understand why the code should be so precious. It's (generally) just the realisation of the ideas described in the paper. Publishing the programs is a way to let the reader check if we correctly translate our ideas to actions.