News for hackers. Stuff that matters.
Re:“I was just asked to balance a Binary Search Tree by JFK'... by lacampbell on Sunday February 26, 2017 @11:55PM (#13741976)
> This is what happens when you have a populist president

Spare me. This stuff was happening pre-Trump, and it will happen post-Trump.

Re:“I was just asked to balance a Binary Search Tree by JFK'... by morgante on Monday February 27, 2017 @12:20AM (#13742066)
Care to provide a citation for people being asked hard algorithmic questions by CBP before?

To be clear, I don't think Trump is directly responsible for this. But I think he's sent a signal to fascists and racists around the country that America is for white people and it's okay to throw your weight around. He's a bully, so he's emboldened other bullies (which, unfortunately, dominate law enforcement).

Re:“I was just asked to balance a Binary Search Tree by JFK'... by ThrowawayR2 on Monday February 27, 2017 @12:52AM (#13742185)
> But I think he's sent a signal to fascists and racists around the country that America is for white people and it's okay to throw your weight around

You have that exactly backwards. He was voted in legitimately by the right and center because the left failed to do anything to address their grievances, justified or not, and circumstances.

Trump (and Brexit, etc.) is the signal that the public is sending to the left and may heaven help us all because we're sure going to need it.

Re:“I was just asked to balance a Binary Search Tree by JFK'... by morgante on Monday February 27, 2017 @01:01AM (#13742226)
I think the reasons Trump won and the message he's sending in office are, in fact, different things. There were a whole lot of unhappy Trump voters (people voting for him despite lots of reservations about his policies and demeanor) and a lot them were due to the left not addressing their grievances.

That doesn't change the fact that his rhetoric has emboldened hard-right fascists and bullies. It's inarguable at this point.

Re:“I was just asked to balance a Binary Search Tree by JFK'... by alexvy86 on Monday February 27, 2017 @01:00AM (#13742217)
I'm not sure I follow... the parent comment didn't seem to question the legitimacy of his election. And I also think that Trump's attitude in general can be seen by many as a validation of that behavior ("throwing your weight around" / bullying).
Re:“I was just asked to balance a Binary Search Tree by JFK'... by slededit on Monday February 27, 2017 @01:11AM (#13742264)
When I applied for my TN I had to convince the border guard I could do the job. I didn't have to balance a binary tree but I did have to name drop CS concepts.
Re:“I was just asked to balance a Binary Search Tree by JFK'... by prawn on Monday February 27, 2017 @05:35AM (#13743258)
There are a number of examples on this page of it happening previously and in a variety of locations.
[dead]
Re:“I was just asked to balance a Binary Search Tree by JFK'... by lazyasciiart on Monday February 27, 2017 @01:06AM (#13742250)
Really? As an immigrant who came here for a programming job and has been through immigration many times, this has never happened to me and nobody I know has ever mentioned it in the conversations we have complaining about how annoying CBP are. How common do you think it is exactly?
Re:“I was just asked to balance a Binary Search Tree by JFK'... by morgante on Monday February 27, 2017 @12:58AM (#13742208)
Did you read my comment at all? I literally said Trump is not directly responsible for this.

And no, I do not think any or even most programmers should be expected to know how to balance a binary tree on demand.

Re:“I was just asked to balance a Binary Search Tree by JFK'... by lacampbell on Monday February 27, 2017 @01:10AM (#13742260)
> Did you read my comment at all?

Yes, and I did us both the courtesy of not drawing attention to or responding to the cringiest parts of it. Others have provided stories of similar stuff happening under other presidents. Case closed.

Re:“I was just asked to balance a Binary Search Tree by JFK'... by grzm on Monday February 27, 2017 @01:14AM (#13742270)
'morgante asked specifically for a reference and explicitly stated they didn't think Trump was responsible. You didn't provide a reference and asked if they were insinuating Trump was responsible. Why did you choose to (a) not provide a reference and (b) ignore the statement that Trump wasn't responsible? Why choose to comment at all in this case?
Re:“I was just asked to balance a Binary Search Tree by JFK'... by lacampbell on Monday February 27, 2017 @01:29AM (#13742330)
It was a loaded, disingenuous question. It was one already answered several times in this thread. The very premise of the question was ridiculous to start with. It also came attached to a left-wing conspiracy theory.

I would have been better off not reply to such drivel - thank you for reminding me.

Re:“I was just asked to balance a Binary Search Tree by JFK'... by grzm on Monday February 27, 2017 @01:34AM (#13742344)
Other than the last bit where they express an opinion, I didn't take it that way at all, particularly as 'morgante specifically took care to include the statement regarding Trump not being responsible. There are quite a few people in this thread (myself included) who are not well-versed on a lot of the details that may go on during customs interviews. Having references (other than something someone said on some internet forum) is commendable—to me the antithesis of someone searching for a conspiracy.

And if you thought it was disingenuous, and chose to answer anyway, don't make it worse: the goal should be to improve the conversation.

Perhaps you thought they should have already known about such things, or that they should have looked them up on their own. You mention that it was answered elsewhere in the thread: you could have referenced those comments as well. but choosing to respond like you did does nothing to improve the discourse.

Re:“I was just asked to balance a Binary Search Tree by JFK'... by morgante on Monday February 27, 2017 @01:13AM (#13742267)
Literally my second sentence was "I don't think Trump is directly responsible for this" and then you go and accuse me of insinuating secret executive orders.

You should be banned for an argument that disingenuous.

Re:“I was just asked to balance a Binary Search Tree by JFK'... by grzm on Monday February 27, 2017 @01:15AM (#13742276)
Very frustrating, indeed. I'm not sure if banning is appropriate. Refraining from engaging in the future would probably be more prudent.
Re:“I was just asked to balance a Binary Search Tree by JFK'... by morgante on Monday February 27, 2017 @01:17AM (#13742283)
It's probably time to revive my HN blocklist extension. [0] Banning is potentially going too far, but there are certain accounts which continue to not debate in good faith and contribute negatively to the discussion.

[0] https://github.com/morgante/hn_blocklist

Re:“I was just asked to balance a Binary Search Tree by JFK'... by briandear on Monday February 27, 2017 @02:28AM (#13742517)
Do you have a citation supporting bullies dominating law enforcement -- specifically Immigration enforcement officers?
Re:“I was just asked to balance a Binary Search Tree by JFK'... by nevi-me on Monday February 27, 2017 @12:34AM (#13742115)
Thanks, you made the point better than I could have. I'll validly get some flack for starting out by linking my comment to POTUS, which is good as it teaches me to reason much better with sensitive topics where there's often no objective answer.
Re:“I was just asked to balance a Binary Search Tree by JFK'... by matt_wulfeck on Sunday February 26, 2017 @11:59PM (#13741999)
This is what happens when you have a president you don't like. Everything you don't like around you becomes their fault.
Re:“I was just asked to balance a Binary Search Tree by JFK'... by joe_the_user on Monday February 27, 2017 @12:29AM (#13742103)
It happened before Trump but there is no way that someone aggressively calling for greater immigration enforcement isn't going to be encouraging border agents to do whatever they think is "greater enforcement" and as we can that greater enforcement is mighty arbitrary.

So, it's "yes and no but mostly no"

Re:“I was just asked to balance a Binary Search Tree by JFK'... by lovelearning on Monday February 27, 2017 @12:15AM (#13742051)
People have been asked CS questions at airport security earlier too?
Re:“I was just asked to balance a Binary Search Tree by JFK'... by briandear on Monday February 27, 2017 @02:51AM (#13742615)
First, this wasn't airport security, this was immigration. Secondly, CBP officers routinely ask questions to incoming passengers -- even to Americans! Binary Trees? I don't know -- but neither does anyone else because we're talking hundreds of thousands of people per day and only a self-selecting few post their encounters on Twitter; all of the oil field workers returning from Africa probably aren't posting their every encounter with Immigration on Twitter. People having their bags ripped apart by Thai Customs aren't likely getting featured on Hacker News. How are Serbians treated when they transit the Frankfurt Airport? I have a friend who is a designer who was asked to open his computer and show some of his designs and I have had others who entered Germany/France with no problem. Most people don't post play-by-play of their travel experiences -- so we see a very narrow and potentially inaccurate view based on stereotypes and anecdotes rather than fact.

All of this "anecdotes are now valid data" nonsense seems to be contradictory for a group of people who purport to be interested in software engineering and the implied respect for statistical validity that would encompass.

Why is this even a story? Immigration officers ask questions to detect inconsistencies -- nothing at all new about that-- nothing even wrong with that. The guy couldn't even answer it and was still admitted. If he was arrested because he couldn't solve binary trees, now THAT would be a story.