Re: [Pharo-dev] Weird SUnit/TestRunner behavior

2019-03-20 Thread Attila Magyar
Thanks for the explanation Torsten. I do use setUp for initialization but one exception is BabyMock2TesCase which serves as a base class for other tests. The reason why its variables are created in the init is that the users would likely forget sending a setUp to the super class in their own

Re: [Pharo-dev] Weird SUnit/TestRunner behavior

2019-03-19 Thread Attila Magyar
Max Leske wrote > To answer your question: yes that has been the case for a long time. The > same is true for #runCase BTW. Only #setUp is sent after #tearDown (see > #prepareToRunAgain). > > Max That's weird. RunCase sends a setUp, a tearDown and cleanUpInstanceVariables. So the test will be

Re: [Pharo-dev] Weird SUnit/TestRunner behavior

2019-03-18 Thread Attila Magyar
Thanks, I added the ticket. -- Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html

[Pharo-dev] Weird SUnit/TestRunner behavior

2019-03-18 Thread Attila Magyar
Hi, This was originally reported as a BabyMock bug but it looks like it effects normal test cases as well. Let's say I have a test like this: MyTest>>initialize super initialize. s := OrderedCollection new. "note that this is initialized here not in the setUp as we normally do"

Re: [Pharo-dev] Mocks are missing in Pharo (from thread OSProcess is missing)

2016-11-01 Thread Attila Magyar
> And with message based approach this problem not exists at all. Yes, it has different tradeoffs. For example you have to fill in the parameters even if you want to ignore them, or it is difficult (maybe impossibe) to express a parameter matcher that considers the relationship of multiple

Re: [Pharo-dev] Mocks are missing in Pharo (from thread OSProcess is missing)

2016-11-01 Thread Attila Magyar
> They have strings. And first mock libraries used message names as strings They are not the same. Method rename and find senders works with symbols but not with strings. Some rarely used refactorings might not work, although this is probably a technical limitation of the refactoring engine and

Re: [Pharo-dev] Mocks are missing in Pharo (from thread OSProcess is missing)

2016-11-01 Thread Attila Magyar
Denis Kudriashov wrote > BabyMock could not be treated as modern mock library just because it uses > symbols instead of normal message sends. Even C# and Java mocks are based > on normal messages. Because they don't have symbols :). Ruby libraries often use symbols, last time I checked rspec

Re: [Pharo-dev] [ANN] Tealight

2016-10-08 Thread Attila Magyar
Nice extension. Thanks. -- View this message in context: http://forum.world.st/ANN-Tealight-tp4918431p4918455.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Re: [Pharo-dev] [ANN] Cupboard inspector for Teapot

2015-10-12 Thread Attila Magyar
This is very nice thanks, and Cupboard is an awesome name. -- View this message in context: http://forum.world.st/ANN-Cupboard-inspector-for-Teapot-tp4855120p4855188.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Re: [Pharo-dev] Better Code Completion

2015-10-05 Thread Attila Magyar
> do Smalltalkers not like code completion? Because the one in Pharo is > really poor and not only that nobody is doing anything about it, but also > nobody is complaining Agree, and this can be improved significantly. I see a lots of potential doing precise code completion in the

Re: [Pharo-dev] Music in Pharo

2015-07-05 Thread Attila Magyar
Hi Clément, I don't use any special vm, but the one that comes with Pharo4 (http://files.pharo.org/platform/Pharo4.0-win.zip). I haven't tried it on mac however, only windows and raspbian. On the raspberry pi I use this vm with a Pharo5 spur image:

Re: [Pharo-dev] Music in Pharo

2015-07-04 Thread Attila Magyar
I recently created a simple google translator based text to speech engine, that calls the google webservice, saves the output mp3 in a temp file then plays it. I use the StreamingMP3Sound class from http://www.squeaksource.com/SPDProjectUpdates/ to play files. Gofer new smalltalkhubUser:

Re: [Pharo-dev] New Cog VMs available

2015-06-21 Thread Attila Magyar
Eliot Miranda-2 wrote ... at http://www.mirandabanda.org/files/Cog/VM/VM.r3386 CogVM binaries as per VMMaker.oscog-eem.1370/r3386 Add the ARMv5/ARMv6 Cog Spur JIT VM! Thanks. This is a huge improvement compared to the stack vm. I've just tried it on my Raspberry pi, with this image

Re: [Pharo-dev] External interfacing with Pharo on Pi

2015-06-17 Thread Attila Magyar
I use OSProcess to play video files with omxplayer (the built in video player in raspbian), and it works fine. -- View this message in context: http://forum.world.st/External-interfacing-with-Pharo-on-Pi-tp4832762p4832877.html Sent from the Pharo Smalltalk Developers mailing list archive at

Re: [Pharo-dev] collecting Pharo 4.0 Contributors

2015-03-27 Thread Attila Magyar
Hi, My name is Attila Magyar. I made some videos, submitted bugs, and I'm an author of some libraries from the enterprise pharo book. Attila -- View this message in context: http://forum.world.st/collecting-Pharo-4-0-Contributors-tp4814792p4815653.html Sent from the Pharo Smalltalk

Re: [Pharo-dev] Smalltalkhub behaves very strangely

2014-07-29 Thread Attila Magyar
Hi, looks ok, thanks for fixing it. Attila -- View this message in context: http://forum.world.st/Smalltalkhub-behaves-very-strangely-tp4770454p4770876.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

[Pharo-dev] Smalltalkhub behaves very strangely

2014-07-27 Thread Attila Magyar
When I try to commit to my project, I often get an error message back. It says Error: Could not save version. In the debugger I see that the http response code is 404. When I try to open my project on the web, I get an Oops, not found!. But the most frightening is, that when I click on my user,

Re: [Pharo-dev] Survey - needing Protocol Chooser when creating methods from the debugger

2014-06-15 Thread Attila Magyar
+1 organization of the protocols is part of refactoring EstebanLM wrote For me, having to choose a protocol before creating the method is contrary to TDD spirit of “go to the green as fast as you can, clean later”. So yes, instead enhance it, I would directly remove the protocol chooser in

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Attila Magyar
Hi, I wrote that reddit post. I was curious if anyone came up with something to this. Since then I discovered that Bert Freudenberg created an asPipe method before, that works exactly the same way as mine. And probably asPipe is a better name than chain. The idea of the pipe operator is

Re: [Pharo-dev] Pipe operator

2014-06-08 Thread Attila Magyar
Yes, AFIK, the Java 8 stream API works similarly. The query is called stream(), the endQuery is called collect(Collectors.toList()) -- View this message in context: http://forum.world.st/Pipe-operator-tp4762106p4762209.html Sent from the Pharo Smalltalk Developers mailing list archive at

Re: [Pharo-dev] Brainstorming Pharo4

2014-06-05 Thread Attila Magyar
In regard to improving tools. One of the most common criticism I hear about dynamically typed languages, is that you can't have precise code completion, and without this, it is impossible to know what methods can be used in given context. My usual response is, that you can, just ask the object

Re: [Pharo-dev] Request write access to Pharo40Inbox

2014-05-29 Thread Attila Magyar
Sean P. DeNigris wrote what are the dependency mczs? SmartSuggestions. I'm still getting the Http 500 error. -- View this message in context: http://forum.world.st/Request-write-access-to-Pharo40Inbox-tp4760747p4760824.html Sent from the Pharo Smalltalk Developers mailing list archive at

[Pharo-dev] Request write access to Pharo40Inbox

2014-05-28 Thread Attila Magyar
hi, Can someone give me write access to Pharo40Inbox? My smalltalkhub user is zeroflag. thanks -- View this message in context: http://forum.world.st/Request-write-access-to-Pharo40Inbox-tp4760747.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Re: [Pharo-dev] Request write access to Pharo40Inbox

2014-05-28 Thread Attila Magyar
Hm, it said: 'Could not save version'. Response code is 500. ZnResponse(500 Internal Server Error text/plain;charset=utf-8 30B) -- View this message in context: http://forum.world.st/Request-write-access-to-Pharo40Inbox-tp4760747p4760754.html Sent from the Pharo Smalltalk Developers mailing

Re: [Pharo-dev] Request write access to Pharo40Inbox

2014-05-28 Thread Attila Magyar
I created a slice (SLICE-Issue-13272-No-temporary-to-instvar-suggestion) then I tried to save it to the repo below, using the monticello browser. MCHttpRepository location: 'http://smalltalkhub.com/mc/Pharo/Pharo40Inbox/main' user: 'zeroflag' password: '*' What

Re: [Pharo-dev] Smalltalkhub project modification error

2014-05-19 Thread Attila Magyar
Never mind, it is working now. -- View this message in context: http://forum.world.st/Smalltalkhub-project-modification-error-tp4759423p4759465.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

[Pharo-dev] Smalltalkhub project modification error

2014-05-18 Thread Attila Magyar
Hi, When I try to modify my project information on Smalltakhub, I receive the following error: Oops! !DOCTYPE HTML PUBLIC quot;-//IETF//DTD HTML 2.0//ENquot; htmlhead title502 Proxy Error/title /headbody Proxy Error pThe proxy server received an invalid response from an upstream server.br /

Re: [Pharo-dev] developing games in Pharo

2014-05-12 Thread Attila Magyar
Probably x86 windows tablets don't have the larges market share, but developing and running Pharo on them is equally easy than doing the same on a desktop computer. You can run the same x86 VM with JIT support and it runs fast. I tried PharoDroid before on an Android tablet but it was lot slower.

Re: [Pharo-dev] tiny survey: who uses Pharo Launcher?

2014-04-19 Thread Attila Magyar
I use it, and like it very much (win7). I discovered that that the startup time of the launcher is not as instantaneous as the normal one click image was before. I wonder if anyone else experienced this. -- View this message in context:

[Pharo-dev] May I have a write permission to MetaRepoForPharo30?

2014-03-10 Thread Attila Magyar
I'ld like to publis my app. My user is this one: http://smalltalkhub.com/#!/~zeroflag -- View this message in context: http://forum.world.st/May-I-have-a-write-permission-to-MetaRepoForPharo30-tp4748477.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

Re: [Pharo-dev] [FEEDBACK] Install Pharo on Windows

2014-01-04 Thread Attila Magyar
Tried it and worked fine on Windows 7. Though, I had few issues with the launcher. When I right click on an empty area of the Existing Images panel (and there is no image selected or the pane is empty), I got a MessageNotUnderstood: receiver of buildWithSpec is nil. After I renamed an image, I

Re: [Pharo-dev] Unifying Testing Ideas

2013-12-04 Thread Attila Magyar
Sean P. DeNigris wrote Are you interested in integrating my changes into the current API? If so, I'll refactor them and clean them up. I personally would find it difficult to use the library without them. Coming from Ruby, a proper test double framework is the thing I miss most. Rspec was

Re: [Pharo-dev] Unifying Testing Ideas

2013-12-04 Thread Attila Magyar
I'll try. I think mocking the file system and other third party, low abstraction stuffs can lead brittle tests and duplications. For example we want to store certificate files in pem format in the file system. Mocking out the fs would look like this: file = mock('file')

Re: [Pharo-dev] Unifying Testing Ideas

2013-12-03 Thread Attila Magyar
Sean P. DeNigris wrote I understand the motivation. My question is how do we create appropriate hooks so that we don't get into these conflicts? I don't know yet, I'm open for discussion. Sean P. DeNigris wrote - anyArgument now inst var of BabyMockTestCase, similar to BmAnyMessage How do

Re: [Pharo-dev] Unifying Testing Ideas

2013-12-03 Thread Attila Magyar
Sean P. DeNigris wrote In fact, #does: and #answers: could easily be merged, using double dispatch to pass either a block or a value. It's true, but it would make difficult to return a block. E.g. mock can receive: #msg; answers: [ [..] ] Sean P. DeNigris wrote Unrelatedly, it would be

Re: [Pharo-dev] Unifying Testing Ideas

2013-12-02 Thread Attila Magyar
Sean P. DeNigris wrote - Phexample and BabyMock both require subclassing from their own TestCase subclass, so they can't be used together. The reason for having the base class is to verify the expectations at the end of the tests automatically. Doing this manually is possible (context

Re: [Pharo-dev] Commit rights to Pharo30Inbox

2013-10-19 Thread Attila Magyar
thx -- View this message in context: http://forum.world.st/Commit-rights-to-Pharo30Inbox-tp4715804p4715869.html Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.

[Pharo-dev] Commit rights to Pharo30Inbox

2013-10-18 Thread Attila Magyar
Hi list, I want to submit a SLICE to the pharo inbox, can you grant me commit rights? username: zeroflag thanks!

Re: [Pharo-dev] [Pharo-users] [DOC] Building and deploying your first web app with Pharo

2013-07-15 Thread Attila Magyar
This is really nice. I hope it will reach people who develop webapps in ruby/php/java or whatever. On Mon, Jul 15, 2013 at 6:42 PM, Sven Van Caekenberghe s...@stfx.eu wrote: On 15 Jul 2013, at 18:41, Sven Van Caekenberghe s...@stfx.eu wrote: I should revive it. But it is still running

Re: [Pharo-dev] Necessity of TDD with Smalltalk

2013-06-09 Thread Attila Magyar
I think the tests could provide valuable design feedback about the code under test, so it is good to have them. I can respond to those feedbacks effectively only when I'm writing them first, otherwise it might be too late. But this is a long topic. When I write tests first, I like the fact that