686 reputation
48
bio website ookbee.com
location Bangkok, Thailand
age 37
visits member for 4 years, 3 months
seen Dec 9 at 0:44

Minimalism developer


Jun
24
awarded  Nice Answer
Jan
19
comment What are the drawbacks of immutable types?
@Giorgio The point is the consumer's convenience. Making a copy is technically another instantiation, and it is also quite tedious if you use constructor. Fluent interface might be really helpful in some language for making immutable type manipulated copy, but the usability is still lower than simple assignment, take time to implement and definitely has more or less performance impact comparing to plain mutable type.
Dec
22
answered Is using “out” or “ref” parameters in Java methods to return extra values bad?
Oct
21
awarded  Yearling
Oct
19
comment How important is to avoid name collisions between libraries belonging to different domains?
You mean your library name or your classes' name?
Jul
16
comment how to use the same behaviour in different classes
I think it's still not clear enough. Provide some of your current code snippet would help a lot.
Jul
16
comment how to use the same behaviour in different classes
If those classes are completely unrelated to each other, it is quite impossible to share implementation in type-safe manner. I believe text label and icon at least derive from some common class?
Jul
11
answered Coding convention regarding the usage of underscores
Jun
10
answered Is copy & paste programming bad?
May
16
answered Returning a boolean when success or failure is the sole concern
Apr
30
comment What are the drawbacks of immutable types?
@Giorgio For mutable type, default constructor should initialise the instance to the default state and the state of the instance can be altered later after instantiation.
Apr
29
answered Coding style (do more, then simplify)
Apr
28
answered What are the drawbacks of immutable types?
Apr
24
answered Separation of concerns: Whose concern is this?
Feb
24
awarded  Caucus
Jan
18
awarded  Autobiographer
Sep
12
awarded  Yearling
Sep
5
answered How to figure out how to write a program
Sep
4
answered In centralized version control, is it always good to update often?
Jul
25
comment Existing buggy code or a brand new one? (From time perspective)
@AamerAlduais I think you can start by adding test case for your bugs you are going to fix, so it won't take much time and it's ensuring you that your bugs from now are not going to reoccur.