Preventing override of methods in Objective-C [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago. Objective-C lacks private methods or java-esque final methods. […]
I hate one of our coding standards and it drives me insane, how to process it? [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 […]
addIfNotExist alternative [closed]
Closed 9 years ago.
How important is it to reduce the number of lines in code?
I am a Software developer who works on J2SE (core java).
Often during our code reviews we are asked to reduce the number of lines in our code.
Naming convention for a method that both sets and gets
Let’s say we have a method setFoo
that sets a flag in a Bar object e.g.
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.
Always pull out common cases and branch separately? [duplicate]
This question already has answers here: Style for control flow with validation checks (4 answers) Closed 11 years ago. We had a disagreement in a code review. What I had written: if(unimportantThing().isGood && previouslyCalculatedIndex != -1) { //Stuff } if(otherThing().isBad && previouslyCalculatedIndex != -1) { //Otherstuff } if(yetAnotherThing().isBad) { //Stuffystuff } The reviewer called that […]
Validation of the input parameter in caller: code duplication?
Where is the best place to validate input parameters of function: in caller or in function itself?
coding style for If condition [duplicate]
This question already has answers here: if (‘constant’ == $variable) vs. if ($variable == ‘constant’) (5 answers) Closed 11 years ago. I came across below style of writing if statements in C#, on msdn code examples. Usually when I write if statements, the conditions I would write `(Customer != null) I want to know if […]
What is the C++ convention, if any, for naming to differentiate between structure types and other types? [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago. In general, should I use some sort of […]