smalltalk

What makes a framework a "true" MVC framework?

When reading online discussions about MVC frameworks, I hear a lot of commentary pointed toward PHP projects like Cake, Code Igniter and Symfony from Java/.NET developers in the vein of "those are clever hacks, but not true MVC". So, what makes something a "true" MVC framework. i.e. what's an example of a .NET or Java MVC framework th...

Initialize an object with an array

I was going through (using Squeak) the Discovering Better Code: Bowling for Smalltalk Series by Ron Jeffries and I can't get pass through the third article. A new class (called Frame) is being created which takes an array as an argument in the constructor. Frame class>>new: anArray ^self new setRolls: anArray Frame>>setRolls: anArra...

Why do pythonistas call the current reference "self" and not "this"?

Python is the language I know the most, and strangely I still don't know why I'm typing "self" and not "this" like in Java or PHP. I know that Python is older than Java, but I can't figure out where does this come from. Especially since you can use any name instead of "self" : the program will work fine. So where does this convention ...

Referencing a morph in Squeak (Mophic) created by direct manipulation via 'code'

How do I reference (i.e. program) a Morph created by direct manipulation, for instance dragging a text box from the supplies menu to the desktop, via Squeak/Smalltalk code in say the workspace? I'm okay (well sort of - I'm just learning Morphic) when I instantiate a Morph via Squeak/Smalltalk code but I'm at a loss when I've dragged a ...

Magma, GOODS, GLORP, or something else?

So I've been using Smalltalk for about 6 months now (Squeak and Pharo), mostly doing data analytics, and I'm about to start my first Seaside app. So my question to all you Smalltalkers out there is, what is your favorite persistence solution? I've been looking at Magma, GOODS, and GLORP. I'm a long-time python hacker, so I get ORM, but i...

Is there a script that turns a Pharo core image into something more useful, that would include an OmniBrowser?

Hi, I cannot use the most recent dev Pharo release because of some strange issues with the compiler built into Pharo. Well. I was wondering if there is a quick way to install all the nifty extras into Pharo that the core image misses, as compared to the dev image. Cheers, Niko ...

Is Smalltalk a viable development language for Mac OS X?

Every time I see a discussion on software development, always someone suggests or exalts the qualities of Smalltalk, be it the beautiful language constructs or the better implementation of basically everything. So I was curious, is anybody developing in Smalltalk? can Smalltalk actually be used to develop software on the Mac? Or what is...

Differences between Smalltalk and python ?

I'm studying Smalltalk right now. It looks very similar to python (actually, the opposite, python is very similar to Smalltalk), so I was wondering, as a python enthusiast, if it's really worth for me to study it. Apart from message passing, what are other notable conceptual differences between Smalltalk and python which could allow me ...

How useful would be a Smalltalk source code browser for other programming languages?

I'm working on an IDE for python, ruby and php. Never having used Smallltalk myself (even it was very popular when I was at university) I wonder if the classic Smalltalk Browser which displays only one method is really an improvment or to classical file editing or not. I myself like to have the overview of as much as possible in a cla...

How to get rid of unmanaged code in VW 3.1d and ENVY

I have an old VW3/ENVY image with a parcel loaded as unmanaged code (exactly the situation Mastering ENVY/DEVELOPER warns against). Unfortunately, this problem happened a long time ago and it's too late to just "go back" to an image without the parcel loaded. Apparently, there is a way to solve this problem (we have one development imag...

Invoking shell commands from Squeak or Pharo

How can you invoke shell commands from Squeak and Pharo? Do these environments have anything in them like the system() function in certain unix languages to run external shell commands, or the backticks (can't make them here do to the editor, but what you get when you push the key left of "1" and above "TAB") to capture the output of com...

Does Seaside scale?

Seaside is known as "the heretical web framework". One of the points that make it heretical is that it has much shared state. That however is something which, in my current understanding, hinders easy scaling. Ruby on rails on the other hand shares as less state as possible. It has been known to scale pretty well, even if it is dog slo...

Smalltalk compilers that target either Java, .NET or Ruby

Looking for a Smalltalk compiler that given Smalltalk (Instantiations) will emit either Java bytecode, .NET CLR or Ruby. Not looking for porting utilities as I want to leave the application in Smalltalk. I have googled for solutions and ran across a company who had a website (http://www.smalltalkmigrations.com/) but it seems as if they ...

How does Smalltalk (Pharo for example) compare to Python?

I've seen some comparisons between Smalltalk and Ruby on the one hand and Ruby and Python on the other, but not between Python and Smalltalk. I'd especially like to know what the fundamental differences in Implementation, Syntax, Extensiabillity and Philosophy are. For example Python does not seem to have Metaclasses. Smalltalk has no ...

Smalltalk collections and sorting

I need a collection of items in which I can perform selection sort in Smalltalk. What's the best thing to use? List, set, linkedlist, etc.? ...

Typed collections in Smalltalk

I'm trying to learn some smalltalk programming.... I'm trying to create a list of objects of type myClass. What's the best way to do this? I have the following: | list | list := OrderedCollection new. Correct me if I'm wrong. So how should I add elements to my list? ...

Smalltalk, how to insert tab in a string

How do you insert a "tab" in a string? I thought it was t enclosed in <> , but I do: 'Name <t> Age <t> Occupation' prints exactly how it's typed. I would like to get Name Age Occupation instead of Name <t> Age <t> Occupation ...

Smalltalk collections.

If I have an array of employees, how can I sorted based on employee last name? ...

Performance differences between Swazoo and Komanche?

Hello, I'd like to know what the performance differences between Swazoo and Komanche in general and for Seaside are. Especially why and in what situations I should prefer the one over the other? ...

asm / C / Python / Perl / Lisp / Scheme Programmer looking for something new to learn.

I need to have an at-home project now that I'm working on Python/Django at work. I'd like to learn something new, so I was thinking of checking out Java. What's the most well respected web framework for deploying Java web apps? The only reason I'm not checking out ruby on rails is because of how similar the ORM and other parts are to Dj...