Reputation
1,761
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
13 27
Newest
 Enlightened
Impact
~55k people reached

Jan
29
comment Is it bad to write object oriented C?
@ChrisCirefice There are no namespaces in C, that's why many library authors use prefixes for their functions.
Jan
28
awarded  Enlightened
Jan
28
comment Is it bad to write object oriented C?
@jpmc26: You are right with your question about object orientation. Hiding state is possible if you use opaque types, disabling access of functions from other "classes" can be avoided by using static functions and one file per type, interitance is also possible (see chapter 4 of cs.rit.edu/~ats/books/ooc.pdf).
Jan
28
awarded  Nice Answer
Jan
28
revised Is it bad to write object oriented C?
added 338 characters in body
Jan
28
revised Is it bad to write object oriented C?
More about conventions.
Jan
28
answered Is it bad to write object oriented C?
Jan
15
comment What are good habits for designing command line arguments?
@Brandin -h can be very bad to try, e.g. with some implementations of shutdown that default the time to now.
Nov
30
comment Putting a password in a REST API call
@CamilStaps No, you cannot use PUT, because PUT is idempotent. But when the password has been changed from secret to supersecret sucessfully, then the same request will fail the second time, so POST is correct here. Of course, as @whirlwin said, this resource is not well named.
Nov
10
comment Create separate GIT repository for publishing with different history?
@Miro This is an example for how squashing commits works, rebase or merge is more or less the same: gitready.com/advanced/2009/02/10/…
Nov
10
answered Create separate GIT repository for publishing with different history?
Nov
10
comment Are there any significant disadvantages to depending upon abstractions?
@SteveCallender It is subtle difference: The author's definition of "stability" is what most people call "need for stability", .i.e. the more modules depend on a module, the more "stable" a module needs to be.
Nov
10
answered Are there any significant disadvantages to depending upon abstractions?
Nov
5
comment Why is Math.Sqrt() a static function?
#(array) would be the mathematical equivalent to couting items in a set. An array is not a set, true, but floating point numbers are not rational numbers (or real numbers) neither. It boils down to "why use mathematical notation instead of object oriented programming notation" and is a question of style.
Nov
5
comment Why is Math.Sqrt() a static function?
@LưuVĩnhPhúc Yet everyone writes x.ToString() instead of ToString(x) or array.length() instead of length(array). It is a matter of style, and I want to find the rationality for that style.
Nov
5
awarded  Good Question
Nov
5
accepted Why is Math.Sqrt() a static function?
Nov
4
comment Why is Math.Sqrt() a static function?
Of course it is a decision, i.e. the decision to have object have a ToString() method. That is in your words "some people were like: hey let's have a ToString method for Value types".
Nov
4
awarded  Notable Question
Nov
4
awarded  Informed