538 reputation
38
bio website goeminne.eu
location Belgium
age 29
visits member for 2 years, 2 months
seen Dec 18 at 8:26

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


Oct
24
comment What can one do to improve readability of math-oriented code in C#, Java, and similar?
Yes, in general, and by definition, a DSL may be useful when you work in a specific domain. However, if this DSL doesn't exist, or if it doesn't fit the needs, you have to maintain it, which may be problematic. Also, for the specific question ("How can I use the sin, cos, … methods/functions without writing the Math class every time"), a DSL is maybe an oversized solution.
Oct
18
awarded  Yearling
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?