I am trying to write a program using FreeBASIC and I hit a limitation that causes me to consider another langauge to get past said FreeBASIC limitation. The program that I'm writing is a DOS program and a side project. At the moment I have two options available: C++ (either DJGPP or Open Watcom) or Free Pascal.
Any recommendations for someone who's used to BASIC in DOS? I have no plans of using graphics, the program is only going to be in text mode only.
I am trying to write a program using FreeBASIC and I hit a limitation that causes me to consider another langauge to get past said FreeBASIC limitation. The program that I'm writing is a DOS program and a side project. At the moment I have two options available: C++ (either DJGPP or Open Watcom) or Free Pascal.
Any recommendations for someone who's used to BASIC in DOS? I have no plans of using graphics, the program is only going to be in text mode only.
Jagossel wrote to All <=-
Any recommendations for someone who's used to BASIC in DOS? I have no plans of using graphics, the program is only going to be in text mode only.
Any recommendations for someone who's used to BASIC in DOS? I have no pla of using graphics, the program is only going to be in text mode only.
Why not just plain-ole C?
I haven't programmed in BASIC in a long time, but several years ago I was looking for a C++ compiler to use for DOS. I seem to recall that Open Watco DOS compiler had support for more recent C++ than other DOS C++ compilers
(I still don't think it supported C++11, but still a fairly recent variant o C++).
I've never programmed in C myself, but I did several projects in Pascal
back in high school. I can attest that it's not very hard to move from BASIC to Pascal.
I tried to get stsrted with Open Watcom 1.9 yesterday, and I got stuck on trying to create a makefile. I have never done makefiles before, and finding resources on it has been a challenge. Have Open Watcom come with an IDE that only works in Windows doesn't help.
Re: Language to Transition To From BASIC?
By: Digital Man to Jagossel on Tue Jul 03 2018 17:29:27
Any recommendations for someone who's used to BASIC in DOS? I have no pla of using graphics, the program is only going to be in text mode only.
Why not just plain-ole C?
That'll depend. I'm used to how easy it was to move the cursor and change the colors in BASIC; and I need loops to do the keyboard scan so that the cursor can be moved by the user.
Are there function or libraries for C that'll provide the same functionallity?
I am trying to write a program using FreeBASIC and I hit a limitation that causes me to consider another langauge to get past said FreeBASIC limitation. The program that I'm writing is a DOS program and a side project. At the moment
I have two options available: C++ (either DJGPP or Open Watcom) or Free Pascal.
Any recommendations for someone who's used to BASIC in DOS? I have no plans of
using graphics, the program is only going to be in text mode only.
If you don't need a compiled end product you could use PERL which is easy to use and has tons of modules to allow you to write portable code. PERL will handle all the memory management for you and will probably be a shorter learning curve than using C or C++.
I found PERL very quick to learn and easy to use...it's probably what stopped me learning C :)
Re: Re: Language to Transition To From BASIC?
By: Nelgin to Jagossel on Sat Jul 21 2018 02:56 am
If you don't need a compiled end product you could use PERL which is easy
to use and has tons of modules to allow you to write portable code. PERL will handle all the memory management for you and will probably be a shorter learning curve than using C or C++.
I found PERL very quick to learn and easy to use...it's probably what stopped me learning C :)
Perl tends to be a lot easier to write than it is to read. These days I might
prefer Python over Perl (and in fact, I've heard of Python being used a lot these days to teach progrmaming).
Yup, Python is another option. Again, something I don't use because I don't need it. I can do most of the things I need in shell scripts. For those that deal with a lot of text files and manipulating them one way or another, or for something regular expression heavy, I use PERL. Even php has a perl regular expression library. In Python 2.5 the regex module was removed, which contained Emacs type pattern matching. It now uses re which is privdes PERL like patching. For regex, you really can't beat PERL.
I would agree with Python as a good choice. Especially comming from BASIC. If our not real familiar with the C style programming languages I think you would pick up Python rather quickly.
I've done more with C-style languages, and I found Python fairly easy to learn.
Nightfox
However, I tried to look into using Free PASCAL, it doesn't work in Magic DOSBox; I might have to recreate a FreeDOS VM on my phone with Limbo and see
Free PASCAL will work there. I may try to see if I can find a better DOS version of Free PASCAL and try again.
Re: Re: Language to Transition To From BASIC?
By: Nightfox to Clifra Jones on Tue Jul 24 2018 12:58 pm
I've done more with C-style languages, and I found Python fairly easy to learn.
Nightfox
Python, like PowerShell is just great if you need to get something automated and get it done FAST!
Idk what terminal you using all I know is how to operate vt100
terminals. From the way I use it I don't have helper functions but remember the codes needed to be sent to stdout for the terminal (a
vt100 one) to interpret. I could use a library that held these codes
and did such printing for me but eh.
Also as someone learning C and also x86 as a product of that it really makes you learn a lot.
I would agree with Python as a good choice. Especially comming from BASIC. If our not real familiar with the C style programming languages I think you would pick up Python rather quickly.
I also love Python. I found it easy to learn. I work in journalism where data
journalists are often self-taught, and Python seems to be the most popular language (although many use R).
--Josh
Sysop: | Chris Crash |
---|---|
Location: | Huntington Beach, CA. |
Users: | 578 |
Nodes: | 8 (0 / 8) |
Uptime: | 28:36:24 |
Calls: | 10,737 |
Files: | 5 |
Messages: | 443,806 |