Is updates to newer PB versions still breaking old sourcecode? It's a fantastic language, but the fact that
a new update meant endless hours of fixing errors in programs and libraries of sourecode written
in the prior versions made me leave, somewhere between 2007 and 2013.
Is PB still this way? Do you still change syntax and brake old code with each update?
Broken sourcecode
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Re: Broken sourcecode
There are sometimes major updates that require a major adjustment of the code.
Problems are usually caused by user libraries where you don't have source code for it. These are then mostly no longer compatible with the current version of PB.
For some projects I do this adjustment for myself.
But for very old projects I still use the appropriate PB compiler.
You can install several versions and all versions are available in the museum
Translated with www.DeepL.com/Translator (free version)
Problems are usually caused by user libraries where you don't have source code for it. These are then mostly no longer compatible with the current version of PB.
For some projects I do this adjustment for myself.
But for very old projects I still use the appropriate PB compiler.
You can install several versions and all versions are available in the museum
Translated with www.DeepL.com/Translator (free version)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Broken sourcecode
It is very rare, but there was an update between 5 and 5.2 that changed pointer declaration--that is the one "big" change. There have been some occasional updates to make commands more consistent (i.e. renamed SoundFrequency() to SetSoundFrequency() )
View the change log:
https://www.purebasic.com/documentation ... story.html
None of the changes are difficult to accommodate, and the "breaking" changes offer errors that make them easy to deal with.
I hope you come back.
View the change log:
https://www.purebasic.com/documentation ... story.html
None of the changes are difficult to accommodate, and the "breaking" changes offer errors that make them easy to deal with.
I hope you come back.
Re: Broken sourcecode
Regarding the pointer update, it's easy to deal with--it's basically deleting the .i from the declaration. You get errors, so unless you have thousands and thousands of them, it's not hard, and in that case you could write a simple regex to fix them all at once.
-
- Always Here
- Posts: 6425
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Broken sourcecode
The major issue is User Libs that are very useful but not kept up to date for a variety of reasons (including, unfortunately, the mortal loss of the developer).
Steer clear of anything you don't have the source code for and the updates have very little effect - most can be fixed with a simple find-replace.
Steer clear of anything you don't have the source code for and the updates have very little effect - most can be fixed with a simple find-replace.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
- utopiomania
- Addict
- Posts: 1655
- Joined: Tue May 10, 2005 10:00 pm
- Location: Norway
Re: Broken sourcecode
Ok, the changelog, use the appropriate compiler from the museum if necessary, and everything
isn't as gloomy as I remeber.. Sorry about that, but is my favourite, the webgadget still going strong ?
isn't as gloomy as I remeber.. Sorry about that, but is my favourite, the webgadget still going strong ?
Re: Broken sourcecode
The WebGadget works as usual. But there are also new HTTP functions.
The only problem at the moment is Linux with the new versions (Ubuntu 19.xx). There are some LibWebKit libraries missing which need PB.
The only problem at the moment is Linux with the new versions (Ubuntu 19.xx). There are some LibWebKit libraries missing which need PB.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Broken sourcecode
Thankfully, I've kept that philosophy.IdeasVacuum wrote:Steer clear of anything you don't have the source code for and the updates have very little effect - most can be fixed with a simple find-replace.
Updates that break code are always annoying. On the other hand, there are always compelling reasons to do so, so I always view it as growing pains. Heck, even C has changed a bit, and it doesn't even have any "native libraries" to speak of. I learned it back when the function declarations had the variables after the declaration... It's goofy looking now when I look at it.
Last edited by Tenaja on Wed Dec 11, 2019 6:20 am, edited 1 time in total.
Re: Broken sourcecode
Do a search, I think I recall someone here making an alternative based on an open source browser (chromer?). You'd likely have to use a library if that's the case, but at least if it's os you could update if necessary.mk-soft wrote:The WebGadget works as usual. But there are also new HTTP functions.
The only problem at the moment is Linux with the new versions (Ubuntu 19.xx). There are some LibWebKit libraries missing which need PB.