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.
Brilliant Jerks Cost More Than They Are Worth
261–270 of 279 posts
Re: Brilliant Jerks Cost More Than They Are Worth
#262Earlier 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?
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
#263Earlier 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…
Re: Brilliant Jerks Cost More Than They Are Worth
#264> 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.
Re: Brilliant Jerks Cost More Than They Are Worth
#265I 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…
Re: Brilliant Jerks Cost More Than They Are Worth
#266I 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…
Smart doesn't equal interesting. Plenty of smart people around me.
Re: Brilliant Jerks Cost More Than They Are Worth
#267I 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.
Re: Brilliant Jerks Cost More Than They Are Worth
#268Earlier 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.
Re: Brilliant Jerks Cost More Than They Are Worth
#269Earlier 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.
GCC 7 is available for use now.
Re: Brilliant Jerks Cost More Than They Are Worth
#270Un-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?