• Raafschild (unregistered) in reply to Burninator

    Anonymous:
    I had a co-worker ask me: How do you tell if a number is negative?

    They are the ones that complain a lot. 

  • Also Anon (unregistered) in reply to Martin Brice

    I'm sorry, but what does the "MS" stand for in your post? No wonder you got docked for the overuse of acronyms!

  • CSIXTY4 (unregistered) in reply to Licky Lindsay

    My big CSV WTF is that developers use it because it's an easy way to export data to Excel.  But end users don't understand the difference between a CSV and an XLS.  They double-click the icon with the X on it and up pops Excel with their data.  So then you get requests for different formatting, fonts, and whatnot, and they don't want to hear that you can't do them because "I just click the big B and it makes it bold.  Why can't your program do that?".

  • (cs) in reply to triso

    Triso:  What does your sig mean?

  • Toolkit (unregistered) in reply to me

    The horror... the horror....

  • (cs) in reply to Anon

    A good friend of mine was with me at a Fuddrucker's hamburger place.  He said, seriously, "I think I had better order a half-pound burger.  I don't think I am hungry enough to eat a one-third-pound burger today".

    I miss him.

     

  • (cs) in reply to Bramster
    Anonymous:

    "Files on a server will deteriorate over time and need to be refreshed" -- director of computing and networking at a relatively popular travel booking agency."

    I can't comment on the rest of it, but this is true.  The magnetic domains on a hard-drive are re-written when they are read.  Just one of the reasons regular back-ups mean you won't need the back-ups.

    Wrong: PC disk drives don't generally re-write the magnetic domains on the hard drive when they read them.  They only re-write them when they write them.

    What references do you have for your statement?

  • (cs) in reply to darin
    darin:
    Anonymous:

    I'm on the phone with a guy from another office trying my best to explain why his (brute force linear) search algorithm was causing major performance problems.

    Ran across a scientist ages ago who didn't seem to understand arithmetic.  He claimed something was wrong with our computer.  After investigation, his algorithm had an O(n^4) run time since it churned through an array of 4 dimensions (n by n by n by n).  His test program had n=100, it it took only about 5 minutes to run.  So he increased n to 1000 and the program hadn't finished yet after several hours.  So obviously our computer must be broken.

    Similarly, I once got a call for help from some amateur writing a BASIC program (this was back around 1980 when computers came with BASIC).

    The statement causing the problem was

     

  • (cs) in reply to darin
    darin:
    Anonymous:

    I'm on the phone with a guy from another office trying my best to explain why his (brute force linear) search algorithm was causing major performance problems.

    Ran across a scientist ages ago who didn't seem to understand arithmetic.  He claimed something was wrong with our computer.  After investigation, his algorithm had an O(n^4) run time since it churned through an array of 4 dimensions (n by n by n by n).  His test program had n=100, it it took only about 5 minutes to run.  So he increased n to 1000 and the program hadn't finished yet after several hours.  So obviously our computer must be broken.

    Similarly, I once got a call for help from some amateur writing a BASIC program (this was back around 1980 when computers came with BASIC).

    The statement causing the problem was

     

     
  • (cs) in reply to darin
    darin:
    Anonymous:

    I'm on the phone with a guy from another office trying my best to explain why his (brute force linear) search algorithm was causing major performance problems.

    Ran across a scientist ages ago who didn't seem to understand arithmetic.  He claimed something was wrong with our computer.  After investigation, his algorithm had an O(n^4) run time since it churned through an array of 4 dimensions (n by n by n by n).  His test program had n=100, it it took only about 5 minutes to run.  So he increased n to 1000 and the program hadn't finished yet after several hours.  So obviously our computer must be broken.

    Similarly, I once got a call for help from some amateur writing a BASIC program (this was back around 1980 when computers came with BASIC).

    The statement causing the problem was

    DIM A [5, 2000, 10, 5000]

    I'm a programmer, not a support person, so I'm not always good at explaining things.  I never did get him to understand why his program would not run on any computer that was available at the time.

     

     
  • (cs) in reply to Matt Nordhofff

    Matt Nordhofff:

    Augh! I have an extra F at the end of my username! I can get my email address right; what they need is a confirmation box for the username. D:

     

     Having a name that ends in three f's is way cool!

  • (cs) in reply to Peter Hickman
    Anonymous:

    No, here in the UK we use . for a decimal point and , for as a thousands separator. We are part of Europe too you know. An island to the west, before you get to all that wet stuff.


    "Before" you get to all that wet stuff?  If you're an island, aren't you SURROUNDED by wet stuff?  You have to "get to" the wet stuff before you get to your island, regardless of what direction you're coming from.  Or going.  I think.

  • Renan renan_s2 (unregistered)

    I know this "network admin" which gave the following commands to a server:

    [user@very_important_server user]$ su

    [root@very_important_server root]# ifconfig eth0 down

    ... (no response, since he was disconnected) ...
     

    'ifconfig ethX down', under Linux, disables the X-th network card (most systems have eth0 and eth1, that is, for 1st and 2nd network card).

    Would be OK if he was at the console, but he was accessing the server via SSH (remote access) from home, the server was 30km away from him, and it was a Sunday night (with users coming to work on a Monday morning).

    In the words of Zippy: YOW!  
     

     

     

  • (cs) in reply to el jaybird
    Anonymous:

    Three weeks into my new job after graduating with a Master's in computer engineering, I accidentally wrote a routine that, when distilled, was essentially:

     while (1)
       fork();

    I should mention that we use xterm sessions into shared servers for all of our development.  Probably 100 other developers ranging from junior to senior leads were logged in on the same machine that I was.  When I ran my program, I had about 5 seconds before the system became unresponsive.

    So, you were working on a Unix system with hundreds of users, and the sysadmin hadn't set resource limits?

    Your code wasn't the real WTF here.  It's easy to accidentally write runaway code; that's why the OS provides facilities to prevent it from becoming an inadvertent denial of service.  Developers should be careful, but it's the sysadmin's job to limit the damage they can do.

     

  • (cs) in reply to newfweiler
    newfweiler:
    darin:
    Anonymous:

    I'm on the phone with a guy from another office trying my best to explain why his (brute force linear) search algorithm was causing major performance problems.

    Ran across a scientist ages ago who didn't seem to understand arithmetic.  He claimed something was wrong with our computer.  After investigation, his algorithm had an O(n^4) run time since it churned through an array of 4 dimensions (n by n by n by n).  His test program had n=100, it it took only about 5 minutes to run.  So he increased n to 1000 and the program hadn't finished yet after several hours.  So obviously our computer must be broken.

    Similarly, I once got a call for help from some amateur writing a BASIC program (this was back around 1980 when computers came with BASIC).

    The statement causing the problem was

     

    Why are there three versions of my reply on the board?  WTF?  How come it doesn't happen to the rest of you?

     

  • Goblyn (unregistered)

    It would take too much effort for me to remember the actual code line for line, but a previous programmer at my company once wrote a block of code to pull a resultset from the database, loop through the result set and put all the values into an array (ok so far) then pull another result set from the same table on similar but different criteria, loop through and pull that result set into a matching array, then manually merge and sort the arrays in a bunch of loops.

  • (cs) in reply to maber
    maber:

    I had a manager a few years ago who wasn't too quick.  A few of us got bored in the office one day, so we rearranged keys on the keyboards to entertain ourselves.  He found out, got upset because we were "destroying property,"



    WTF?  The manager wasn't supposed to be annoyed?  If the keyboards aren't your property, you have no right to do that.
  • Seth Brundle (unregistered)

    10 years ago my boss (who is actually a programming god, this was just a post-lunch brain fart we all have from time to time, but he gave me a front row seat for it)...

     

    Boss: Seth come in here look at this. Its driving me nuts for a half an hour!

    Seth: Whats up?

    Boss: Look! Perl keeps telling me that .5 is greater then zero!  (to be honest, for a second it looked weird to me too the way he showed it to me!)

    Seth: Um, .5 *is* greater then zero, just not by very much.

    erupting laughter and red face....
     

  • Yep Yep (unregistered) in reply to raluth
    raluth:

    Anonymous:
    The whole of Europe uses commas as decimal points.

    Not all. UK doesn't, as an example.

    <blah>Isn't the UK (and Ireland) a part of the American Capitalist empire?</blah>

    Does the UK use ASCII as well?

    American Standard Code for Information Interchange

     

  • (cs) in reply to Jon H

    Anonymous:
    we were forced to hire a guy because he met the mandatory hiring requirements (He was Alaska Native and had a degree in CS).

    That's the real WTF there. 

    Anonymous:
    Not programming related, but funny nonetheless:-

    My wife's sister once asked (whilst we were watching crimewatch) "Where is Caucasia?"

    According to Wikipedia:

    The Caucasus or Caucasia is a region in Eurasia bordered on the south by Turkey and Iran in Asia, on the west by the Black Sea, on the east by the Caspian Sea, and on the north by Russia. Caucasia includes the Caucasus Mountains and surrounding lowlands.
  • Rich (unregistered) in reply to Simmo
    Anonymous:

    ... And that comment demonstrates anglocentricism (or perhaps North American stereotyping of French people?). The whole of Europe uses commas as decimal points. There is life outside your continent.

     

    No, the "Anglocentric" (English) part does not. However much we'd like to believe we're not in Europe.

     

    Rich 

  • Leo (unregistered) in reply to n00bcoder
    Anonymous:
    Anonymous:

    We have a board like this in our office for dumb user comments.  My favorite (besides the user that wanted to plug her laptop into her hotel room cable television to make it "surf the internet faster") is from a training session involving a popular Mac-based painting program.  The technician (now my boss) was trying to teach a group of teachers how to use the program in their classes.  After having shown them all the basic tools (brushes, stamps, paint buckets) he set them loose with the challenge, "Go wild!"

     Five minutes later, he looked over at one teacher to find nothing but a solitary yellow circle in the middle of her screen.  "What's wrong?" he asked.  "Are you uncomfortable with the tools?"

     "I know computers are expensive.  I didn't want to waste the paint."
     

     

    Wow. What can you say in such a situation?

    How bout: Don't worry about all of the paint you're using.  The bit buckets get refilled every night from the Sherman Williams server.

  • (cs) in reply to stutter
    Anonymous:

    contractor: "How do I change the default setting in Firefox that only allows 21 windows to be open?  I need to open 214 browser windows." 

     

    *fires up about:config*  Is this obliquely referring to dom:popup_maximum?

     

  • (cs) in reply to DWalker59
    DWalker59:
    Anonymous:

    No, here in the UK we use . for a decimal point and , for as a thousands separator. We are part of Europe too you know. An island to the west, before you get to all that wet stuff.


    "Before" you get to all that wet stuff?  If you're an island, aren't you SURROUNDED by wet stuff?  You have to "get to" the wet stuff before you get to your island, regardless of what direction you're coming from.  Or going.  I think.

    Well, first you get to some of the wet stuff, then on the other side you get to the rest of the wet stuff.  So the only way to get to all the wet stuff ( all = some + rest ) is to cross the island.  Or something like that.

     

  • D'n (unregistered) in reply to My Lord!

    Carts are good for detecting Joes. Run a new hire's PL/SQL or equivalent through ExplainPlan... >3 carts -> bye bye ;)

  • Anonymous (unregistered) in reply to Anon

    Anonymous:
    I had the pleasure of interviewing a contractor just yesterday.

    The contractor had completed her graduation only recently. She claimed to be 'familiar' with C and C++. I chose the former and asked her to write a function to add two numbers and return the sum. This is what she wrote:

    int add(int x, int y) { add = x + y; return; }

    When I asked her if she needs to return 'something', she changed it to

    return 1;

    I asked her why 1 and not 0, she said return 0 means return nothing. We need to return one value, so return 1;

    I asked her to change the function to return the sum and the difference of the two numbers. Guess what she wrote!

    int add(int x, int y) { add = x + y; diff = x - y; return 2; }

    I stopped after that.

    I walked out of the room feeling good about myself.

     

    Were you looking for a C/C++ programmer?  If so, she shouldn't have even been considered since she is only familiar with C/C++, but her example demonstrates that she was indeed "familiar" with it.  Granted, everything she wrote is wrong, but then I would probably write the equivalent if I were asked to write similar functions in any of the numerous other languages with which I am only "familiar" (perl, vb, assembly, ...).

     

  • Anonymous (unregistered) in reply to DWalker59
    DWalker59:
    Anonymous:

    "Files on a server will deteriorate over time and need to be refreshed" -- director of computing and networking at a relatively popular travel booking agency."

    I can't comment on the rest of it, but this is true.  The magnetic domains on a hard-drive are re-written when they are read.  Just one of the reasons regular back-ups mean you won't need the back-ups.

    Wrong: PC disk drives don't generally re-write the magnetic domains on the hard drive when they read them.  They only re-write them when they write them.

    What references do you have for your statement?

    I think what the original was trying to get across is that by reading the data on the drive, it reinforces the magnetic integrity. 

  • (cs) in reply to Abigail
    Anonymous:
    Alex Papadimoulis:

    Oh crap, I really screwed up this time.
    Err, did you break the test database again?
    No, no. I asked this girl I've been seeing for three weeks to move in with me.
    Aren't you married?
    Yeah ...

    I didn't know it was possible for anyone to be that stupid.

    But if the wife agrees--then this guy's a hero!!!

    --Jim

  • (cs) in reply to V.
    V.:

    I also heard that someone of my class (at college) asked his fellow partners of their finals project if Java was 'case-sensitive' and if the ( ) for a method call were obligatory ...

    Those are perfectly reasonable questions if the person asking doesn't know Java; after all, there are plenty of case-insensitive programming languages (COBOL, Pascal, etc), and there are plenty of languages where function calls and/or method invocations don't use parentheses to delimit the list of parameters (COBOL, the ML family, etc).

    If Java knowledge was required for the class, though, then yes, that's pretty bad.

    The case-sensitivity question reminded me of a minor college WTF story: one compiler-design class I took was based on a group project, a Modula-2 compiler.  Somehow I got appointed as a sort of unofficial team leader, and one of my first acts was to impose source control.  (This was the late 1980s, and we were working on Unix machines, so I just threw RCS on, archived the code, and showed everyone how to check in and out.)

    And not a moment too soon: the next day, one team member checked in a hundred or so changes he'd made so that the compiler would be case-insensitive, because he found case-sensitivity annoying.

    The Modula-2 specification mandates case-sensitivity.

    That day, the team got to see the real value of source control: rolling back the WTFs.

     

  • Blah (unregistered) in reply to tmountjr
    tmountjr:

    A few weeks ago I had a user call in about a program that was printing documents in reverse order. For whatever reason I couldn't remotely connect to her computer, so I asked her to reboot, figuring this would fix both problems at once.

     

    Her: If I reboot, then you might not be able to see the problem.

    Me: If you try printing and it works right, then I won't need to see the problem.

    Her: But how will you fix it if it happens again?

    Me: That's why we're rebooting.

    Her: But I don't want to reboot. It might solve the problem and you won't be able to see it!

    Me (getting a little frustrated): Just reboot the computer.

     

    First time I've had a customer who was more concerned about me seeing a problem than fixing it. 

     

    Yes, damn her for expecting you to actually look at and, perhaps, attempt to fix the problem. How dare these users expect their tech support people to do more than say "scandisk-defrag-reboot"...

    Expecting you to make some attempt to fix it is perfectly reasonable. If you're any good at your job you should have at least attempted some basic testing or checking with her over the phone. For extra brownie points you could have tried to fix the remote access problem, perhaps by restarting a service (nice and easy with a remotely scheduled batch file with net start/stop), then trying again.

    And you wonder why people have such a low opinion of IT departments? It's because the first "tech" staff they come across have an attitude like that.

    </pet hate>

  • Tei (unregistered) in reply to Renan renan_s2
    Anonymous:

    I know this "network admin" which gave the following commands to a server:

    [user@very_important_server user]$ su

    [root@very_important_server root]# ifconfig eth0 down

    ... (no response, since he was disconnected) ...
     

    'ifconfig ethX down', under Linux, disables the X-th network card (most systems have eth0 and eth1, that is, for 1st and 2nd network card).

    Would be OK if he was at the console, but he was accessing the server via SSH (remote access) from home, the server was 30km away from him, and it was a Sunday night (with users coming to work on a Monday morning).

    In the words of Zippy: YOW!    

    I did that once, on a LTSP, but with a more smart command:

     [root@very_important_server root]# ifconfig eth0 down;something;ifconfig eth0 up

    This way the conexion go down, ....whatever, then go up. And no one notice :D, well.. the LTSP will not notice :D

     

     

     

  • Do Wah (unregistered) in reply to Blah
    Anonymous:
    tmountjr:

    A few weeks ago I had a user call in about a program that was printing documents in reverse order. For whatever reason I couldn't remotely connect to her computer, so I asked her to reboot, figuring this would fix both problems at once.

     

    Her: If I reboot, then you might not be able to see the problem.

    Me: If you try printing and it works right, then I won't need to see the problem.

    Her: But how will you fix it if it happens again?

    Me: That's why we're rebooting.

    Her: But I don't want to reboot. It might solve the problem and you won't be able to see it!

    Me (getting a little frustrated): Just reboot the computer.

     

    First time I've had a customer who was more concerned about me seeing a problem than fixing it. 

     

    Yes, damn her for expecting you to actually look at and, perhaps, attempt to fix the problem. How dare these users expect their tech support people to do more than say "scandisk-defrag-reboot"...

    Expecting you to make some attempt to fix it is perfectly reasonable. If you're any good at your job you should have at least attempted some basic testing or checking with her over the phone. For extra brownie points you could have tried to fix the remote access problem, perhaps by restarting a service (nice and easy with a remotely scheduled batch file with net start/stop), then trying again.

    And you wonder why people have such a low opinion of IT departments? It's because the first "tech" staff they come across have an attitude like that.

    </pet hate>

    I think you're possibly missing the point and ruining the elitist vibe of TDWTF we all enjoy when bringing others down - including whether or not the vic is a noob or not.  Or is this your way of bringing us all down (good job, I like it).

     

  • KHadden (unregistered) in reply to me

    LOL:

    Anonymous:

    when i was a newbie:

     

    me: fork() is fucked on this box, sometimes it returns 1 and sometimes 0

     

    captcha: eyestooclose 

  • (cs)

    This doesn't have quite the WTF-nature of some of these fine anecdotes, but it's my own personal favorite Wacky Consultant story.

    I was working for a small start-up in the early 1990s, and we'd hired a couple of consultants who turned out to be in over their heads.  One washed out quickly.  The other hung in for a while, then resigned because, he said, he'd just been diagnosed with a terminal illness and didn't have long to live.

    We found a replacement, who eventually came on full time.  Years later, we were reminiscing, and it turned out that the replacement knew this "terminal" consultant - who was happily working for another firm in the area.

    Apparently claiming to be on the brink of death was just his tactful way of backing out of the job.

     

  • Zygo (unregistered) in reply to cconroy
    cconroy:

    Anonymous:
    I had a co-worker ask me:

    How do you tell if a number is negative?

    Ask it whether the glass is half empty or half full.

    I dimly recall a certain mainframe designer who used 1's-complement arithmetic in many (all?) of his system designs (and a 6-bit byte length with 60 bit words, among other things).

    One day a vendor who manufactured systems designed by this guy decided to enter the new (at the time) competitive C marketplace.  They developed a C compiler for their systems, with some...interesting properties.

    The problem was basically this:  there are two zero values in one's complement arithmetic.  If you ask the machine (in assembler) whether a value is equal to zero, these two distinct bit patterns would both return true.  The "greater than zero" and "less than zero" operators would also behave as you might expect--they spent an extra cycle or something to get the right result.  The more confusing quirk was that for equality there was one operator that would compare numerically (so +0 == -0) and another that compared bitwise (so +0 != -0).

    Now how the heck do you do this stuff in C?  If you say "OK, we'll use numeric comparison for all the integer comparisons", then you get things like "~0 == 0" and you also screw up all those clever algorithms that try to manipulate bits using a combination of arithmetic and bitwise logical operators.

    To make life more interesting, they used the bitwise-equality operator for pointer comparisons and the numeric-equality operator for integer comparisons.  I don't remember exactly what that caused problems with, but problems it did cause...

  • Dan (unregistered) in reply to el jaybird

    When I was just getting into unix, I was playing around with C code, not knowing what I was doing.  Well, I came across this code (on a webpage or newsgroup, I don't remember):

     while (true) {

       fork();

    }

     
    "Hmmm.... I wonder what this does", I said to myself.  "Let's try it out."  On the school's unix server.  Which is also the file server.  And it's late spring, so final papers and dissertations are being saved on this machine.  

     Made perfect sense to me.  Until I ran it and the terminal stopped responding.  And the sysadmin had to be called in from home.  I think the server ended up being rebooted.

    Ware the fork(). 

  • AC538 (unregistered) in reply to jmw2

    I am currently consulting for a financial firm. The in-house developers a trying OOp in PHP. To get a few rows of data, they do this:


    - instantiate an object
    - call an instance method which retrieves rows from the db
    - the rows are, one by one, inserted into an array, stored in the instance
    - they then read the array, element by element, into the PHP page
    - and often use just the first 10 results.

    Class methods are harrrrrrrrdd! I don't understand ::!

  • Zygo (unregistered) in reply to Licky Lindsay
    Anonymous:

    Anonymous:
    SO, your objections against delimited files are exactly what?

     
    Nothing against delimited files per se. The problems with CSV in particular are:

    1. Comma was a poor choice for the delimiter, since it is highly likely to occur in ordinary text. More likely than, for example, literal greater-than or less-than is in an HTML document.
    2. The solution for escaping commas, which is to surround the entire call with quotes, is harder to parse than if the comma was escaped with (for example) a backslash.
    3. Esacping of literal quotes is accomplished by doubling them. In other words, two different ways to escape things in one file format. This further complicates the parsing.

    It is obvious that the format was originally designed by someone who just didn't think about things like "what happens if somebody wants to use a literal comma?". Then later someone did, and they had to hack in the quoting. Etc. The CSV format is a WTF all to itself.

    The worst thing about CSV is that often someone screws up the implementation in ways that can't be fixed.  I have seen advisories like "do not use the doublequote (") or comma (,) character in any field when entering billing data" because either of these characters in a field will stop the billing reports application dead.  Waving USD$50K in front of the vendor (a.k.a. our estimated internal costs, above licensing costs, to switch to a different applcation) is not enough to make them fix the application either.  We spent the $50K anyway, but not on those bozos.

    Tab-delimited fields are prone to similar problems as CSV; however, very few people actually use tabs in field data because the "Tab" key in most applications selects a different field.  It's a much better choice of record separator than comma just because all the corner cases arise so much less often.

  • (cs) in reply to Anonymous
    Anonymous:

    Anonymous:
    I had the pleasure of interviewing a contractor just yesterday.

    The contractor had completed her graduation only recently. She claimed to be 'familiar' with C and C++. I chose the former and asked her to write a function to add two numbers and return the sum. This is what she wrote:

    int add(int x, int y) { add = x + y; return; }

    When I asked her if she needs to return 'something', she changed it to

    return 1;

    I asked her why 1 and not 0, she said return 0 means return nothing. We need to return one value, so return 1;

    I asked her to change the function to return the sum and the difference of the two numbers. Guess what she wrote!

    int add(int x, int y) { add = x + y; diff = x - y; return 2; }

    I stopped after that.

    I walked out of the room feeling good about myself.

     

    Were you looking for a C/C++ programmer?  If so, she shouldn't have even been considered since she is only familiar with C/C++, but her example demonstrates that she was indeed "familiar" with it.  Granted, everything she wrote is wrong, but then I would probably write the equivalent if I were asked to write similar functions in any of the numerous other languages with which I am only "familiar" (perl, vb, assembly, ...).

     

     

    But when questioned, she flat-out stated something that was way off track.  Either she thought she knew it (and was egregiously wrong), or she knew she was on shaky ground (in which case she should have said something like "is this right?" or "I'd have to look at an example real quick").

     

    If someone says "I'd have to look at an example real quick", I say you should let them.  You should be able to tell pretty quickly whether they're usefully familiar (haven't memorized it, but can go find an example and then go "oh yeah, there it is" and proceed to adapt it correctly) or not (go find something and then either stare blankly at it, or attempt to adapt it in an utterly wrong fashion).

     

  • (cs) in reply to akcoder
    Anonymous:

    4 months or so back we were forced to hire a guy because he met the mandatory hiring requirements (He was Alaska Native and had a degree in CS).  Some of the gems from the interview:

    <snip> 

    Was there a particular reason you went out of your way to point out the guy's ethnicity? 

  • Dutchboy (unregistered) in reply to raluth
    raluth:

    Anonymous:
    The whole of Europe uses commas as decimal points.

    Not all. UK doesn't, as an example.

    The UK is not part of Europe (according to the Brits...:)

  • Aaron (unregistered)


    "How do i compile this file you sent me?"

    "Compile it in visual studio."

    "But i dont know what type of file it is its not a cpp file."

    "Its a .C file... its C code.."

    "Ohh... uhhh.. ok"

    "..." 

    Senior C developer... ftw? 

  • Anonymous (unregistered) in reply to Aaron

    My favorite contractor code was one SQL statement buried in the middle of a large stored procedure:

     

    select body from email_queue

     

    The statement must have been placed there for debug purposes.  No where clause.  Eventually the table grew large enough that this select statement brought a production database to a standstill.

    The same contractor also was setting an integer value to 1, 2 or 3, then passing that value to a stored procedure that used a boolean parameter. 

  • yo_snap (unregistered) in reply to DWalker59

    Never heard of the chunnel I see.

  • Anonymous (unregistered) in reply to emurphy
    emurphy:
    Anonymous:

    Anonymous:
    I had the pleasure of interviewing a contractor just yesterday.

    The contractor had completed her graduation only recently. She claimed to be 'familiar' with C and C++. I chose the former and asked her to write a function to add two numbers and return the sum. This is what she wrote:

    int add(int x, int y) { add = x + y; return; }

    When I asked her if she needs to return 'something', she changed it to

    return 1;

    I asked her why 1 and not 0, she said return 0 means return nothing. We need to return one value, so return 1;

    I asked her to change the function to return the sum and the difference of the two numbers. Guess what she wrote!

    int add(int x, int y) { add = x + y; diff = x - y; return 2; }

    I stopped after that.

    I walked out of the room feeling good about myself.

     

    Were you looking for a C/C++ programmer?  If so, she shouldn't have even been considered since she is only familiar with C/C++, but her example demonstrates that she was indeed "familiar" with it.  Granted, everything she wrote is wrong, but then I would probably write the equivalent if I were asked to write similar functions in any of the numerous other languages with which I am only "familiar" (perl, vb, assembly, ...).

     

     

    But when questioned, she flat-out stated something that was way off track.

     

    Of course she did.  The question was purposefully misleading, and would have been caught by somebody with experience in c/c++, not just passing familiarity. 

  • Rust (unregistered) in reply to shadowman
    shadowman:
    Anonymous:

    4 months or so back we were forced to hire a guy because he met the mandatory hiring requirements (He was Alaska Native and had a degree in CS).  Some of the gems from the interview:

    <snip> 

    Was there a particular reason you went out of your way to point out the guy's ethnicity? 



    Uhh, because being an Alaskan native was a job requirement? And what's ethnic about it? They wanted someone who lived in Alaska, presumably because their office is in Alaska. If a company here wanted an Alberta native, I'd be eligible despite my pasty white ass and tendency to speak Italian when aroused.

    Of course, I'm just assuming here. I notice that "Native" is capitalized, so it's possible their company might have some policies in place regarding the hiring of minorities (like Inuit, for example). In any case, it's obvious the guy was *not* the best choice for the job, as noted by the use of the word "forced".
  • jayh (unregistered) in reply to jimolina

    But if the wife agrees--then this guy's a hero!!!

    --Jim

     Hey stuff happens. My wife set up my first date with my girlfriend. (In truth, by that time we had already planned to divorce and were not above helping each other out)

  • Human Spell Checker (unregistered) in reply to Bobby
    Anonymous:

    During my tenure at a publishing company (one of the largest in the world), we had to let go of a "Senior J2EE Engineer" after about 3 weeks due to his lack of ability to produce even a single line of usable code, despite his extensive overtime. While firing him, we sited lack of acceptable progress, to which he responded, with a sales pitch-like tone in his voice, "Would it change anything if I told you I was able to successfully connect to the database?" No Barry. It wouldn't.

    LOL!   Where did you site his lack of progress, on his forehead?

    to site: to place in or provide with a site; locate

    to cite: to mention in support, proof, or confirmation
     

  • It's Atomic! (unregistered) in reply to Anon
    Anonymous:
    Anonymous:

    The full-timers said I was far too abrupt / brusqe with him - calling him on his BS and generally not backing down on my desire to "code it properly". He seemed adamant that we could just throw it together then we would have time later to "go back and do it properly, later". Our meetings were basically hammer fests of him saying XYZ and me saying "uh, no, you can't say that and we aren't going to do it like that".

    After one such meeting, we dispersed, and one of the non-developer types sitting a cubicle away stood up and fvcking applauded me, saying they agreed with my attitude of "do it right the first time". That was something I had not seen before.

    The full-timers were right. 'Calling people's bs' in a meeting is really bad form. Especially in the condescending way you did. For whatever reason they hired the walrus as the project manager, not you. You should have documented your critique of his project plan, presented it to him before development and got him to sign off that he had read it. Then, you do it his way and point to the document at the post-mortem.

    When developers push back, most people think it's because we are lazy and\or egotistical. Many times it's true. Doing it this way shows that it is not the case.

     
    Uh. Right. Except there was no project plan, he was simply telling us to develop an application that he DID NOT KNOW WHAT IT WAS, WHAT IT DID, or WHAT IT HAD TO DO, in 2 weeks. Simply because he thought we could. Because he said "you're smart guys, I know you can do it". He did not even have the login information for the existing application the new one was being modeled on. He was emailed it but hadn't read that email yet. Had never logged in.

    Do you understand?

    It would be like me walking into your company, today, and telling you that that 3 month project you're about to embark on can be done in 3 weeks, just throw something together, you can tidy it up later. I'm a contractor and I'm going to be gone in 4 weeks time. You would simply bend over and take it, no wait, you'd write down a little "I concede defeat and accept no responsibilty for my actions" note as if that absolves you. Someone says "live in sh!t" and you agree to do so. That's your choice, but don't expect everyone else to do the same. Especially me.

    The only reason I disagreed with him in the meeting (and the other 2 full-time developers were doing so also) was that I was not going to hang around and do the project if we were going to be forced to write sh!t. I had already saved 1 project, fixed another and completed a brand new one. All on time.

    He was escorted from the building.

    I did the project properly and finished it on time, and finished the next one a week early. Which I was 99% confident of doing, having spent the last 8 months developing / enhancing 3 projects that we were basing the final one on.

    If I had have left, they would have been up sh!t creek without a paddle.

    What kind of puncy world do you live in where people actually sign off on things?

    ------- 

    So let's say I did as you suggest. I submit my critique to him. He deletes or ignores it. There's no project plan. No formal spec. No functional spec. No test plan. I've mapped  out a methodology that is going to allow us to do the project properly (8 weeks), and proven it, but we can't use it. He now is ejected from the building. All his email is gone. We've been working on the project for 2 weeks and it's nowhere near done.

    What now?

    Start again?

    Keep going?

    You idiot. 

    ------ 

    People that take an attempt at humour / story telling and act like they were there and pass judgement on what has been written are delusional. Just read the story and enjoy it or move on to the next one, quit being a righteous crusader for Those That Bend Over When Asked. 

     

    error: as in, you are in error for thinking your opinion matters one whit. 

  • Homer (unregistered)

    I'm surprised he knew what Visual Studio was?  err, perhaps he didn't...

Leave a comment on “The Joe Board”

Log In or post as a guest

Replying to comment #:

« Return to Article