An anonymous reader was chatting with their fellow developers on Slack. They work for a telecom, and thus have to support software and hardware from a variety of vendors. In one Apple-provided API, they found this method.

ALUnlockWebServiceRequest appleUnlockWSRequest = new ALUnlockWebServiceRequest();
appleUnlockWSRequest.getAddPendingUnlockDeviceRequestAndCheckUnlockStatusDeviceRequestAndRemoveUnlockDeviceRequest();

The code in image form, with the caption, 'new contender for longest method name'

Now, that is a pretty long method name, and it’s certainly a WTF. That said, Java has classes like this one, and there’s always Spring, if you want to find something really long. Besides, it’s not the length of the name that’s important, it’s how you invoke it.

[Advertisement] High availability, Load-balanced or Basic – design your own Universal Package Manager, allow the enterprise to scale as you grow. Download and see for yourself!


from The Daily WTF

0 Comments