Trying to decide which programming language I want to learn

Click For Summary
SUMMARY

The discussion centers on selecting a programming language for personal development, with a focus on C#, C++, and Python. The participant, with a background in assembly language and a shift to electronics, expresses interest in languages suitable for scientific and gaming applications. Recommendations highlight Python for its ease of use and community support, especially with libraries like NumPy and SciPy for scientific programming, while C++ is noted for its performance in game development. Ultimately, C# is suggested for its accessibility, particularly for hobby projects.

PREREQUISITES
  • Basic understanding of programming concepts
  • Familiarity with microcontrollers and electronics
  • Knowledge of libraries such as NumPy and SciPy for Python
  • Awareness of game development frameworks like PyGame
NEXT STEPS
  • Explore Python programming through Codecademy or similar platforms
  • Investigate C++ game development resources, including OpenGL and DirectX
  • Learn about microcontroller programming with Arduino kits, particularly Elegoo kits
  • Review tutorials for C# development using Visual Studio and .NET framework
USEFUL FOR

Individuals looking to rekindle their programming skills, hobbyists interested in scientific computing or game development, and those seeking to engage with modern programming languages in a practical context.

  • #391
sysprog said:
The compiler would reject the 0++ incrementation directive inside the brackets of the a[0++] expression because 0 is not a variable.
I'll take your word for it but, as long as the context is only iteration and not re-iteration (ie: it doesn't need to be rezeroed), it saves a superflous explicit declaration.
 
Technology news on Phys.org
  • #392
hmmm27 said:
I'll take your word for it but, as long as the context is only iteration and not re-iteration (ie: it doesn't need to be rezeroed), it saves a superflous explicit declaration.
What's wrong with a[1]?
 
  • #393
Mark44 said:
C++:
unsigned i = 0;
while (i < dynArr.size())
{         
      num = dynArr[i++];
      count << num << " ";// display all the numbers until the end.         
}
This is of course also a common application for a traditional for-loop:
C++:
for (int i = 0; i < dynArr.size(); i++)
{
    count << dynArr[i] << " ";
}
Or in a modern (post 2011) version of C++, a range-based for-loop:
C++:
for (int num : dynArr)
{
    count << num << " ";
}
 
  • Like
Likes   Reactions: pbuk
  • #394
pbuk said:
What's wrong with a[1]?
Nothing, if your purpose is to explicitly access the second element in an array. In what context were you comparing it to a hypothetical a[0++] statement ?
 
  • #395
pbuk said:
What's wrong with a[1]?
hmmm27 said:
Nothing, if your purpose is to explicitly access the second element in an array. In what context were you comparing it to a hypothetical a[0++] statement ?
I believe pbuk was referring to this post of yours, #380:
hmmm27 said:
wouldn't be surprised if a c compiler accepted, and processed properly, something to the effect of a[0++]
There's nothing hypothetical about a[0++]. It just flat won't compile.
 
  • #396
This thread is getting very long, with just under 400 posts. @yungman, when you have another question, please start a new thread.
 
  • Like
Likes   Reactions: pbuk
  • #397
Thank guys, my big boss just had a hip replacement yesterday and she's home. I am too busy right now to read the replies right now. I'll get to it later tonight or tomorrow.

thanks
 
  • #398
I'm closing this thread now. If anyone other than the OP (@yungman) feels the need to reply to a post here, please let me know, and I'll reopen it temporarily.
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 133 ·
5
Replies
133
Views
11K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
16
Views
3K
  • · Replies 54 ·
2
Replies
54
Views
5K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 58 ·
2
Replies
58
Views
5K