Re: [Pharo-dev] Small Methods dont need comments , true or myth ?

2013-05-17 Thread Chris Muller
On Fri, May 17, 2013 at 6:27 AM, dimitris chloupis theki...@yahoo.co.uk wrote: I really enjoy smalltalk, every small thing that I discover every day. But there is one thing that really annoys me. The bold claim that small functions do not need comments. There is of course a level of truth

Re: [Pharo-dev] Use #shouldnt:raise: only with specific errors, or evaluate the given expression directly

2013-10-25 Thread Chris Muller
We should not continue this old discussion. We've already debated this ad naseum. Thank you Pharo guys for exploring what can be done when all constraints are removed! Thank you Squeak guys for advancing in a way that caters to legacy applications. On Fri, Oct 25, 2013 at 1:25 PM, Levente

Re: [Pharo-dev] Tests with multiple processes

2013-10-29 Thread Chris Muller
Testing with real sockets, across multiple images is the only way I would trust my own networking programs. OSProcess makes that an easy, one-click affair. On Mon, Oct 28, 2013 at 5:50 PM, Norbert Hartl norb...@hartl.name wrote: I’m working on project that deals with server to server

Re: [Pharo-dev] Formatting dates

2013-10-30 Thread Chris Muller
Date today mmdd. prints '2013-10-30' :) On Wed, Oct 30, 2013 at 3:55 PM, blake dsblakewat...@gmail.com wrote: Heya, guys-- Converting a Ruby program to Pharo, and one of the things this program does is write a file out by date. The format is mmdd (which is my preferred naming

Re: [Pharo-dev] In-memory FileSystem write streams not being polymorphic

2013-11-13 Thread Chris Muller
or whatever). 2013/11/13 Chris Muller asquea...@gmail.com On Tue, Nov 12, 2013 at 7:31 AM, Nicolas Cellier nicolas.cellier.aka.n...@gmail.com wrote: It's just a matter of selecting a strategy. I've proposed two: A) create a wrapper class for legacy Stream compatibility selectors B) create

Re: [Pharo-dev] In-memory FileSystem write streams not being polymorphic

2013-11-13 Thread Chris Muller
:48, Chris Muller asquea...@gmail.com wrote: I know nothing about Xtreams but, IMO, this obsession with sterility borders on mental illness. All sort of un-needed complexity? That's overstating it a bit, don't you think? So you must really feel stressed that ALL Object's, in fact, have

Re: [Pharo-dev] Old ClassBuilder remove!

2013-11-22 Thread Chris Muller
How does this affect serialization / materialization engines like Fuel? On Thu, Nov 21, 2013 at 7:24 AM, Camille Teruel camille.ter...@gmail.com wrote: On 21 nov. 2013, at 13:44, kilon alios kilon.al...@gmail.com wrote: any links why newcomers like me should be impressed ? Whats the

Re: [Pharo-dev] Old ClassBuilder remove!

2013-11-22 Thread Chris Muller
Just two examples: - Morphic uses a dictionary to allow extensions to add attributes to the base class. This is closed-world-based-assumption thinking because I have to know in advance what parts will be extended by someone else. This should be easily changeable with slots given that slots

Re: [Pharo-dev] Nautilus no longer guards against changed methods

2013-11-25 Thread Chris Muller
On Sun, Nov 24, 2013 at 9:34 AM, Sean P. DeNigris s...@clipperadams.com wrote: Stephan Eggermont wrote We need to revert to the modal behavior In general in UIs, he best approach is to do what the user requests without hesitation, and make everything undoable. Ah, thanks for saying that.

Re: [Pharo-dev] Similarity Matrix

2013-12-15 Thread Chris Muller
On Sun, Dec 15, 2013 at 2:29 PM, Hernán Morales Durand hernan.mora...@gmail.com wrote: El 15/12/2013 13:30, Alexandre Bergel escribió: Hi Hernan, In that case, I suggest you to define your own builder to build the matrix you need. I have given a try, but I cannot properly parse your

Re: [Pharo-dev] Athens: testing whether a point is within a path?

2013-12-15 Thread Chris Muller
This helped me with a related problem once. http://www.ecse.rpi.edu/Homepages/wrf/Research/Short_Notes/pnpoly.html On Sat, Dec 14, 2013 at 1:46 PM, Alexandre Bergel alexandre.ber...@me.comwrote: Hi! I have seen that AthensPolygonTester may do the job somehow. How can I test whether a

Re: [Pharo-dev] Please stop top posting... (was Re: Tell me about your workflow)

2013-12-17 Thread Chris Muller
If you use Gmail, doing the right thing is now _hard_. (It's a click-the-ellipsis, then a find-the-place-to-edit, then hit return to No need for the fine-motor click, just use right-arrow + Enter. make a space for your words, then type, followed by scrolling back up to that place because

Re: [Pharo-dev] Please stop top posting... (was Re: Tell me about your workflow)

2013-12-17 Thread Chris Muller
Ah. I hadn't thought that many devs actually use the web UI for gmail, but perhaps they are :) But that would defeat one of the primary purpose of using web email which is access from any machine. Besides that, Gmail has the best UI, bar none. The handling of Conversations is what sets it

Re: [Pharo-dev] Do you want to accept???????? Discard???????

2014-01-11 Thread Chris Muller
I finally read this whole thread. I don't normally get involved in Pharo discussions but, I can't help to say: Igor is 100% right, and his best rationale why at the beginning: == at the end, it is just silly: the point is that i am always sure about things i do, when interacting with my

Re: [Pharo-dev] [OT] Speed of light 6-2-2014

2014-02-13 Thread Chris Muller
I totally agreed with Apple is a product-driven company, not a computing-driven company. But part of the irony of his post occurs between his first and last statements: First statement: When most programmers are introduced to Objective C for the first time, they often recoil in some degree of

Re: [Pharo-dev] Debugging in Production Servers

2014-04-25 Thread Chris Muller
On Fri, Apr 25, 2014 at 5:01 AM, askoh as...@askoh.com wrote: Thanks for all the comments. Let me distilled what I have learned. Correct me if I am wrong. In Smalltalk: Production environment and development environment are very similar if not identical. The environments on my laptop are

Re: [Pharo-dev] Immutable collections and encapsulation

2014-05-13 Thread Chris Muller
You could answer a copy of the collection, so it won't matter internally if they try to add to it. Or you could wrap the collection with operations too. However, doing that, I suppose someone could still write, (someObject instVarNamed: 'internalCollection') add: junk. So, why bother? Writing

Re: [Pharo-dev] One complaint about Pharo

2014-05-15 Thread Chris Muller
As one begins to expand their work into multiple images, one host window per ends up being the only practical way to keep it managed. On Thu, May 15, 2014 at 1:21 PM, David Astels dast...@icloud.com wrote: One of the big issues I have with Pharo is that I’m stuck on a single screen, unlike

Re: [Pharo-dev] Pharo in Rasbian ?

2014-05-21 Thread Chris Muller
One reason might be that Phratch is kind of redundant isn't it? Smalltalk already has a foothold on the Pi in the form of Squeak, and Tim Rowledge is being paid by that organization right now to improve Scratch. So if you're interested in helping kids learn programming with Scratch, why not check

Re: [Pharo-dev] Pharo in Rasbian ?

2014-05-22 Thread Chris Muller
On Thu, May 22, 2014 at 2:50 AM, stepharo steph...@free.fr wrote: I think that Jannik started to clean to code long before tim and he is not payed for that so at least we should respect that and do not start to blame him about redundancy. Hi Stef, I'm talking about redundancy within the

Re: [Pharo-dev] String deduplication

2014-05-30 Thread Chris Muller
I hope you're only considering this one-time for your Pharo release image, and not something that will _continue_ to operating on an on-going basis. Attempting to do that below app-layer would be way too intrusive for, for example, a Magma application..A String read from one DB session

Re: [Pharo-dev] String deduplication

2014-06-02 Thread Chris Muller
This is a normal pattern in application-development. For example, Todd Blanchard's HTML validating parser grabs a huge chunk of HTML, and all the parts are simply referenced by position within that big String. On Mon, Jun 2, 2014 at 8:26 AM, Christophe Demarey christophe.dema...@inria.fr wrote:

Re: [Pharo-dev] Stepping through with GLORP Proxies

2014-06-23 Thread Chris Muller
What specific problem are you having debugging? Stepping Through a block which about to send message to a Proxy? It seems like I should be having the same problem with Magma proxies.. I know sometimes I would get a Simulation error while stepping Through (which would blow up a debugging

Re: [Pharo-dev] Does anyone use menuMorph in dockingbar?

2014-07-25 Thread Chris Muller
Those are Flaps, not DockingBars. On Fri, Jul 25, 2014 at 12:48 AM, Peter Uhnák i.uh...@gmail.com wrote: Isn't DockingBar a Squeak thing? The little tabs things that would live around the edges of the screen and you could grab morphs onto a canvas. On Fri, Jul 25, 2014 at 2:06 AM,

Re: [Pharo-dev] Monticello and Fuel

2014-12-07 Thread Chris Muller
Yes, performance seems to be the main use case. Fuel files of hundreds of MB take a long time to load and save, even if you only change a single string. One instance where this is relevant is the Moose model. They currently use .mse files, which use a textual representation (if I’m not

Re: [Pharo-dev] Duration year

2014-12-08 Thread Chris Muller
I was working on a GenericYear that was intended to be used for DateAndTime calculus - to be able to add and subtract an arbitrary number of years. The class by itself would not know the days - it is an arbitrary (generic) Year. It would only know the number of days when it is added (or

Re: [Pharo-dev] [squeak-dev] re: Context status 2015-01-16

2015-01-18 Thread Chris Muller
Hi Stef, On Sun, Jan 18, 2015 at 5:15 AM, stepharo steph...@free.fr wrote: For your information guille produced pharo images of 11k for simple addition, 18k for large numbers. Also Seaside counter application of about 500k. Of course, the real trick is if those tiny images can actually be

Re: [Pharo-dev] [Pharo4] Slots can now be saved with MC

2015-01-11 Thread Chris Muller
It has been a while since I read the paper, but my memory is that Slots lets you define features and/or constraints on inst-var's. For example, assigning default values or restricting the set of valid values. This would probably be appealing for folks coming from languages like Java or C++,

Re: [Pharo-dev] Matrix API question for a native english

2015-02-09 Thread Chris Muller
On Mon, Feb 9, 2015 at 3:05 PM, stepharo steph...@free.fr wrote: Hi a matrix has rowCount and columnCount and I was wondering if this api is the way to get the number of columns and rows of a matrix. Would rowNumber and columnNumber be better? I think rowCount is better than rowNumber for

Re: [Pharo-dev] MCVersionInfo: 10% of the image

2015-02-20 Thread Chris Muller
Chris, didn't you do something about this in Squeak? It would be nice to keep consistent if possible... Yes, but no one liked it because it employed the Proxy design-pattern and requires a become. Perhaps if I'd gotten it perfect the first time it'd have been better-received. But, I

Re: [Pharo-dev] Design Question: Undefined vs. MyNullObject vs. #ifNil:

2015-08-21 Thread Chris Muller
IMO, when you are talking about a type as primitive as a Date, then there is nothing wrong with ifNil: checks. You wouldn't want to do the same for Strings or Numbers. Date is right there with those. More broadly, I feel there is nothing inherently wrong with case-logic if it is TSTTCPW. In

Re: [Pharo-dev] Event handling insanity

2015-07-27 Thread Chris Muller
On Mon, Jul 27, 2015 at 8:42 AM, Igor Stasenko siguc...@gmail.com wrote: Nothing here is about things to fix, but rather about how impossible to debug event handling in system that runs and relies on very same events.. I had very annoying problem with mouse move handling and processing it

Re: [Pharo-dev] String concatenation using comma ","

2015-09-10 Thread Chris Muller
I generally agree about implicit type-conversions, but I don't really think this one is all that implicit. String concatentation returns a String, no exceptions. By not having this for Strings actually led to Andreas getting bitten, which is why it was added to Squeak. The "bite" comes when

Re: [Pharo-dev] Preparing for the (already here) future world of multi-core PCs

2015-11-18 Thread Chris Muller
If you are on Linux, there is a add-on package for OSProcess called CommandShell which includes a class called RemoteTask. It lets you fork a block of code to a separate OS thread and return the result to the calling image via serialization (Fuel or other). IIUC, it takes advantage of Linux

Re: [Pharo-dev] About being a real Pharo Jedi developer

2015-11-20 Thread Chris Muller
Good points. And, even if it all worked, would anyone still prefer not to simply rebuild an image with all the code? IOW, wouldn't they "trust" an image that was only built UP rather than one built up and then partially torn down? IMO, unloading is for the viewpoint of having an "ultimate

Re: [Pharo-dev] About being a real Pharo Jedi developer

2015-11-19 Thread Chris Muller
> translated from Yoda language: > > you will be a real Jedi when your code will load in one click! In Yoda grammar: "When, in one click, your code will load, then, and only then, a Jedi will you be..." :)

Re: [Pharo-dev] Mocking network…

2016-03-02 Thread Chris Muller
A mock network will never test as thoroughly as locahost network.. On Wed, Mar 2, 2016 at 6:32 AM, Yuriy Tymchuk wrote: > HI, there is one thing in Ruby (on Rails) that I really like and it is a > option to mock network. This means that when you run a test your network >

Re: [Pharo-dev] Mocking network…

2016-03-02 Thread Chris Muller
I assume the mock object does not exercise any real network code or primitives. On Wed, Mar 2, 2016 at 2:43 PM, Norbert Hartl <norb...@hartl.name> wrote: > >> Am 02.03.2016 um 17:27 schrieb Chris Muller <asquea...@gmail.com>: >> >> A mock network will never test

Re: [Pharo-dev] Mocking network…

2016-03-02 Thread Chris Muller
rk faults in your > localhost network again? > > frank > > On 2 March 2016 at 08:27, Chris Muller <asquea...@gmail.com> wrote: >> A mock network will never test as thoroughly as locahost network.. >> >> On Wed, Mar 2, 2016 at 6:32 AM, Yuriy Tymchuk <yuriy.tymc

Re: [Pharo-dev] [ANN] Pharo 5.0 released!

2016-05-12 Thread Chris Muller
Congratulations! On Thu, May 12, 2016 at 10:57 AM, Esteban Lorenzano wrote: > Vote up! > > Reddit: > https://www.reddit.com/r/programming/comments/4j1clo/pharo_50_the_immersive_pure_object_oriented/ > > YC: > https://news.ycombinator.com/item?id=11684285 > > > On 12 May

Re: [Pharo-dev] [Moose-dev] [ANN] Release of Agile Visualization

2016-08-15 Thread Chris Muller
Finishing a book is hard. Your work and perseverence has elevated this project to an amazing level. Congratulations, Alexandre. On Sun, Aug 14, 2016 at 4:19 PM, Alexandre Bergel wrote: > Dear Colleagues and Friends, > > It is a great pleasure to announce the release of

Re: [Pharo-dev] Running on Ubuntu?

2016-11-23 Thread Chris Muller
Hey Igor, I was just messing around with this the other day; Levente had the tersest incantation which worked on my fresh 14.04.4 install: sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libuuid1:i386 libglu1-mesa:i386 libsm6:i386 (Documented at

Re: [Pharo-dev] subexpression precedence

2017-01-11 Thread Chris Muller
> Wow, I just skimmed the messages section in the blue book and you're right. > I think this is an omission and that it should be specified that keyword > message receiver and arguments are evaluated strictly left-to-right. I don't > know of a Smalltalk implementation that doesn't evaluate in

Re: [Pharo-dev] subexpression precedence

2017-01-11 Thread Chris Muller
> Other than humans generally read from (pardon me) Other than that the code is read from left to right...

Re: [Pharo-dev] [squeak-dev] Why do we have SmallDictionary?

2018-07-01 Thread Chris Muller
This discussion has limited its context to comparing *in-memory* Dictionary implementations, where open-addressing has an advantage. Using Magma reveals another context where chained Dictionary's can have some advantages: When they're large, persistent, and shared in a

Re: [Pharo-dev] Collection groupedBy: and groups order

2018-08-16 Thread Chris Muller
Despite the interleavement, the order of the grouped elements as they occurred in the original collection could be preserved. On Wed, Aug 15, 2018 at 6:34 AM, Damien Pollet wrote: > The problem is, there isn't really an order to preserve in the first place, > since even if the original

Re: [Pharo-dev] Pavel's ChangeLog week of 2018-01-15

2018-01-22 Thread Chris Muller
Getting the serialization working is a big step, good job. If you can get MaClientServerTestCase suite debug to pass, then you should be nearly home free; the rest is mostly just high-level stuff that builds on that so the rest of the port should go fairly smoothly. Wow. On Mon, Jan 22,

Re: [Pharo-dev] Cannot use Zinc in Pharo7 anymore

2018-11-06 Thread Chris Muller
> Earlier, we’ve seen projects like Magma being overwhelmed by the number of > needed changes, I'm curious what you meant by this. I'm not aware of Magma ever having been overwhelmed. Its design has made it easy to be one of the most-available and consumable pieces of software for every version

Re: [Pharo-dev] A call for a library to script github.com

2019-09-26 Thread Chris Muller
GraphQL is da bomb, I would definitely recommend writing a client to access their v4 API. You may not even need it, but Squeak will have a full GraphQL parser and document validation and processing engine real soon now. It's completely stand-alone, no dependencies, and I've kept portability in

Re: [Pharo-dev] A call for a library to script github.com

2019-09-27 Thread Chris Muller
dev@lists.pharo.org> wrote: > Hello, > > We have put a significant amount of effort on having an implementation of > GraphQL for Pharo and VisualWorks. It even has a booklet. > > https://github.com/OBJECTSEMANTICS/GraphQL > > Cheers, > Alexandre > > On Sep 26, 2019, at 7:56 PM,

Re: [Pharo-dev] Pharo source code formatting guide

2019-07-06 Thread Chris Muller
I think of Beck's Rectangular Block as like a textual representation of Scratch tiles. It's about presenting the code-structure, rather than aligning text on tabs. However, I do think his Indented Control Flow actually preserves _horizontal_ space at the expense of vertical space. I've found

Re: [Pharo-dev] should doubleclicking on symbol select # too?

2020-06-09 Thread Chris Muller
Symbols are often used as arguments to #perform:, I don't know if Pharo ignores the initial hashmark (#) to allow browsing implementors but, if not, that could be a reason.. :) - Chris On Tue, Jun 9, 2020 at 2:26 PM Stéphane Ducasse wrote: > Hi > > I would like to know what you think about

[Pharo-dev] Re: [ANN] Fuel 5.0.0

2022-02-28 Thread Chris Muller
> > You will never be able to invent the future if you do not want to have a > future. > The future cannot be had, only the present.

[Pharo-dev] Re: Recommendation for password encryption?

2022-09-20 Thread Chris Muller
Ron Teitelbaum made a clever solution to resisting memory-scanning attacks when using private keys in an image. Upon asking KeyHolder holdKey: yourPrivateKey, it forks off a while loop which generates a random sequence of bytes (ByteArray) to encrypt yourPrivateKey with it. It then delays 100ms,