I can do bit of coding in ruby. I just touched objects and I am not so object literate, I mean I do not think in objects yet :-)
I have data that I scrape from the forum on regular basis. I need fields like
- author, date posted, title, category, number of views, etc etc = array in my point of view.
Then I want to be able to these in ruby
- save the whole lot (quick solution is csv or xml - later probably some sql database)
- sort it by field
- load/read my file to update fields and do some statistics, extract some data
- add new fields easily in case I need to
edit, modify my "file/database" outside ruby.
I believe that I can do every operation like change the number of views of post, change the date of the last reply in the post etc etc either using array or object.
so my Question is: would you use
...................................... custom class/object or array?
could you tell why?