I'm tempted to post duplicate answers on this users's other questions since all the advice applies, but it doesn't feel right. He really should've just posted one question at a time with just one implementation.
@Jamal You could just make a comment to the other question linking to your answer, and saying all the advice applies to that other implementation perhaps
I don't think @Jamal is really too concerned with the extra rep so much as to give someone else a fair shot at perhaps getting some rep themselves reviewing the question their own way
I'm still on the edge, I'd like to run because I have good people skills and spend a lot of time here, but my technical programming knowledge is not very good compared to many others
I'd like to see some of the less frequent chatroom lurkers run too
Hey, I just got "Inquisitive" :D
Hint: You can vote on multiple candidates
Especially on the first round where candidates introduce themselves, you have unlimited votes. Then next go after part of the elimination, you can vote 3 times (from memory)
To "answer" this comment:
#include <memory> //required for placement new?
No, that library isn't required for basic uses of new (it's a keyword). However, a feature such as nothrow would require it. Check the documentation for more information.
These aren't too readable:
void hire...
@Phrancis I don't like mods who aren't easily accessible. A mod who isn't active in chat needs to be extraordinarily active in meta. That's a really short list.
This is quite a bit of code, so I'll start with a few things for now:
I appreciate that you're using <random> instead of rand(). Even in C++11 solutions, the latter seems to still be used.
SIZE can be a constexpr instead, though this may not really matter for a simple constant.
Since this is C...
That question could use more answers. It's a lot of code and I don't like going though all of it.
In computer programming, COMEFROM (or COME FROM) is an obscure control flow structure used in some programming languages, originally as a joke. COMEFROM is roughly the opposite of GOTO in that it can take the execution state from any arbitrary point in code to a COMEFROM statement.
The point in code where the state transfer happens is usually given as a parameter to COMEFROM. Whether the transfer happens before or after the instruction at the specified transfer point depends on the language used. Depending on the language used, multiple COMEFROMs referencing the same departure point may be invalid...
@QPaysTaxes Sure. And Eclipse is also a "write-time getter/setter/constructor generator tool".
And Lombok is also an IDEA plug-in (and possible an Eclipse plug-in soon).
@QPaysTaxes Sure... but from the POV "when it gets used"..., but as I said, YMMV.
@QPaysTaxes What no? Your mileage may NOT vary? :D
Let's forget it... that's waste of time. I know what you mean and I hope you know what I mean, so let's stop it.
@QPaysTaxes Honestly?
But... does it matter?
If you're honestly interested, I could explain more exactly what I mean. I could possible come to the conclusion that I was being imprecise... but that's all pretty unimportant.
Concerning Lombok, I see it as something what should be part of Java. Ideally, since ever.
@QPaysTaxes No. But in one aspect they have more in common than with e.g. Spring.
Yes. that's about all. Just this aspect.
And the things it does are something javac/ecj should do.
@Phrancis Sure, and it quite often works. And then it gets more complicated and stops working and nobody can ever fix it. Except with yet another error ignorance.
I am in the process of writing networking code for PHP that is meant to be used in long-running PHP processes. I realize that PHP is supposedly not well suited for long-running processes, however that is not my question, and I already am well aware of the implications. This is meant as an OOP l...
If the code is working, and your only issue is how to refactor it to eliminate the callback hell, perhaps codereview would be a better place for it. — laggingreflex19 secs ago
Apparently they see their reflection in the glass and think it's a possible mate, at least that's what I was told when an Ibis flew through the glass window into my classroom one time