Reputation
Next privilege 125 Rep.
Vote down
Badges
5
Newest
 Editor
Impact
0 people reached

Feb
3
comment Why is chaining setters unconventional?
The difference is that, when using the builder pattern, you are usually writing a write-only object (the Builder) that eventually constructs a read-only (immutable) object (whatever class you're building). In that regard, having a long chain of method calls is desirable because it can be used as a single expression.
Jan
15
comment What are good habits for designing command line arguments?
I would follow the composition rule that -a -b -c can be written -abc and to give arguments to options you separate them via spaces or equal signs. This also helps with autocomplete in most shells.
Jan
14
comment Where do bugfixes go in the git-flow model?
@Shoe I think what Bart means is that you you should treat them as features, not necessarily using the same branch prefix.
Jan
12
comment Isn't the use of NoSQL Databases impractical in a large number of use cases?
NoSQL does not (or at least it should not) mean your database is not relational, but that it doesn't use SQL. I would settle for a relational database with an actually structured query language such as that of MongoDB instead of the string hell that is SQL.
Jan
7
comment Is PHP7 a static or dynamic typed language?
@HassanAlthaf Whether you like it or not, Jules is right. The definition of strongly/weakly typed is subjective. For example, is Java strongly types? Most people say yes, but a Haskell programer might not.
Jan
7
comment Is PHP7 a static or dynamic typed language?
I don't think you can call a language strongly typed if variables don't have a type.
Dec
14
comment Isn't the use of pointer variables a memory overhead?
@DavidGrinberg That's only assuming there's no return value optimization.
Nov
20
comment What is a good security practice for storing a critical database on developer's laptops?
"Not an ideal solution" should be changed for "a completely stupid idea" IMO
Oct
29
comment Why is the minus sign, '-', generally not overloaded in the same way as the plus sign?
As a note, there's at least one language where string concatenation has a dedicated operator: PHP with its . operator. And I remember some other language using ~ but I can't remember which one.
Aug
20
comment Checking array size in C/C++ to avoid segmentation faults
You might want to check out std::array
Aug
15
awarded  Editor
Aug
15
revised Using 'reduce' vs 'for' loop for returning boolean
corrected "time" to "team"
Aug
15
comment Using 'reduce' vs 'for' loop for returning boolean
Also be aware of Array.prototype.every for the and version of the short-circuiting reduce.
Aug
15
suggested approved edit on Using 'reduce' vs 'for' loop for returning boolean
Jan
30
comment Should Latin-1 be used over UTF-8 when it comes to database configuration?
@jon LATIN-1 is not English specific. Spanish is contained perfectly there, as well as French if I'm not mistaken.
Jan
17
comment Is catching general exceptions really a bad thing?
@Patrick that would be OutOfMemoryError, which is separate from the Exception inheritance tree for that very reason
Dec
22
comment Is every language written in C?
@reirab Posible AND true. GCC is written in C and usally compiled using GCC.
Dec
3
comment Which are the cases when 'uint' and 'short' datatypes are a better fit than the standard int(32)?
I was about to complain for the hours since epoch thing, then did some math. It overflows an int32 (signed!) in year 246953, so I think we're safe.
Sep
17
comment Unit testing classes that have online functionality
@Paul Usually your application is divided between a "library", which is directly tested and should use this kind of dependency injection, and application-specific code. The latter usually boils down to some GUI, some web service or some command line interface that directly calls the library with user-supplied data. Essentially, application-specific code will create the concrete implementations that the dependency-injected library expects.
Jul
12
comment Programming for future use of interfaces
All those are obviously either subclasses of or convertible to Date!