Reputation
363
Top tag
Next privilege 500 Rep.
Access review queues
Badges
3 10
Impact
~18k people reached

Dec
22
comment Why would you store an enum in DB?
Yes but readability and duplication are two different things. They may help each other but in this context of this question what I am saying is that we cannot jusr approach the problem with sole readability concerns. A proper answer should contain different aspects of programming.
Dec
22
comment Why would you store an enum in DB?
It makes the value more meaningful if you use set @genderMale = 1. You can think of it as a constant in this context that eliminates magic strings.
Dec
22
comment Should I use HTTP status codes to describe application level events
We are discussion a very subjective matter here and preference here. It depends on the developer and consumer to choose what to use. Realities are different and we cannot enforce our own idealistic thoughts over others. At one point, what's expected is determined by the consumer.
Dec
22
comment Why would you store an enum in DB?
In addition to my previous comment, with a simple variable, you not only increase the comprehension but also performance.
Dec
22
comment Why would you store an enum in DB?
If you can assign the value 1 to a variable then you are looking at the same or even greater readability in the first query. In fact in your first example, what the problem is not readability but comprehensiveness of the query. Using a variable would solve that issue.
Dec
22
comment Why would you store an enum in DB?
I don't think discussing the decision between performance and good design will bring any value to this answer. Simply because there are other factors and realities coming to play when such decisions are made. When realities are different than ideals then other concerns take place. Without truly understand the situational settings, talking about clear cut solutions and suggestions don't make much sense.
Sep
8
comment What's the use of .Any() in a C# List<>?
I think this explains the fundamentals so clearly that explains the answer at best.
Mar
25
comment Understanding Bob Martin's Closed For Modification Explanation
@RobertHarvey : You are right, I didn't consider it from that perspective.
Mar
25
asked Understanding Bob Martin's Closed For Modification Explanation
Feb
13
revised Why is instance creation the way it is?
Lowered the cases of variable names.
Feb
13
suggested approved edit on Why is instance creation the way it is?
Jan
20
comment How do I avoid cascading refactorings?
@gnat: Maybe not, but simplified the responses.
Jan
14
answered How do I avoid cascading refactorings?
Dec
30
awarded  Notable Question
Sep
24
awarded  Autobiographer
Sep
2
comment What's wrong with comments that explain complex code?
I honestly like small comment pieces inside the method instead of above it. The name of the method should be descriptive enough to communicate the overall idea and expectations of the method. But if they are interested in the implementation detail, then yes those comments can be really useful to take user step by step through the code.
May
1
comment Why such popularity with Python?
Besides all other items you listed, I think one of the most important items was "I can pretty much rely on being able to send off a Python program to someone else without worrying about what OS they're running.". This is also very favorable when you don't want to get stuck with type of operating system.
Dec
23
awarded  Critic
Aug
12
comment Why Java doesn't make use of encapsulation with some classes?
@MichaelT: You're right but you say is not a valid reason to object to what the OP is talking about.
Aug
20
awarded  Good Question