Recent submissions

Comment · 6 months ago
What's your point?
Comment · 6 months ago
> Taking advantage of the $200 plan.

No, I'm paying $200 a month for a premium product that I expect premium service for. It's the single most expensive IT expense I have. Taking advantage my foot.

Comment · 8 months ago
I worked for a company once where we ran this dodgy shipping software on prem that integrated with our backend via SQL access. When there was an issue, their techs would rdp to a server and run this little VB app that turned out to be a dialog box that could run arbitrary SQL code against our production database.

I trust that more than this nonsense. WTF are we doing?

Comment · 8 months ago
Probably could just ask the phone companies. Free advertising to visit their dying phones?
Comment · 9 months ago
That is analogous to the water company charging you more if you use a faucet from another company. It's not a fair competition.

That's why we are supposed to have legislation to regulate that utilities and common carriers can't behave that way.

Comment · 1 year ago
Ah, the infamous, but fictional, Monkey Ladder Experiment.
Comment · 2 years ago
LINQ is not the same as LINQ-to-SQL. The former is a language feature, the latter a library (one of many) that uses that feature.
Comment · 2 years ago
In addition to the standard ways of dealing with this given by other commenters (keeping the original input around), perhaps more interesting is to imagine how befreak might compute 12 mod 4 using repeated subtraction.

I'm not clever enough to write the solution, but I imagine a loop using the branching operators (<, >, v, ^). Since each time through the loop pushes a bit onto the control stack, you have a built-in count for the number of times the loop was traversed.

In the example of 12 mod 4, the program would loop through 3 times and break once giving you 0001 (or 1110) on the control stack and something like 12, 8, 4, 0 on the stack. Then when reversing, control bits would be popped off and you'd end up going back 0, 4, 8, 12.

Comment · 2 years ago
Funny, a kid at my son's science fair did this for their project. I don't recollect if he had a bibliography...
Comment · 2 years ago
Yeah... I think this article is bullshit. A better analogy, imo, is the somewhat cliche rocks in a jar. I'm my experience, you get ONE big thing in your life. But there can still be room for other, smaller rocks.

But the overall message is fine, if obvious. You have to prioritize, you can't do everything.

Comment · 2 years ago
Also his name, said aloud, is a tautology. France is French.
Comment · 2 years ago
I used this fact in an interview ages ago. The interviewer wanted a function, in Java, that shuffled a deck of cards such that every permutation was equally likely. I pointed out this was not possible using the standard library random functions since the seed is a long (akshually... it's 48 bits).

They inexplicably hired my know-it-all ass...

Comment · 2 years ago
Comment · 2 years ago
Really going above and beyond on that, "write a function that reverses a string in place" interview question, aren't they? I'm afraid I'll have to dock points in simplicity though.
Comment · 3 years ago
That is pretty much exactly what I was looking for. Maybe a touch more complicated than what my 11 year old is ready for; but something he can stretch a bit with. Thank you!

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton