C
Clever Monkey
[Totally, completely and utterly OT]Frederick said:Clever Monkey posted:
I have great disdain for advice such as that.
I prefer to use my own head, make my own decisions. For instance:
No matter how many times I see a master programmer use "i++", I'm
still going to use "++i". No matter how much I see people use macros in
C, I'm always going to use a viable substitute where possible (e.g.
"enum" or "typedef").
In all walks of life, I detest the kind of people who blindly follow
doctrine, rather than "do things their own way", using their own
intelligence.
*shrug* Not quite what I was saying, but I guess you are free to
extrapolate as far as you like. While I actually agree with your
comments, to a point, there is a large continuum between "listening and
evaluating" and "blindly following". I never advocated taking this
advice to any such extreme.
The rebuttal to the "do your own thang" comment you are making here is
that doing your own thing under well thought out but incorrect
assumptions leads only to tears and recriminations. Accepting and
evaluating advice from others is an excellent way to puts some checks
and balances against that other kind of knowledge.
Intelligence also includes listening to what other people say and
watching what they do, and then evaluating that using some common sense
and (as one becomes more adept) experience. The trivial case, of
course, is that junior coders don't have, you know, much experience.
Finding someone who knows what they are doing and sticking to them in
the first few years is actually quite good advice for many people. This
does not mean starting a new religion based on their interpretation of
all things, of course.
The context in this case was when I was first starting at a particular
company. This advices said a lot of things I was able to internalize
easily, since I was able to evaluate it within the context of a junior
programmer. It told me, among other things, that out coding style also
included things like keeping our C code looking like C.
This is important given that few new hires we get known anything about
ISO C anymore. One of the most important things to learn early on is
that coding is a community effort at most shops I've worked at, and
learning from one of the old-timers how they like their code styled and
formed is pretty important if you don't want your changes rejected by
reviewers.
There is room for maverick thinking and at least some requirement for
consensus. Truly intelligent people should have no problem with trying
to find that balance.