Yes, unfortunately, copy-paste is rampant. Sometimes I've posted stuff in StackOverflows with pretty obvious placeholders and have gotten negative responses because the code didn't run. Same with stuff I've posted in my personal blog and get pretty heated comments about how garbage the examples are because it doesn't run as-is. So yes, lesson learned, avoid implicit placeholders, no matter how obvious they seem.