Jun 22 2006
Your Code Sucks in Russian, Too
Alexey Moudrick has translated my “Why Your Code Sucks” blog post into Russian. Enjoy.. and if you don’t read Russian.. it still looks pretty cool.
Jun 22 2006
Alexey Moudrick has translated my “Why Your Code Sucks” blog post into Russian. Enjoy.. and if you don’t read Russian.. it still looks pretty cool.
Jun 07 2006
sSpec is up & running under VisualWorks!
DO-ITing
TextSpecRunner verbose runAll: (OrderedCollection with: SampleContextWithFailingSpec new with: SampleContext new)
results in the following in the Transcript:
sample context with failing spec should fail (FAILED 1) should pass sample context should be spec one should be spec two 2 contexts, 4 specs, 1 failures 0.044 seconds 1) ExpectationNotMetError in ' sample context with failing spec should fail' should be even SSpec.ShouldHelper(SSpec.ShouldBase)>>failWithMessage:
The code for the example specs is trivial, for example:
Smalltalk.SSpec defineClass: #SampleContextWithFailingSpec
superclass: #{SSpec.SpecContext}
indexedType: #none
private: false
instanceVariableNames: ''
classInstanceVariableNames: ''
imports: ''
category: 'SSpec-Structural Tests'!
!SSpec.SampleContextWithFailingSpec methodsFor: 'specs'!
shouldFail
5 should be even!
shouldPass
5 should be odd! !
Sure, a few things need tweaking… and there needs to be a gui based runner, ability to debug a failing spec, etc. ( I want to hook into the sUnit browser integration
)… but the core is up & running nicely. With a builtin rSpec-like Mock framework as well.
Jun 03 2006
More Seaside buzz, from a guy going to OSCON:
Seaside is a somewhat heretical web framework. They generate their HTML. They don’t embrace meaningful URLs. They use Smalltalk, of all things.
Of course, by making these crazy choices, they get insane amounts of power. When we were building Jifty, we stole liberally from everything that had good ideas. We dragged Rails down a dark alley and rifled through its pockets. We grabbed Catalyst’s wallet.
But really, Seaside’s killer features like Continuations and Halos…just stopped me in my tracks. Once we got them into our grubby little perlish hands, I realized: This is the way development is supposed to be.
Come on in, the water’s fine
“