News for hackers. Stuff that matters.
Re:I designed a cube that balances itself on a corner by hamandcheese on Sunday February 11, 2024 @06:06PM (#39339710)
This reminds me of how one time in an interview, I realized I had an off-by-one error. Instead of actually trying to understand the source of the error, I just sped-run tweaking different values +/- 1 until I got the expected result.

In the moment I felt quite clever, but the interviewer apparently did not appreciate that technique.

Re:I designed a cube that balances itself on a corner by notatoad on Sunday February 11, 2024 @07:16PM (#39340172)
>I just sped-run tweaking different values +/- 1 until I got the expected result

we call this "ML" now, and it pays extra

Re:I designed a cube that balances itself on a corner by ensignavenger on Sunday February 11, 2024 @07:21PM (#39340190)
Really, the marketers seem to call it "AI".
Re:I designed a cube that balances itself on a corner by notatoad on Sunday February 11, 2024 @07:41PM (#39340282)
in a job interview, it's ML. in a product, it's AI.
Re:I designed a cube that balances itself on a corner by geoduck14 on Sunday February 11, 2024 @09:03PM (#39340637)
>in a job interview, it's ML. in a product, it's AI.

Oh. This is good. I'm using this!

Re:I designed a cube that balances itself on a corner by 3D30497420 on Monday February 12, 2024 @04:59AM (#39343224)
Re:I designed a cube that balances itself on a corner by m463 on Monday February 12, 2024 @11:02AM (#39346393)
What about a job interview between marketing folks?
Re:I designed a cube that balances itself on a corner by bee_rider on Monday February 12, 2024 @11:48AM (#39347084)
I suspect they just call it the product.
Re:I designed a cube that balances itself on a corner by AceJohnny2 on Sunday February 11, 2024 @06:12PM (#39339772)
Love to hear it. Interviewing sucks from all perspectives, so as an interviewer I try to give leeway for the stress and time pressure the interviewee is under. But the key thing is they must express their reasoning for their approach, and "I don't have time to dig into this" will get you a long way, at least under me.

(Obviously there are nuances, but there is not enough space in this comment to elaborate)

Re:I designed a cube that balances itself on a corner by hackernewds on Sunday February 11, 2024 @07:35PM (#39340258)
which makes interviewing all the more annoying because then your success applies to which interviewer you get
Re:I designed a cube that balances itself on a corner by Mtinie on Monday February 12, 2024 @12:41AM (#39341805)
Such is every aspect of life, fortunately or unfortunately.
Re:I designed a cube that balances itself on a corner by eitland on Monday February 12, 2024 @06:06AM (#39343612)
If you fail an interview because the interviewer was unreasonable, sometimes you should be thankful and think of it as a bullet dodged.

Yes, an otherwise good company might have a bad interviewer, but if they don't have some feedback loop to catch it, chances are there are other things they also don't catch.

Re:I designed a cube that balances itself on a corner by insertchatbot on Monday February 12, 2024 @01:07PM (#39348178)
Had an interview once over Zoom. Dude has me do a coding test: normal String manipulation algorithmic problem solving stuff. So I’m screen sharing and try to google something and he’s like “STOP! What are you doing?” I’m like “well I don’t remember the exact name of the function” and he’s like “You can’t do that, this is a Test!!”

So I flunked his “test” and then immediately contacted the recruiter and said “no thanks” before he could muahahaha

Re:I designed a cube that balances itself on a corner by bee_rider on Monday February 12, 2024 @11:52AM (#39347133)
I mean, in this case… it is nice to get an interviewer that lets stuff slip, but brute-forcing bugs in an interview problem doesn’t seem very good, right?
Re:I designed a cube that balances itself on a corner by MarcelOlsz on Monday February 12, 2024 @12:37PM (#39347750)
Are your hiring? :)
Re:I designed a cube that balances itself on a corner by actionfromafar on Sunday February 11, 2024 @06:53PM (#39340038)
Well, the three hardest things in computer science are after all naming things and off-by-one errors.
Re:I designed a cube that balances itself on a corner by biomcgary on Sunday February 11, 2024 @07:04PM (#39340102)
I thought the two hardest things in CS was naming things, off-by-by one errors, and cache invalidation, but I must be remembering that incorrectly.
Re:I designed a cube that balances itself on a corner by klabb3 on Sunday February 11, 2024 @07:08PM (#39340126)
synchronization. Don’t forget
Re:I designed a cube that balances itself on a corner by sdenton4 on Monday February 12, 2024 @01:10AM (#39341985)
The whole reason for the off by one error in the standard joke is that we forgot to use a mutex.
Re:I designed a cube that balances itself on a corner by actionfromafar on Monday February 12, 2024 @05:44AM (#39343484)
Don’t forget synchronisation.
Re:I designed a cube that balances itself on a corner by spenczar5 on Sunday February 11, 2024 @10:53PM (#39341145)
synchronization, too
Re:I designed a cube that balances itself on a corner by Sduic on Monday February 12, 2024 @09:02AM (#39344833)
OK, the two hardest things in CS are naming things, off-by-one errors, cache invalidation, and synchronisation...and consensus...

I'll come in again.

Re:I designed a cube that balances itself on a corner by hnburnsy on Monday February 12, 2024 @11:43AM (#39347017)
Damn you beat me to it, I knew this felt like a Monty Python skit...

>“Nobody expects the Spanish Inquisition! Our chief weapon is surprise... surprise and fear... fear and surprise... Our two weapons are fear and surprise... and ruthless efficiency.... Our three weapons are fear, and surprise, and ruthless efficiency... and an almost fanatical devotion to the Pope... Our four... no... Amongst our weapons... Amongst our weaponry... are such elements as fear, surprise... I'll come in again.”

Re:I designed a cube that balances itself on a corner by bostik on Monday February 12, 2024 @12:56PM (#39348052)
Consensus is a distributed systems problem. And in that space there are only two hard problems:

    2. Exactly-once delivery
    1. Guaranteed order of messages
    2. Exactly-once delivery
Re:I designed a cube that balances itself on a corner by sen on Sunday February 11, 2024 @09:44PM (#39340831)
Wrap up that speed-run up in an automation and refer to it as “fuzzing” and you can sell it for millions these days.
Re:I designed a cube that balances itself on a corner by edflsafoiewq on Sunday February 11, 2024 @11:59PM (#39341527)
Can often be justified by the fact you know the correct form is aX+b, so you only need to get it right at two points to make it right everywhere.
Re:I designed a cube that balances itself on a corner by lloeki on Monday February 12, 2024 @01:55AM (#39342234)
> Instead of actually trying to understand the source of the error, I just sped-run tweaking different values +/- 1 until I got the expected result.

That's perfectly valid, when one knows a specific step or result must be positive or negative.

Not that much different from dimensional analysis, which speedruns you to get/fix to proper formula (at the cost of skimming on dimensionless constants).

Similarly, interviewer was not impressed when they cut me short and started walking me through some step and I pointed to them that their result was obviously wrong as it was dimensionally inconsistent and if they didn't cut me out the formula must have been something like baz*foo/bar^2 or something and now we just have to figure out the constants.

Re:I designed a cube that balances itself on a corner by pmontra on Monday February 12, 2024 @03:51AM (#39342850)
Many years ago before a demo we discovered that a program failed to run properly but it did run successfully the next time. We couldn't figure why and the clock was ticking. We made a script to run it twice, fail then success, and the demo was good. Then we debugged the issue, which was something trivial (I can't remember the details) but proper debugging and fixing under time pressure is never trivial.

So, an interviewer might appreciate that balancing of signs if told that it is the fastest way make it work (and pass your demo,) only to fix it later. Once proven that the hacked code gives the right solution maybe you could have offered to send them the correct code on the next day or keep working on it if they wished so.

Re:I designed a cube that balances itself on a corner by Elte on Monday February 12, 2024 @04:38AM (#39343094)
Long ago in high school, I entered a LEGO robot competition with some friends. Tests were line following, collision detection, etc. One of the tests involved the bot being sent on a collision course with a wall. It had to detect running into it and turn around. This was one of the easiest ones to complete, but shortly before the test started we realized that our pressure sensor was malfunctioning and didn't send any more signals. There was no more time to swap it out, I don't even think we had a spare to be honest.

Not wanting to give up points on an easy test, we gauged the distance the bot had to cover in the test, and quickly uploaded some new software. At the start of the test, our bot moved forward for 4 seconds, stopped, then turned around. Full points on that one!

Some times things just need to work and we can worry about them working _correctly_ later...

Re:I designed a cube that balances itself on a corner by salawat on Wednesday February 14, 2024 @10:49AM (#39371248)
You... Literally made a test defeat device.

In other words, you pulled a Dieselgate, in LEGO form.

Were I to judge your implementation, not only would you sacrifice those points, I'd have disqualified you from the competition on ethical grounds.

There is never an excuse for smoke and mirrors. Never.