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
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
Hi list,
I want to submit a SLICE to the pharo inbox, can you grant me commit rights?
username: zeroflag
thanks!
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.
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
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
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
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
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')
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
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.
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:
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.
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 /
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.
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.
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
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
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
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
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
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
+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
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,
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.
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
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
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
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:
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:
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.
> 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
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.
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
> 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
> 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
Thanks, I added the ticket.
--
Sent from: http://forum.world.st/Pharo-Smalltalk-Developers-f1294837.html
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
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
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"
40 matches
Mail list logo