I know that Senior Developer doesn’t use only one language and only one platform or IDE.
Can you advise how to mix different styles of programming to make efficient code?
For example, best mixing is Perl + Objective-C.
$ObjectiveCLongNameOfVariablesAndMethods
are worst for Perl-style, but good for iOS-team.
[self method:[[NSArray alloc] initWithobjects:[hash objectForKey:name]]]
style is weird for an eye, but not for perl simple-looking arrays and hashes and autovivification.
Also, i try to mixing SAS + Objective-C style, but here i have a trouble. SAS doesn’t support names long names, only 32 symbols. So, big trouble to naming variables.
Another difficulty is features of current language. So, if I can’t use current language for a task, that it can solve ‘like a BOSS’, I become angry and see weird code. Using libraries is good, but it makes code not natural, ’cause eating soup with fork is strange’.
And at the end: where can I trust compiler and interpreter of language? So, C++-style is best for pointers (you make destructors, constructors, etc.), but many languages now support mechanism like ARC in Objective-C or don’t use pointers (like C#).
4
Keep to the conventions of the language being used.
When using Objective C, keep Objective C conventions in those parts of the code. When using Perl keep to Perl conventions… etc.. etc… etc…
This keeps things more compartmentalized – when you move to a different language it is easier to see that you have moved to it, and others that are used to the language conventions would also have an easier time.
Don’t try to get one set of conventions for all the languages you use – this will just make things harder in the long run.
4
Base your styles and conventions on the language being used.
You may love “{‘s” everywhere in your code. You always use a series of “[” and “{” and “(” in the most verbose form. You believe they should be on their own line. Then one day your team is assigned a large development task that requires python. If you don’t adapt your style, you will never get your python code to run. Those braces all have different meanings in python, the language where white space has meaning, and the difference between a list and a dictionary is the style of brace.