Reputation
1,252
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 16
Newest
 Yearling
Impact
~87k people reached

Apr
26
comment Best way to build a JSON API coupled with HTML views in a Rails project
This is not so much a question about how to improve the code excerpt that you presented in the question. Rather, the excerpt is just a generic representative sample, and you are asking a "what is best practice?" question. Migrating from Code Review to Programmers.
Apr
14
revised Relaxed architecture DAL or anemic BLL?
edited tags
Apr
14
suggested approved edit on Relaxed architecture DAL or anemic BLL?
Apr
11
awarded  Yearling
Apr
6
comment Guidelines for returning None vs. raising Error for Python string-validating functions
Migrated from Code Review because the question is about best practices in general rather than improving the code excerpt.
Mar
10
comment A property that can represent both a single date and a date range: How to properly model that?
This is more of a conceptual "How can I …?" question than a request for open-ended critique. Migrating this question to Programmers.
Mar
9
comment Is there a term for unimplemented code that was written for someone else to fill in?
In most contexts, "hot spot" would probably mean a performance bottleneck in the code — parts of the program where it spends most of its execution time.
Feb
19
revised Should I throw an exception in case of a meaningful value outside of the range or handle it myself?
edited tags
Feb
18
suggested approved edit on Should I throw an exception in case of a meaningful value outside of the range or handle it myself?
Feb
10
answered Raspberry pi computer cluster question?
Feb
7
comment What's the point of hidden files?
You have described the traditional UNIX solution. @Jonas rightfully points out that there is another approach, like the one used in OS X: put configuration stuff in ~/Library (though it also uses dotfiles for compatibility). Interestingly though, since OS X 10.7, ~/Library is hidden in the Finder, but not hidden at the filesystem level.
Jan
14
answered Is it effective to review code in language I don't know?
Dec
31
comment Testing using mocking, must I mock all dependencies too?
You appear to be asking a pointed question about a concept, rather than asking for a general critique. Migrating to Programmers.
Dec
17
revised Should I use HTTP status codes to describe application level events
edited tags
Dec
16
suggested approved edit on Should I use HTTP status codes to describe application level events
Nov
23
comment Is there anything that can be done with recursion that can't be done with loops?
@leftaroundabout Arguably, the CPU is an infinite run loop (until a HALT instruction is reached).
Nov
23
comment Is there anything that can be done with recursion that can't be done with loops?
It doesn't even have to be a theoretical Turing machine. Your compiler translates everything into a loop. It has to, because your CPU knows nothing about recursion.
Nov
21
revised How to avoid violating the SRP in a class to manage caching?
edited tags
Nov
21
suggested approved edit on How to avoid violating the SRP in a class to manage caching?
Nov
21
comment How to avoid violating the SRP in a class to manage caching?
Based on "written in C#, but that shouldn't matter", "This is about code structure", "An example: … We don't care what a Fluffy is", "To make it simple, let's say…", this isn't a request for a code review, but a question about a general programming principle.