846 reputation
49
bio website daniel.lubarov.com
location Burlingame, CA
age 24
visits member for 3 years, 8 months
seen 7 hours ago

Dec
15
revised How to model and store an entity which has “one or more” values
deleted 46 characters in body
Dec
15
answered How to model and store an entity which has “one or more” values
Dec
12
comment Isn't there a chicken-and-egg issue since GCC is written in C++ itself?
True, if you had just the latest GCC source but no C++ compiler binaries, you wouldn't be able to build it. If you had the GCC source's history, you could go back to the latest C version and use that to build the latest...
Dec
3
comment Specific empty children classes
@Dunk say we're building a website which simply stores products in memory and provides pages for creating, viewing and editing products. We won't have any interesting product-related logic, but don't you think a Product class would be useful and appropriate? If you feel it's bad to have classes with no behavior, what would you do instead?
Dec
2
comment Specific empty children classes
I didn't downvote, but sounds like you overlooked this clarification - "Only reason I need to differ one type of product from another is that at some part of my application it's need to have them in a defined order".
Dec
1
comment Specific empty children classes
I don't think Fowler's opinion is a widely held one. Moving logic into a domain model is sometimes at odds with separation of concerns. The OP mentions ordering which is a nice example - products don't have an obvious natural order, so IMO ordering logic should live in a separate class, closer to the presentation layer.
Nov
30
answered Specific empty children classes
Oct
21
comment Parameterized tests - When and why do you use them?
We (Square) wrote Burst to address some of these issues with Parameterized. It generally adds less boilerplate, and makes it pretty clear where a test failed.
Oct
12
answered 2D Game Data Structure in OpenGL ES 2.0
Oct
5
comment Is there any “real” reason multiple inheritance is hated?
@Asmageddon agreed, my examples involve functionality only. What do you see as the advantages of mixins? At least in Scala, traits are essentially just abstract classes which permit MI - they can still be used for identity and still bring about the diamond problem. Are there other languages where mixins have more interesting differences?
Aug
19
revised Implementation of instance testing in Java, C++, C#
added 11 characters in body
Aug
18
comment Implementation of instance testing in Java, C++, C#
I added a bit of info on C++, though it's still an incomplete answer; I'll expand it more later.
Aug
18
revised Implementation of instance testing in Java, C++, C#
added 344 characters in body
Aug
18
revised Implementation of instance testing in Java, C++, C#
deleted 3 characters in body
Aug
18
revised Implementation of instance testing in Java, C++, C#
added 10 characters in body
Aug
18
revised Implementation of instance testing in Java, C++, C#
added 10 characters in body
Aug
18
revised Implementation of instance testing in Java, C++, C#
added 112 characters in body
Aug
18
revised Implementation of instance testing in Java, C++, C#
added 112 characters in body
Aug
18
answered Implementation of instance testing in Java, C++, C#
May
6
revised What is the difference between APIs, Libraries, Runtime systems, and frameworks?
deleted 83 characters in body