[Pharo-users] Re: how can I improve this

2020-09-14 Thread Roelof Wobben via Pharo-users
Op 14-9-2020 om 22:19 schreef Hernán Morales Durand: ^ (1 to: self size) count: [ : i | (self at: i) ~= (aString at: i) ] With that code I get a few problems but this is working distanceStrand1: aString strand2: aString2     aString

[Pharo-users] Re: how can I improve this

2020-09-14 Thread Roelof Wobben via Pharo-users
Nice one but I learned I can never trust the input of a user but I think I can use that code instead of my big code. I will try it tomorrow after some good sleep. Roelof Op 14-9-2020 om 22:19 schreef Hernán Morales

[Pharo-users] Re: how can I improve this

2020-09-14 Thread Hernán Morales Durand
Hi Roelof, Maybe something like this: String>>hammingDistanceTo: aString " Answer the amount of substitutions between the receiver and aString. Both must be of equal length " ^ (1 to: self size) count: [ : i | (self at: i) ~= (aString at: i) ] El lun., 14 sept. 2020 a las

[Pharo-users] how can I improve this

2020-09-14 Thread Roelof Wobben via Pharo-users
Hello, I have solved the hamming challenge of exercism where I have to find in how many places two strings are different. my solution is : distanceStrand1: aString strand2: aString2     aString size == aString2 size         ifFalse: [ DomainError signal: (self messageFor: aString strand2:

[Pharo-users] Re: [Pharo-dev] Updating lists.pharo.org: New server, Mailman3 and more

2020-09-14 Thread Marcus Denker
Migration is Complete! If you want to login at the website, you need to create a new account with the email address that the lists are now sending emails to. https://lists.pharo.org > On 14 Sep 2020, at 19:18, Marcus Denker wrote: > > So: sending emails

[Pharo-users] Re: [Pharo-dev] Updating lists.pharo.org: New server, Mailman3 and more

2020-09-14 Thread Marcus Denker
So: sending emails should now be ok, but the web-interface is still syncing the archives (pharo-dev is there, pharo-users will be soon). But this means that everyone should be fine to send mails again. Marcus > On 14 Sep 2020, at 19:11, Marcus Denker wrote: > > Testing if this is

[Pharo-users] Re: [Pharo-dev] Updating lists.pharo.org: New server, Mailman3 and more

2020-09-14 Thread Marcus Denker
Testing if this is send via the new server… the new Archive is at https://lists.pharo.org/empathy/list/pharo-dev.lists.pharo.org Marcus > On 14 Sep 2020, at 17:42, Marcus Denker wrote: > > Hi, > > We are updating the

[Pharo-users] Updating lists.pharo.org: New server, Mailman3 and more

2020-09-14 Thread Marcus Denker
Hi, We are updating the mailinglists (everything https://lists.pharo.org/ ) -> New server, thus: new IP… -> the server will run Mailman3 (we used Mailman2) -> There will be a better Archive I will do the change of the IP address today. The

Re: [Pharo-users] How can I make this more OOP

2020-09-14 Thread Roelof Wobben via Pharo-users
Thanks Richard for this explanation. and I like also your idea of using #respondTo instead of asking a object if its a collection or a item. Roelof Op 14-9-2020 om 14:28 schreef Richard O'Keefe: "OOP is

Re: [Pharo-users] How can I make this more OOP

2020-09-14 Thread Richard O'Keefe
"OOP is not asking an object what it is"? You've lost me. I'm reminded of a joke exam question that goes something like this: Some things have ping nature and other things have pong nature. Discuss, with examples. Whatever else it is, OOP is a means to an end, not an end in itself. It's