- #1
Shadow
- 19
- 0
What would you suggest for a first computer language? Many people told me Python but equally as many said it probably wouldn't do what I wanted to. So, I was told I should try PERL or C++...what would you suggest?
Python would be a nice starter language. Unfortunately it's not used a lot in industry.
For true starter languages check out trueBASIC or Pascal.
Heck even the web languages like actionscript and javascript are great to start learning rpogramming concepts.
Doth quoth Shadow
it probably wouldn't do what I wanted to.
What is it that you want to do. That has everything to do with what language you pick up.
Python would be a nice starter language. Unfortunately it's not used a lot in industry.
Oh so many compile errors and warnings in so little code. Should be:#include <io stream.h>
void main()
{
cout << "Hello, World." << endl;
}
#include <[b]iostream[/b]>
[b]int[/b] main()
{
std::cout << "Hello, World.\n";
[b]return 0;[/b]
}
Originally posted by kenikov
In C++:
#include <iostream.h>
void main()
{
cout << "Hello, World." << endl;
}
I am quite sure my C++ is right, but please double check.
I've only done a little programming in BASIC, but i assume the basic syntax was carried over. One of the first things i notice when i look at a BASIC program is how many goto statements there are. There is one example of VB bad habits. If you put a goto statement in a C or C++ program you need to be slapped. Furthermore:I don't know what is meant by "VB teaches bad habits".
By Machewy
1)
VB's 'object-oriented features' isn't really object-orientated. This is mainly because it doesn't fully support real polymorphism.
2)
In VB, it does not require one to declare his/her own variables, before they are used. This is a major mistake by Microsoft. Doing this will teach you a very bad habit, and its hard to get out of. When one does create a program using this method, it causes the system's resources to be used a lot more than if the variable were declared before hand. Therefore, it is highly recommended, for all VB programmers, to declare their variables before they are used.
3)
VB has so many features, that a person could create a program with just clicking some buttons. This isn't real programming, and it teaches a lot of lazyness, which isn't needed within a programmer's attitude. Once again, it is highly recommended for, all VB programmers, to type everything out by hand, and never rely on the easy way out.
4)
VB is not a very good tool to use when involving math. Its mathmatical platform isn't the worst, but it is rather sorry. Alot of the advanced mathmatical features are missing! Fortunatly, Microsoft did address a few of these problems in its newer version VB.net.
yes, it will work that way, but the program is still violating many ANSI standards.works just fine if you write iostream in 1 word...
Yes, that is antoher thing I heard. Well, I don't want anything too easy because if all Python is that simple, I won't be learning much. I want something that will help me make a lot of stuff online games, websites, you know stuff like that, there is a lot I want to do with it but first I would like to see what suggestions I hear. I have seen what PERL can do, and one of my family members is a Computer Programmer, she said that PERL isn't used as much as it used to be, but that there is supposed to be a new edition coming out within the next few years so there is no telling if it will come back. Basically all I know right now is html.
Perl might be a good language to start out with. It is basically the lazy man's C. It would be a good intro to C and C++ which is probably the most used programming language.
Your code violates ANSI standards. "void main()" is a big no no. Using void main with no return value is bad because that has a tendency to return random values to main and you cannot check if it exited corectly. This can cause confusion, especailly if you use makefiles. There are also various other reasons.Your code is clunky. Mine looks better, and works.
Perl might be a good language to start out with. It is basically the lazy man's C. It would be a good intro to C and C++ which is probably the most used programming language.
Python is simple, but it teaches many of the programming basics. You want something simple, I doubt you could hack a decent program in C.
Python can do everything you listed. I don't see what the problem is.
If all you know is HTML, you will have enough trouble learning Python.
go to www.hprog.org[/URL] . They have information on Python and other languages.
Perl doesn't do as much as Python.[/QUOTE]
Which made me unable to make the decision, haha.
Well, in VB, we rarely use Goto statements.Originally posted by HBar
I've only done a little programming in BASIC, but i assume the basic syntax was carried over. One of the first things i notice when i look at a BASIC program is how many goto statements there are
Well again, the typical user uses "Option Explicit", when this option is on, every variable has to be declared first.2)
In VB, it does not require one to declare his/her own variables, before they are used. This is a major mistake by Microsoft. Doing this will teach you a very bad habit, and its hard to get out of. When one does create a program using this method, it causes the system's resources to be used a lot more than if the variable were declared before hand. Therefore, it is highly recommended, for all VB programmers, to declare their variables before they are used.
Well, it is up to u wether to use the features or not, although i don't know what features the author was reffering to, most VB features are used for debugging, i can only think about the "Menu Editor".3)
VB has so many features, that a person could create a program with just clicking some buttons. This isn't real programming, and it teaches a lot of lazyness, which isn't needed within a programmer's attitude. Once again, it is highly recommended for, all VB programmers, to type everything out by hand, and never rely on the easy way out.
Yes, this is right, but you can still import libraries, and you can program what is missing if you need it .4)
VB is not a very good tool to use when involving math. Its mathmatical platform isn't the worst, but it is rather sorry. Alot of the advanced mathmatical features are missing! Fortunatly, Microsoft did address a few of these problems in its newer version VB.net.
I predict, he'll give-up in less than a month.
Python, PERL, and C++ are all programming languages, but they have different purposes and syntax. Python is a high-level language that is known for its readability and simplicity, making it a great choice for beginners. PERL is a scripting language that is commonly used for text manipulation and system administration. C++ is a low-level language that is used for developing applications and system software.
Python is generally considered the easiest language to learn, especially for beginners. Its simple syntax and high-level abstractions make it easier to understand and write code in compared to PERL and C++.
All three languages have their own strengths and can be used for a variety of purposes. However, Python is often considered the most versatile due to its wide range of libraries and frameworks that can be used for web development, data analysis, machine learning, and more.
All three languages are in high demand in the job market, but the demand for Python has been steadily increasing in recent years. It is widely used in various industries such as web development, data science, and artificial intelligence, making it a valuable skill to have.
Yes, it is possible to learn multiple languages at the same time. However, it is recommended to focus on one language at a time to avoid confusion and ensure a solid understanding of each language. Once you have a good grasp on one language, it may be easier to learn another one.