I find myself in conflict, regarding which code style i should follow when using a different c language.
Currently i am doing work (different projects) in c++, c# and objective-c
I noticed there is a lot of discrepancy in the conventions basic frameworks follow. Generally, i dont think it's a bad idea to adhere to these convetions, as it makes code feel more "integrated" into the environment. However it is hard for me to remember all the differences and apply principles correctly.
In C# for example, all methods of a class start Uppercase, while objective-c seems to prefer lowerCase style methods.
What tactic would you choose:
- One style to rule them all (as far as applicable)
- Stick with what is common in the given environment
I do especially like the google styleguides, which seem to recommend the latter. However i disagree with them on using spaces instead of tabs and their intendation in general (e.g. methods on same level as class etc.)