582 reputation
38
bio website goeminne.eu
location Belgium
age 29
visits member for 2 years, 6 months
seen yesterday

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


Jan
12
answered Decorator design pattern in swift
Jan
9
revised How should blank/empty value objects be instantiated/structured?
added 1 character in body
Jan
9
comment How to randomly get or find a sub-tree (include root node) from a given tree that contains n leaf-nodes
Count the number of leaf nodes in the given tree. If this number is greater or equal to n, return the tree itself. Otherwise, there is no subtree with at least n leaf nodes.
Jan
7
comment Why would a program require a specific minimum number of CPU cores?
Are you sure the problem is really and directly related to the number of cores? Maybe the mentioned game is partially based on a feature only (correctly) provided by CPU with at least 4 cores?
Jan
7
revised How should blank/empty value objects be instantiated/structured?
added 34 characters in body
Jan
7
answered How should blank/empty value objects be instantiated/structured?
Dec
31
answered Range of values based on key values
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.