Stéphane Ducasse wrote:
> refrain from using respondTo:
> I make code difficult to evolve and can introduce vicious bugs.
Steph, would you say more about this? It’s something I’ve been wondering about.
I was recently reading the Strategy pattern in the Smalltalk Companion to the
GOF book. On
Cool :)
Wow! What a trip down memory lane and I learned some I didn’t know as well.
This thread is inspiring in itself :) And I agree with all those named and that
there are many more unnamed!
I thought the question was how to install/duplicate the trait methods on each
client (maybe for a deployment image without Traits). I had the same question.
Doesn’t the suggestion remove the trait completely or am I missing something?
Thanks! Sounds cool…
> Well, I guess I don't belong here anymore…
Please don't let one personality define our community. I'm sure there are a lot
of people, like me, who appreciate your perspective and efforts. Steph has said
the same thing to me multiple times about talking vs. action and I've worked on
hundreds o
Marcus Denker wrote:
> There are experiments around, for example
>
> https://github.com/dvmason/Pharo-Functional
And https://github.com/juliendelplanque/Iterators, which let’s you do for
example:
```
iterator := #(1 2 3) iterator.
iterator
| [ :x | x * 2 ] collectIt
| [ :object
ComplexCondition as described in [Andres Valloud, "A Mentoring Course on
Smalltalk"](http://www.lulu.com/product/paperback/a-mentoring-course-on-smalltalk/3788890)
is available at http://www.squeaksource.com/ComplexCondition.html
With it, you can do something like:
```
^[a includes: $.], [b inc
I had some chaining that was getting too complex due to many nil checks, so I
started to refactor using a Null Object.
However, I’m struggling a bit with the refactor due to inlining. Since #ifNil:
variants might be inlined, it seems that something like:
anObject with a long chain of messag
> To start with, why do you CARE whether a particular
> method is inlined or not?
I care because it makes “everything is a message” a lie! And I suspect (no
proof and could be wrong) it’s an optimization that only made sense with the
hardware constraints of 40+ years ago. Arguing against prematu
> if you are using the null object pattern then you should not write those
> checks (ifNil:ifNotNil:, isNil, isNotNil). you should send the message to
> an instance of the null object and that object should decide what to do.
> just an opinion.
I agree as a general rule, but it can get complicated
> My *concern* with inlining is that since it is designed to short-circuit
> dynamic method lookup, it is impossible to call a *different* implementation.
> That is, you lose the opportunity to have the *receiver* decide how to
> respond to the message. You may think of it as a message, but the
> My chief concern is that I am a bear of very little brain,
> and if you change the meaning of #isNil to anything at all
> other than "is the receiver identical to nil" you *WILL*
> (not may) confuse me.
I can understand your probably well-justified concern that power can always be
misused. I
> What you can do is turning it off globally in the setting (all compiler
> option are listed there)
>
> But take care: we can not recompile the image without optimzations as this
> adds intererrupt possibilities to code that was not
> interruptable before, which breaks the code in for process sw
> I feel like you’ve latched onto something that is genuinely a non problem…
I wouldn’t call complexity and lack of consistency a “non problem”, but it
sounds like for you the practical implications outweigh my
seemingly-somewhat-ideological/niche concerns. Is that a fair summary? In any
case,
Great news :)
This is exciting :) I’m interested in helping. Where can we talk more about
specifics? Maybe enable Discussions in the GH repo?
Great. I started a thread there to continue discussing: [Pair Programming
Opportunity!](https://github.com/PortingPDFtalk/PharoPDFtalk/discussions/2)
I’m not fully understanding the issue.
Is it that:
* The repos are violating the library license (other than the erroneous MIT
license, which could easily be updated)?
* The fact that OmniBase is not open source violates a principle you have in
continuing to host it?
If the latter, may I sug
I just load the baseline with no version specified. If that works for you,
maybe we should release another version…
Can you use
[SortFunctions](https://github.com/pharo-open-documentation/pharo-wiki/blob/master/General/SortingCollections.md#sort-functions
"SortFunctions") instead of blocks with the SortedCollections? This is what I
finally figured out to do with Fuel most of the time after lots of pain
Do we have to subscribe to read the archive? I followed the link but didn’t see
an archive link
I clicked on the link and got an error that the page is private or doesn’t
exist. Also, what kind of help are you looking for?
How would I test whether a string is a valid absolute URL? At first, I thought
to attempt a conversion and catch the error, but then I realized that invalid
URLs don’t always cause an error e.g. missing scheme and host return relative
URLs with the entire string placed in the segments.
Done! Thanks for the push :)
currently based on GToolkit (itself based on Pharo). There’s no reason the core
model couldn’t run on plain Pharo without GT, but it’s been a long time
(several years) since I’ve put any love into Morphic UI components.
HTH,
Sean
Your work is intriguing. I think it would be good to video chat at some point.
There are several other people that come to mind that are interested in this
space as well. I’m also on Pharo discord and GT discord (which has a PKM
channel).
Other responses inline…
Siemen Baader wrote:
> We coul
I’m happy to answer any questions about Simple Persistence. It is a nice
framework around (potentially any) serializer. It’s meant to be pluggable but
currently uses Fuel out of the box. You just tell it what classes to persist
and then create two methods per class to handle materialization/seri
OK now my cell is finally working again! I can now be reached at 603 957
2705
Kind Regards,
Sean Glazier
On Wed, Dec 20, 2017 at 2:57 PM, Stephane Ducasse
wrote:
> great news.
> And this is super great that you plan to work on different platforms!
> THANKS
>
> On Wed, Dec 2
>> please ignore
___
Pharo-users mailing list
Pharo-users@lists.pharo.org
http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org
Nabble is again mirroring the (now new) dev and user lists :)
___
Pharo-users mailing list
Pharo-users@lists.pharo.org
http://lists.pharo.org/mailman/listinfo/pharo-users_lists.pharo.org
)>>doesNotUnderstand: #subwidget:
After I added it, I got:
DNU SpecLayoutAddWithSpec(Object)>>doesNotUnderstand: #layoutFrame:
After I added that, I got:
UndefinedObject(Object)>>doesNotUnderstand: #asSymbol
SpecInterpreter>>interpretASpec:
What do you think?
Thanks,
Sean
Thanks for the feedback everyone!
A few enhancements:
- Close on escape
- Select next on down arrow when open
- Show all on down arrow when closed
- Select previous on up arrow
- Accept on enter - requires an override in PluggableTextFieldMorph, but I
think the change can be integrated in Core
-
I wrote a tiny utility to work with Gmail contacts. It is very basic and just
maps an export file in the Outlook format to GmailContact objects. It doesn't
support the Google CSV format - the field order and names are different, and
the file is UTF16-encoded. Enjoy!
Gofer it
smalltalkhu
you!
Kind Regards,
Sean Glazier
On Thu, Jul 21, 2016 at 6:04 AM, Norbert Hartl wrote:
> I uploaded an old implementation of mine. It is not fully implemented but
> usable for the easy case.
>
> http://smalltalkhub.com/#!/~NorbertHartl/JSONWebToken
>
> Hope it helps,
subject at ESUG.
I am wondering what my workflow needs to be.
Kind Regards,
Sean Glazier
Yes bit bucket is the JIRA tools repo manager and you can create git
repositories there. I am wondering if I can publish directly to it or have
to first publish to GitHub and then import or pull my changes into
bitbucket that does have an import feature for GitHub
Kind Regards,
Sean Glazier
still trying to figure out how to get a commit to a git repository hosted
of bit buck to commit etc. The customer set it there not me. I just have to
get it to work ;-)
Sean
Kind Regards,
Sean Glazier
On Fri, Jul 22, 2016 at 5:45 PM, Norbert Hartl wrote:
> Hey Johan,
>
> didn'
uide>>visitPresenter:
WAVisiblePresenterGuide(WAPainterVisitor)>>visitComponent:
PRAdminSetupChooseDistribution(WAComponent)>>accept:
WAVisiblePresenterGuide>>visitDecoration:
WAAnswerHandler(WADecoration)>>accept:
WAVisiblePresenterGuide(WAPainterVisitor)>>visitDecorationsOfCompo
the repository window is below.
[image: Inline image 1]
Thank you for your help and if you can point me to where I need to added a
break point I can provide more information :-)
Kind Regards,
Sean Glazier
On Mon, Jul 25, 2016 at 12:37 AM, Dale Henrichs <
dale.henri...@gemtalksystems.
t;'
,
(MCFileTreeFileUtils current directoryPathString: aDirectory)
, '" ' , aCommandString;
yourself.
command waitForExit.
self assert: command isRunning not.
r := command upToEnd.
command exitCode > 0
ifTrue:
[
| errorString |
errorString := command errorUpToEnd.
errorString notEmpt
Morph(MenuItemMorph)>>handleMouseUp:
MouseButtonEvent>>sentTo:
ToggleMenuItemMorph(Morph)>>handleEvent:
MorphicEventDispatcher>>dispatchDefault:with:
MorphicEventDispatcher>>handleMouseUp:
MouseButtonEvent>>sentTo:
[ ^ anEvent sentTo: self ] in MorphicEventDispatcher>>dispatchEvent:with:
in Block: [ ^ anEvent sentTo: self ]
[0m
Kind Regards,
Sean Glazier
s that is my ignorance showing. I have not used Pharo against a Git
repo before.
Kind Regards,
Sean Glazier
,
Sean Glazier
On Mon, Jul 25, 2016 at 7:13 AM, Norbert Hartl wrote:
> Does anyone know some code or person that did something with UPnP/IGD in
> pharo?
>
> thanks,
>
> Norbert
>
>
>
>
I look forward to using Iceberg !
Kind Regards,
Sean Glazier
On Mon, Jul 25, 2016 at 1:28 PM, Peter Uhnak wrote:
> Hi Juraj,
>
> I've finally forced myself to finish a guide on using gitfiletree:
> https://www.peteruhnak.com/blog/2016/07/25/how-to-use-git-and-github
we can do more powerful things
with the repository. We can browse the class without loading it but that
gets us only so far.
Just my 0.02 ;-)
Kind Regards,
Sean Glazier
On Mon, Jul 25, 2016 at 1:28 PM, Peter Uhnak wrote:
> Hi Juraj,
>
> I've finally forced myself to finish a
Hi,
I tried to publish fixes to the Magritte XML package and the Smalltalk hub
is not working. I published off to our own repository. I there an ETA on
its getting fixed or an alternative repository to publish to?
Kind Regards,
Sean Glazier
Hi,
I have been trying to get glorp using active record working in pharo 5.
I have a descriptor class for it and the classes inherit from active Record.
I describe the table as:
tableForAnswer: aTable
| vistorId questionId |
(aTable createFieldNamed: 'id' type: platform serial) bePrimaryKey.
que
ON DELETE SET NULL
)
WITH (
OIDS=FALSE
);
ALTER TABLE answers
OWNER TO sean;
COMMENT ON COLUMN answers.optionid IS 'options for licence scans can
havedirect answers for them so we nee to add pointers and backpointer to
them in this table as well';
-- Index: answers_questionid_idx
--
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
Do you need more smalltalkers on your team who have real-time control
experience? I would love to contribute. I agree more windows support is
needed
My linked in profile is at https://www.linkedin.com/in/seanglazier
Sean Glazier
On Mon, Jun 18, 2018 at 3:29 PM wrote:
> Hi all,
>
>
&
Moved from Pharo-Dev…
> Please let me know how it is going
I’m at the point where I seem to have a basic understanding of the library and
I’m ready to integrate into an app I’m writing. Here are a few questions, which
I put into an issue [1] to fold back into the docs when the conversation is
“
ere
saved as part of the package containing the extended class, as well as the
package containing the Trait itself. Ugh. Was this ever fixed by Pharo 6?
-----
Cheers,
Sean
--
View this message in context:
http://forum.world.st/Traits-method-flatten-tp4941799p4950378.html
Sent from the Pharo Sma
I have a CSV file that has several subsections, each with its own format.
What I'd like to do is parse one, reset the NeoCSVReader, set it up for the
next section, and continue. I didn't see an API for this. Is it possible?
Thanks.
-
Cheers,
Sean
--
View this message in cont
Do we have something like a merge UI that can be used on an underlying model
that may have nothing to do with VCS?
-
Cheers,
Sean
--
View this message in context:
http://forum.world.st/Adaptable-Tree-Based-Cherry-Pick-Tool-tp4957766.html
Sent from the Pharo Smalltalk Users mailing list
Sven Van Caekenberghe-2 wrote
> creating new readers for each section is one option
Thank you both. This worked quite well (23 LOC) vs. parsing the raw file
with NeoCSV and then trying to clean up and interpret the resulting arrays
(126 LOC).
-
Cheers,
Sean
--
View this message in cont
How do I tell Petit Parser to parse a string of certain allowable characters
as long as the final result isn't a particular string? E.g. consume an
identifier as long as it's not 'Baz' or 'Bar'
Thanks
-
Cheers,
Sean
--
View this message in context:
http://fo
vonbecmann wrote
> did you try with negate?
That is the standard trick with PP, but the problem here is that I'm trying
to say, not just "anything which is not Y", but "any string of these
characters as long is it doesn't also match Y"
-
Cheers,
Sean
--
Vi
end.
parser parse: ' Paul Jr'.
parser parse: ' Paul'.
parser parse: ' Jr'.
This really had me baffled. Thanks again!!
-
Cheers,
Sean
--
View this message in context:
http://forum.world.st/PetitParser-Parse-X-as-long-as-it-s-not-Y-tp4958895p4959268.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Peter Kenny wrote
> You may need to post-process the parse to get what you
> want.
Good point. I omitted several ` ==> #second` in several places for
readability on the list, but we should mention that for posterity. Also, duh
`gen negate and` should be `gen not`!
-
Cheers,
Sea
etc.
I love this idea! Take a task no one is particularly invested in and show
off Pharo's advantages by adding real value to the team. Very sneaky... I
mean effective... indeed!
-
Cheers,
Sean
--
View this message in context:
http://forum.world.st/Ann-Blog-entry-about-using-Pharo-Sma
mitiveFetchMourner is missing. Please upgrade your virtual
machine..."
-
Cheers,
Sean
--
View this message in context:
http://forum.world.st/Re-PharoJS-tp4952267p4962614.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
Tim Mackinnon wrote
> On OSX, you hold the Shift and Alt keys and then click on something.
There is also `Morph cycleHalosBothDirections: true.` to re-enable non-Shift
(i.e. bidirectional) cycling a la Squeak
-
Cheers,
Sean
--
View this message in context:
http://forum.world.st/How-d
Pavel Krivanek-3 wrote
> In that cases I simply make them global.
It seems that a variable defined with a capitalized name in an inspector is
still local. How do you make it global? Something like: `Smalltalk globals
at: #MyVar put: expression`?
-
Cheers,
Sean
--
Sent from: h
I know we have Travis support for GH. Does anyone have glue for CI-Support in
BitBucket? I'm specifically wondering about private repos…
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Torsten Bergmann wrote
> In latest DesktopManager…
Sounds interesting! How does your project compare to TilingWindowManager?
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
so many frameworks - are
these for distinct use cases, or more like different flavors?
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
I'd like to create HTML via a DSL, like Seaside's canvas builder, but without
loading a whole web framework. Any ideas?
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
STON API?
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
So my goal is to have something which outputs HTML suitable for an email
signature based on HTML which I already have in text/file form.
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Sven Van Caekenberghe-2 wrote
> You would have to change the way the offending object get handled.
Any suggestions on how to do that? Is there a particularly good place to
hook in?
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Sven Van Caekenberghe-2 wrote
> not really a DSL
I disagree ;) It looks perfect!
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Sven Van Caekenberghe-2 wrote
> Implement...
Thanks! I added this to the wiki so we don't lose track of it:
https://github.com/svenvc/ston/wiki/Cookbook
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
haro.app and unzip 70.zip (which btw maybe should have been deleted
> during cleanup after
> the dl) to ./vms/70, the error disappears!
[1] From
http://forum.world.st/Launcher-Error-w-Pharo-7-tt4959777.html#a4960417
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Daniel BLANC wrote
> I feel like I have new negociations superpowers...
The magic of Smalltalk ha ha :)
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
hought, darn
it feels like unnecessary fragmentation here because these are all common,
well-defined concepts!
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
demarey wrote
> It is a workaround but maybe I will add a strategy to use the unzip exe if
> I can find it on the system. That should solve most problems.
> WDYT?
Sounds like a reasonable workaround for now.
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users
Craig Latta wrote
> Oh, it wasn't clear to me that this was one of Sean's requirements.
I would say "sorry" but I'm glad I wasn't clear because I learned something
cool from your reply ;)
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Any reason to pass as a flat collection of pairs rather than a collection of
associations or a dictionary? IMHO the former is less intention revealing
and potentially confusing…
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
astName, generationalPart optional)
They look the same to me. What is the difference?
Thanks!
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
ally outside the US, I think you will have some fun.
Ha ha, no doubt. I am not presuming to capture the whole domain, just an
interesting - and thankfully very limited - subset!
Thanks for all the help :)
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
- When Calypso is set to be the default browser, it would be helpful if the
World menu item changed from "Calypso Browser" to "Nautilus"
- Lack of word wrapping is becoming teeedious
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
he dependencies and have full control over a world within a world.
There seemed to be agreement in principle, but it always seemed "just around
the bend". I loaded Bloc in latest Pharo to play around, but am not quite
sure if this is yet possible.
Thanks!
-
Cheers,
Sean
--
gt; Calypso gives you the tools for this.
Aha! Cool and agreed. However, when I check the box on an existing method
and select a package, the method doesn't seem to move to the over package :/
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
e-blue-plane ideas in the past. If we had
a UI where we could sub out and control all the events/time/cursor, we would
have something unimaginably cool :)
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
ould we change it to that?
2. #hash
^ var1 hash bitXor: (var2 hash bitXor: var3 hash)
Is this implementation always safe? It's what I usually hand roll based on
what I've seen, but Andres Valloud wrote a whole (large) book on hashing, so
I've always wondered if I was missing
Denis Kudriashov wrote
> I just use RBGenerateEqualHashRefactoring for this:
I added your answer to the Pharo wiki. Is this available through the UI? If
not, maybe it should be!
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
fferent
possibilities.
I can't help on the other parts of your question, but am eager to hear any
answers!
[1] Although the beauty of Smalltalk is that there's (almost) always a way
forward (see
http://forum.world.st/Fwd-Oops-I-put-a-halt-in-a-startup-method-tp3800729.html)
[2] https://github.com/seandenigris/Small-World
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
areas of
the system into top-notch solutions which then become core parts of Pharo ha
ha ;)
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
re
say enjoy working with!
Daniel BLANC wrote
> I'll continue playing/hacking on this small app and I'll publish the end
> result.
Great! Looking forward to it. This is a great time to share even toy
projects because GitHub et al have made the effort/pain/cost so low.
-
Che
Stephane Ducasse-3 wrote
> Tx Christophe
+100. Launcher has become indispensable!
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Maybe this [1] or this [2] (the two might be the same thing)
1. http://forum.world.st/Online-Pharo-Documentation-tp3468690.html
2. http://forum.world.st/webdoc-tt3654967.html
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Sven Van Caekenberghe-2 wrote
> But the point remains, given an image and all our tools, why go to the
> web.
It seems like the value would be more as a PR tool than a development tool.
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Noury Bouraqadi-2 wrote
> The code + tests are here
> http://smalltalkhub.com/#!/~CAR/ReusableBricks/packages/Equals
I forked to https://github.com/seandenigris/Pharo-Equals with a baseline to
make it easier to try out/possibly-integrate.
-
Cheers,
Sean
--
Sent from: http://forum.wo
Steven R. Baker wrote
> I am not sure how to manage projects, or even how someone goes about
> importing this stuff.
It looks like you've already grasped package management.
The next level up in project management is Metacello, which let's you
declare the dependency relationships between packages
f the brain damage from C and C++ ha ha.
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
d todo list
-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Aliaksei Syrel wrote
> During esug Ronie told me that using UFFI-OpenGL is not the best approach.
>
Don't leave us hanging! What is the right/better approach?!
-----
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
it!
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
Tim Mackinnon wrote
> Tim Mackinnon will show…
So jealous! That sounds like an awesome presentation :)
-
Cheers,
Sean
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html
1 - 100 of 905 matches
Mail list logo