Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Judging competency - does one swallow make a summer?

Whilst working on some generally horrible Javascript code this morning, I came across the following (in multiple places):

// make moveAmount negative
moveAmount = moveAmount - (moveAmount * 2);

I sit directly across from the guy that wrote this; he's been a developer here for seven years. I, on the other hand have just started, am pretty junior and don't claim to know jack.

Nevertheless it has got me wondering about the guy's contortions of simple logic after so many years developing software.

My question is what view others here might take of the overall competancy of a developer that wrote this (3 weeks ago), or does it even reflect at all?

Would anyone point out the convolution?

I, myself, work in constant dread that such judgements be made of me.

like image 299
mysomic Avatar asked May 19 '09 15:05

mysomic


People also ask

What does it mean one swallow does not make a summer?

idiom saying. used to say that because one good thing has happened, it is not therefore certain that a situation is going to improve. SMART Vocabulary: related words and phrases. Threats & warnings.

What does Aristotle mean by saying one swallow does not make a summer?

The famous proverb, one swallow does not make a summer means: A single fortunate event doesn't mean that what follows will also be good. (ODO)

How many swallows make a summer?

One Swallow does make a summer!

How many swallows does not make a summer?

One swallow does not make a summer, because individual birds may overshoot, arrive too early, have been blown north by accident, and they tend to retreat swiftly if conditions are harsh. The presence of two swallows might well be a sign of preliminary nesting behaviour.


1 Answers

Simple solution: Show him the line of code and ask why he did it. It's an opportunity for both of you to learn something. Maybe there was a bug in a browser or some other issue (rounding comes to mind) so the code might break without this. Or he made a mistake. Either way, asking will clear this up.

And while you're right that other people will judge you from the code they see from you, that is not the only thing they take into consideration (and if it is, then you're working at the wrong place -- leave while you're still sane). They will also see when you're polite, curious, helpful.

These things count more than the code you write: Code can be fixed much more easily than angry co-workers.

like image 101
Aaron Digulla Avatar answered Sep 30 '22 20:09

Aaron Digulla