mpartel

Age: 26

Jul
9
comment PhpStorm autocompletion in traits
I think tightly coupled traits are entirely reasonable in scenarios like this. In a (mostly) dynamic language, we must (mostly) rely on documentation to guide the users of our abstractions anyway. Superclasses have the problem of being hard to compose arbitrarily due to single inheritance. Custom assertion classes are fine when you want to do assertions, but that's just one special case.
Jul
2
awarded Curious
Jun
23
awarded Nice Answer
Jun
1
awarded Supporter
May
2
awarded Supporter
Apr
26
awarded Yearling
Feb
18
awarded Caucus
Feb
16
comment Does pointer arithmetic have uses outside of arrays?
@Karu: Oops, thanks, edited.
Feb
16
revised Does pointer arithmetic have uses outside of arrays?
`a + n` -> `*(a + n)`
Jan
27
awarded Popular Question
Jan
9
revised Static strategies or enums for small implementation changes in similar code?
elaborated on enum methods
Jan
9
answered Static strategies or enums for small implementation changes in similar code?
Jan
8
comment Efficient intersection of sets?
Certainly, they are very good implementations for the problems they do solve, but they don't directly solve all variations of every problem optimally. e.g. 'Useless' gave a very plausible improvement that exploited some reasonable assumptions that may well hold in the OP's case. (Of course all the usual warnings about premature optimization and benchmarking are still relevant.)
Jan
7
awarded Custodian
Jan
7
reviewed Approve suggested edit on Javascript to fix header and change logo size on joomla theme when scrolling
Jan
7
comment Efficient intersection of sets?
Isn't this the solution OP was trying to improve upon?
Jan
7
answered Efficient intersection of sets?
Jan
7
answered scala create equal/hashcode/tostring without case class
Jan
6
comment Simplest way to run ruby CGI app
Note that cgiup simply wraps WEBrick's CGI handler: github.com/ryanbriones/cgiup/blob/master/bin/cgiup so it's easy to customize.
Jan
3
comment Valgrind, it is possible to get the number of line?
It was added in valgrind 3.4.0.
1 2 3 4 5