Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread p...@highoctane.be
Because I grew tired of the isEmpty ifTrue: [ ] all over the place. And ifEmpty has the right semantics for my use cases (like assignment). I do not really care about portability, I am doing Pharo only. Phil On Mon, Oct 31, 2016 at 5:30 PM, jtuc...@objektfabrik.de < jtuc...@objektfabrik.de> wrot

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread jtuc...@objektfabrik.de
Phil, I see your point but disagree. I don't use Pharo regularly, so I cannot currently check if the implementation around this emptiness check is complete. With complete I mean that following your logic, theere should be at least implementations of ifEmpty: ifNotEmpty: ifEmpty:ifNotEmpty:

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread Denis Kudriashov
2016-11-01 11:31 GMT+01:00 jtuc...@objektfabrik.de : > ifEmpty: > ifNotEmpty: > ifEmpty:ifNotEmpty: > It is already in image and feels exactly like ifNil:/ifNotNil. For other cases I think it is too much.

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread jtuc...@objektfabrik.de
Am 01.11.16 um 11:36 schrieb Denis Kudriashov: 2016-11-01 11:31 GMT+01:00 jtuc...@objektfabrik.de >: ifEmpty: ifNotEmpty: ifEmpty:ifNotEmpty: It is already in image and feels exactly like ifNil:/ifNotNil. For othe

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread stepharo
more than that. You can define code in Boolean in terms of the abstract methods and such code will be executed on instance of True and False using False and True methods. You are learning now for real what is OOP. So your teacher is a really smart teacher because he chose to expose you to o

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread Esteban Lorenzano
> On 1 Nov 2016, at 11:39, jtuc...@objektfabrik.de wrote: > > Am 01.11.16 um 11:36 schrieb Denis Kudriashov: >> >> 2016-11-01 11:31 GMT+01:00 jtuc...@objektfabrik.de >> > >: >> ifEmpty: >> ifNotEmpty: >> ifEmpty:ifNotEmpty: >> >>

Re: [Pharo-users] Image freezes on Linux if it was previously saved on Windows

2016-11-01 Thread Sean Glazier
did you get a fix for this? I am seeing this in pharo 5 image and I have not seen a fix yet -- View this message in context: http://forum.world.st/Image-freezes-on-Linux-if-it-was-previously-saved-on-Windows-tp4903258p4921007.html Sent from the Pharo Smalltalk Users mailing list archive at Nabb

Re: [Pharo-users] [ANN] Pharo By Example 5.0

2016-11-01 Thread stepharo
I would like to know if you have this file on your HD. Else I will remove the reference to it. Le 30/10/16 à 22:41, Dimitris Chloupis a écrit : are you asking me a question or request ? On Sun, Oct 30, 2016 at 11:39 PM stepharo > wrote: I'm looking for the

Re: [Pharo-users] [ANN] Pharo By Example 5.0

2016-11-01 Thread Dimitris Chloupis
No I don't unless it was part of the commits then is in git history and everyone who has cloned the repo has it. On Tue, 1 Nov 2016 at 15:51, stepharo wrote: > I would like to know if you have this file on your HD. > > Else I will remove the reference to it. > > Le 30/10/16 à 22:41, Dimitris Chl

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread Igor Stasenko
On 1 November 2016 at 11:31, jtuc...@objektfabrik.de < jtuc...@objektfabrik.de> wrote: > Phil, > > > I see your point but disagree. > I don't use Pharo regularly, so I cannot currently check if the > implementation around this emptiness check is complete. > > With complete I mean that following yo

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread Joachim Tuchel
Am 01.11.2016 um 12:21 schrieb Esteban Lorenzano: On 1 Nov 2016, at 11:39, jtuc...@objektfabrik.de wrote: are they also implemented in UndefinedObject? no, because empty != nil I know. That's exactly the reason why I never use isEmptyOrNil 😉 Fun aside:

[Pharo-users] Keeping data with an application

2016-11-01 Thread sergio ruiz
Hey, all.. One of the things that I find SUPER necessary when developing an app is to be able to grab data from somewhere else and quickly and easily work on it from my machine. For instance, when I get a bug report that smells funny, the first thing i sometimes do is run a script that grabs t

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread p...@highoctane.be
Hey Igor is around \o/ BTW using size = 0 triggers a code critic telling you to use isEmpty. Maybe there is a rule of isEmpty ifTrue: :-) I think that there could be a lot of convenience methods in the base image. They can be in an extension protocol, no issue. STON and gt have a ton of these. I

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread Esteban A. Maringolo
2016-11-01 12:39 GMT-03:00 Joachim Tuchel : > I know. That's exactly the reason why I never use isEmptyOrNil > > Fun aside: how often do we need to check if some code returns nil or an empty > collection. My question was aimed at exactly this: in practice ifEmptyOrNil: > would probably be even m

Re: [Pharo-users] How does Boolean ifTrue work?

2016-11-01 Thread Igor Stasenko
On 1 November 2016 at 17:00, p...@highoctane.be wrote: > Hey Igor is around \o/ > Hey heya! :) > BTW using size = 0 triggers a code critic telling you to use isEmpty. > > Maybe there is a rule of isEmpty ifTrue: :-) > > I think that there could be a lot of convenience methods in the base > image

Re: [Pharo-users] Keeping data with an application

2016-11-01 Thread Dale Henrichs
Sergio, You might take a look at the talk I gave on Voyage/Tugrik at ESUG(slides[1], video[2]). The project is in a functional, but roughed out stage --- but the main idea behind it is that with GemStone as the db serve, you are dealing with Smalltalk objects on both the client and server ...

Re: [Pharo-users] Keeping data with an application

2016-11-01 Thread sergio ruiz
Okay.. is Voyage ready to rock and/or roll? is today your birthday? for some reason, i got a notification of several things on my machine today.. one of those being your birthday.. if so, happy birthday! if not.. happy un-birthday! On November 1, 2016 at 2:16:57 PM, Dale Henrichs (dale.henri

Re: [Pharo-users] Keeping data with an application

2016-11-01 Thread Dale Henrichs
On 11/1/16 12:28 PM, sergio ruiz wrote: Okay.. is Voyage ready to rock and/or roll? Voyage is definitely ready to rock and roll ... Voyage/Tugrik is ready to be rocked ... it is functional and passes the tests (on Pharo5.0). For this project, I want to make progress based on feedback from us