[Pharo-users] Why is #findString: in accessing?

Sven Van Caekenberghe sven at stfx.eu
Mon Feb 25 06:40:32 EST 2019


It always takes effort to learn a new language/environment/library. You can't expect it to be the same to what you know, or for things to be where you expect them.

String is also one of the most overloaded classes in the system, it will never be clean.

Lots of things fall under 'accessing', that finding something is classified as such, does not really surprise me.

Did you know about the Finder 'by example search' ? Here is how to find your selector:



> On 25 Feb 2019, at 12:19, Tim Mackinnon <tim at testit.works> wrote:
> I always struggle (even after years of casually using smalltalk) to find the String methods that do the heavy lifting (and are comparable to other languages). The methods are normally there, but they often have names that don’t compare well with other languages.
> I think that what doesn’t help is the categorisation of methods in String - for example - if I want to do some searching in a String - why is #findString: in ‘accessing’ - I totally didn’t think to look in there. To be honest, I really wanted a protocol called ‘searching’ - but its not there? 
> I find the protocols in the system to be pretty bad in all honesty. Its a good idea, but I don’t think its clear on whether its protocol, or category. And if the former - where are the tools to help ensure things conform to a protocol? If the latter - where are the useful, commonly used categories?
> Are there any plans to do anything in this area - or is it just a lump it scenario?
> Tim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20190225/1fb842f5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2019-02-25 at 12.36.15.png
Type: image/png
Size: 292306 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20190225/1fb842f5/attachment-0001.png>

More information about the Pharo-users mailing list