The best way to learn to programming?

  • Thread starter Thread starter SteveDC
  • Start date Start date
  • Tags Tags
    Programming
Click For Summary

Discussion Overview

The discussion revolves around the best methods for learning computer programming, particularly in the context of supporting a career in physics. Participants explore various programming languages, resources, and strategies for effective learning.

Discussion Character

  • Exploratory
  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant expresses a need to learn programming fundamentals to enhance their career in physics and seeks recommendations for online courses or tasks.
  • Another participant shares their experience learning C++ and suggests that starting with simple programs and focusing on one language is essential.
  • A participant emphasizes the importance of understanding data representations and storage, suggesting that this can be learned progressively through practical programming exercises.
  • There is a question about the number of programming languages and which is the most commonly used.
  • Some participants recommend starting with languages like MATLAB, Java, or Python, noting their accessibility and relevance.
  • A participant mentions an online introduction to computer science course offered by Harvard and suggests a book called "Think Python" as a good starting resource.
  • One participant advocates for starting with Python or MATLAB instead of lower-level languages like C/C++.
  • Several participants recommend taking formal courses, including introductory programming, data structures, and scientific programming.
  • CodeAcademy is mentioned as a helpful platform for learning the basics of a programming language.

Areas of Agreement / Disagreement

Participants generally agree on the importance of starting with accessible programming languages and formal courses, but there is no consensus on which specific language or resource is the best starting point. Multiple competing views on preferred languages and learning methods remain present.

Contextual Notes

Some participants mention specific resources and courses, but there are varying opinions on the best approach to learning programming, reflecting different experiences and preferences.

SteveDC
Messages
39
Reaction score
0
I really feel I need to get better at writing computer code and at least learn some fundamental basics about computer programming if I am to have a successful career in Physics. Would like to know what would be the best way to learn these skills. Can anyone recommend any online courses or just general tasks which will help me learn this?

Thanks
 
Physics news on Phys.org
What language are you interested in learning? I don't know about best ways, I learned C++ at work in 2012(worked as a chef). Started with this http://www.angelfire.com/art2/ebooks/teachyourselfcplusplusin21days.pdf and when preparing food I was thinking of a code for a robot that could prepare a dish the way it's supposed to be served :D Complete nonsense, but it was fun to think about.
 
You always start by writing simple programs, and all in one language. You need to learn the elements of the language, and also the tools that are provided to work with programs (editors, debuggers, etc).

The two most important parts of programming are data representations and data storage; this is the material that is taught in a data structures class, but you can learn it on your own - but only in stages. This learning may be done by writing programs which exercise each area.

My son taught himself - he wrote a computer game for Android devices - fish in an aquarium. First he thought about how it might work - some basic design - and then he developed it a bit at a time, testing as he went. By laying one brick at a time you can build a house ... but only if you had a plan when you started.

This process took him about nine months starting at winter break of his junior year. It included a physics based motion engine.

Thus you don't need a book like "Learn C in 30 lessons" - what you need is patience and follow-through.
 
I don't know - is there many different languages? What is the most commonly used?
 
There are tons of languages - but you might start with Matlab (if your school provides licenses), or else Java (which is free). Or you could start with an interpretive language like Python (also free, much like Java).
 
I strongly recommend you start with Python or MATLAB, rather than a low level language like C/C++.
 
Take a course on it. I am in the first computer science class and it is C and Java. It is extreemly hard, but my drive for good grades has forced me to "figure out" how to code and now I enjoy it to some extent.
 
TheKracken said:
Take a course on it.
Hear, hear! In fact, take two, or even three. The introductory programming course, the course on data structures and algorithms, and the course on scientific programming.
 
  • #10
CodeAcademy is actually really helpful in learning the very basics of a language.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
2
Views
3K
Replies
10
Views
5K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
872
  • · Replies 1 ·
Replies
1
Views
1K