Updating old code to the latest PB version

Everything else that doesn't fall into one of the other PB categories.
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Updating old code to the latest PB version

Post 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 :!: )
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

I'll be posting some of my open source code updated for PB4 once the first beta for linux is out.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post 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.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Post 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.
--Kale

Image
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Re: Updating old code to the latest PB version

Post 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.
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post 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.
obelisk
New User
New User
Posts: 7
Joined: Sun Apr 30, 2006 9:40 pm

Post 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.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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 :)
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post 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
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post 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.
User avatar
Airr
User
User
Posts: 49
Joined: Tue Oct 04, 2005 4:29 am
Contact:

Post by Airr »

How about the CodeArchive?

/me ducks in preparation

AIR.
"Programming is like Poetry. Sometimes the words just escape you..." -me, to my manager.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

:D
@}--`--,-- A rose by any other name ..
User avatar
einander
Enthusiast
Enthusiast
Posts: 744
Joined: Thu Jun 26, 2003 2:09 am
Location: Spain (Galicia)

Post 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
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post 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.
User avatar
utopiomania
Addict
Addict
Posts: 1655
Joined: Tue May 10, 2005 10:00 pm
Location: Norway

Post 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.
Post Reply