Reputation
208
Top tag
Next privilege 250 Rep.
View close votes
Badges
1 7
Newest
 Announcer
Impact
~4k people reached

Jan
5
comment Designs and practices to guard against erroneous null entries from database
Looks like a problem which would not exist when using strong & static type system.
Sep
26
comment Why are the sizes of programs so large?
for newcomers, floppy disk is about 1.4 MiB
Sep
16
comment Disadvantages of Pointers
in Java, there's sun.misc.Unsafe, not technically a part of the language, but still
Sep
5
comment What's the use of .Any() in a C# List<>?
they are not well-named because they are trying to mimic SQL. (select instead of map, aggregate instead of fold, where instead of filter, etc.); in Haskell this is a lot better.
May
30
comment What's the proper way to model this real-world activity that seems to need circular references in OOP?
Also, the information from State which affects gameplay should be stored in Board, as it is part of the current position.
May
30
comment What's the proper way to model this real-world activity that seems to need circular references in OOP?
No need for a custom class MoveList, use List<Move>.
May
8
comment Why do interfaces require methods over members?
Scala is also relatively young and it's widely used
May
8
comment Why is .compareTo() in an interface while .equals() is in a class in Java?
Thread's natural ordering can be the starting time
Apr
27
revised Is template “metaprogramming” in Java a good idea?
added 420 characters in body
Apr
27
answered Is template “metaprogramming” in Java a good idea?
Mar
24
comment Is there a reason to have a bottom type in a programming language?
Yes, the C is bizarre in this, especially in how the pointer and function pointer types are written. But void in Java is nearly the same: not really a type & can't have values.
Mar
24
comment Is there a reason to have a bottom type in a programming language?
@BasileStarynkevitch there are no values of type void, and unit type must have one value. Also, as you pointed out, you cannot even declare a value of type void, that means it's not even a type, just a special corner case in the language.
Mar
24
comment Is there a reason to have a bottom type in a programming language?
void is not even an unit type. void is pretty much useless.
Feb
28
comment Which version of Java should I use for a desktop application to reach the most users?
Java doesn't come preinstalled (unlike .NET on Windoze), so you'll have to include (a subset of) JRE with your application. So, you can use whatever is the best. That means — use latest stable version. (that means now — a version of JRE 1.8)
Feb
22
awarded  Announcer
Feb
13
comment Is throwing an exception an anti-pattern here?
@RobertHarvey Android™ developers talk to themselves all the time. This is a sign of professionalism.
Dec
31
awarded  Yearling
Nov
29
comment Why these attempts to water down Scala with Xtend and Kotlin?
…and it's only supported in Eclipse. Right? And Eclipse is a hell…
Oct
12
comment Is it possible to have Ad-Hoc polymorphism with runtime dispatch?
Okay, but the question is about such possibility in theory & in other/new languages. Your comment talks about Haskell, but this doesn't mean that what is impossible in Haskell is impossible at all.
Oct
12
comment Is it possible to have Ad-Hoc polymorphism with runtime dispatch?
Yes, but what if Num a will really be a type? Is it possible?