121 reputation
5
bio website andrewhays.net
location Little Rock, AR
age 25
visits member for 3 years, 7 months
seen Jan 28 at 3:15
I'm a programmer (obviously?) in Python, Java, and C++. I also enjoy web development using Python, Django, and jQuery (and sometimes Google App Engine.) I'm a college student that's getting a double major in Mathematics and Computer Science and I enjoy traveling.

Jun
17
awarded  Supporter
Jun
7
awarded  Teacher
Jun
6
awarded  Student
Jun
6
comment Organizing classes with many properties that need to be iterated through
Unfortunately, no. Since a lot of my values are of different types (I have ints, a couple Dates, etc.), this implementation won't quite work.
Jun
5
comment Organizing classes with many properties that need to be iterated through
I'm not entirely sure that I like the idea of adding another library just for this one functionality. I think I might go with @Job's comment on the question, and just refactor it so that I don't need the class at all. Or, I guess I'll just iterate.
Jun
5
comment Organizing classes with many properties that need to be iterated through
Hmm, perhaps I see your point here. Basically, what I was doing before was collecting data from the internet, that was "shaped" a certain way. At this point I would put it into the database, but usually through an intermediary object, such as a class. I was then using that class to essentially pass data back and forth between activities. Are you suggesting, however, that I just "eliminate the middle man" and start solely using the database for data?
Jun
5
comment Organizing classes with many properties that need to be iterated through
That's similar to the current implementation that I had been trying to work on, but iterating through each one becomes a chore, since I would have to do some casting on it to get it back to its original structure, in the end. I still am somewhat unsure of how a "reflection based solution" would work in java, however.
Jun
5
comment Organizing classes with many properties that need to be iterated through
Can you give me an example of how you might do this? I've never actually had to seriously use reflection for anything in Java, because as it stands, what I know about reflection in other languages seems like it would be more complicated than just iterating through a list of properties.
Jun
5
awarded  Editor
Jun
5
revised Organizing classes with many properties that need to be iterated through
added 220 characters in body
Jun
5
asked Organizing classes with many properties that need to be iterated through
Jun
5
awarded  Autobiographer
Mar
24
answered How do you know you're writing good code?