Feed aggregator
Linkedin CEO Says Fancy Degrees Will Matter Less in the Future of Work
Read more of this story at Slashdot.
Earth Is Getting Darker, Literally, and Scientists Are Trying To Find Out Why
Read more of this story at Slashdot.
Japan is Running Out of Its Favorite Beer After Ransomware Attack
Read more of this story at Slashdot.
Trust in Media at New Low of 28% in US
Read more of this story at Slashdot.
Red Hat Investigating Breach Impacting as Many as 28,000 Customers, Including the Navy and Congress
Read more of this story at Slashdot.
In a Sea of Tech Talent, Companies Can't Find the Workers They Want
Read more of this story at Slashdot.
Japan Saw Record Number Treated For Heatstroke in Hottest-Ever Summer
Read more of this story at Slashdot.
Insurers Are Using Cancer Patients as Leverage
Read more of this story at Slashdot.
Google Cuts More Than 100 Design-Related Roles In Cloud Unit
Read more of this story at Slashdot.
Prospect of Life On Saturn's Moons Rises After Discovery of Organic Substances
Read more of this story at Slashdot.
Tales from the Interview: Tic Tac Whoa
Usually, when we have a "Tales from the Interview" we're focused on bad interviewing practices. Today, we're mixing up a "Tales" with a CodeSOD.
Today's Anonymous submitter does tech screens at their company. Like most companies do, they give the candidate a simple toy problem, and ask them to solve it. The goal here is not to get the greatest code, but as our submitter puts it, "weed out the jokers".
Now our submitter didn't tell us what the problem was, but I don't have to know what the problem was to understand that this is wrong:
int temp1=i, temp2=j; while(temp1<n&&temp2<n&&board[temp1][temp2]==board[i][j]){ if(temp1+1>=n||temp1+2>=n) break; if(board[temp1][temp2]==board[temp1][temp2+1]==board[temp1][temp2+2]) points++; ele break; temp2++; }As what is, in essence, a whiteboard coding exercise, I'm not going to mark off for the typo on ele (instead of else). But there's still plenty "what were you thinking" here.
From what I can get just from reading the code, I think they're trying to play tic-tac-toe. I'm guessing, but that they check three values in a column makes me think it's tic-tac-toe. Maybe some abstracted version, where the board is larger than 3x3 but you can score based on any run of length 3?
So we start by setting temp1 and temp2 equal to i and j. Then our while loop checks: are temp1 and temp2 still on the board, and does the square pointed at by them equal the square pointed at by i and j.
At the start of our loop, we have a second check, which is testing for a read-ahead; ensuring that our next check doesn't fall off the boundaries of the array. Notably, the temp1 part of the check isn't really used- they never finished handling the diagonals, and instead are only checking the vertical column on the next. Similarly, temp2 is the only thing incremented in the loop, never temp1.
All in all, it's a mess, and no, the candidate did not receive an offer. What we're left with is some perplexing and odd code.
I know this is verging into soapbox territory, but I want to have a talk about how to make tech screens better for everyone. These are things to keep in mind if you are administering one, or suffering through one.
The purpose of a tech screen is to inspire conversation. As a candidate, you need to talk through your thought process. Yes, this is a difficult skill that isn't directly related to your day-to-day work, but it's still a useful skill to have. For the screener, get them talking. Ask questions, pause them, try and take their temperature. You're in this together, talk about it.
The screen should also be an opportunity to make mistakes and go down the wrong path. As the candidate's understanding of the problem develops, they'll likely need to go backwards and retrace some steps. That's good! As a candidate, you want to do that. Be gracious and comfortable with your mistakes, and write code that's easy to fix because you'll need to. As a screener, you should similarly be gracious about their mistakes. This is not a place for gotchas or traps.
Finally, don't treat the screen as an "opportunity to weed out jokers". It's so tempting, and yes, we've all had screens with obviously unqualified candidates. It sucks for everybody. But if you're in the position to do a screen, I want to tell you one mindset hack that will make you a better interviewer: you are not trying to filter out candidates, you are gathering evidence to make the best case for this candidate.
Your goal, in administering a technical screen, is to gather enough evidence that you can advocate for this candidate. Your company clearly needs the staffing, and they've gotten this far in the interview process, so let's assume it's not a waste of everyone's time.
Many candidates will not be able to provide that evidence. I'm not suggesting you override your judgment and try and say "this (obviously terrible) candidate is great, because (reasons I stretch to make up)." But you want to give them every opportunity to convince you they're a good fit for the position, you want to dig for evidence that they'll work out. Target your questions towards that, target your screening exercises towards that.
Try your best to walk out of the screen with the ability to say, "They're a good fit because…" And if you fail to walk out with that, well- it's not really a statement about the candidate. It just doesn't work out. Nothing personal.
But if the code they do write during the screen is uniquely terrible, feel free to send it to us anyway. We love bad code.
[Advertisement] Plan Your .NET 9 Migration with ConfidenceYour journey to .NET 9 is more than just one decision.Avoid migration migraines with the advice in this free guide. Download Free Guide Now!
Mira Murati's Stealth AI Lab Launches Its First Product
Read more of this story at Slashdot.
Solar Leads EU Electricity Generation As Renewables Hit 54%
Read more of this story at Slashdot.
Intel and AMD Trusted Enclaves, a Foundation For Network Security, Fall To Physical Attacks
Read more of this story at Slashdot.
Apple Shelves Vision Headset Revamp to Prioritize Meta-Like AI Glasses
Read more of this story at Slashdot.
AirPods Pro 3 Impossible To Repair, Earn Score of 0 In iFixit Teardown
Read more of this story at Slashdot.
Meta Plans To Sell Targeted Ads Based On Data In Your AI Chats
Read more of this story at Slashdot.
A Bullet Crashed the Internet In Texas
Read more of this story at Slashdot.
Cable Nostalgia Persists As Streaming Gets More Expensive, Fragmented
Read more of this story at Slashdot.
Jane Goodall, Famed Primatologist and Conservationist, Dies At 91
Read more of this story at Slashdot.