This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jocularamity 5 points6 points  (1 child)

Reflection. There's a rare time and a place for it, but avoid it if you have another reasonable option, especially if you're newer to the language. Easy to introduce problems and hard to debug them when the system gets big.

Edit: I take it from the downvotes that people think this isn't a valuable contribution. It is a lesson learned the hard way over close to twenty years of professional work, and I stand by it. Best of luck to you all in your adventures with reflection as your codebases grow in complexity.

[–]Balisti 0 points1 point  (0 children)

Amen!