Reputation
652
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
3 9
Newest
 Revival
Impact
~12k people reached

  • 0 posts edited
  • 0 helpful flags
  • 34 votes cast
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.
Dec
3
awarded  Critic
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.