3,292 karma · joined Jul 1, 2013 (13y ago) · 1,194 submissions
comment 10y ago · link · parent
comment 10y ago · link · parent
> The answer to that is that if you need
> more than 3 levels of indentation, you're screwed anyway,
> and should fix your program.
Breaking the code into manageable chunks is a huge part in writing clear, maintainable software. A high amount of curly braces implies deep nested loops and/or branches, which also implies a high complexity (measured by cyclomatic complexity).Also, IDEs can auto insert braces and indent the code. Unless you're using notepad, I don't see the problem.
comment 10y ago · link · parent
I've become so used to writing (and working with) less than perfect (sloppy) software, I'm ashamed to be called an engineer (not that anyone calls me that). I wouldn't be able to write software that lands a rocket anywhere without first crashing ~100 prototypes.
comment 10y ago · link · parent
> GPU ACCELERATION
> If supported by browser, poppers will be positioned using CSS translate3d, making your poppers even faster!
How is a transformation accelerated by the GPU? I'm pretty sure translations are done on the CPU before sending the final transformation matrix to the GPU.comment 10y ago · link · parent
But more often Foos found observing his guests depressing. They argued.
They watched too much television. (This was especially irksome when the
guests were attractive and could have spent their time having sex instead.)comment 10y ago · link · parent
comment 10y ago · link · parent
If you can't trust yourself to write such a simple function, how confident are you about writing something a little more complicated? Or very complicated? Doesn't it bother you that you feel more confident in 10 simple lines of code written by a complete stranger than you are in yourself?
1069.
Ask HN: How do I improve my memory?
3 points · by rootlocus · 10y ago · 2 comments
comment 10y ago · link · parent
> I look for whether or not they were deceptive or failed to hold up their end of the deal.
Does that even matter? The way her manager treated her was utter crap and that reflects badly upon the whole company. Her article is a subjective accounting of what happened, and I truly believe most of it is true. Having an accurate, objective picture of the situation is impossible.comment 10y ago · link · parent
Of course the company didn't care that my father died. No one outside of my team even knew. But my immediate supervisor did. And he did everything he could to help me get through. Because he's a human, not a corporate drone.
However deep or shallow a company's hierarchy may be, at each level there are discreet human beings.
comment 10y ago · link · parent
"It isn't relevant to Yelp that she's a single mother". There are so many things wrong with this statement that I can't even begin to answer. To quote something I found yesterday:
“The amount of energy necessary to refute bullshit is an order of magnitude bigger than to produce it.”
1078.
Primitive Technology(youtube.com ↗)
1 points · by rootlocus · 10y ago · discuss
comment 10y ago · link · parent
So basically you agree with the the fact that it's a hack, but feel that it's necessary to attack me personally (with a well placed "ad hominem" fallacy) for not being able to remember such trivia.
Let's make this clear: this isn't a test on how well you know C++. It's a rhetorical question, aimed at people how don't know C++, or only have a basic idea of how operator overloading works. Would they be able to guess which is overloaded how? No. Because it's an unintuitive hack.
That's the purpose of the question.
> Anyone halfway knowledgeable in C++ can be expected to know this piece of trivia, IMHO.
You can have your "humble" opinion (first one so far). I'll just have to humbly disagree with it.