purebasic vs. freebasic

Everything else that doesn't fall into one of the other PB categories.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

pdwyer wrote:Personally, I'm not a fan of escape characters in strings. I often see problems with ansi C programs (often connecting from unix) connecting to windows servers and things like domain\username authentication fails, then they manually hardcode a domain\\username into their conf files to deal with this some other catch spits the dummy in their code.

It might be convenient for a programmer to type a little less but I think that the time is sometimes lost with interest due to issues later and support time. I have no evidence that this happens a lot but I see it sometimes from the sysadmin side and so I'd not use it in my code if it were available
I see this all the time. Every C programmer has once forgotten that "MyPath\Here" will blow up if H is changed to t. Just wait until you want to match a double \ in a regular expression specified in C. That would be something like Match("\\\\\\\"). Escape characters simply cause problems.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

moogle wrote:I was referring to the attitude of "I've been using this for years I wouldn't want to do it an easier or better way".
you misunderstood me. I was just pointing out, that I have no need for escaped strings, because I'm used to roundscribe it via Chr().
actually, I got quickly into it in C to use "\n" e.g.
so, I' not strictly against the use of escaping.
but Paul has mentioned a good point what problems escaping could cause... (edit: and Trond fastened it)

could we agree that escaping stings are a latter problem for PB?
I would like to see things like full DX9 access and better 3D engine as higher priority....
oh... and have a nice day.
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Post by moogle »

Kaeru Gaman wrote:could we agree that escaping stings are a latter problem for PB?
I would like to see things like full DX9 access and better 3D engine as higher priority....
Yes we can, it's true php doesn't handle filepaths alot so I never came across this :lol:

But at least discussing it has led others to show me some good ways to bypass it.

cheers.
Image
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Post by Fluid Byte »

And let's also agree that PB is not in the "dark ages of programming". :!:
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

definitely agreed...

ask "jear" in the german forums, he started programming in 1964 "when they threw the bits manually through the ringcore".... ;)
oh... and have a nice day.
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Post by moogle »

Fluid Byte wrote:And let's also agree that PB is not in the "dark ages of programming". :!:
only if it stops moronic replies...
Image
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

:lol:

hey, be serious, PB is not dark ages.
oh... and have a nice day.
moogle
Enthusiast
Enthusiast
Posts: 372
Joined: Tue Feb 14, 2006 9:27 pm
Location: London, UK

Post by moogle »

I know :lol:

:D :D :D :D
Image
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

What I'd like to see is automatic string concatenation for literals:

Code: Select all

"Constant" #LF
(So no need for +.)

PS! What I've seen of FreeBasic code generation was fast but buggy (huge memory leak).
Derek
Addict
Addict
Posts: 2354
Joined: Wed Apr 07, 2004 12:51 am
Location: England

Post by Derek »

I'd like to see the unsigned variable types in PB that appear to be in FB.
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

Both languages are now very complex, you can't just compare them based on one or another small feature. FreeBasic got that, PureBasic has this, it just doesn't work for a fair comparison. The best for you is to test both products and see which one will fit your needs.
User avatar
pdwyer
Addict
Addict
Posts: 2813
Joined: Tue May 08, 2007 1:27 pm
Location: Chiba, Japan

Post by pdwyer »

Speaking of dark ages :wink:
Is there a good guide on how to use COM with PB? Is it easy to do or is it fairly painful not having variants built in?
Paul Dwyer

“In nature, it’s not the strongest nor the most intelligent who survives. It’s the most adaptable to change” - Charles Darwin
“If you can't explain it to a six-year old you really don't understand it yourself.” - Albert Einstein
Mistrel
Addict
Addict
Posts: 3415
Joined: Sat Jun 30, 2007 8:04 pm

Post by Mistrel »

pdwyer wrote:Speaking of dark ages :wink:
Is there a good guide on how to use COM with PB? Is it easy to do or is it fairly painful not having variants built in?
If you would like another head to bounce ideas off of, I would like to get into COM in PB as well.

Here are some references I've accumulated in the past:
http://www.purebasic.fr/english/viewtopic.php?t=22132
http://www.purebasic.fr/english/viewtopic.php?t=15755
http://www.purebasic.fr/english/viewtopic.php?t=26880
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

Purebasic saved my life (well not really but in a feeling).

I love it.

I am making money from it.

So i stick with good habits.

Again thanks to the PB team.
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Post by milan1612 »

What seperates PureBasic from FreeBasic is IMHO the feature rich standard library.
That's what keeps me from using C, FreeBasic and C++ more often, because it
makes (effectiv) programming so much easier...
Windows 7 & PureBasic 4.4
Post Reply