Live data from Hacker News

Brilliant Jerks Cost More Than They Are Worth

retrospective.co

261–270 of 279 posts

Re: Brilliant Jerks Cost More Than They Are Worth

#261

Earlier quoted context omitted.

Are brilliant & nice people really as rare as y'all seem to be suggesting? That's not my experience at all.

If brilliant means not mediocre, or above average , they are as rare as they are common. Depends how your budget stretches; If it doesn't, you have to make do.

I tend to err on the side of EpicEng here. Those people are readily available and you're just not paying enough.

Re: Brilliant Jerks Cost More Than They Are Worth

#262
post #233

Earlier quoted context omitted.

I did the lazy approach and let timeit pick the count. Specifying the number of loops doesn't change the result: $ python -m timeit -n 10000000 'float(5)' 10000000 loops, best of 3: 0.0771 usec per loop $ python -m timeit -n 10000000 '5.0' 10000000 loops, best of 3: 0.00717 usec per loop [timeit] provides a simple way to time small bits of Python code. It has both a Command-Line Interface as well as a callable one. I…

Am I reading that right: on average it's 10x faster to use a float literal?

Yes. The difference is the Python compiler is not optimizing out the float() conversion, so every time it creates the value 5.0 it is calling the float() conversion on the literal "5".

Different machine, so the timings are different from above, but here are some permutations:

Float literal:

$ python -m timeit '5.0' 100000000 loops, best of 3: 0.0152 usec per loop

Integer literal coerced to a float:

$ python -m timeit 'float(5)' 10000000 loops, best of 3: 0.146 usec per loop

Float literal coerced to a float:

$ python -m timeit 'float(5.0)' 10000000 loops, best of 3: 0.143 usec per loop

Integer literal:

$ python -m timeit '5' 100000000 loops, best of 3: 0.0152 usec per loop

Float literal coerced to an integer:

$ python -m timeit 'int(5.0)' 10000000 loops, best of 3: 0.155 usec per loop

Integer literal coerced to an integer:

$ python -m timeit 'int(5)' 10000000 loops, best of 3: 0.14 usec per loop

Re: Brilliant Jerks Cost More Than They Are Worth

#263
post #262

Earlier quoted context omitted.

Am I reading that right: on average it's 10x faster to use a float literal?

Yes. The difference is the Python compiler is not optimizing out the float() conversion, so every time it creates the value 5.0 it is calling the float() conversion on the literal "5". Different machine, so the timings are different from above, but here are some permutations: Float literal: $ python -m timeit '5.0' 100000000 loops, best of 3: 0.0152 usec per loop Integer literal coerced to a float: $ python -m timeit…

Very cool thanks. So something like PyPy would probably very quickly optimize it, since it has a deterministic result. I think I'm going to experiment with that one.

Re: Brilliant Jerks Cost More Than They Are Worth

#264
post #36
post #13

> A “No Jerks” Policy Must Be Built Into Your Culture. It is entirely possible to be extremely passionate (and even brilliant) without being a jerk. A “no jerks” policy must be preached and practiced from the highest levels. Following simplistic rules like this is usually what leaves us knee deep in the proverbial. Maybe I've been lucky, but I've never worked with anyone who's as much of a jerk as described in the ar…

Steve Jobs has been a well known jerk. It helped apple to have him.

Better to say he added value despite being a jerk; there are lots of companies that succeed without having egomaniacal bullies in senior management.

Re: Brilliant Jerks Cost More Than They Are Worth

#265
post #157

I have never had a good job. Most of my life has been miserable working in QA and not finding any value in anything I do or being able to find something better. This currently leads me to where I am today, working at a huge corp in a pool of mediocrity. The people around me have absolutely no big ambitions to do anything meaningful in life and are very comfortable with their mediocre kids. These people are happy whic…

Are you sure you are not projecting your own attitude on them? I know testers who like that job. Not like as "I want to become famous", but like as "I actually like doing that activity and like people on that job". To address the personal attack in second paragraph: Some of those dudes might consider their families meaningful. It is goods for kids when their parents love them even as kids are average - most kids are…

What does your comparison about mothers and fathers have to do with anything?

Re: Brilliant Jerks Cost More Than They Are Worth

#266

I have never had a good job. Most of my life has been miserable working in QA and not finding any value in anything I do or being able to find something better. This currently leads me to where I am today, working at a huge corp in a pool of mediocrity. The people around me have absolutely no big ambitions to do anything meaningful in life and are very comfortable with their mediocre kids. These people are happy whic…

"If you hate a person, you hate something in him that is part yourself. What isn't part ourselves doesn't disturb us." - Hermann Hesse, Demian "Everything that irritates us about others can lead us to an understanding of ourselves." - Carl Jung Playing high status at work could be a coping mechanism. Honestly, if you're unhappy just quit and go work someplace where people are smarter than you are. But if this feeling…

What does being smart have to do with anything?

Smart doesn't equal interesting. Plenty of smart people around me.

Re: Brilliant Jerks Cost More Than They Are Worth

#267

I have never had a good job. Most of my life has been miserable working in QA and not finding any value in anything I do or being able to find something better. This currently leads me to where I am today, working at a huge corp in a pool of mediocrity. The people around me have absolutely no big ambitions to do anything meaningful in life and are very comfortable with their mediocre kids. These people are happy whic…

The real question is, what have you done recently to improve your skillset? If you regularly improve your skills, you won't be in that situation for long.

I don't agree with this. It is really about who you know. I never got a job because of skills

Re: Brilliant Jerks Cost More Than They Are Worth

#268
post #171

Earlier quoted context omitted.

One of my pet peeves in C++ is seeing: std::string s = ""; It causes calls to strlen and potentially memory allocations. Just use the default constructor!

It used to, but it doesn't anymore, presuming you use a reasonably recent compiler. If you enable optimizations the assembly for that snippet and the default constructor are identical, I last checked on some GCC 5 flavor, but I think it was like this all the way back in GCC 3 something. Compilers can do some pretty fancy things with literals because they know they optimize constants known at compile time.

I just started using GCC 5.4 - I'll have to check again. Last I checked was around 4.8, and it was still generating sub optimal code with the empty literal.

Re: Brilliant Jerks Cost More Than They Are Worth

#269
post #171

Earlier quoted context omitted.

It used to, but it doesn't anymore, presuming you use a reasonably recent compiler. If you enable optimizations the assembly for that snippet and the default constructor are identical, I last checked on some GCC 5 flavor, but I think it was like this all the way back in GCC 3 something. Compilers can do some pretty fancy things with literals because they know they optimize constants known at compile time.

I just started using GCC 5.4 - I'll have to check again. Last I checked was around 4.8, and it was still generating sub optimal code with the empty literal.

Enabling the optimizations is important too. If you leave it on the defaults it does a very direct translation to machine code.

GCC 7 is available for use now.

Re: Brilliant Jerks Cost More Than They Are Worth

#270
There are two types of "jerk but productive" and what separates them is whether they are willing, even on the lookout, for things to learn from their more junior colleagues. Example:

Un-curious jerk: please don't write anything, even developer tools, for this company is node.js; I heard it's still riddled with bugs and I wouldn't touch it with a ten foot pole.

Curious jerk: we can't build any official tooling with this stack yet, but for a couple minutes could you show me how you were taking advantage of the asynchronous capabilities, I heard it has killer support there?

Post reply on HN