514 reputation
415
bio website
location Brittany
age 22
visits member for 1 year, 7 months
seen 2 hours ago

Some random programmer. My favourite programming languages are currently C++11 and Python. I love to listen to music all day long while doing anything - psytrance is a must while programming. I also love to talk about music and to play music. I have been playing the recorder in a celtic metal band for some time now. Well, whatever, you are probably wasting your time reading this description.


Jul
2
awarded  Curious
Apr
24
revised Intersection of geometric entities
Added one more example. Fixed stuff.
Apr
24
comment Intersection of geometric entities
Also, I wouldn't mind being crucified for that. There are sooooo many reasons many programmers need to be crucified :D
Apr
24
comment Intersection of geometric entities
I like to comment old answers, so I'll add a third comment to this one: exceptions are slow only when triggered, they can be zero-cost otherwise. In the example where the most common type is returned and the other are thrown, it would almost never slow the program down.
Apr
11
comment What is the pattern for a safe interface in C++
Can't you simply use pure virtual functions in the interface? virtual void bar() = 0; for example? That would prevent your interface from being instanciated.
Apr
10
comment Why is 0 false?
@HostileFork I don't know. I find that it makes sense that 0 is true (as every other integer) in a dynamic language. I sometimes happened to catch a 0 when trying to catch None in Python, and that can sometimes be pretty hard to spot.
Mar
27
revised Using past participle for non-altering functions
More stuff again.
Mar
21
revised Using past participle for non-altering functions
td;dr : tl;dr
Mar
20
comment Using past participle for non-altering functions
@RobY Or I would use obj.inverse(), the noun form, which would also be valid in such a case.
Mar
20
comment Using past participle for non-altering functions
@RobY I would use ob.inverser(); imperative would be awkward. But ob.inversé() would make sense though.
Mar
20
revised Using past participle for non-altering functions
Added a note about unary/binary functions.
Mar
20
comment Using past participle for non-altering functions
Well, I have to admit that my "rule" may only be relevant when there is only one parameter (I consider self as a parameter too).
Mar
20
comment Using past participle for non-altering functions
In French, there is. The imperative is when you order "do that", and the infinitive is a neutral form, generally the one preceded by "to", you say that you have a function "to do that". You can find the difference between the moods in this article.
Mar
20
comment Using past participle for non-altering functions
I can understand the rationale for immutable objects, but it often bogged me for mutable ones. Sometimes, it is not intuitive whether the mutable object will be modified or not.
Mar
20
asked Using past participle for non-altering functions
Feb
25
awarded  Teacher
Feb
25
answered Member functions vs. Non-member functions for math operators
Feb
12
awarded  Yearling
Jan
7
comment argument grouping with parenthesis are valid in C++?
It's not possible, you'd have your function to take an std::tuple<> argument instead.
Jan
2
comment Nested Classes or Namespace
stackoverflow.com/questions/3188156/…