b3ta.com qotw
You are not logged in. Login or Signup
Home » Question of the Week » Sacked II » Post 2295449 | Search
This is a question Sacked II

I once had a "friend" (I hated his guts) who lost two jobs on the same day - he drunkenly crashed the taxi he was driving when he was supposed to be at his office job. How have you been sacked?

(, Thu 29 May 2014, 13:33)
Pages: Popular, 4, 3, 2, 1

« Go Back | See The Full Thread

Your code is terrible.
You coded a try block without any accompanying catch or finally block.
Not only that, your try block is parameterised, and contains nothing in its body.
And wtf is the keyword call?
Also... your function appears to return type function... that's just weird.

Did you even try to compile it?


C++
----
public:
void getUpset()
{
    waaaaah();
    try {
        wit();
    }
    catch(std::exception& e) {
        callMods();
    }
}


C#
----
public void getUpset()
{
    waaaaah();
    try {
        wit();
    }
    catch(Exception e) {
        callMods();
    }
}
(, Tue 3 Jun 2014, 11:49, 1 reply)
people who open their braces on the same line have very small cocks ... just saying like

(, Tue 3 Jun 2014, 12:18, closed)
I personally use Allman style everywhere,
but I switched to K&R style here, to match the original posted code...
(although, as it happens the original code appears to be some kind of K&R variant which puts the function open-brace on the same line as the function signature)
(, Tue 3 Jun 2014, 12:43, closed)
yeah yeah yeah *international pinkie finger small penis gesture*

(, Tue 3 Jun 2014, 13:00, closed)
You're getting away from the important, and terrifying, point here;
people who code like emvee can actually find well paid employment writing software, some of which might be required to do something important.

Basically, the entire industry works on a 90-10 principle: you can fire 90 percent of your coders, because all they're actually doing is slowing down the 10 percent who end up writing/fixing it all anyway.
(, Tue 3 Jun 2014, 13:09, closed)
he dresses and lives like a povvo student ... you may be somewhat flattering him with that 'well paid' bit

(, Tue 3 Jun 2014, 13:39, closed)
I think I've really upset the whiny crybaby this time
There there, Shambo. Go see mummy, she'll kiss it all better.
(, Tue 3 Jun 2014, 14:59, closed)

« Go Back | See The Full Thread

Pages: Popular, 4, 3, 2, 1