I think the dim view is on using obscurity as your only or main security approach. However leading attackers down blind alleys, in addition to having real security measures in place, doesn't seem to me to be entirely worthless (IANA Security Analyst).