News for hackers. Stuff that matters.
Re:Principle of Least Astonishment by fallingfrog on Monday April 06, 2020 @08:04PM (#22799154)
I think the time I’ve been most astonished recently by an api was asp.net. They map http parameters onto function parameters by name, using reflection. One of the first things you’ll read in any introductory programming textbook is that function parameter names don’t matter; only the type and order matters. When the light went off and I figured out what they had done, I swore out loud at my desk..

There are no comments on this comment yet.