Ist es einfacher, eine Programmiersprache zu lernen, wenn man eine andere schon kann?

Ich will gerade c# lernen und wenn ich das kann ist es einfacher für mich c++ zu lernen? Die Programmiersprachen sind ja ziemlich ähnlich.

(2 votes)
Loading...

Similar Posts

Subscribe
Notify of
17 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
jo135
9 months ago

It’s easier, but not insane.

If you can think in algorithms and basic elements such as variables, loops, functions, etc., you have done a lot of the effort.

C++ and C# are both statically typified, object-oriented languages with functional elements. C# has a C-like syntax like C++. It helps a little.

Then it stops. Behind the facade, the languages then work very differently in very, very many small and larger aspects, C++ is also much larger from the language scope.

That Microsoft has called the language “C#” is actually a label dizzy, because it is by no means a language of the C/C++ family.

cleanercode
9 months ago
Reply to  jo135

Name it by name: Microsoft Java

ChrisCat1, UserMod Light

Yeah, it’s easier.

Many programming languages work in a similar way and once you have understood the principle of something you can use it for other languages.

Especially when two speeches are very similar, it is even easier to learn the new syntax.

cleanercode
9 months ago

Define “can.

The syntax itself is not a problem.

It’s much more about architecture and principles.

This is like with foreign languages: only because you can English does not mean that you can apply all forms (e.g. formal) of English.

Better build your knowledge in depth instead of in width. Otherwise, there is a risk that you can do a lot – but nothing is right.

And C# is just a clone of Java and has nothing in common with C++.

grtgrt
9 months ago

If you want to learn C++, you should first learn C:

He then knows much better what is helpful to C++ or, at least, easy to understand for beginners.

C is the simplest, but C++ is the most complicated of all C programming languages.

Who isn’t forced to use C++ shouldn’t pretend to waste his time.

SikerimAMK31
4 months ago
Reply to  grtgrt

Who wants to learn C++ should have learned C

Is about as useful as: If you want to learn French, you should have learned Latin.

grtgrt
4 months ago
Reply to  SikerimAMK31

You’re mad, for: C can be seen as a small subset of C++, which — together with the class concept of C++ — represents a programming language which

  • very much easier than C++
  • but not less efficient.

It does not have its own name (although I call it C+ myself, and so since about 1995 it has been well suited for all projects that had to be officially used C++).

grtgrt
4 months ago

The latter is, of course, correct.

SikerimAMK31
4 months ago

C cannot be a subset of C++ on its own because it is a valid C code that is not a valid CPP code.

Otherwise you can see this with your mental self-creation “C+”. I am only wondering whether such projects work even if they are more than one developer, whose cooperation and something like common conventions exist. This “I use the language as (only) I think it is correct” is very important.

zalto
9 months ago

Yes, the languages with C-like syntax (C, C++, C#, Java, Javascript etc.) are all very similar.
But even if you “just” control a language with non-C-like syntax, you have a knowledge advantage over someone who has never programmed.
There are enough concepts that do not depend on the language itself and want to be understood.

grtgrt
4 months ago
Reply to  zalto

Well, that C and Java are similar to each other, I would never say.

SikerimAMK31
4 months ago
Reply to  grtgrt

At least both use “C-Style” syntax

zalto
4 months ago
Reply to  grtgrt

C is the grandfather, C++ the father and Java the illegitimate child in the family.

grtgrt
4 months ago

As the best way to understand how code works from the Pike (also object-oriented to write), I would recommend C+.

grtgrt
4 months ago

C++ is too complicated in my eyes.

C# is significantly easier to use and provides code that is significantly more robust and more manageable than written in C++.

In short, C#, like Java, is the most helpful language for impinging enterprise applications and, in any case, the C++. There is no third language for which you can say that.

emerel
4 months ago

Yes, definitely.

Lamanini
9 months ago

Yeah, much easier. At least if they support similar paradigms. You only have to learn how to implement your existing plans in this language, instead of learning these plans.