Page 1 of 1
Updating old code to the latest PB version
Posted: Wed May 10, 2006 6:08 pm
by einander
It would be wonderful if everyone who have sent code to this forum post again some of his/her code translated/updated to the latest PB version. I'm on that.
Or simply:
It would be wonderful if everyone try to post some translated/updated code from previous posts to the latest PB version. (Verifying previously that the new code works Ok

)
Posted: Wed May 10, 2006 6:14 pm
by dracflamloc
I'll be posting some of my open source code updated for PB4 once the first beta for linux is out.
Posted: Wed May 10, 2006 6:22 pm
by Psychophanta
Well, i'll do, but only if someone request it to me, because i think it has not sense if no one is interested on the code.
Posted: Wed May 10, 2006 7:07 pm
by Kale
Psychophanta wrote:Well, i'll do, but only if someone request it to me, because i think it has not sense if no one is interested on the code.
Yep, it's a pointless waste of time to start updating everything on the forums. Wait intil you or someboady else actually needs it before updating. Anyway converting stuff to v4 is no real big deal.
Re: Updating old code to the latest PB version
Posted: Wed May 10, 2006 7:15 pm
by Shannara
einander wrote:It would be wonderful if everyone who have sent code to this forum post again some of his/her code translated/updated to the latest PB version. I'm on that.
Or simply:
It would be wonderful if everyone try to post some translated/updated code from previous posts to the latest PB version. (Verifying previously that the new code works Ok

)
Heh, I ended up doing that to your
2D aleatory coral growing & gradient found @
http://www.purebasic.fr/english/viewtop ... ht=#138781 . Fred went ahead and reposted the code in the referenced thread.
Im on the fence with this though. I only converted it because I only had a beta version of PB 4.0 handy, and I wanted to see the results everybody talked about
I figure, if people find an old code thread useful on this forum, and converted it to 4.0, it would be nice if they posted it.
Posted: Wed May 10, 2006 7:36 pm
by einander
For me the code on the forums is the better help.
As everybody's time is limited, when I have a doubt, I prefer not to ask, but to search on the forums, where almost always there is a snippet that helps.
Now, as PB4 has some major changes, we must translate each snippet each time that we want to test it.
Sometimes there is need only a minor change, as the OpenWindow title annoyance (damn, I asked for it

) but when you are on the middle of a project, stopping your concentration to start a translation is a pain.
So if the most useful code on the forum is already translated to PB4 ,we have again a beautiful collection at hand, for
fast use. And if each one of us can translate a small number of snippets, the repository will be updated quickly.
Posted: Wed May 10, 2006 7:58 pm
by obelisk
I agree with Einander.
I'm new to Purebasic and I'm learning by looking at the code posted in the forums. It makes it a little harder when you have to get the snippet to work in V4.
Posted: Wed May 10, 2006 8:59 pm
by Shannara
I think it would be nice if there were some volunteers (or maybe a pb4 code only forum?) where people would scour the forums and post updated code in? I'd volunteer in a heart beat, converting is fun. Though we probably may need the ok from Fred himself

Posted: Wed May 10, 2006 9:45 pm
by rsts
I've converted a few for my own needs, but like Psychophanta and Kale mentioned, I'm not sure we need a massive conversion effort.
Maybe post a conversion when you've done it. Or ask if you can't get it to work.
To obelisk, yes, but converting only adds to the learning experience. I'm speaking from experience.
cheers
Posted: Wed May 10, 2006 10:12 pm
by utopiomania
I don't like the way this language is broken between releases. So, any code I post here will
not be translated unless I need people to test it.
Posted: Wed May 10, 2006 10:45 pm
by Airr
How about the CodeArchive?
/me ducks in preparation
AIR.
Posted: Wed May 10, 2006 10:50 pm
by Dare2
Posted: Wed May 10, 2006 10:59 pm
by einander
There are more than 2200 registered users today.
Let us suppose that the code contributors we are 1 of each10, and each one of us translates 10 of its own codes,
Who has a computer to make the calculation?
Here is my first
GdiPlus easy:
http://www.purebasic.fr/english/viewtop ... 337#130337
Posted: Thu May 11, 2006 2:13 pm
by dracflamloc
utopiomania wrote:I don't like the way this language is broken between releases. So, any code I post here will
not be translated unless I need people to test it.
Correction. Its broken between MAJOR releases. This happens with any software, thats why its called a major release.
The 3.x versions were quite stable as a language. At times changes must be made to accomodate for design shortcomings. Remember that this language has been around for quite a while now. Everything evolves as the demands and needs of its users change.
Posted: Thu May 11, 2006 11:17 pm
by utopiomania
@dracflamloc, any compiler I use either run ancient code directly, or asks politely to import it to a new
version. And yet they manage to evolve and put new versions of the software to the market constantly.
I also checked with some other valid alternatives to PB, and it's the same with them, breaking peoples
source is a NO-NO.
And if it happens with MAJOR releases only, what's the point about that? If I manage to write a million
lines of commercial code between these major releases, it means I'm either stuck with an old version, or
am facing a very expensive upgrade.
Anyway, I'm not going to waste more time discussing this. I'm entitled to an opinion like anybody else.