The Java code also has around 500 warnings. Not a few warn about actual or potential null-pointer dereference. I can't understand how warnings like this are just ignored.
However I complained about this too many times already. I'll stop boring you to death.
// I recently found this (not-so) gem:
if (a) delete a;
if (b) delete b;
if (c) delete b; // Thank you Valgrind.
// NOTE: above code is a beautified version of reality
And replacing code means commenting out the previous code and inserting the new code. The old commented-out code remains FOREVER. You can imagine what this code-base looks like after 8 years of developement.
The company makes a lot of profit. We get paid well. Extra holidays. Never expected to do overtime. It takes me a 30 walk to get there. It's a nice walk.
that sounds great. We had a nice discussion earlier today about having your cake and eating it too. Except we were actually talking about cake. Sort of.
@Xeo Most of the profit comes from cable-modem certification which is done by a different team. I work in a small team that works on software that does network traffic generation for testing purposes.
@StackedCrooked do you actually like what you're working on? Is the problem interesting to you? I could get over a lot if I had that. And the other good things about your job.
@StackedCrooked I've always heard that the warning doesn't affect the result of the program. Well, then, you can fix it without bothering testing then huh?
I recently explained to him that rvalues can only be bound to const reference in C++. I wonder if he got it, especially since the concept of "reference" seemed to be new to him.
I wonder if I'd make a good coworker. I know too much stuff about C++ and the standard so I'm worried I might want to overrule all of the missing knowledge my senior coworkers might have.
@Xeo People never step down from leadership in recognition of a more apt rival. No, they cling to the bitter end until the cold death aura of their presence drives away all talent from their workplace.
On the former, operations take operands from the stack and put the results there too. On the latter, they grab operands from registers and put the results on registers.
@Xeo They simulate interactions between subatomic particles, obviously.
Odd question here... I'm trying to make a python program that interfaces with a different crashy process (thats out of my hands). Unfortunately the program im interfacing with doesnt even crash reliably! so i want to make a quick c++ program that crashes on purpose but i dont actually know the be...
@RMartinhoFernandes What do you mean, "bad" checked exceptions? Checked exceptions are a terrible idea that get in the way of Genericity and decoupling, so all of them are bad :)
@CatPlusPlus Well, that makes the code kinda interpreted, which was not what I was going for. Only crossplatform installable without having to crosscompile yourself.
I have a 3D multi_array and I would like to make 2D slices using dimensions specified at runtime. I know the index of degenerate dimension and an index of slice, that I want to extract in that degenerate dimension. Currently the ugly workaround looks like that:
if (0 == degenerate_dimension)
{
...
Given a simple grammar, like
rule1
:= token1 token2 token3 token4
|| token1 token2 token3 token3;
What's the difference between shifting the first three tokens, then looking at the fourth to see which rule to reduce, and simply performing a lookahead of four tokens to see which rule to...