Re: [Pharo-users] how to change data on real data but not on test data

2019-12-28 Thread Roelof Wobben via Pharo-users
--- Begin Message --- Oke Maybe it is better to give the whole challenge On the way to your gravity assist around the Moon, your ship computer beeps angrily about a "1202 program alarm". On the radio, an Elf is already explaining

Re: [Pharo-users] how to change data on real data but not on test data

2019-12-28 Thread Sean P. DeNigris
Pharo Smalltalk Users mailing list wrote > so to be clear. In the test are data given which not has to be changed. As > soon as you have to solve the real problem , some data needs to be > changed. It's difficult to give good design advice with such a partial picture of the domain, but two straig

[Pharo-users] how to change data on real data but not on test data

2019-12-28 Thread Roelof Wobben via Pharo-users
--- Begin Message --- I have this code so solve a challenge of Advent Of Code : process: anArray | op | ram := (anArray splitOn: ',') collect: [ :ea | ea asInteger ]. in := ReadStream on: ram. [ (op := in next) = 99 ] whileFalse: [ self processOpcod