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

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


Jul
7
revised Why is Java's reflection package considered the dark side of the force?
added 3 characters in body
Jul
7
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
16
answered Ordering if conditions for efficiency and clean code
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.
Nov
7
awarded  Commentator
Oct
18
awarded  Yearling
Jul
29
answered Should an algorithm handle invalid inputs and can it have hard-coded paths for certain input data?
Jun
6
answered Java generalization
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.
Jun
3
revised Sorting and averaging the highest values of pixel data
added 319 characters in body
Jun
3
revised Sorting and averaging the highest values of pixel data
Add the complexity of the proposed solution in the worse case.
Jun
3
revised Sorting and averaging the highest values of pixel data
Add the complexity of the proposed solution in the worse case.
Jun
2
answered Sorting and averaging the highest values of pixel data
Feb
2
answered Should I create interfaces for data transfer objects?
Jan
31
answered Should I use simple socket programming to communicate between 2 threads?
Jan
24
answered Designing a list class with filtering and sorting
Dec
21
answered Good implementation strategies for encapsulating shared data in a software pipeline
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.