r/coding • u/khesht • Feb 28 '17
A software engineer is detained for several hours by U.S. Customs — and given a test to prove he’s an engineer
https://www.linkedin.com/pulse/software-engineer-detained-several-hours-us-customs-given-fairchild21
u/rodrigo-silveira Mar 01 '17
Official: "You're a programmer? Write a function to balance a binary search tree." Celestine: "I am a programmer, but a JavaScript programmer. Only time I ever work with trees is via document.querySelector. Sorry, sir..."
-6
u/ender89 Mar 01 '17
Yea, I think it's time to study up on my innane bullshit mathematics side of programming, just in case.
0
Mar 01 '17
[deleted]
3
u/ender89 Mar 01 '17
I'm annoyed because I used to know this stuff, I just haven't had to use it in ages. It's like calculus. I used to know calculus and then I never used it and at this point all I really know about calculus is that "integrals" (whatever they are) are involved. And I'm kinda annoyed that some TSA dirtbag pulled out a question from coding 102 to test some guy fresh off of 24 hours worth of travel and security detainment.
67
u/abstractwhiz Feb 28 '17
Even if this was well-intentioned, which I seriously doubt, why did they consider giving a coding test to be a good idea? I seriously doubt they have anyone on staff who can read code, let alone properly evaluate the answer. Was it just sheer stupidity? Dunning-Kruger? A vicious individual looking for an excuse to justify harming someone?
Maybe I'd be less annoyed by this if I could vaguely comprehend that agent's motives. :|
30
u/merreborn Mar 01 '17
I seriously doubt they have anyone on staff who can read code, let alone properly evaluate the answer.
According to the guy who went through this, the evaluation process was: "Does the answer match wikipedia verbatim?":
I guess it was one of those situations where the border goons didn't even know enough to know that they couldn't possibly properly evaluate the answers to the questions they were presenting.
26
u/Zulban Feb 28 '17
I'm pretty damn sure higher ups told them to come up with preliminary "extreme vetting" procedures, and because public education in the US is in such shambles, nobody in the entire department even knew what computer code was and came up with that from Google results.
Meanwhile the border agent is a smart ass who needs people mouthing off to him more often, but doesn't because they are scared.
9
u/spinwizard69 Feb 28 '17
The test has very little to do with the process other than to put the testee under the spotlight. To many here are focused on the test itself instead of what the agent is trying to accomplish.
The goal isn't to find out if the guy is good at software engineering tests. It is rather to find out if there is something else going on.
The other thing people miss is that border agents work as a team. We likely won't know who triggered the original detention nor why.
9
u/abstractwhiz Mar 01 '17
The goal isn't to find out if the guy is good at software engineering tests. It is rather to find out if there is something else going on.
That's my objection. This test doesn't give them any way to do that. Even putting the testee 'under the spotlight' doesn't give them any way to do that.
You need a test that reliably comes out one way if the person is a genuine engineer, and another way if they are not. Also, given that the base rate for them being what they say they are is likely north of 95%, it needs to provide tremendously strong evidence for the alternative. I find it hard to believe that CBP can manage such a thing with the resources they have on hand.
5
u/the_lamentors_three Mar 01 '17
The test was never meant to check if he was an engineer, it was to see how he would react to being challenged.
They're looking for someone who gets nervous or argumentative, TSA has no idea what the answers are and they dont care, its just to put the guy under pressure and see if his story cracks.
8
u/Sean1708 Mar 01 '17
I can imagine that even good engineers could get nervous and argumentative when told that their perfectly good answers are wrong by the people who are going to be letting them into the country.
0
Mar 01 '17
[deleted]
-3
u/dethb0y Mar 01 '17
yeah, it's the TSA, not the counter guy at burgerking. You don't argue with them, you don't fight with them, you do what they ask or they ship you back to wherever you came from. That's how TSA works.
-3
u/noknockers Mar 01 '17
That's my objection. This test doesn't give them any way to do that. Even putting the testee 'under the spotlight' doesn't give them any way to do that.
You mean to say that you personally can't see any way it could do that. Absolutes through ignorance.
2
Mar 01 '17
Even if he was a coder, most can't write raw code to save their lives. "Write a function in c++ or even pseudo code that can determine if a string is a palindrome." That's a CS1 homework assignment.
50
u/ryosen Feb 28 '17
U.S. Customs allowed him into the country after officials called Andela and First Access to corroborate his story.
Which is what they should have done in the first place.
Instead, they thought it would be appropriate to drill a Javascript programmer on a data structure and traversal algorithm more appropriate for C/C++/Java developers.
39
u/snuxoll Feb 28 '17
I mean, there are C/C++/Java developers that haven't actually taken CompSci classes and wouldn't know how to answer any of these off the tops of their heads either (that'd be me).
Could I write a B-Tree? Sure. But honestly, it's not worth the headache when I could just pull in lmdb or some other library to handle it for me. Data structures aren't something I use very often, considering I spend my day writing LOB apps, ansible playbooks and monkeying around in SQL and Salesforce...
0
Mar 01 '17
[deleted]
11
u/snuxoll Mar 01 '17 edited Mar 01 '17
Sure, but I usually have no reason to reinvent the wheel, either. I know how these data structures work and can pick the right for the job, just don't expect me to implement it on whiteboard.
7
u/kheltar Mar 01 '17
I finished my degree in 2001, I could not tell you how to balance a binary search tree because I haven't though about them in any detail since then.
A few minutes with google and I'd have the 'oh yeah, now I remember' moment, but off the bat? No chance.
Seems like a really fucking weird question to ask someone in general.
95
u/Spherius Feb 28 '17 edited Feb 28 '17
For those who refuse to sell their souls to LinkedIn:
A software engineer is detained for several hours by U.S. Customs — and given a test to prove he’s an engineer
By Caroline Fairchild
Celestine Omin was accustomed to tackling tough engineering problems. Just not the two that the Border Agent had put in front of his face — or at least not now, after having spent 24 hours cramped in an economy seat on Qatar Airways.
It was Sunday, Feb. 26 and the 28-year-old software engineer had left his home in Lagos, Nigeria, to come to the United States for the first time. It was a work trip. For the last six months, Omin had been working for Andela, a startup that connects the top tech talent in Africa with employers in the U.S. Andela accepts less than 1% of applicants into its program and is backed by Facebook’s Mark Zuckerberg and Priscilla Chan. For this particular role, Omin was helping NYC-based fintech startup First Access create a JavaScript application for emerging markets and had secured a short-term visa.
After landing, Omin waited for 20 minutes and then reached the front of the line, where a Customs and Border Protection officer asked him a series of questions. It was here that Omin realized that the job might be challenging, but getting into America could now be impossible. No one at Andela had prepared him for the new reality.
After a few minutes of grilling him about the job, the border agent escorted Omin into a small room and told him to sit down. Another hour passed before a different customs officer came in.
“Your visa says you are a software engineer. Is that correct?” the officer asked Omin in a tone the engineer described as accusatory. When Omin said it was right, the officer presented him with a piece of paper and a pen and told him to answer the following questions:
“Write a function to check if a Binary Search Tree is balanced.” “What is an abstract class, and why do you need it?” To Omin — who now hadn’t slept in more than 24 hours — the questions seemed opaque and could have multiple answers. While he is a skilled software engineer with more than seven years of experience, Omin later tells me that the questions looked to him like someone with no technical background Googled something like, “Questions to ask a software engineer.”
(The U.S. Customs and Border Protection agency did not respond to multiple requests for comment made by LinkedIn over phone and email by the time this story went to press.)
With no context or guidelines on how to answer the questions, Omin, “too tired to even think,” sat down and tried his best. But when he handed his answers back after about 10 minutes of work, the official told him his answers were wrong. “No one would tell me why I was being questioned,” Omin told me by phone. “Every single time I asked [the official] why he was asking me these questions, he hushed me… I wasn’t prepared for this. If I had known this was happening beforehand, I would have tried to prepare."
“That is when I thought I would never get into the United States,” he told me with noticeable fear in his voice.
Omin tells me that the answers to the questions were technically correct, but he suspects the customs official interrogating him wasn’t technically trained and couldn’t understand his answers. More time passed, and Omin started to mentally prepare to get on a plane back to Nigeria. Then — with little explanation — the official told him he was free to go.
“He said, ‘Look, I am going to let you go, but you don’t look convincing to me,’” Omin said. “I didn’t say anything back. I just walked out.”
Omin later learned that U.S. Customs allowed him into the country after officials called Andela and First Access to corroborate his story. Jeremy Johnson, the co-founder and CEO of Andela, said that his co-founder Christina Sass was the one to receive the call to defend Omin. Just last year, Andela placed more than 100 developers from Africa as full-time software engineers with U.S. tech companies. This is the first time that any of them have ever been grilled with questions specific to software engineering or their particular trade.
“Celestine was the first software engineer at one of the most visible e-commerce sites in Africa and is exactly the kind of person we want coming to America and sharing his skills,” said Johnson, who was named to LinkedIn’s Next Wave last year. “Tapping into brilliant minds like Celestine’s is a huge help to many American companies who are struggling to find talent.”
For every web developer looking for work in the United States, there are roughly five open positions. That’s why startups like Andela exist in the first place: To connect foreign tech workers with opportunities here in the United States. But now with his partners having a hard time getting into the country to work, Johnson is worried that he might have challenges in the future. He has already reached out to Customs and Border Protection for further clarification on why Omin’s work visa was flagged, but he hasn’t heard back yet.
“We seek to play by the rules, but we can’t respond to rules that are ad hoc,” Johnson said. “We want to make sure that our team members around the world know what to prepare for and don’t get unnecessarily hassled for their work.”
As for Omin, he says the experience hasn’t changed how he feels about the United States. A proud Nigerian who recently became a father, he is eager to continue to use his tech background to create growth for his country. That said, he was initially concerned about going public with his experience because he's worried he'll be added to a watch list of travelers and have trouble entering the U.S. in the future.
“I have been trying to focus here, and I haven’t thought about what is going to happen when I go back to the airport,” he said. “I am coming here legally with good intentions, and I hope to continue this work.”
Chip Cutter contributed reporting to this article.
Update: This story has been updated to clarify how Andela matches foreign tech workers with jobs in the U.S.
25
u/IrishWilly Feb 28 '17
For every web developer looking for work in the United States, there are roughly five open positions.
That does not sound right.
32
u/dunnee88 Mar 01 '17
For every entry level developer, there are five unobtainable senior roles...
24
u/thephotoman Mar 01 '17
No, for every entry level developer, there are five roles that should go to an entry level developer, but the asshat manager thinks he needs a guy with 10 years of experience working with Node because he has no clue what he's talking about. Oh, and he wants to pay minimum + nickel equity.
9
0
Feb 28 '17
[deleted]
16
u/Askee123 Feb 28 '17
Didn't you read the TOS? It's all in there.
10
2
u/goodguygreenpepper Feb 28 '17
Are you a unicorn?
1
u/squeevey Feb 28 '17 edited Oct 25 '23
This comment has been deleted due to failed Reddit leadership.
62
u/lxpnh98_2 Feb 28 '17
Look, I am going to let you go, but you don’t look convincing to me
This is fucking disgusting.
30
u/Zulban Feb 28 '17 edited Feb 28 '17
Doesn't look convincing... he was too black to be a SE :/
1
u/Zackeezy116 Feb 28 '17
They wouldn't possibly give any more of our jobs to those dern foreigners. Not in Trump's America!
0
Feb 28 '17
[deleted]
26
u/tictacotictaco Feb 28 '17
LOL. Implying that customs officers have any kind of authority to judge his performance or judge a developer's confidence level when he doesn't even know if his answers will be recognized as correct after being given an absurd test under absurd conditions.
-9
Mar 01 '17
Do you know what training they receive? No, you don't. They are trained to recognize certain body language, and take certain action upon determination.
29
u/mindcrack Feb 28 '17
I don't think this is new. 15 years ago the person in front of me at the visa line in Vancouver was claiming to be a priest that wanted to work (practice?) in the US. The immigration official asked him to name the 12 disciples and also asked him who Pontius Pilate was. He couldn't answer either (he did get Peter and John for the 12 disciples). His visa was rejected. I've been pulled over by customs several times, even asked why I travel so much "umm business, tourism" was my answer which they found surprising. In my experience Customs and immigration are 50% nice guys who are doing a job and 50% power hungry assholes. They target brown people as much as any other government law enforcement division (I'm looking at you TSA)
11
u/gecko Feb 28 '17 edited Feb 28 '17
The immigration official asked him to name the 12 disciples and also asked him who Pontius Pilate was. He couldn't answer either (he did get Peter and John for the 12 disciples).
As interesting as that anecdote is, it seems a bit different to me. In particular, that test seems fair: I'm Jewish, but studied religion in college, and both know who Pontius Pilate was and can name more disciples than that. (Nowhere near all twelve, mind, but I got six without trying too hard.) Saying a Christian priest should know at least more than John and Peter, or at least know Pontius Pilate, seems like a sane requirement to me.
I've also done software development for ten years and manage a team at a company you've probably heard of, and there is almost no way that I can write a function to check if a binary tree is balanced after 24 hours of not sleeping. I also suspect anyone on my team who hasn't dealt with Java much will have no idea when an abstract class should be used, since languages like Python, JavaScript, and Go don't even have that concept.
So, I get what you're saying that they ask questions, but I do find it notable that your example question seems (at least to me) like it's probably fair, whereas this one definitely does not.
4
3
u/mindcrack Mar 01 '17
Yup, totally agree with you. My point was that they ask profession related questions, but you're right, same goes for me - after 20 years in IT (not as a programmer but I can code), I wouldn't be able to answer these either.
I'm assuming they were doing what the article said - Googling what typical questions are and asking him. "Never ascribe to malice that which is adequately explained by incompetence" might apply well here
23
Feb 28 '17
Asking a priest who the 12 disciples were is not the same as asking a software engineer to write a function to check if a binary search tree is balanced.
It's a hard question to answer unexpectedly and tired from a long flight
The officer will probably not have the technical knowledge to even understand the answer.
16
u/turkish_gold Mar 01 '17
Most people claiming religious affiliation to Christianity can't name the 12 disciples. They're not used in everyday discourse, and most of them are relatively unimportant to the founding of the Church.
The most important Church founder, Paul, isn't even a disciple of Christ.
Simon, Andrew, Bartholomew and Philip are barely known due to lack of activity in the West (travel/early death/etc.).
Of the 4 Gospel writers, only 1 is even a disciple.
It's bordering on trivia to know all of them off-hand.
6
Mar 01 '17
A priest should know them nonetheless.
4
u/Azuvector Mar 01 '17
Yeah. An equivalent question might be to ask a developer to name the basic variable types of a language they're proficient in. Average technical individual may know some of them, perhaps all. Developer should know them.
4
u/turkish_gold Mar 01 '17 edited Mar 01 '17
Lot's of Python developers who work exclusively in web-dev will have forgotten that Python has a complex number type to represent real/imaginary numbers.
It's completely unused in most web-dev projects, I only remember it existed because 8 years ago I worked in finance.
Python 2 has longs and ints. Python 3 has only ints. This is awkward.
Similarly, lots of developers of C++ will forget that there's a wchar_t for wide-character types. It's compiler dependent so its not portable, and owing to that is less often used in professional projects.
I wonder how many Ruby developers would remember off-hand that rather than there being a single Boolean class like other languages, Ruby has a TrueClass and a FalseClass. If you work with Ruby, but also work extensively with other languages like I do, then these fine details can blur together. I always have trouble with ternary operators switching between Python/Javascript, or Elvis operators switching between languages that support them in different syntax.
→ More replies (12)6
2
u/denga Mar 01 '17
Apparently it is. The article specifically says this is the first time it's happened to their employees.
Also, testing someone for a visa and testing someone who already has one are two different ballgames.
3
u/YesNoMaybe Feb 28 '17
There is no fucking way a priest doesn't know more than two disciples. I'm not religious and can name 6 from memory just from learning them as a child.
16
u/adrianmonk Feb 28 '17 edited Feb 28 '17
I know this is not the point, but is nobody going to write a solution?
final static int IMBALANCED = -1;
boolean isPerfectlyBalanced(Node tree) {
return depth(tree) != IMBALANCED;
}
int depth(Node node) {
if (node == null) {
return 0;
}
int leftDepth = depth(node.left);
int rightDepth = depth(node.right);
if (leftDepth == IMBALANCED
|| rightDepth == IMBALANCED
|| leftDepth != rightDepth) {
return IMBALANCED;
}
return 1 + leftDepth;
}EDIT: Bonus goofy version for those who prefer side effects:
class BalanceInfo {
int onlyDepth = -1;
boolean imbalanced = false;
}
boolean isPerfectlyBalanced(Node tree) {
BalanceInfo balInfo = new BalanceInfo();
checkBalanced(balInfo, tree, 0);
return !balInfo.imbalanced;
}
void checkBalanced(BalanceInfo balInfo, Node tree, int depth) {
if (tree == null) {
return;
}
if (tree.left == null && tree.right == null) {
// We are a leaf node. Is our depth the same as at other leaf nodes?
if (balInfo.onlyDepth == -1) {
balInfo.onlyDepth = depth;
} else if (balInfo.onlyDepth != depth) {
balInfo.imbalanced = true;
}
} else if (tree.left == null || tree.right == null) {
// We have only one child, so there's an imbalance.
balInfo.imbalanced = true;
} else {
checkBalanced(balInfo, tree.left, 1 + depth);
checkBalanced(balInfo, tree.right, 1 + depth);
}
}12
u/DanTilkin Feb 28 '17
One of the issues is that "balanced" can have different definitions, and no one there could clarify what was meant. This checks if it's perfectly balanced, which is only possible if there's 2n - 1 nodes. There's other definitions, "not far off" for some meaning of "far"
1
u/adrianmonk Mar 01 '17 edited Mar 01 '17
Huh, the unexpected result of that is it seems easier (to me at least) to handle that by using the same basic approach as my goofy (second) version. Keep a max and min depth updated as you visit leaf nodes, then check the difference at the end. And nodes with only one child could count as having that depth.
EDIT: It might look like this:
class DepthInfo { int minDepth = -1; int maxDepth = -1; } boolean isBalanced(Node tree) { DepthInfo depthInfo = new DepthInfo(); checkBalanced(depthInfo, tree, 0); return (depthInfo.maxDepth - depthInfo.minDepth < 2); } void checkBalanced(DepthInfo depthInfo, Node tree, int depth) { // By recording the depth on all nulls, we include both leaf nodes // and nodes with only one child because they both have a null pointer. if (tree == null) { if (depthInfo.minDepth == -1 || depth < depthInfo.minDepth) { depthInfo.minDepth = depth; } if (depth > depthInfo.maxDepth) { depthInfo.maxDepth = depth; } return; } checkBalanced(tree.left, 1 + depth); checkBalanced(tree.right, 1 + depth); }9
u/Jonno_FTW Mar 01 '17
You failed to answer the second question, back to commie land with you, terrorist. /s
3
Mar 01 '17 edited Mar 01 '17
if (leftDepth == IMBALANCED || rightDepth == IMBALANCED || leftDepth != rightDepth) { return IMBALANCED; }I like doing stuff with opaque mathematical formulas, so I wrote this (Java version). (I only do things like this when nobody is looking and even then I am a bit ashamed!)
if (Math.abs(leftDepth - rightDepth) * leftDepth * rightDepth <= 0) { return IMBALANCED; }Edit: "<=" instead of "<". Thanks /u/yxing! (Don't code when tired^^)
3
u/yxing Mar 01 '17
That doesn't work if leftDepth or rightDepth is 0.
1
Mar 01 '17
Oh right, thanks! That should do:
if (Math.abs(leftDepth - rightDepth) * leftDepth * rightDepth <= 0) { return IMBALANCED; }1
u/profound7 Mar 01 '17
Solutions to certain algorithms using mathematical formulas, while may work perfectly in theory, may be susceptible to overflow errors in practice.
In the case of your answer, if the leftDepth or rightDepth is large enough, the result may not fit into an int, and in some languages may throw an exception.
It may be fun to think about bitwise formulas though, as they don't overflow.
1
30
u/imlyingdontbelieveme Feb 28 '17
pretty clever way for Customs to get free work done. "No wait, I swear I'm just an engineer!"
"Yeah, we know...and we're having a real issue with few these lines right here. See what you can do and you can go"
21
u/TheNakedGod Feb 28 '17
pretty clever way for Customs to get free work done.
You joke, but I've had "interviews" where they asked me to write a large chunk of code that was a little too specific. Found out they were farming modules out to interviewees and stitching them together. I'm used to 1-4 hour long programming tests, I specced this one out at 30 hours minimum and had a couple of other developer friends sanity check me on how long it would take them and it was pretty much the same.
8
u/grendel-khan Feb 28 '17
Found out they were farming modules out to interviewees and stitching them together.
Isn't that illegal? It seems like it should be illegal.
9
u/TheNakedGod Feb 28 '17
I have no idea if it is or not. It honestly probably isn't.
My reply email was pretty nasty when they sent me the requirements after the like 15min phone interview and I told them there was no way I was doing it. Unfortunately I'm sure they got a bunch of naive kids who didn't know any better on the hook for it. Watching their github activity you could see the like 10 different "coding tests" they asked for all built up into pretty much a completed project.
Any of the ones using a DB they provided a schema; meaning less work on their end to glue them all together. I was given the requirements for a video upload/download/stream module with progress bar(% and time complete estimation), metrics, file details, thumbnails, full UI design, security, full suite of unit and integration tests for every single part of it, documentation, install readme, and shit like that.
When you saw the other completed modules they'd had people do because totally making these public and then commenting on stuff was a great idea to keep it clandestine. They had user creation and account management, backoffice controls, "project and document" creation/management, email and notification, access control, and the video module.
It was more or less "lets farm out to a bunch of interviewees the entire codebase for a video focus group system for our clients to create focus groups, upload all the docs, we run the focus groups, upload and distribute the video to the clients, and let them play or download all of it and get reports and stuff from us".
It was slimy as hell and I'm really glad I noped out of it. I'm seriously not sure how they expected anyone who interviewed that they hired(if they were even doing that) to not notice.
1
u/spinwizard69 Feb 28 '17
What state and city was this in? Regulations vary widely so legal recourse is also mixed.
1
u/TheNakedGod Mar 01 '17
I'm in GA, they were based in like IL but the office was in like NC and it was remote. Just added to the general sketchiness of the whole thing. Was a long time ago, hadn't really thought about it since then.
7
u/merreborn Mar 01 '17
Yeah, it's illegal.
If the customer is charged, you definitely need to be paid for your work.
The DoL doesn't look kindly upon employers who don't pay people for their labor.
1
u/tabinop Mar 01 '17
Though it hardly sounds like a good business model. Or am I still too optimistic ?
2
u/merreborn Mar 01 '17
Yeah, I doubt anyone really manages to extract that much value from things like this.
1
Mar 01 '17
Illegal? Which law?
6
u/Torvaun Mar 01 '17
Labor guidelines. If they made any business use of the code those guys wrote, then they owe them money.
4
1
u/marshsmellow Mar 01 '17
That sounds like it's more hassle than it's worth to stitch together all the invariably buggy and incorrect answers. It's difficult enough working with code from a team of programmers I know and trust let alone some interviewees off the street.
I'm calling bullshit, sorry bro.
2
u/TheNakedGod Mar 01 '17
I never said it was a good idea, and yes I agree that it would be more of a hassle than it's worth to put it all together; doesn't make it any less true. People do stupid shit and have stupid ideas and requirements all the time.
0
Feb 28 '17
[deleted]
6
u/FordyceFoxtrot Mar 01 '17
There's nothing clever about this, and humor isn't an appropriate response to our border agents playing games like this.
Humor is an appropriate response to everything.
0
Mar 01 '17
[deleted]
1
u/FordyceFoxtrot Mar 02 '17
Humor is an appropriate response to everything because it's a safe coping mechanism to tragedy. It's an appropriate response when you want to overcome a negative emotional event.
0
Mar 02 '17
[deleted]
0
u/FordyceFoxtrot Mar 02 '17
None. But that doesn't take away that it's an appropriate response to everything.
0
Mar 03 '17
[deleted]
1
u/FordyceFoxtrot Mar 04 '17
Please, then, oh enlightened and perfectly virtuous one, how is humor inappropriate here?
0
-8
u/spinwizard69 Feb 28 '17
Baloney! Something caused the detention to take place in the first place. Everything after that involves trying to prove or disprove someones hunch.
You seem to think that it is easy to catch criminals at the border. It is much harder than you might imagine, sometimes the wrong people get detained, that isn't good but it isn't the end of the world either. The good part here is that the agents where able to clear things up within an hour. Frankly that is pretty good.
As to your attitude about technology leadership in the USA, the very fact that we import tech workers has weakened us significantly. This especially due to the amount of tech these people then export back to their own countries. If you are concerned about the state of tech in the USA you really need to be objecting to these various visa programs. They have done more harm than good to the USA.
-2
Mar 01 '17
Hey now, stop making sense. This thread is about virtue signaling and insisting on being a victim.
2
0
-5
Mar 01 '17
Oh right, because the best programmers are from the ME? NOT. How in the fuck does overseas outsourcing work, anyways?
1
u/MuonManLaserJab Mar 01 '17
There are plenty of great programmers from the middle east.
0
Mar 01 '17
Never met a single one in my 15 years in the industry. Plenty of Indians, Chinese and Russians, though.
1
u/MuonManLaserJab Mar 01 '17
I have. Maybe you just assumed they were Indian because they were brown-ish?
0
Mar 01 '17
Mostly because they told me they were Indian and I didn't have a reason to not believe them and question their truthfulness. Sorry to disappoint your expectation.
→ More replies (1)
10
u/SkincareQuestions10 Feb 28 '17
I thought this was a joke, and opened this for the punchline. What an unpleasant surprise.
4
u/Sean1708 Mar 01 '17
I saw the tweet and all the follow ups yesterday and it wasn't until I saw this link just now that I realised it wasn't a joke.
9
u/ZezemHD Feb 28 '17
I'm an electrical engineer, and if I was given a test to prove it I guarantee I would fail. Ds get Degrees, but can't get through customs.
0
Feb 28 '17
[deleted]
6
u/ZezemHD Feb 28 '17
I would like to use one of my life-lines and ask the audience....
0
Feb 28 '17
[deleted]
1
u/ZezemHD Mar 01 '17
I too thought it was just V=IR, kinda forgot about the whole summing things together part. Thank god for simulation software...
I spend most of my day writing code for processors. Not difficult math, just a shit load of busy work.
15
u/HappyCloudHappyTree Feb 28 '17
So I guess the border can just grind to a halt while they pretend to evaluate this guy. Gee, I wonder why he "doesn't look convincing".
-1
4
3
2
u/midgetparty Feb 28 '17
I like how they had to throw in this bullshit: 'For every web developer looking for work in the United States, there are roughly five open positions.'
Yeah, a 30k a year web developer position, ya jackasses.
0
Feb 28 '17
[deleted]
1
u/midgetparty Feb 28 '17
They're updating templates and shit on wordpress or drupal. But they try to use this bullshit to say we don't have enough skilled workers already in country. Then we end up with tata and the rest of the consultants hobbling projects because we have to float fresh bodies in because capitalism is all about the next quarters results. FFFFFFFFFFUUUCK.
1
u/unndunn Feb 28 '17
The thing is, there is a very active industry of people who specialize in getting you past US CBP so that you can overstay your visa. Nigerians in particular are a big market for these services.
These services will sponsor your visa and train you on how to answer questions from Immigration officials the correct way, giving you a convincing backstory that has the highest likelihood of getting you through.
CBP officials have to deal with this stuff on a regular basis, and they only really get one shot at the guy. If they let him through, he's pretty much gone. So it doesn't seem inappropriate to ask someone claiming to be a software engineer to answer some software engineering questions.
18
u/B_Sharp Feb 28 '17
The problem here is two fold. For starters, there is no way a non-engineer/dev can judge the solution to this problem as there is more than one correct answer. Second, there are many types of software, and a good portion of it doesn't require the use of sorting algorithms.
I've been a Software Engineer for a while now, and the only reason I'd stand a chance at this problem is because is studied rigorously for an interview recently. If you asked me this while I wasn't job hunting, I'd probably fail miserably.
0
-2
1
u/autotldr Mar 02 '17
This is the best tl;dr I could make, original reduced by 90%. (I'm a bot)
"Your visa says you are a software engineer. Is that correct?" the officer asked Omin in a tone the engineer described as accusatory.
While he is a skilled software engineer with more than seven years of experience, Omin later tells me that the questions looked to him like someone with no technical background Googled something like, "Questions to ask a software engineer."
Omin tells me that the answers to the questions were technically correct, but he suspects the customs official interrogating him wasn't technically trained and couldn't understand his answers.
Extended Summary | FAQ | Theory | Feedback | Top keywords: Omin#1 work#2 engineer#3 questions#4 Andela#5
-51
u/edimaudo Feb 28 '17
What's the issue here?
21
u/khesht Feb 28 '17
really? you don't see the problem or you just pretend that you don't see the problem?
-15
u/edimaudo Feb 28 '17
It is within their rights to do that. It is not violating any human rights. Please outline what your problem is?
1
u/khesht Mar 01 '17
I have been writing codes in different languages for almost 10 years. I write programs for a special field, not a general purpose software engineering programming that you may be referring to when you write software engineer in your job title. In all these years I was not required to write a binary search tree or balance it or whatever. I would have failed that test if I were in that situation with no internet access and being tired after several hours of flight. So throwing these questions make no sense and proves that the person has no idea what programming is and how broad it could be .... and so many other problems that people have outlined in their comments could answer your comment.
1
u/edimaudo Mar 01 '17
We still don't know why the question was asked. The guy could have said something that made them give him this particular test.
13
u/del_rio Feb 28 '17
"Violating human rights" shouldn't be the litmus test for what is and isn't an issue. By that logic, there's no issue with gerrymandering, Pearson Education, and Toddlers & Tiaras have no issues associated with them.
1
u/edimaudo Feb 28 '17
You still haven't outlined why it is an issue. You do not know the line of questioning they immigration officer asked before the action occurred.
8
u/ubernostrum Feb 28 '17
You haven't outlined why you think these people commenting and discussing it are an issue. You do not know the full line of information and thought before their comments occurred. You should immediately stop making comments until you have that information.
3
u/name_censored_ Feb 28 '17
I respect your position of reasonable doubt, but to me it's highly unlikely that asking a JS dev questions about BSTs and abstract classes could be contextually appropriate. The reported conversation was;
After a few minutes of grilling him about the job, the border agent escorted Omin into a small room and told him to sit down. Another hour passed before a different customs officer came in.
“Your visa says you are a software engineer. Is that correct?” the officer asked Omin in a tone the engineer described as accusatory. When Omin said it was right, the officer presented him with a piece of paper and a pen and told him to answer the following questions: “Write a function to check if a Binary Search Tree is balanced.”
“Every single time I asked [the official] why he was asking me these questions, he hushed me. [...] More time passed [...] Then — with little explanation — the official told him he was free to go.
To me it's pretty clear that there's no probing of field or speciality, and no scope for "those were only some of the many technical questions asked" in the timeline. He has a few minutes of opening questions about job (even in intense interviews and stretching the definition of "a few minutes", that's only time enough for background/language/frameworks/projects/opinions/preferences), and then an hour of either sitting quietly and/or answering non-technical questions before the BST-bomb gets dropped.
If I walked into a JS dev interview and the only real questions were about balancing a binary tree from memory and abstract classes, I would say that interview was not even remotely appropriate. Most job interviews would take hours of probing questions to work towards anything so far out of scope, and it's even more abnormal for a knowledgeable interviewer to not handle follow-up questions - anyone who understands development knows that it's highly unusual to implement BSTs by hand from memory, and that JS doesn't have abstract classes.
Plus, there's a lot of emphasis about his lack of preparedness, and based on their direct quotes, there's no way you could reasonably claim the interviewers made allowances for this.
4
u/duniyadnd Feb 28 '17
The border officials shouldn't be asking questions they themselves don't understand. There are many ways to explain these sorts of questions, and it creates a dangerous precedent of what are right or wrong answers. And finally - http://shivankaul.com/blog/2016/12/07/clean-your-desk-yet-another-amazon-interview-experience.html
3
u/edimaudo Feb 28 '17
How do you know they don't understand the question. The question you should be asking is why did the line of questioning lead to that coding problem.
7
u/duniyadnd Feb 28 '17
Okay, that's a fair response. I'll say that asking a question like that right off the bat is not a fair question in this context, and anyone with programming experience should know that.
If they asked a simple fizz/buzz test or ask what is the concept of balancing a binary search tree and why we would do that - that's another thing. Writing algorithms takes a little bit of momentum, something you need to be mentally prepared for.
I'll also play the other side of the spectrum. You said that that I should question why did the line of questioning lead to that coding problem. I really can't think of what sort of questions would lead to that. I get stopped at immigration all the time and most of the questions are about what I do and who I am. After really long flights, that's easy enough to answer because it's information that I don't need to think too hard to retain, there's the jet lag to consider.
This border official was off his chain asking those questions if the purpose was to be an ass and then let him go while saying he doesn't believe he's a coder. Then there was absolutely no reason for this incident to happen.
11
u/adrianmonk Feb 28 '17
Writing algorithms takes a little bit of momentum, something you need to be mentally prepared for.
The real problem isn't that this is a hard question for someone trained in CS. It's that you don't strictly need CS training to legitimately be a practicing software engineer. You can be productive slapping together web pages without knowing about trees. I wouldn't recommend it, but the people who go that route are certainly not frauds, they're just not very theory-oriented.
4
2
u/edimaudo Feb 28 '17
I doubt those were the first questions he was asked. Something had to have led to them coming up with those questions. Was there something on his social media that made them do it? Maybe he said something about data structures as being part of the job description.
6
u/duniyadnd Feb 28 '17
Right, but that's a lot of speculation off of something that was not reported, so I'd consider it as moot - again, to the point where even when the immigration officer did not believe he was a programmer, he still let him through.
2
1
0
17
u/Zulban Feb 28 '17 edited Feb 28 '17
The agents are obviously totally unqualified to ask coding questions.
Despite being totally unqalified, they thought they could.
Smart ass border agents.
High quality tech talent scared about their ability to enter the US.
Border agent thinks Celestine doesn't look like a SE because they're black.
Asking an exhausted coder to write BST code after a 24 hour flight is like asking a basketball champion to swim 200 laps after a night of drinking.
Another issue is that you weren't able to think of any of these issues. I hope you just didn't read the article.
0
u/edimaudo Feb 28 '17
How do you know they are unqualified. There could have been new guidelines created that you are not aware of.
Yes, there was a poorly rolled out immigration ban. It did cause a scare but it would die down after a few months. There is a ton of tech talent in the states and a lot of people are still applying for positions.13
u/Zulban Feb 28 '17 edited Feb 28 '17
How do you know they are unqualified.
Because I am a programmer and I saw the questions. I also believe Celestine's interpretation is likely - that he gave technically correct answers but they thought they were wrong because they didn't match Google results. They literally did not know that there is more than one correct way to write computer code. Maybe they didn't even know there are different languages.
This is bad because processes are being applied by border agents that are total nonsense, ineffective, and wasteful.
0
u/edimaudo Feb 28 '17
Could be right but we don't know why they asked the question in the first place.
16
u/Zulban Feb 28 '17
There is no good reason to ask this programming question.
A question to prove they could be a SE, maybe. But not this question. Furthermore Celestine was just on a 24 hour flight. It's very obvious that this was nonsense, unfair, and racially biased.
→ More replies (1)3
u/edimaudo Feb 28 '17
Could be but something triggered it. It might have been something he said.
4
u/Zulban Feb 28 '17 edited Feb 28 '17
I don't see how this matters at all. If he said something suspicious, this was still a moronic response.
3
u/edimaudo Feb 28 '17
I think this was better than sitting in a cell assuming he said something silly.
6
1
u/marshsmellow Mar 01 '17
Perhaps they overheard him telling his buddy he thought using STL functions was for noob casuals.
0
0
Mar 01 '17
Right. A "programmer". Certainly no prior military, law enforcement or customs training. If the story was true, the agent was doing precisely what he was trained to do. And the article elicited the exact triggered reaction from you that it was designed to.
32
u/MuonManLaserJab Feb 28 '17 edited Feb 28 '17
Mostly that you're an idiot, but also that Customs decided it needs to give technical interviews to vacationers. What do they do for visting boxers? Fight them?
4
u/josephandre Feb 28 '17
This reply led to a hearty chuckle from me. I rather enjoy hearty chuckles and now realize I don't have them enough. Sure a few giggles here and there, perhaps an occasional cackle, but this...this is where it's at.
2
-24
u/edimaudo Feb 28 '17 edited Feb 28 '17
Calling people names eh. They have the right to question people entering their country. If it means testing people of course. If they where vacationing then it would show in their passports as visitors. Second of all how do you know the story is true?
14
u/MuonManLaserJab Feb 28 '17
And I have the right to point out that you're incredibly stupid. Are they going to test everyone? Are shitty programmers not allowed to vacation here? Do we not want their money?
Idiot.
Second of all how do you know the story is true?
As though that would excuse you arguing in favor of it.
Idiot. Colossal idiot.
→ More replies (2)-13
u/edimaudo Feb 28 '17
Yes, calling names without outlining any argument (classic ad hominem excuse).
13
u/MuonManLaserJab Feb 28 '17
I already explained why it's stupid: because we can't give all vacationers technical interviews (how do you test an entrepreneur? A teacher? A dentist? A massage therapist? A manual laborer? A whore? The list goes on), and because it's a waste of time. Who cares if he's not a good programmer?
There's a reason that we don't generally do this. It's baffling that you think this is normal. What do you do for a living? Have you ever been tested like this at customs?
Also, fuck you, idiot. You're wasting my time.
→ More replies (4)0
u/edimaudo Feb 28 '17
Lol are more name calling. It looks like you did not read the article fully. He was there for to work on a short term visa. If he was vacationing they would see it in his passport. I believe it is B1or B2. You should care who is coming into your country. Plus, it is at the discretion of the immigration officer to ask people questions.
9
u/MuonManLaserJab Feb 28 '17
I actually didn't read the article because I'm having trouble accessing my linkedin account. I assumed it was the same as another article I read where the same thing happened, but the guy was on vacation. It doesn't matter.
He was there for to work on a short term visa.
So he already had a visa. So somebody more qualified had already determined that he was OK to enter the United States.
Plus, it is at the discretion of the immigration officer to ask people questions.
And this is an obvious abuse of that discretion. Surely you can see that there are some questions that make more or less sense to ask?
Furthermore, you're a stupid, ugly fuck.
→ More replies (2)4
u/edimaudo Feb 28 '17
How can you have an informed argument if you didn't even read the article.
Yes, someone provided the visa it still does not stop the immigration officer from questioning someone. Also, you do not know the line of questioning that occurred or how the person was behaving, that made the officer ask the question.8
u/MuonManLaserJab Feb 28 '17 edited Feb 28 '17
Can we agree that it does not make sense as a general policy for customs to try to make up tests for individual professions? Would it seem normal for you if customs demanded a carpenter make an end-table before getting through? If they demanded that a dancer perform for them? If they made an athlete do laps? How the hell do you apply this to a factory worker?
Do you have any indication that this was warranted? Feel free to quote the article.
→ More replies (0)0
Feb 28 '17
[deleted]
1
u/edimaudo Feb 28 '17
I am not whining. I am calling his bs. How is it fascist?
0
Feb 28 '17
[deleted]
2
u/edimaudo Feb 28 '17
I am not mad. I am asking people to outline their logic rather than follow the ad hominem route. You don't know if he conferred with his colleagues/boss before he/she gave the test. The kid may have said something that warranted the test. Also, "Officers of the law do not have the authority, the training, or the freedom of legal interpretation to take actions like this on their own volition" can you cite a source for this on the ICE website?
-2
0
-1
Mar 01 '17
Borders are racist (unless they're in Palestine). How is this related to coding?
1
u/edimaudo Mar 01 '17
??
-2
Mar 01 '17
Reddit cries fascism every time border control is mentioned. Also this article has nothing to do with coding.
-8
u/spinwizard69 Feb 28 '17
I glad that the border agents are finally questioning people that come here. As for the questions asked of this guy they where likely delaying tactics while his credentials where checked.
0
168
u/justbearlykoalafied Feb 28 '17
The officer's depravity is really highlighted with him saying, "you don't look convincing to me." Hard to imagine just walking away from someone like that.