Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

[Discussion] Easier Programming languages = Better?

Since the last few months I've been asking everybody who codes to help me choose between C#, Java and C++. Experienced programmers adivsed me to learn C++ so that it will help me understand OOP better and it also gives me more control over the program. I already know good PHP, Python, Ruby and Javascript and am good with OOP, but that's another story.So about 5% advised C++, about 30% advised Java and the rest went for C#.

Here are the points put forward by them:

C++
  • Gives more control over the program

  • Very fast

  • Cross Platform



Java
  • Cross Platform

  • Easier than language compared to C++



C#
  • Windows UI programs are very easy to code in C#

  • Easier language than C++

  • Backed by Microsoft



So from this, ease of coding something in a particular language is what makes that language better?

Just because people find it easier to do (in C#):

Code
MessageBox.Show("Hello World");

Than (in C++):

Code
cout << "Hello World" << endl;

Does the easier language becomes a better one?

I would like to know your opinions. I'm just trying have a discussion, so please keep it as clean as possible.

Thank you.
(Jun 9, 2015 08:55 PM)F-Nuke Wrote:  Just because people find it easier to do (in C#):

Code
MsgBox.Show('Hello World');

I believe you got it mixed up.
C# is
Code
{
      MessageBox.Show("Example");
}

Anyways. I think it depends on what you're trying to achieve.
[Image: L9unCFX.png]
(Jun 9, 2015 09:07 PM)Priology Wrote:  I believe you got it mixed up.
C# is
Code
{
      MessageBox.Show("Example");
}

Anyways. I think it depends on what you're trying to achieve.

Thank you for pointing that out. Edited the OP.

And I want to learn a language with which I'm able to code applications for computers, I feel I'm too 'web-dev sided'
(Jun 9, 2015 09:10 PM)F-Nuke Wrote:  Thank you for pointing that out. Edited the OP.

And I want to learn a language with which I'm able to code applications for computers, I feel I'm too 'web-dev sided'

From what I've saw, C# is most widely used.
And you can make desktop apps.

The C# example uses ', while it should be ".
[Image: L9unCFX.png]
All of those languages are OOP. The only reason I'd recommend C++ is that it gives you a very good insight into how computers work. Making GUI is a PITA in C++, but who needs a GUI anyway? Java is the optimal choice if you require cross platform. C# if you for some reason need a GUI. Other than that, the choice is yours.

(Jun 9, 2015 09:12 PM)Priology Wrote:  From what I've saw, C# is most widely used.
And you can make desktop apps.

The C# is the least used of those three. All 3 languages can be used to make 'desktop apps'.
BTC: 1PQFRwoyRUTCWMC7anLdVxTp4t22MVoos2
(Jun 9, 2015 09:18 PM)Scy7e Wrote:  All of those languages are OOP. The only reason I'd recommend C++ is that it gives you a very good insight into how computers work. Making GUI is a PITA in C++, but who needs a GUI anyway? Java is the optimal choice if you require cross platform. C# if you for some reason need a GUI. Other than that, the choice is yours.

The C# is the least used of those three. All 3 languages can be used to make 'desktop apps'.

My bad xD, I'm not the expert here. (No sarcasm intended).
[Image: L9unCFX.png]
Easier languages are great for beginner programmers. Because they're so simple, they're great for people to learn code theory and what not. Not to mention, simplicity is an incredibly important idea to keep in mind when programming. Easiest is not always best though.
I would say C# because it is more powerful than you think. You can easily build desktop applications but let's say you have a change of heart and want to go to mobile app development, you can go straight to Xamarin and code right away using your C# skills. Also, Unity for gaming if you want to go the video game route. Do some more research and you'll get yourself a definite decision
Sorry but you said already know PHP, Python, Ruby and Javascript but still C++ is hard ? ! First years everyone thinks I already know 1515125125 language like pro but bedrock not like this.No offense ..

My advice buy book(real book not pdf), than start read it.Over over times .. When finish it start next one.Until there is nothing left.After 1-2 years .. you'll recognize "oh shit I must read more" ..

We are all ignorant people and we must read hard 🤝
(Jun 9, 2015 10:45 PM)SIM-1866423 Wrote:  Sorry but you said already know PHP, Python, Ruby and Javascript but still C++ is hard ? ! First years everyone thinks I already know 1515125125 language like pro but bedrock not like this.No offense ..

My advice buy book(real book not pdf), than start read it.Over over times .. When finish it start next one.Until there is nothing left.After 1-2 years .. you'll recognize "oh shit I must read more" ..

We are all ignorant people and we must read hard 🤝

Reading comprehension? OP never said C++ is hard for him - he said the others are easier, and that's a fact. Even if someone knew PHP, Python, Ruby and JS, it doesn't mean that he knows C++. C++ is way more complicated and deeper than any of those high level, interpreted languages.
BTC: 1PQFRwoyRUTCWMC7anLdVxTp4t22MVoos2
(Jun 9, 2015 10:45 PM)SIM-1866423 Wrote:  Sorry but you said already know PHP, Python, Ruby and Javascript but still C++ is hard ? ! First years everyone thinks I already know 1515125125 language like pro but bedrock not like this.No offense ..

My advice buy book(real book not pdf), than start read it.Over over times .. When finish it start next one.Until there is nothing left.After 1-2 years .. you'll recognize "oh shit I must read more" ..

We are all ignorant people and we must read hard 🤝

I never said that C++ is hard, as a matter of fact it is. PHP draws its syntax from C, so there is a huge similarity between the syntax of PHP and C++. I'm good with PHP, that helped me learn the basics of C++ in a day (I mean, loops, arrays, data types, and the other simple stuff). And I never thought I knew 1515125125 languages like a pro. And your post did not help taking this discussion forward in any way. No offense either.
Mine's just advice,I am not try blame or something anyone.As I said just "advice" 🤝
I'm no expert in C# but from my experience, C# may be considered "easier" because it abstracts all the inner workings of the lower layers from the developer, thus making it more "friendly". On the other hand, C++ allows for manipulation down in memory and this might cause a hard time for fresh programmers. I remember starting with C and finding that dealing with arrays and pointers is a nightmare when you start getting all of these seg faults. Although languages like C# can be used to easily create large programs with ease, C++ lets you tweak things under the hood like memory giving the developer an enormous amount of power. But of course, with anything, it really depends on what you see yourself making in the future.

Oh, and, C++ is not "cross platform" in the sense that you can build it once and run it on anything. I think you meant it can be cross compiled.
C#
Code
MessageBox.show("hello")

c++
Code
MessageBoxA(NULL ,"hello", "hello", MB_OK);

General desktop apps/tools then go C#
resource intensive tasks/tools/apps, malware go C or C++
Easier programming languages are more suitable for beginners. Are they better? Hard to say.
IMO, every language is better than others in it's own way. By saying that I mean the main, most widely used languages.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by HackersFeb 4, 2024 08:43 PM 5 161 Feb 4, 2024 08:43 PM
Last Post: HALx86
by kaydubOct 22, 2023 05:41 AM 8 294 Oct 22, 2023 05:41 AM
Last Post: Hackers
by DAGOAT333Sep 21, 2022 12:23 PM 12 313 Sep 21, 2022 12:23 PM
Last Post: wit