Learn Programming Now: C++ & Java Basics for Computer Engineering Majors

  • Context: C/C++ 
  • Thread starter Thread starter rty640
  • Start date Start date
  • Tags Tags
    Beginning Programming
Click For Summary

Discussion Overview

The discussion revolves around the best programming languages for a high school senior planning to major in computer engineering. Participants explore various languages, including C++, Java, Scheme, and Python, and share resources for learning and understanding programming concepts. The scope includes recommendations for books, compilers, and the relevance of different languages in real-world applications.

Discussion Character

  • Exploratory
  • Debate/contested
  • Technical explanation
  • Conceptual clarification

Main Points Raised

  • One participant suggests starting with C++ or Java to prepare for a computer engineering major.
  • Another participant advises researching job market demands to inform language choice.
  • A different viewpoint proposes starting with Scheme, citing its minimal syntax and ease of learning.
  • Some participants express skepticism about Scheme's real-world applications and suggest Python as a more practical alternative.
  • Several participants emphasize the importance of understanding object-oriented programming principles, regardless of the language.
  • One participant shares a personal experience of starting with Python and then switching to C++, highlighting the impact of how one is introduced to programming languages.
  • Another participant critiques the use of Scheme as an introductory language, comparing it to teaching complex languages to beginners.
  • Resources for learning, including books and compilers for various languages, are shared throughout the discussion.

Areas of Agreement / Disagreement

Participants express a range of opinions on the suitability of different programming languages for beginners. There is no consensus on the best language to start with, as some advocate for Scheme while others prefer Python or C++. The discussion remains unresolved regarding the most effective language for foundational programming education.

Contextual Notes

Some participants highlight the limitations of specific languages in real-world applications and the varying teaching approaches at different educational institutions. The discussion reflects diverse perspectives on the relevance and practicality of programming languages in the context of computer engineering.

Who May Find This Useful

High school students interested in computer engineering, educators seeking to understand language teaching methodologies, and individuals exploring programming language options for self-study may find this discussion beneficial.

rty640
Messages
16
Reaction score
0
I'm a high school senior planning on majoring in computer engineering. In my spare time I would like to get a head start on programming. What language should I learn that would best prepare me for what I might be exposed to? My guess is C++ or Java, but I'm not sure. I'm also looking for book recommendations and a free compiler. Thank you!
 
Technology news on Phys.org
You may want to go to several job web sites, where one would normally go to find a job, to get a feel of the market demand and salary ranges for your area you intend to eventually reside. My intention is not to encourage you in choice of programming language or operating system targets or even books. I prefer one language over alll others so you might want to figure out your preferences between all of them. If you know the school you are going to attend, you can also find out what languages they are teaching.
 
Easy: first Scheme, then C.

Structure and Interpretation of Computer Programs
Abelson, Sussman, and Sussman
wikipedia
(this one is available for free on its MIT webpage)

http://cm.bell-labs.com/cm/cs/cbook/
Kernighan and Ritchie
wikipedia

cover.jpg
2nqv2xl.jpg


Compilers to get you started:C
Linux/UNIX: gcc (probably already installed)
Mac OS X: http://developer.apple.com/TOOLS/xcode/ (contains gcc)
Windows: http://www.microsoft.com/express/product/default.aspx

Scheme
All platforms: DrScheme

All are free.
 
Last edited by a moderator:
Thanks for the replies.

I'm going to look into Scheme.
 
You're going to want to be familiar with many languages. Whatever can get the job done quick and efficient. Maybe you'll need to make a quick GUI, I'd say go with VB (ugh..) It really depends on the circumstances.
 
I'm really just looking for learning something that will help me understand concepts that I can apply elsewhere.
 
I've never even heard of Scheme. How well will that prepare the OP for what s/he'll encounter? Are there any real-world applications that use it, or is it a learning tool?

Something that will definitely help you that is language-independent is to pick up a book on object-oriented programming principles.
You need to have a good understanding of:
inheritance
abstraction
encapsulation
polymorphism
Understanding these concepts will get you muuuuuuch farther than learning any specific language.
 
DaveC426913 said:
Something that will definitely help you that is language-independent is to pick up a book on object-oriented programming principles.

You wouldn't happen to have any recommendations on a book would you?

Thanks.
 
Scheme is, to be frank, a pretty strange suggestion for a first language. A few American universities used to use it as an introductory language but it has largely been dropped in favour of Python. Moreover, apart from some limited use as a scripting language for Gimp, I can't think of any examples of where Scheme has seen real-world adoption.

For what it's worth, my suggestion would be Python.
 
Last edited:
  • #10
Scheme is, to be frank, a pretty strange suggestion for a first language.

Tell that to the CS faculty at MIT, who've been teaching intro courses with it for the past 30 years. (6.001 - see the page I linked to earlier)

http://mitpress.mit.edu/sicp/adopt-list.html
 
  • #11
I've never even heard of Scheme.

It is a very small academic dialect of Lisp. It has minimal syntax, which makes it very easy to learn, without the usual complications of C-like languages.
 
  • #12
I started with python for my first month, got bored of it and moved to C++ and never looked back lol. Its all about how your introduced to C and C++. If you get an amazing book like I did than youll really enjoy it and everything seems to go well. But if your introduced to it poorly than usually it ends up becoming the devil and scaring you away.
 
  • #13
cam875 said:
I started with python for my first month, got bored of it and moved to C++ and never looked back lol. Its all about how your introduced to C and C++. If you get an amazing book like I did than youll really enjoy it and everything seems to go well. But if your introduced to it poorly than usually it ends up becoming the devil and scaring you away.

Do you remember what book? Thanks.
 
  • #14
signerror said:
Tell that to the CS faculty at MIT, who've been teaching intro courses with it for the past 30 years. (6.001 - see the page I linked to earlier)

http://mitpress.mit.edu/sicp/adopt-list.html

Which was a famously muddled and not-at-all missed course. That scheme course was dropped a number of years ago in favour of a new one based on Python.
 
  • #15
Here is a Python book:
http://folk.uio.no/hpl/INF1100/INF1100-ebook-Aug08.pdf
The source code for the examples:
http://www.ifi.uio.no/~inf1100/book-examples.zip"
Solutions to some of the exercises:
http://www.ifi.uio.no/~inf1100/live-programming/?C=M;O=D"
These are not orginized, but their names are the same as in PDF file(Ctrl-f), the top three are not from the book, but from:
http://www.ifi.uio.no/~inf1100/ODE_project.pdf"

Some more solutions:
http://www.ifi.uio.no/~inf1100/solutions_to_some_exercises_08.pdf"

The book is used in an introduction to programming for science students in Oslo, Norway
 
Last edited by a moderator:
  • #16
Learning scheme as an intro to programming isn't (IMHO) a good idea.
Yes it's an interesting language with an elegant syntax without all the real world baggage of C++ or Java - but it's like Tolkien inventing elvish to study language, great if you are a grad student in language design but we don't teach kindergarteners anglo-saxon first before English.

I would say the best languages to learn from are Python/Ruby (see https://www.physicsforums.com/showthread.php?t=284748 for links to books etc)
I would also recommend reading this book (https://www.amazon.com/dp/0735611319/?tag=pfamazon01-20) although it's written in a non-technical manner it's an excellent introduction to what happens inside a computer.
 
Last edited:
  • #17
Thank you all so much!
 

Similar threads

Replies
86
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 25 ·
Replies
25
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
Replies
69
Views
11K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 6 ·
Replies
6
Views
3K