Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results for [c
Search options not deleted user 193669
0 votes

Objective-C Lesson in Class Design

The abstract concept does not exist in Objective-C, but what may help you are Protocols. Other workaround is to set the default implementation to raise an exception. … But there is a problem with this solution, you can only see if something is wrong during the runtime, but will not get errors during compilation, like you would in Java or C#, for example. …
Andy's user avatar
  • 10.4k
1 vote

Design decisions while porting a non object-oriented C program to Java

Naturally, the correct procedure would be to do it the right way, Java is an OO language after all, but whether you should mimic the current coding style or do it the right way an OO programmer would …
Andy's user avatar
  • 10.4k
2 votes

Is it appropriate to not follow the O/C principle if you have unit test coverage?

This is an dddition to Lie Ryan's answer. As with pretty much anything in programming, even here the approach will not be similar for different cases. You are justifying the modification procedure by …
Andy's user avatar
  • 10.4k
4 votes
Accepted

How can I split work done in one branch without conflicts on merge?

Rather than trying to remove stuff from a branch created from C, the better solution is to create the PP branch from your P branch and cherry-pick the C branch into the new branch PP. … In your case you are going to have to go over the code in the branch C anyway and using your approach you would have to decide what's to be removed and what's to stay. …
Andy's user avatar
  • 10.4k
0 votes

Why does integer division result in an integer?

Although technically not completely correct, C++ is still considered a superset of C, was inspired by it and as such appropriated some of its properties, integer division being one of them. … C was mostly designed to be efficient and fast, and integers are generally much faster than floating points, because the integer type is tied to hardware, whereas floating points need to be calculated. …
Andy's user avatar
  • 10.4k
3 votes

Decoupling external dependencies

Later in project C, which uses the project A, I would again create an abstraction layer efectively hiding the A dependency by providing an adapter interface. …
Andy's user avatar
  • 10.4k
4 votes
Accepted

How to 'read' arrow functions in ES6?

property + 'bar' const foo = property => property + 'bar' And it all expands to: var foo = function(property) { return property + 'bar' } If you are familiar with pointers in languages like C … or C++, what the fat arrow syntax does is it creates a function and returns a function pointer to it which may be assigned to a variable on the left side of the equation. …
Andy's user avatar
  • 10.4k