Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Reflection is the ability of a computer program to examine, introspect, and modify its own structure and behavior at runtime.
4
votes
Accepted
Is storing types in the database an anti pattern?
Yes, generally. You're then binding the type name to outside data, limiting your refactoring capabilities and making people change stuff in two places when they make a new class. Further, you're (or a …
7
votes
Accepted
Using reflection vs creating a new class
Now, if you could use reflection to inspect the Eggs and see what sub-components they have (and you don't have significant performance requirements), that seems like an even better solution... …
12
votes
Why is it a bad idea to create a generic setter and getter with reflection?
I've generally used 10x as the rule of thumb for reflection costs, but when I searched for data, one of the first answers included this answer which ballparked it closer to 1000x. …
4
votes
Introspection vs polymorphism in C#
Using reflection to peek into the runtime types like this is smelly to the extreme. …
8
votes
Accepted
In Java, would you sacrifice type safety for a nicer programming interface
When and why would you generally sacrifice typesafety for a nicer programming interface?
Rarely if ever, and then only if the type un-safety was dealt with effectively in another manner.
Verbose …