12
votes
Is updating a macro value in the Xcode preprocessor's macros violating the open–closed principle?
If your requirements have permanently changed, just change the code already. Anything else - including slavish devotion to the open-closed principle - is abstraction for abstraction's sake and does ...
7
votes
Is updating a macro value in the Xcode preprocessor's macros violating the open–closed principle?
First, make sure you have understood that the OCP is not violated at the time when you change some source code, see my answer here for a detailed explanation. The OCP is followed or violated at the ...
5
votes
Managing code: Unit tests with source or separate?
As Uncle Bob always says, your tests should not be coupled to the structure of your application (great blog discussing this topic).
Doing what you're suggesting sounds like you may run into issues ...
4
votes
Managing code: Unit tests with source or separate?
I tried this and won't recommend it... if you have only a few of classes per package could seem nice but, let's imagine a package with 20 production classes.. it will have 20 tests files placed there ...
2
votes
What is the best way to load data from DB upon application launch?
One approach that I've used and seen used for this kind of thing is that you can load the application and start background threads that start pre-fectching data that you know you will need. Typically,...
1
vote
If I have two developer license accounts with Apple, can I easily switch between the two for app development and publishing?
I believe you can do this in Xcode.
Go to project settings and choose...
"Signing & Capabilities"
After that you can [Add an Account...] to sign in as another developer / development ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
xcode × 38ios × 21
objective-c × 7
c++ × 6
iphone × 4
c × 3
swift-language × 3
object-oriented × 2
unit-testing × 2
version-control × 2
continuous-integration × 2
visual-studio × 2
project-structure × 2
apple × 2
osx × 2
design × 1
database × 1
testing × 1
licensing × 1
git × 1
project-management × 1
naming × 1
data × 1
mobile × 1
linux × 1