Re: [Pharo-users] Pharo 6 Freetype plugin stopped working after Windows update

2018-07-12 Thread Hernán Morales Durand
Hi,

I've seen the FT distorted fonts when launched several images at the
same time. It could be a way to reproduce it.
Cheers,

Hernán


2018-07-12 19:26 GMT-03:00 PBKResearch :
> Hello
>
> This seems exactly like a problem I reported almost exactly a year ago - 15 
> July 2017. Peter Uhnak reported then that he saw it regularly. The only sure 
> remedy we found is to reboot the machine - occasionally reboot twice. I am 
> using Pharo 6.1 on Windows 10. Since that report, I have seen it very rarely. 
> Most recently I found that the Pharo window appearance was distorted - wrong 
> font size etc - but I did not see the debug console error message.
>
> Advice to Webwarrior - reboot machine and see if it goes away.
>
> HTH
>
> Peter Kenny
>
> -Original Message-
> From: Pharo-users  On Behalf Of Ben Coman
> Sent: 12 July 2018 22:20
> To: Any question about pharo is welcome 
> Subject: Re: [Pharo-users] Pharo 6 Freetype plugin stopped working after 
> Windows update
>
> Seems similar...
> http://forum.world.st/Win10-Launcher-Pharo7-1122-ZdcPluginMissing-SSL-TLS-plugin-initailization-failed-VM-plugin-missing-O-tp5081539p5081573.html
>
> cheers -ben
>
> On 13 July 2018 at 03:09, webwarrior  wrote:
>> LoadLibrary(FT2Plugin.dll) (998: Invalid access to memory location.
>>
>> )
>>
>> Windows 10.
>>
>> Win32 built on May 31 2017 03:09:04 GMT Compiler: 5.4.0 VMMaker
>> versionString VM: 201705310241
>>
>> Tried latest stable VM - same error.
>>
>> Pharo 7 works normally.
>>
>>
>>
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>>
>
>



[Pharo-users] Smalltalks 2018 registration and talk submissions is now open!

2018-07-12 Thread Gabriel Cotelli
We invite you to join us at Smalltalks 2018
 in Salta, for the 12th free
conference  on Smalltalk based technologies, research and industry
applications.

Registration

CLICK HERE TO REGISTER


No payment is required to attend nor to present a talk.

We do accept donations from willing individuals and companies to keep our
activities free.
When & Where

The conference will be held from October 31 to November 2 at Universidad
Nacional de Salta , in Salta, Argentina.

Workshops are also planned at the same site on October 29 and 30.
Participation

For the talks this year, we’d like to offer a wide range of subjects of
interest to our attendees.

We’d like to encourage students, researchers and industry experts to share
with us their stories and expertise on different Smalltalk inspired
languages, frameworks and methodologies.

Whether you have developed or researched an architecture, component or
product, that is based on Smalltalk, or that could offer new insights to
Smalltalk developers, we invite you to speak at this year’s conference.

We are also interested in hearing about your experiences with the newest
technologies and how they compare to Smalltalk equivalents. Is it easier to
implement a Blockchain in Smalltalk than in Scala? Is Pharo offering the
required tools to work with Deep Learning? Can Gemstone outperform SQL when
working with image processing?

SUBMIT YOUR TALK HERE

Traveling

During 2018, Aerolíneas Argentinas  is the
official transporter for Smalltalks 2018.

A 10% discount is available for airplane tickets to attend the conference:

   1.

   Go to Aerolineas Argentinas conferences
   

   site
   2.

   Choose your origin and use SMTKS as promo code
   3.

   Follow the instructions on the page


This discount is valid for all tickets (tourist or executive class) with
destination to Salta, arriving on or after October 24, and departing on or
before November 7.
The origin city can be any in Argentina, and also Madrid, Miami, New York,
Rome, Asunción, Bogotá, Cancún, Curitiba, Florianopolis, Lima, Montevideo,
Porto Alegre, Punta Cana, Punta del Este, Río de Janeiro, San Pablo,
Salvador de Bahía, Santa Cruz de la Sierra or Santiago de Chile.

Legal disclaimer: Aerolíneas Argentinas as official transporter is not
responsible for the organization, execution nor any other activity related
to the conference.
Scholarships

As part of our vision, we aim to support people interested in participating
in Smalltalk-related conferences, to generate a stronger community that can
continue our work in the future.

If you are a university student and require financial assistance to attend
the conference, we encourage you to contact us .

We can offer travel and lodging funds to help you be part of this year’s
conference..
Support FAST

FAST is a non-profit organization, funded by the donations of organizations
and individuals.

This support allows us to keep the conference free, every year, and to help
students and distinguished speakers to attend.

You can show your support at:

https://smalltalks2018.fast.org.ar/donations

Exclusive conference T-Shirts will be provided to those who donate before
September 27th.

Join us with your assistance, your presentations and your support.


Help us continue to build this great community. See you in Salta!

Follow us on Twitter (@fast_arg
)
and Facebook
(/fundacionargentinadesmalltalk
) to keep up to
date with news and announcements.


Re: [Pharo-users] Pharo 6 Freetype plugin stopped working after Windows update

2018-07-12 Thread PBKResearch
Hello

This seems exactly like a problem I reported almost exactly a year ago - 15 
July 2017. Peter Uhnak reported then that he saw it regularly. The only sure 
remedy we found is to reboot the machine - occasionally reboot twice. I am 
using Pharo 6.1 on Windows 10. Since that report, I have seen it very rarely. 
Most recently I found that the Pharo window appearance was distorted - wrong 
font size etc - but I did not see the debug console error message.

Advice to Webwarrior - reboot machine and see if it goes away.

HTH

Peter Kenny

-Original Message-
From: Pharo-users  On Behalf Of Ben Coman
Sent: 12 July 2018 22:20
To: Any question about pharo is welcome 
Subject: Re: [Pharo-users] Pharo 6 Freetype plugin stopped working after 
Windows update

Seems similar...
http://forum.world.st/Win10-Launcher-Pharo7-1122-ZdcPluginMissing-SSL-TLS-plugin-initailization-failed-VM-plugin-missing-O-tp5081539p5081573.html

cheers -ben

On 13 July 2018 at 03:09, webwarrior  wrote:
> LoadLibrary(FT2Plugin.dll) (998: Invalid access to memory location.
>
> )
>
> Windows 10.
>
> Win32 built on May 31 2017 03:09:04 GMT Compiler: 5.4.0 VMMaker 
> versionString VM: 201705310241
>
> Tried latest stable VM - same error.
>
> Pharo 7 works normally.
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>




Re: [Pharo-users] Pharo 6 Freetype plugin stopped working after Windows update

2018-07-12 Thread Ben Coman
Seems similar...
http://forum.world.st/Win10-Launcher-Pharo7-1122-ZdcPluginMissing-SSL-TLS-plugin-initailization-failed-VM-plugin-missing-O-tp5081539p5081573.html

cheers -ben

On 13 July 2018 at 03:09, webwarrior  wrote:
> LoadLibrary(FT2Plugin.dll) (998: Invalid access to memory location.
>
> )
>
> Windows 10.
>
> Win32 built on May 31 2017 03:09:04 GMT Compiler: 5.4.0
> VMMaker versionString VM: 201705310241
>
> Tried latest stable VM - same error.
>
> Pharo 7 works normally.
>
>
>
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
>



Re: [Pharo-users] XML support for pharo

2018-07-12 Thread oswall arguedas
Solved

To access the values of the nodes is as follows:

yearmem: = (tree xpath: '// year') first contentString asNumber.

I also edit the other methods of the XMLNode class.

Thanks
Oswall




De: Pharo-users  en nombre de PBKResearch 

Enviado: jueves, 12 de julio de 2018 12:09:20
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] XML support for pharo


Hi Oswall



Well, you have located the correct node, which is some kind of XMLNode, so all 
you need is to access its content. If you browse the class and look at its 
‘accessing’ protocol, you see the method XMLNode>>#contentString, which will 
give you, in your test case, ‘2014’ as a string. If you want to enter it in the 
database as a number, asNumber will do that’



HTH



Peter Kenny



From: Pharo-users  On Behalf Of oswall 
arguedas
Sent: 12 July 2018 18:35
To: 'Any question about pharo is welcome' 
Subject: Re: [Pharo-users] XML support for pharo



Hello Peter,

Thanks for your help.



The value I get is:

  2014 



What I need is to extract the atomic value of the node, which is:



 2014



To assign it to variables and create objects. I can not find how to obtain that 
punctual value 2014.



The main purpose is to read many xml files and create smalltak objects with 
that data, then save them in DB and process the data.



De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de PBKResearch 
mailto:pe...@pbkresearch.co.uk>>
Enviado: jueves, 12 de julio de 2018 11:17:41
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] XML support for pharo



Hi Oswall



What sort of failure did you get? It helps with this sort of thing to execute 
the code in a playground and inspect the result.



One thing you need to know is that the result of xpath is almost always some 
sort of XMLCollection, even when there is only one element. I would expect the 
result you want if you write yearmem := (tree xpath: ‘cardset/card/year’) first.



Note that you should not need a slash at the start; xpath starts searching in 
the children of the top node.



Also you do not need to give every step of the hierarchy; you can always skip 
levels provided the result specifies a unique route to the node you want. So in 
this case you can write:



yearmem := (tree xpath: ‘//year’) first.



Hope this helps



Peter Kenny



From: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 On Behalf Of oswall arguedas
Sent: 12 July 2018 17:09
To: pharo-users@lists.pharo.org
Subject: Re: [Pharo-users] XML support for pharo



Regards,

I practice with the example of the book. I can not read the atomic values of 
the nodes.

For example, with this piece of the example:





 

  Arcane Lighthouse 

  Land 

  2014 



To get the atomic value of the node year and assign it to the variable yearmem, 
I do it like this:



yearmem: = tree xpath: '/ cardset / card / year'.



But it fails. How do I get the 2014 value?



Thank you

Oswall





De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de oswall arguedas 
mailto:oswal...@hotmail.com>>
Enviado: miércoles, 11 de julio de 2018 20:17:55
Para: pharo-users@lists.pharo.org
Asunto: Re: [Pharo-users] XML support for pharo



Thanks Franz and Monty. I'm working on it, everything is going very well.

The feedback when I master it.



Oswall







De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de monty mailto:mon...@programmer.net>>
Enviado: miércoles, 11 de julio de 2018 03:32
Para: pharo-users@lists.pharo.org
Asunto: Re: [Pharo-users] XML support for pharo



This is the latest version of the XML/XPath Scraping Booklet: 


Scraping HTML with XPath - 
files.pharo.org

files.pharo.org

1.6 Alargeexample • 
Siblings.Siblingsarechildnodesthathavethesameparent.Thecard-name,types,year,rarity,expansionandcardtextelementsareallsib-




___
montyos.wordpress.com


[Pharo-users] Pharo 6 Freetype plugin stopped working after Windows update

2018-07-12 Thread webwarrior
LoadLibrary(FT2Plugin.dll) (998: Invalid access to memory location.

)

Windows 10.

Win32 built on May 31 2017 03:09:04 GMT Compiler: 5.4.0
VMMaker versionString VM: 201705310241

Tried latest stable VM - same error.

Pharo 7 works normally.



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Request for Windows test

2018-07-12 Thread Hernán Morales Durand
Running Windows 8.1 here. Success, no problem at all.
Impressive work BTW!

Cheers,

Hernán


2018-07-11 7:19 GMT-03:00 Hilaire :
> Hi,
>
> A Windows user reported to me difficulty to start Dr. Geo.
>
> Although I had success to run it in a Windows system, I will be glad if
> some of you would mind testing it on their windows system, and report to
> me success or failure along the used Windows system.
>
> -> http://www.drgeo.eu/download
>
> Thanks a lot
>
> Hilaire
>
> --
> Dr. Geo
> http://drgeo.eu
>
>
>



Re: [Pharo-users] XML support for pharo

2018-07-12 Thread PBKResearch
Hi Oswall

 

Well, you have located the correct node, which is some kind of XMLNode, so
all you need is to access its content. If you browse the class and look at
its ‘accessing’ protocol, you see the method XMLNode>>#contentString, which
will give you, in your test case, ‘2014’ as a string. If you want to enter
it in the database as a number, asNumber will do that’

 

HTH

 

Peter Kenny

 

From: Pharo-users  On Behalf Of oswall
arguedas
Sent: 12 July 2018 18:35
To: 'Any question about pharo is welcome' 
Subject: Re: [Pharo-users] XML support for pharo

 

Hello Peter,

Thanks for your help.

 

The value I get is:

  2014 

 

What I need is to extract the atomic value of the node, which is:

 

 2014

 

To assign it to variables and create objects. I can not find how to obtain
that punctual value 2014.

 

The main purpose is to read many xml files and create smalltak objects with
that data, then save them in DB and process the data.

  _  

De: Pharo-users mailto:pharo-users-boun...@lists.pharo.org> > en nombre de PBKResearch
mailto:pe...@pbkresearch.co.uk> >
Enviado: jueves, 12 de julio de 2018 11:17:41
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] XML support for pharo 

 

Hi Oswall

 

What sort of failure did you get? It helps with this sort of thing to
execute the code in a playground and inspect the result. 

 

One thing you need to know is that the result of xpath is almost always some
sort of XMLCollection, even when there is only one element. I would expect
the result you want if you write yearmem := (tree xpath:
‘cardset/card/year’) first.

 

Note that you should not need a slash at the start; xpath starts searching
in the children of the top node.

 

Also you do not need to give every step of the hierarchy; you can always
skip levels provided the result specifies a unique route to the node you
want. So in this case you can write:

 

yearmem := (tree xpath: ‘//year’) first.

 

Hope this helps

 

Peter Kenny

 

From: Pharo-users mailto:pharo-users-boun...@lists.pharo.org> > On Behalf Of oswall arguedas
Sent: 12 July 2018 17:09
To: pharo-users@lists.pharo.org  
Subject: Re: [Pharo-users] XML support for pharo

 

Regards,

I practice with the example of the book. I can not read the atomic values of
the nodes.

For example, with this piece of the example:

 



 

  Arcane Lighthouse 

  Land 

  2014 

 

To get the atomic value of the node year and assign it to the variable
yearmem, I do it like this:

 

yearmem: = tree xpath: '/ cardset / card / year'.

 

But it fails. How do I get the 2014 value?

 

Thank you

Oswall

 

  _  

De: Pharo-users mailto:pharo-users-boun...@lists.pharo.org> > en nombre de oswall arguedas
mailto:oswal...@hotmail.com> >
Enviado: miércoles, 11 de julio de 2018 20:17:55
Para: pharo-users@lists.pharo.org  
Asunto: Re: [Pharo-users] XML support for pharo 

 

Thanks Franz and Monty. I'm working on it, everything is going very well.

The feedback when I master it.

 

Oswall

 

 

  _  

De: Pharo-users mailto:pharo-users-boun...@lists.pharo.org> > en nombre de monty
mailto:mon...@programmer.net> >
Enviado: miércoles, 11 de julio de 2018 03:32
Para: pharo-users@lists.pharo.org  
Asunto: Re: [Pharo-users] XML support for pharo 

 

This is the latest version of the XML/XPath Scraping Booklet:
 


 
 Scraping HTML with XPath - files.pharo.org

files.pharo.org

1.6 Alargeexample •
Siblings.Siblingsarechildnodesthathavethesameparent.Thecard-name,types,year,
rarity,expansionandcardtextelementsareallsib-




___
montyos.wordpress.com



Re: [Pharo-users] XML support for pharo

2018-07-12 Thread oswall arguedas
Hello Peter,
Thanks for your help.

The value I get is:
  2014 

What I need is to extract the atomic value of the node, which is:

 2014

To assign it to variables and create objects. I can not find how to obtain that 
punctual value 2014.

The main purpose is to read many xml files and create smalltak objects with 
that data, then save them in DB and process the data.

De: Pharo-users  en nombre de PBKResearch 

Enviado: jueves, 12 de julio de 2018 11:17:41
Para: 'Any question about pharo is welcome'
Asunto: Re: [Pharo-users] XML support for pharo


Hi Oswall



What sort of failure did you get? It helps with this sort of thing to execute 
the code in a playground and inspect the result.



One thing you need to know is that the result of xpath is almost always some 
sort of XMLCollection, even when there is only one element. I would expect the 
result you want if you write yearmem := (tree xpath: ‘cardset/card/year’) first.



Note that you should not need a slash at the start; xpath starts searching in 
the children of the top node.



Also you do not need to give every step of the hierarchy; you can always skip 
levels provided the result specifies a unique route to the node you want. So in 
this case you can write:



yearmem := (tree xpath: ‘//year’) first.



Hope this helps



Peter Kenny



From: Pharo-users  On Behalf Of oswall 
arguedas
Sent: 12 July 2018 17:09
To: pharo-users@lists.pharo.org
Subject: Re: [Pharo-users] XML support for pharo



Regards,

I practice with the example of the book. I can not read the atomic values of 
the nodes.

For example, with this piece of the example:





 

  Arcane Lighthouse 

  Land 

  2014 



To get the atomic value of the node year and assign it to the variable yearmem, 
I do it like this:



yearmem: = tree xpath: '/ cardset / card / year'.



But it fails. How do I get the 2014 value?



Thank you

Oswall





De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de oswall arguedas 
mailto:oswal...@hotmail.com>>
Enviado: miércoles, 11 de julio de 2018 20:17:55
Para: pharo-users@lists.pharo.org
Asunto: Re: [Pharo-users] XML support for pharo



Thanks Franz and Monty. I'm working on it, everything is going very well.

The feedback when I master it.



Oswall







De: Pharo-users 
mailto:pharo-users-boun...@lists.pharo.org>>
 en nombre de monty mailto:mon...@programmer.net>>
Enviado: miércoles, 11 de julio de 2018 03:32
Para: pharo-users@lists.pharo.org
Asunto: Re: [Pharo-users] XML support for pharo



This is the latest version of the XML/XPath Scraping Booklet: 


Scraping HTML with XPath - 
files.pharo.org

files.pharo.org

1.6 Alargeexample • 
Siblings.Siblingsarechildnodesthathavethesameparent.Thecard-name,types,year,rarity,expansionandcardtextelementsareallsib-




___
montyos.wordpress.com


Re: [Pharo-users] XML support for pharo

2018-07-12 Thread PBKResearch
Hi Oswall

 

What sort of failure did you get? It helps with this sort of thing to
execute the code in a playground and inspect the result. 

 

One thing you need to know is that the result of xpath is almost always some
sort of XMLCollection, even when there is only one element. I would expect
the result you want if you write yearmem := (tree xpath:
‘cardset/card/year’) first.

 

Note that you should not need a slash at the start; xpath starts searching
in the children of the top node.

 

Also you do not need to give every step of the hierarchy; you can always
skip levels provided the result specifies a unique route to the node you
want. So in this case you can write:

 

yearmem := (tree xpath: ‘//year’) first.

 

Hope this helps

 

Peter Kenny

 

From: Pharo-users  On Behalf Of oswall
arguedas
Sent: 12 July 2018 17:09
To: pharo-users@lists.pharo.org
Subject: Re: [Pharo-users] XML support for pharo

 

Regards,

I practice with the example of the book. I can not read the atomic values of
the nodes.

For example, with this piece of the example:

 



 

  Arcane Lighthouse 

  Land 

  2014 

 

To get the atomic value of the node year and assign it to the variable
yearmem, I do it like this:

 

yearmem: = tree xpath: '/ cardset / card / year'.

 

But it fails. How do I get the 2014 value?

 

Thank you

Oswall

 

  _  

De: Pharo-users mailto:pharo-users-boun...@lists.pharo.org> > en nombre de oswall arguedas
mailto:oswal...@hotmail.com> >
Enviado: miércoles, 11 de julio de 2018 20:17:55
Para: pharo-users@lists.pharo.org  
Asunto: Re: [Pharo-users] XML support for pharo 

 

Thanks Franz and Monty. I'm working on it, everything is going very well.

The feedback when I master it.

 

Oswall

 

 

  _  

De: Pharo-users mailto:pharo-users-boun...@lists.pharo.org> > en nombre de monty
mailto:mon...@programmer.net> >
Enviado: miércoles, 11 de julio de 2018 03:32
Para: pharo-users@lists.pharo.org  
Asunto: Re: [Pharo-users] XML support for pharo 

 

This is the latest version of the XML/XPath Scraping Booklet:
 


 
 Scraping HTML with XPath - files.pharo.org

files.pharo.org

1.6 Alargeexample •
Siblings.Siblingsarechildnodesthathavethesameparent.Thecard-name,types,year,
rarity,expansionandcardtextelementsareallsib-




___
montyos.wordpress.com



Re: [Pharo-users] XML support for pharo

2018-07-12 Thread oswall arguedas
Regards,
I practice with the example of the book. I can not read the atomic values of 
the nodes.
For example, with this piece of the example:


 
  Arcane Lighthouse 
  Land 
  2014 

To get the atomic value of the node year and assign it to the variable yearmem, 
I do it like this:

yearmem: = tree xpath: '/ cardset / card / year'.

But it fails. How do I get the 2014 value?

Thank you
Oswall



De: Pharo-users  en nombre de oswall 
arguedas 
Enviado: miércoles, 11 de julio de 2018 20:17:55
Para: pharo-users@lists.pharo.org
Asunto: Re: [Pharo-users] XML support for pharo


Thanks Franz and Monty. I'm working on it, everything is going very well.
The feedback when I master it.

Oswall




De: Pharo-users  en nombre de monty 

Enviado: miércoles, 11 de julio de 2018 03:32
Para: pharo-users@lists.pharo.org
Asunto: Re: [Pharo-users] XML support for pharo

This is the latest version of the XML/XPath Scraping Booklet: 

Scraping HTML with XPath - 
files.pharo.org
files.pharo.org
1.6 Alargeexample • 
Siblings.Siblingsarechildnodesthathavethesameparent.Thecard-name,types,year,rarity,expansionandcardtextelementsareallsib-




___
montyos.wordpress.com



Re: [Pharo-users] Naming parameters - conventions?

2018-07-12 Thread Tim Mackinnon
Having refreshed my memory by rereading that section of the style book - I see 
the source of my discomfort... I don’t find the guidelines on parameters very 
strong - and I think (like others) I side more with guideline 25 most of the 
time where it’s sensible (not just for multiple similar parameters).

Thus my preference seems to be for semantic typed naming eg:

fullNameString, sourceCollection, ageNumber (this one feels weird though), 
indexingInteger

I’m still a little unsure by using a/an as a prefix when doing semantic typed 
naming  - I think the style book is suggesting that prefix is for typed names 
(exclusively?).

I think the risk of collision with inst var names is low (and guideline 9 and 
it’s introduction seem to favour semantic naming for inst vars anyway) but I do 
recall once seeing someone use a prefix “my” on all inst vars. That was kind of 
cute, and seemed to read ok - and sort of encouraged you to add the 
setter/getter (without my) when needed. But maybe safer to avoid that 
convention I’m guessing?

Tim 

Sent from my iPhone

> On 12 Jul 2018, at 12:27, Tim Mackinnon  wrote:
> 
> Sounds like what I’ve been doing is what others do too - I just wasn’t sure 
> if my memory had served me well. It was great to be reminded about some of 
> the subtleties though - hadn’t thought about a/an stopping inst var 
> collisions.
> 
> I actually have an original copy of that style book, I was working at OTI at 
> the time and knew Suzanne and Dave and we were all given a copy (probably 
> worth a quick skim again)
> 
> Thanks everyone
> 
> Tim
> 
> Sent from my iPhone
> 
>> On 12 Jul 2018, at 11:09, Erik Stel  wrote:
>> 
>> In the day, I learned from Smalltalk with Style:
>> http://sdmeta.gforge.inria.fr/FreeBooks/WithStyle/SmalltalkWithStyle.pdf
>> 
>> On PDF-page 13 naming starts. On PDF-page 29 parameter names are explained
>> (but refers back to typed names for example). Naming ends at PDF-page 35. So
>> quite elaborate explanation of naming ;-).
>> 
>> In practice I also mix typed names (aCollection), semantic names (addresses)
>> and a combination (anAddressCollection). I prefer the combination except for
>> trivial situations or when the (class and) method name provide(s) enough
>> context (name: aString). This later might in itself be less trivial if the
>> context get broader than class and method (name).
>> 
>> @Tim, the book might be useful for more than just naming since it covers
>> quite some ground.
>> 
>> 
>> 
>> 
>> --
>> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 
> 




[Pharo-users] Pharo TechTalk at 5pm (UTC+2)

2018-07-12 Thread Serge Stinckwich
I will start my techtalk at 5pm (UTC+2) about Pharo:
https://association.pharo.org/event-2973748

on Youtube live:
https://www.youtube.com/channel/UCtelfhEzvzvsNjXrGesm2fA

Questions on Discord, channel #techtalk: http://discord.gg/Sj2rhxn

Thank you.
-- 
Serge Stinckwich
UMI UMMISCO 209 (SU/IRD/UY1)
"Programs must be written for people to read, and only incidentally for
machines to execute."http://www.doesnotunderstand.org/


Re: [Pharo-users] Naming parameters - conventions?

2018-07-12 Thread Esteban A. Maringolo



On 11/07/2018 21:21, Sean P. DeNigris wrote:
> Paul DeBruicker wrote
>> It also seems like a "how much milk do you like in your coffee?" choice
>> where the tradeoffs between one vs the other isn't high and the code in
>> action will let you know whether you've got it right.   
> 
> +1. I also use both. My heuristic is for shorter methods, and methods with
> one argument, I tend to lean toward fullNameString and when I need to
> differentiate multiple arguments or reference the arg way down in a method
> (probably a good sign to refactor) I lean the other way. But I think Paul
> said it best that it's probably more a personal style/aesthetic choice than
> anything worth spending a lot of energy on.

+1 to both.

Although a in method like: #setFirstName:lastName: I usually use
firstNameString and lastNameString respectively, mostly to not clash
with instance variables firstName and lastName.

Another criteria is to never name a parameter as aSomething if Something
isn't a class (and of course the class of the passed argument). The same
applies to #asSomething.

And _never_ use anObject as name, unless it really can hold any class of
object.


-- 
Esteban A. Maringolo



Re: [Pharo-users] Naming parameters - conventions?

2018-07-12 Thread Tim Mackinnon
Sounds like what I’ve been doing is what others do too - I just wasn’t sure if 
my memory had served me well. It was great to be reminded about some of the 
subtleties though - hadn’t thought about a/an stopping inst var collisions.

I actually have an original copy of that style book, I was working at OTI at 
the time and knew Suzanne and Dave and we were all given a copy (probably worth 
a quick skim again)

Thanks everyone

Tim

Sent from my iPhone

> On 12 Jul 2018, at 11:09, Erik Stel  wrote:
> 
> In the day, I learned from Smalltalk with Style:
> http://sdmeta.gforge.inria.fr/FreeBooks/WithStyle/SmalltalkWithStyle.pdf
> 
> On PDF-page 13 naming starts. On PDF-page 29 parameter names are explained
> (but refers back to typed names for example). Naming ends at PDF-page 35. So
> quite elaborate explanation of naming ;-).
> 
> In practice I also mix typed names (aCollection), semantic names (addresses)
> and a combination (anAddressCollection). I prefer the combination except for
> trivial situations or when the (class and) method name provide(s) enough
> context (name: aString). This later might in itself be less trivial if the
> context get broader than class and method (name).
> 
> @Tim, the book might be useful for more than just naming since it covers
> quite some ground.
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 




Re: [Pharo-users] Naming parameters - conventions?

2018-07-12 Thread Erik Stel
In the day, I learned from Smalltalk with Style:
http://sdmeta.gforge.inria.fr/FreeBooks/WithStyle/SmalltalkWithStyle.pdf

On PDF-page 13 naming starts. On PDF-page 29 parameter names are explained
(but refers back to typed names for example). Naming ends at PDF-page 35. So
quite elaborate explanation of naming ;-).

In practice I also mix typed names (aCollection), semantic names (addresses)
and a combination (anAddressCollection). I prefer the combination except for
trivial situations or when the (class and) method name provide(s) enough
context (name: aString). This later might in itself be less trivial if the
context get broader than class and method (name).

@Tim, the book might be useful for more than just naming since it covers
quite some ground.




--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Request for Windows test

2018-07-12 Thread Jan Blizničenko
Hi

Windows 10 1803 64bit:
Running via DrGeo.bat, Pharo itself starts (I have SmartScreen disabled),
but when opened I receive multiple errors in (gray) info messages and I do
not see a way to use you app (if there should be any opened GUI or world
menu items).

2018-07-12.png   

Jan



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html



Re: [Pharo-users] Request for Windows test

2018-07-12 Thread Christophe Demarey
I also had the problem with PharoLauncher.
OS X and now Windows expect to have signed applications else they do not trust 
it.
If Dr Geo is signed with a proper certificate, it should solve the issue.

> Le 11 juil. 2018 à 17:05, Ben Coman  a écrit :
> 
> On 11 July 2018 at 18:19, Hilaire  wrote:
>> Hi,
>> 
>> A Windows user reported to me difficulty to start Dr. Geo.
>> 
>> Although I had success to run it in a Windows system, I will be glad if
>> some of you would mind testing it on their windows system, and report to
>> me success or failure along the used Windows system.
> 
> On Windows 10...
> when I doubleclick "DrGeo.bat" I get a message...
>Windows protected your PC. Windows Defender SmartScreen prevented an
>unrecognised app from starting. Running this app might put your PC at risk.
> 
> and after clicking "More Info"
>Application: DrGeo.bat
>Publisher: Unknown publisher
> 
> and I could click "Run anyway"
> after which DrGeo opened fine, and I could "Open a sketch" > "Examples", 
> etc...
> 
> cheers -ben
> 




Re: [Pharo-users] Naming parameters - conventions?

2018-07-12 Thread monty
The primary trade-off is between Type Suggesting vs. Role Suggesting parameter 
names.

For example, aString and aSymbol tell us only what type of object the parameter 
expects, while aName and aTitle tell us the *role* (or purpose) of the 
parameter, with the expected type hopefully obvious.

You can combine the two, like aNameString, or aTitleSymbol, and this should be 
done where necessary to prevent confusion. For example, in XMLParser I have a 
URI class, XMLURI, and to avoid confusion over parameters that accept both 
XMLURIs and URI strings, I use anXMLURIOrURIString.

Using "a" and "an" prefixes is always a good idea, because it prevents 
collisions with instance variables, allows you to tell at a glance that an 
identifier is a parameter and not an inst var, and it produces more natural, 
readable message signatures, like "copyFrom: anOldPath to: aNewPath".

> Sent: Wednesday, July 11, 2018 at 6:24 PM
> From: "Tim Mackinnon" 
> To: "Pharo Users Newsgroup" 
> Subject: [Pharo-users] Naming parameters - conventions?
>
> Hi everyone, something I’ve meant to ask over the years, as I’ve seen lots of 
> variation and was taught something else in the day...
> 
> What is the suggested way of naming parameters?
> 
> I was taught {“a”/“an”}DataType, so it would be:
> 
> #name: aString
> 
> Which works ok (although falls apart if you refactor as the tools don’t 
> interpret it - although I guess could be improved to do so)
> 
> However often I find myself wanting to communicate a bit better as in:
> 
> #name: fullNameString
> 
> Which isn’t strictly a datatype (and I tend to leave out the a/an when I do 
> this). But it feels a bit off piste and it does make me consider whether my 
> selector is named badly and should be:
> 
> #fullName: aString
> 
> Which takes me back to the convention I learned long ago.
> 
> This said however, we often need to match similar #on:do, #in: generic 
> selector names and then it’s not always obvious the intent of parameter.
> 
> Any thoughts to share?
> 
> I ask because for exercism, we should try and set a good example.
> 
> Tim
> 
> Sent from my iPhone
> 
> 
___
montyos.wordpress.com



Re: [Pharo-users] Naming parameters - conventions?

2018-07-12 Thread john pfersich
+100

//
Encrypted email at jgpfers...@protonmail.com
Web: www.objectnets.net and www.objectnets.org

> On Jul 11, 2018, at 18:20, Richard Sargent 
>  wrote:
> 
> Tim Mackinnon wrote
>> Hi everyone, something I’ve meant to ask over the years, as I’ve seen lots
>> of variation and was taught something else in the day...
>> 
>> What is the suggested way of naming parameters?
>> 
>> I was taught {“a”/“an”}DataType, so it would be:
>> 
>> #name: aString
>> 
>> Which works ok (although falls apart if you refactor as the tools don’t
>> interpret it - although I guess could be improved to do so)
>> 
>> However often I find myself wanting to communicate a bit better as in:
>> 
>> #name: fullNameString
>> 
>> Which isn’t strictly a datatype (and I tend to leave out the a/an when I
>> do this). But it feels a bit off piste and it does make me consider
>> whether my selector is named badly and should be:
>> 
>> #fullName: aString
>> 
>> Which takes me back to the convention I learned long ago.
>> 
>> This said however, we often need to match similar #on:do, #in: generic
>> selector names and then it’s not always obvious the intent of parameter.
>> 
>> Any thoughts to share?
> 
> In my opinion, worth what you pay for it, the goal is to communicate and set
> the reader's expectations. You want the reader to know what kind of
> behaviours the argument should provide.
> 
> So, when creating a setter method, it is sufficient to name the argument
> "aString". The method selector is telling you the purpose of the string. The
> argument is telling you that it is no more and no less than a string. It
> isn't trying to convey that there is a structure to that string. Just that
> the name is a string.
> 
> Likewise, when naming a parameter for a more complex method you may need to
> say more, depending on what the selector itself says. 
> e.g. #blahBlahBlahWithName: can easily work with "aString". 
> 
> Conversely, a method that takes multiple string arguments needs to
> effectively distinguish them from each other.
> e.g. #blahBlahBlahWithName:address:telephone: needs to do better than Dr.
> Seuss (aString1, aString2, etc.) In this example, I tend to use e.g.
> "nameString", "addressString", and "telephoneString". This conveys the
> purpose of each argument and identifies the behaviours one should expect.
> 
> I am *not* a fan of argument names like "aNameString", since that can
> mislead readers into expecting name-specific behaviours from the argument.
> 
> 
> 
>> I ask because for exercism, we should try and set a good example.
>> 
>> Tim
>> 
>> Sent from my iPhone
> 
> 
> 
> 
> 
> --
> Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
> 


Re: [Pharo-users] Naming parameters - conventions?

2018-07-12 Thread Tim Mackinnon
This payer/payee example is exactly what I was thinking about, and I’ve tended 
to do as Dennis suggests and use a type suffix on the name - and wondered if 
that was what most people do.

I’ll certainly check what Andreas says on the topic.

Tim 

Sent from my iPhone

On 12 Jul 2018, at 06:31, Dennis Schetinin  wrote:

>> It depends on the current level of abstraction. If you are operating at a 
>> much higher level, say transfering 
>> money between two accounts, you would do:
>>  
>> #transferMoney from: aPayer to: aPayee
>> 
>> where both aPayer and aPayee could be anAccountHolder
> Why not 
> 
> #transferMoney from: payerAccountHolder to: payeeAccountHolder
> 
> ?
> 
> And how does the naming depend on level of abstraction?
> 
> Practically, when a (potential) user of the method is going to invoke it, one 
> of the first questions will be 'what kind of object I can/should pass 
> there?'. With the classic Smalltalk convention it is quite obvious (though, 
> the convention is not perfect itself and sometimes/often is not enough). With 
> the  aPayer and aPayee the user will have to read the method code to learn 
> that. 
> 
> 
> 
> --
> 
> Best regards,
> 
> 
> 
> Dennis Schetinin
> 
> 
> 
> чт, 12 июл. 2018 г. в 6:29, K K Subbu :
>> On Thursday 12 July 2018 03:54 AM, Tim Mackinnon wrote:
>> > I was taught {“a”/“an”}DataType, so it would be:
>> > 
>> > #name: aString
>> 
>> It depends on the current level of abstraction. At the lowest levels, it 
>> is okay to use basic types like aString since classes (types) define 
>> behavior. If you are operating at a much higher level, say transfering 
>> money between two accounts, you would do:
>> 
>> #transferMoney from: aPayer to: aPayee
>> 
>> where both aPayer and aPayee could be anAccountHolder
>> 
>> Essentially, the idea to keep the message part as close to normal 
>> statements as possible.
>> 
>> The book "A Mentoring Course Smalltalk" by Andres Valloud covers this 
>> aspect in great detail.
>> 
>> Regards .. Subbu
>> 
>>