One advantage of Javascript is that it emphasizes code rot…

I (cringingly) wrote something like this in an API test the other day:

function expectedResponse() {
return body.ResponseInformation.ResponseInformationCore.ResponseSellerAvails.ResponseSellerAvail[0].SellerAvail.AvailCore.Totals.Total[0].Charges.Charge[0].calculation[0].amount
}

I figured someone would appreciate the ugliness as much as I do. Any suggestions on making it more pretty?

submitted by /u/jfacoustic
[link] [comments]

from Software Development – methodologies, techniques, and tools. Covering Agile, RUP, Waterfall + more! https://ift.tt/2SNI5zB

Leave a comment

Design a site like this with WordPress.com
Get started
search previous next tag category expand menu location phone mail time cart zoom edit close