On Mon, 11 Mar 2019 at 14:35, Roelof Wobben <r.wobben@home.nl> wrote:
Op 11-3-2019 om 00:03 schreef Ben Coman:
collectionUrl := ' https://www.rijksmuseum.nl/api/nl/collection?key=14OGzuak&format=json&type=s... '. json := NeoJSONReader fromString: (ZnEasy get: collectionUrl) contents. paintings := Paintings fromJSON: json.
Thanks a lot , Ben
I almost gave it up but I think I see a way to solve this
The first part gives back exactly the same output as my old code. For the new one I have to do some trying but I think I can solve it
great !! Now it occurred to me that your approach seemed to be "based from applying functions to manipulate data that happens to be stored in an object", whereas you should invert that philosophy so you are "thinking from inside the object". What data do "I" have and what can "I" do with it. A great read that will help you is "A Mentoring Course in Smalltalk" http://www.lulu.com/au/en/shop/andres-valloud/a-mentoring-course-on-smalltal... cheers -ben