Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Nice list. He clearly doesn't like reflection:

  > Clear is better than clever.
  > Reflection is never clear.
Of course, everything has its place, even reflection.


Reflection is a sign that your system is inadequate. In some (maybe even all) languages it may be necessary, but for a language designer it is a failure.


Eh, I am using reflection in a small (C#) project at work - I've had to implement a unit test system of sorts (yes, NIH, reinventing the wheel etc etc) and reflection lets me find all methods that return a particular type very easily. I agree it can become spaghetti very quickly but it is quite useful at times.


The funny thing being that the Golang stdlib uses reflection.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: