Sergi Reyner wrote:
I´ve been writing a bot for a while now, with the purpose of learning proper Smalltalk and OOP idioms/techniques (I´ve been using C-ish languages for a long time now, and I´m trying to cure myself :D). I must say that the process has been quite enlightening so far, I never really understood OOP until now.

So far I have a bot that works fine for my needs, but I´d like to contribute back, so I´ll just list some thoughts and you can comment on them. All constructive criticism and pointers on how to do them are welcome!

I´m writing in on Pharo 3.

I want to split the code I currently have in 3 parts:
- part 1: a couple of classes IRCClient/ZdcSecureIRCClient mirroring POP3Client/ZdcSecurePOP3Client, with the intention of contributing them back to Pharo
- part 2: an IRCBot framework, which I´ll likely name 'Chromia', to be released under MIT license too
- part 3: my own bot using that framework, which would add all the extras like games
Does that sound reasonable?

At this point my code is quite messy, so I´m deciding whether to put it on SThub or not yet.

I´m depending on http://smalltalkhub.com/#!/~PharoExtras/JSON for reading some JSON file from a website.

Though it´s not high on my priority list, I wouldn´t mind making it as portable to other dialects as possible, too.


Cheers,
Sergi
Hi Sergi.  Sounds like a great project.  I agree with others. Don't worry if its messy.You can learn a lot from interested parties who might comment / correct come of the mess.  I would say just ensure that it is packaged to load cleanly on a fresh image.

Now not that I follow my own advice, but Release Early, Release Often [1] can be good advice. .

[1] http://www.catb.org/esr/writings/homesteading/cathedral-bazaar/ar01s04.html

cheers -ben

Reply via email to