Are there any other languages' libraries with complicated designs like that one or is this a problem specific to Java?
Just to give an example, this is a snippet of code I had to write dozens of times in a college project using the javax.xml.soap library to create a simple soap message with a tag on it:
MessageFactory mf = MessageFactory.newInstance();
SOAPMessage soapMessage = mf.createMessage();
SOAPPart soapPart = soapMessage.getSOAPPart();
SOAPEnvelope soapEnvelope = soapPart.getEnvelope();
SOAPBody soapBody = soapEnvelope.getBody();
Name name = soapEnvelope.createName("HelloWorld", "hw", "");
SOAPElement element = soapBody.addChildElement(name);
element.addTextNode( "hello text message" );
It's not exactly the same issue has in the example on the blog post, but I think it also represents something that could be a lot simpler/shorter. SOAPEnvelope soapEnvelope = MessageFactory.newInstance().createMessage().getSOAPPart().getEnvelope();
SOAPBody soapBody = soapEnvelope.getBody();
Name name = soapEnvelope.createName("HelloWorld", "hw", "");
soapBody.addChildElement(name);.addTextNode( "hello text message" );I don't think the last line would work...
1. Count the lines of code.
2. Randomly inspect code sections.
The verbose Bureaucratese sampled in the article responds to both requirements.
Even if TDD is not being used, the programmer can write a simple test for it and then show the manager the test succeed.
This semester I had a class of Software Engineering when we did a project using Scrum and weekly we had to show our teacher that we had accomplished our tasks. The teacher was playing the role of someone who didn't know any code, but we still had to show stuff working. So we would write simple tests to show for instance that SOAP Messages were being sent by one entity and in fact received by the other.