Slashdot Mirror


Software Engineer Detained At JFK, Given Test To Prove He's An Engineer (mashable.com)

New submitter mendred quotes a report from Mashable: Celestine Omin, a software engineer at Andela -- a tech startup that connects developers in Africa with U.S employers -- had a particularly unwelcoming reception when he deplaned at John F. Kennedy Airport and was given a test to prove he was actually a software engineer. A LinkedIn post detailing Omin's challenging experience explained that upon landing in New York after spending 24 miserable hours on a Qatar Airways flight, he was given some trouble about the short-term visa he obtained for his trip. According to the post, an unprepared and exhausted Omin waited in the airport for approximately 20 minutes before being questioned by a Customs and Border Protection officer about his occupation. After several questions were asked, he was reportedly brought to a small room and told to sit down, where he was left for another hour before another customs officer entered and resumed grilling him. Omin was instructed to answer the following questions: "Write a function to check if a Binary Search Tree is balanced," and "What is an abstract class, and why do you need it."

27 of 553 comments (clear)

  1. USA! USA! USA! by OverlordQ · · Score: 5, Funny

    We're Number #1! /s

    --
    Your hair look like poop, Bob! - Wanker.
    1. Re:USA! USA! USA! by Anonymous Coward · · Score: 5, Funny

      This is completely justified.

      We shouldn't let anyone into the country who can't write a procedure to tell if a Binary Search Tree is balanced, or doesn't know what an abstract class is.

    2. Re: USA! USA! USA! by LiENUS · · Score: 4, Insightful

      Like it or not that's what a sane immigration policy looks like.

      Lol no sane immigration policy has border patrol agents administering visas at the border. This shit woulda been done when the visa was issued waaay before he gets to the border.

    3. Re: USA! USA! USA! by Anonymous Coward · · Score: 5, Funny

      I know I know! An abstract class is one where they talk about binary search trees!

    4. Re:USA! USA! USA! by AmiMoJo · · Score: 4, Insightful

      Well... I didn't want to go there anyway.

      --
      const int one = 65536; (Silvermoon, Texture.cs)
      SJW, n: "Someone I don't like, and by the way I'm a fuckwit" - AC
    5. Re: USA! USA! USA! by PCM2 · · Score: 4, Informative

      Lol no sane immigration policy has border patrol agents administering visas at the border.

      Traveling on a U.S. passport, I've been to several countries where yes, they do indeed issue you a visa at the border.

      --
      Breakfast served all day!
    6. Re: USA! USA! USA! by Roger+W+Moore · · Score: 4, Insightful

      Most nations are smart and know that just having one part of a gov giving out a visa in another nation is not really that secure.

      No actually they do not know that because that is what every government I have ever applied for a visa from has done. How is this any less secure than a passport?

      So a second line of questions are in place to ensure the visa and person are correct when entering the USA.

      This second line of questions needs to be ones that the border guard is qualified to ask and understand the answer to. Such as who you are, what your business is etc. Having an unqualified individual trying to ask technical questions they do not understand is just stupid. When I worked at Fermilab 10+ years ago a colleague of mine was stopped at the US border and when he said he was a physicist the guard got out a large book, flipped through it, and asked him what "potential energy" was but, despite answering correctly, because he did not reproduce the exact answer given in the book he almost got denied entry.

      By all means protect your borders but please do it in a sensible, effective manner.

  2. Crowdsourcing! by Frosty+Piss · · Score: 4, Funny

    I donâ(TM)t work for free. If they want me to solve problems, they can sign a consulting contract.

    But hereâ(TM)s an idea, if they are going to force software engineers to do this sort of thing, maybe they can break up some vexing Homeland Security software problem and piecemeal it out, sort of like crowdsourcingâ¦

    --
    If you want news from today, you have to come back tomorrow.
  3. Re:In What Language? by OrangeTide · · Score: 5, Insightful

    "What is an abstract class, and why do you need it"

    Not a very FORTH friendly question. I'm an old C programmer and while I could make an educated guess, I don't think I would be able to confidently answer the question after a long flight.

    Checking if a binary search tree is balanced is something a student has to do, you usually have to write these sorts of things once or twice in your entire career.

    On the other hand I could sit down and discuss HDMI specification all day and night with border agents. They'd likely pass out from boredom.

    --
    “Common sense is not so common.” — Voltaire
  4. Re:In What Language? by MightyMartian · · Score: 5, Funny

    Nonsense. They have tasers. They could keep themselves amused all night.

    You, on the other hand, might enjoy it less.

    --
    The world's burning. Moped Jesus spotted on I50. Details at 11.
  5. I'd fail that binary search tree test by mfearby · · Score: 5, Insightful

    It's been so long since I even looked at having to do one of those, that I would be put back on the next plane home, LOL.

  6. proctologists and gyanecologist by Anonymous Coward · · Score: 5, Funny

    I wonder what kind of tests do they give them.

  7. Not at the border by Anonymous Coward · · Score: 5, Insightful

    It's total nonsense that the USA is detaining and turning away so many people at the border. By the time someone gets to the border (with visa in hand), the only question should be whether they match the visa - whether they are who they say they are. The "extreme vetting", or whatever you want to call it, should have already happened when the were granted the visa.

    Of course, if you really have evidence that someone is planning a terrorist attack on the USA then rather than simply turning them away to try again later you should be letting them in - and then throwing them straight in jail.

  8. Re:Not in the summary: by OverlordQ · · Score: 5, Insightful

    That's something that should be checked before issuing a Visa, not after they're already on the fucking plane here.

    --
    Your hair look like poop, Bob! - Wanker.
  9. Re:Not in the summary: by Anonymous Coward · · Score: 4, Insightful

    This is an understandable and completely normal security precaution.

    Really?

    Haven't most of the Islamic terrorists who've been caught trying to fuck with airports and air traffic been trained engineers?

  10. Re:He's lucky it wasn't Canada by SirSlud · · Score: 5, Informative

    And then the officer who fired the tazer went to prison for 30 months. Nice of you to leave that out.

    --
    "Old man yells at systemd"
  11. The correct answer: look on stack overflow by mveloso · · Score: 5, Insightful

    The correct answer to all of these questions is "why don't you look on stackoverflow?"

  12. Easier test by quadrantviewer · · Score: 5, Funny

    Surely it would have been easier to check if he was an engineer by forcing him to try to talk to a girl?

    1. Re:Easier test by Anonymous Coward · · Score: 4, Funny

      Torture is forbidden by law.
      Most of the time anyways.

  13. Well... by SeattleLawGuy · · Score: 4, Interesting

    I've had border guards not be sure if I was really me when I was driving a rental car across the border. Drug traffickers will sometimes use rental cars and my driver ID happened not to match the location where I had rented the car. I'm not offended by the fact that they double-checked it was me. With this guy, they verified his story with his employer and asked him a question or two. Sure, it wasn't perfect, but there are much bigger things to worry about. And we don't know the circumstances from CBP's POV. (Did he match a pattern of people claiming to be software engineers from nigeria who turned out to be here for criminal purposes, for example? I don't know, and neither does he.)

    Clearly, however, he should have been treated respectfully and with an "I apologize for the delay but we needed to verify your identity. I hope you have a wonderful time." They need to maintain authority, but it's also important to keep the country welcoming.

    --
    Real lawyers write in C++
  14. Re:Interesting story by _merlin · · Score: 4, Informative

    I had something similar although less exciting happen to me in early 2004. On claiming to be an electrical engineer, the immigration agent or whatever the US calls him scrawled a physics equation on a piece of paper and asked me what it meant to me. He was satisfied with whatever explanation I gave and let me through. I don't know if they've always done this, or if it's a post-9/11 thing, but it's been happening for more than a decade.

  15. Nothing new by OzPeter · · Score: 4, Informative

    French historian detained for 10 hours
    http://www.cnn.com/2017/02/28/...

    Australian Children's author detained
    http://www.smh.com.au/entertai...

    --
    I am Slashdot. Are you Slashdot as well?
  16. Re:Interesting story by Idarubicin · · Score: 4, Informative

    No commercial airline flight is 24 hours. There used to be a 19 hour one for a Singapore to New York flight but that's no longer in service.

    The Mashable report quoted in the Slashdot summary uses a slightly different phrasing from the original LinkedIn report. The LinkedIn article actually says "after having spent 24 hours cramped in an economy seat on Qatar Airways".

    Poking around a bit on Kayak, I see a bunch of Qatar Airways itineraries from Lagos, Nigeria (LOS) to JFK that involve three segments, with stops in Doha, Qatar (DOH) and western Europe (CDG, FCO, MAN, etc.). Total travel time is 27 or 28 hours, with nominal times in flight adding up to about 23 hours. Add an hour in a holding pattern somewhere (or queued up for takeoff on a taxiway, or waiting for a gate to open up), and the poor guy could easily have spent 24 hours in an economy-class seat on his way to JFK. Yeah, the phrasing's a bit sneaky since he would have had a couple of short "intermissions" to stretch his legs...but still, if we figure he arrived at LOS two hours before his flight, he would have been stuck in the international air transport system for better (worse?) than thirty hours all told.

    --
    ~Idarubicin
  17. Re:Interesting story by Anonymous Coward · · Score: 5, Interesting

    I am impressed with the questions. These are questions that any competent programmer should be able to answer, but a non-programmer (such as a shoe or underwear bomber) would not have a clue. This actually seems like a pretty good test.

    Call me incompetent, then. I've been making a decent living as a software engineer in this country for 25 years, having graduated from a reasonably prestigious school with a 4 years CS degree. Not once since college have I ever had a need to write code to construct or balance a tree on my own. I doubt very much that I could come up with a function to balance a tree out of the blue with no prep or review, nor is there much real world need for most developers to do so.

  18. Re:Interesting story by Calydor · · Score: 4, Insightful

    I am impressed with the questions. These are questions that any competent programmer should be able to answer, but a non-programmer (such as a shoe or underwear bomber) would not have a clue. This actually seems like a pretty good test.

    Call me incompetent, then. I've been making a decent living as a software engineer in this country for 25 years, having graduated from a reasonably prestigious school with a 4 years CS degree. Not once since college have I ever had a need to write code to construct or balance a tree on my own. I doubt very much that I could come up with a function to balance a tree out of the blue with no prep or review, nor is there much real world need for most developers to do so.

    Not to mention after 24-30 hours on a plane.

    --
    -=This sig has nothing to do with my comment. Move along now=-
  19. Almost nobody needs know how to balance a B-Tree by jtara · · Score: 5, Insightful

    Almost nobody today has a need to know how to balance a B-Tree. Unless they happen to work on the innards of a database system, library, etc.

    Sure, I learned this 35 years ago, and sure we had to do it for some class. I suppose Computer Science students still have to do it today. I've even done it in practice, but it was a LONG time ago. I would have to look it up, as would most software engineers.

    In fact, any software engineer that would write something like this off the top of their head is engaging in bad practice. That would be my answer!

    As a practical matter today, if you really needed to do it, you would search for best algorithms. And then question whoever asked you to do this, as B-Trees are pretty old and lame at this point There are better data structures to accomplish the goal.

    What next? Ask somebody to write a compiler? "Sure, get me the Dragon Book..." (But, as well, that is surely obsolete today, as well.)

    The border agent either Googled for some questions to ask a software engineer, or failed a Google interview exam. Which - I've read, Google doesn't do any more, and for good reasons.

  20. Re:Interesting story by citylivin · · Score: 5, Insightful

    "Very few people can and will bullshit confidently in such a circumstance."

    Except, you know, an expert at getting through borders undetected, or anyone who has experience with social engineering...

    So congrats, you weeded out the amateur criminals, and have a false sense of security about the professional ones.

    --
    As a potential lottery winner, I totally support tax cuts for the wealthy