Is it a good idea to provide different function signatures that do the same thing?
Here is a C++ class that gets constructed with three values.
Descriptive naming vs. 80 character lines [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
Emphasize negation
I was just writing an if statement with fairly long property names and came occross this problem.
Is ‘using’ appropriate in a context where there is nothing to dispose?
In C#, using
statement is used to dispose in a deterministic manner the resources without waiting for garbage collector. For example, it may be used to:
Why Bootstrap 3 changes camelCase to dashes – is it more readable?
I’m wondering what’s the reasoning behind Bootstrap’s decision to change all camel case names into hyphenated names in v3.0. I searched on Google, and looked in a few books, but I can only find opinions one way or the other – no hard data.
Java Generics – how to strike a balance between expressiveness and simplicity
I’m developing some code that utilizes generics, and one of my guiding principles was to make it usable for future scenarios, and not just today’s. However, several coworkers have expressed that I may have traded off readability for the sake of extensibility. I wanted to gather some feedback about possible ways to resolve this.
Leaving “Else” comments
Let’s say I have a not-so-intuitive if
statement in my code, but only if you’re new to the codebase:
In which order should I do comparisons? [duplicate]
Does it exist a general best practice for this, or is it different depending on language/religion/age/etc..?
Is it correct to exclude argument names from function prototypes?
I was recently creating a small technical documentation for an application. The document is to be used by newly hired programmers to get acquainted with the application. It is much friendlier than the Javadocs we have, and includes information that usually isn’t being documented.
Is relying on implicit argument conversion considered dangerous?
C++ has a feature (I cannot figure out the proper name of it), that automatically calls matching constructors of parameter types if the argument types are not the expected ones.