133 reputation
5
bio website treukhov.com
location Moscow, Russia
age
visits member for 3 years, 3 months
seen Nov 23 at 23:26

I'm Oracle Certified Professional, Java SE 7 Programmer and Spring Source Certified Spring Professional.

email: borisаttreukhovdotcom

Please consider joining the current Automata course session on coursera! Thank you!


Jan
23
comment Why does java.util.Calendar use static factory methods?
Considered by who? I see no problem with static factory methods - they are almost always better than constructors, you can read the list of benefits in Bloch's Effective Java. Declaring one proven thing to be universally better than another is an end of career for a system architect.
Feb
25
comment Object oriented programming concepts
real men subclass everything
Nov
17
comment Is it better to return NULL or empty values from functions/methods where the return value is not present?
@Thomas I don't see any problem in it :). As for the question it's a matter of common sense anyway.
Nov
17
comment Is it better to return NULL or empty values from functions/methods where the return value is not present?
Fowler POEAA - p. 496 Base Patterns - Special Case(null object) Bloch Effective Java, 2nd Edition Item 43: Return empty arrays or collections, not nulls
Nov
17
comment Is it bad idea to use flag variable to search MAX element in array?
I'll mark this as accepted because the second part proves that it's possible to do the check for the empty list with a guard clause without using any flags, however I don't think that the first part is nice because it involves binary arithmetic.
Nov
15
comment Is it bad idea to use flag variable to search MAX element in array?
I find it a bit more declarative :)
Aug
18
comment Which books or references cover design of domain specific languages?
@Billy DSL is not a general-purpose programming language, but it's definitely a programming language even if it's not Turing-complete