Re: [Pharo-users] FFI to UFFI

2019-03-24 Thread Esteban Lorenzano
Now, about translation to UFFI, is not so simple, but not so complex (it just needs some work). 1) you need to declare the types like SQLRETURN, usually in a shared pool, something like: SQLRETURN := #uint. That you later will include in your ODBC classes. 2) you need to translate structures

Re: [Pharo-users] FFI to UFFI

2019-03-24 Thread Esteban Lorenzano
One final consideration: Truth is, once you load it in P7, the package should work (at least in 32 bits, I do not think is made thinking on 64bits platforms). Both notations ends calling same primitives. This means, if your intentions are just to play a bit and see how things work: you should

[Pharo-users] FFI to UFFI

2019-03-24 Thread Tomaž Turk
Pierce, Esteban, many thanks for your most valuable directions. Live and learn :-) Tomaz -- Original Message -- From: "Esteban Lorenzano" To: "Tomaž Turk" ; "Any question about pharo is welcome" Sent: 24.3.2019 8:10:32 Subject: Re: [Pharo-users] FFI to UFFI One final considerati

Re: [Pharo-users] ZnURL and parsing URL with diacritics

2019-03-24 Thread PBKResearch
Sean, Sven Thinking about this, I have found a simple (maybe too simple) way round it. The obvious first approach is to apply 'urlEncoded' to the received url string, but this fails because it also encodes the slashes and other segment dividers. A simple-minded approach is to scan the received

Re: [Pharo-users] ZnURL and parsing URL with diacritics

2019-03-24 Thread PBKResearch
Well it didn't take long to find a potential problem in what I wrote, at least as a general solution. If the input string contains something which has already been percent encoded, it will re-encode the percent signs. In this case, decoding will recover the once-encoded version, but we need to d

Re: [Pharo-users] [Pharo-dev] How to manage your code with Iceberg

2019-03-24 Thread ducasse
We will add patterns of management. I would like to discuss about releaser at Pharodays :) Stef > On 24 Mar 2019, at 15:21, Tudor Girba wrote: > > Nice work! And very useful for newcomers, too :) > > Doru > >> On Mar 24, 2019, at 10:22 AM, Stéphane Ducasse >> wrote: >> >> Hi >> >> I'm

[Pharo-users] how to get out of this mess

2019-03-24 Thread Roelof Wobben
Hello, I tried another way to solve this but the code is a mess now. I can update a record but the record is not updated. And I have to do a lot of the same steps for every team. Anyone who can help me to get out of this mess. Code so far:  https://github.com/RoelofWobben/tournament Roelof

Re: [Pharo-users] eval from the linux commandline

2019-03-24 Thread K K Subbu
On 24/03/19 5:23 AM, test email wrote: i need to eval an object from my linux commandline. I understand that clap-st is able to do this, but I can't seem to import it into pharo7, I suppose because of compatability reasons. Someone sent me this, but I can't seem to replicate the help screen. Is

Re: [Pharo-users] eval from the linux commandline

2019-03-24 Thread Alistair Grant
On Sun, 24 Mar 2019 at 00:54, test email wrote: > > i need to eval an object from my linux commandline. I understand that clap-st > is able to do this, but I can't seem to import it into pharo7, I suppose > because of compatability reasons. Clap is now part of the base image, so you should be a

[Pharo-users] What oo/modelling books/articles do we recommend these days?

2019-03-24 Thread Tim Mackinnon
As I see Exercism students grapple with more realistic problems which are less algorithmic and more potentially OO (in this case - https://github.com/exercism/pharo-smalltalk/blob/master/dev/src/Exercism/TournamentTest.class.st

Re: [Pharo-users] how to get out of this mess

2019-03-24 Thread Roelof Wobben
hello, I think I have to reconsider my classes and reponsibilities Right now Im thinking of this Team :  responsinble for team properties Ranking : reponsibilities  for checking if a team is in the ranking and updating the team statics Tournament :  parsing the ganes and call the right functi

Re: [Pharo-users] What oo/modelling books/articles do we recommend these days?

2019-03-24 Thread Christopher Fuhrman
On Sun, 24 Mar 2019 at 21:26, Tim Mackinnon wrote: > Any good references come to mind? As I’ll build up a list that I can point > people to, that hopefully puts them in a better place to solve these more > interesting and hopefully rewarding problems. > Since 2003 in one of my courses I've used

Re: [Pharo-users] How cn I improve this code

2019-03-24 Thread Richard O'Keefe
Four blindingly obvious remarks. (1) Where are the comments? What problem is this actually solving? Where is the specification? Oh, it's at the *end*, not actually in the Team class. (2) name: anObject name := anObject and way too many methods like it. (a) Saying "anObject"

Re: [Pharo-users] how to get out of this mess

2019-03-24 Thread Benoit St-Jean via Pharo-users
--- Begin Message --- Hi Roelof, I probably missed your prior posts but I do have a few questions and/or comments for you before I can be of any help! This code is for tournaments of what sport exactly?  Hockey teams?  Baseball teams?  Or tournaments between players (such as in chess where

Re: [Pharo-users] how to get out of this mess

2019-03-24 Thread Richard O'Keefe
This is a simple programming-contest sort of exercise. You "need" only two classes. + a Team - knows its name (a String of at most 30 characters) * This should be passed when the Team is created; the rest of the program should NOT call (Team new) and should NEVER see an un#initial

Re: [Pharo-users] how to get out of this mess

2019-03-24 Thread Roelof Wobben
Thanks all @Richard  I did tried that way in the solution I put on the net. But I get stuck at the point that if I update a record in the Team Class the collection at the Tournament class was not updated. But right now , I try a new w

Re: [Pharo-users] how to get out of this mess

2019-03-24 Thread Richard O'Keefe
In OOP, you should not be thinking in terms of "updating a record". You should *ask* an object to update *itself*. [aStream atEnd] whileFalse: [ |fields team1 team2 outcome| fields := aStream nextLine subStrings: ';'. team1 := self teamNamed: (fields at: 1). t