MUFF WIGGLER Forum Index
 FAQ & Terms of UseFAQ & Terms Of Use   Wiggler RadioMW Radio   Muff Wiggler TwitterTwitter   Support the site @ PatreonPatreon 
 SearchSearch   RegisterSign up   Log inLog in 
WIGGLING 'LITE' IN GUEST MODE

some good resources to learn c++ basics?
MUFF WIGGLER Forum Index -> Music Tech DIY  
Author some good resources to learn c++ basics?
sizone
I'm not going to be able to do what I would like to do with my axoloti board unless I make some custom objects.

so I need to learn some basic coding.

looking for recommendations. print books prefered. something as short and simple as possible.

guess I'm also going to be needing suggestions for free/cheap ides.
UltraViolet
A classic is the Waite Group's C++ Programming. However, is assumes some general knowledge of programming. In general, due to its complexity, C++ is not a good first programming language to learn. If you have no programming experience at all, you might find it easier to learn a simpler language before moving up to C++. Something like C# that hides the complexity of pointers and memory management would be easier to learn as a starting point.
MapacheRaper
Arduino could be a nice starting point. Dear easy and free IDE to start tinkering
mcbinc
A good survey of standard books: https://stackoverflow.com/questions/388242/the-definitive-c-book-guide -and-list

There are places to play interactively: http://cpp.sh/

And more advanced places to evaluate code generation in detail (very relevant for embedded): https://gcc.godbolt.org/
numan7
one problem with learning c++ from a textbook is that the language standard itself has been undergoing considerable evolution and improvement over the past decade (c++17 is its current release). so older texts are not typically going to be teaching you very good ways of doing a number of important things.

bjarne stroustrup's website ( http://www.stroustrup.com/bs_faq.html ) could be a helpful source of information, although i see he has yet to update his own textbook past c++14 (i suspect he's waiting for c++20).

good luck!


cheers
EOTS
Yes, the inventor Bjarne Stroustrup has written a couple of books, which I use are a reference.
https://en.wikipedia.org/wiki/Bjarne_Stroustrup#Publications

But since the classic stuff, for me C++98 a lot of revisions have happened.

For beginners, I found the C++ Primer stuff by https://www.amazon.de/C-Primer-Stanley-B-Lippman/dp/0321714113/ OK.

Nowadays most importantly, try stuff ... google if uncertain ... repeat the cycle.

After using 40+ programming languages, IMHO a small percentage of learning effort (say like 5%) is always the language itself, and the major learning curve (95%) is the API, libraries, that stuff.
commodorejohn
If your goal is specifically to code for the Axoloti platform, I'd start with tutorials geared specifically toward that; it looks from what I'm seeing like the use of C/C++ is highly specialized/idiomatic compared to what you'll find in general-purpose programming texts. C++ specifically is massively more over-featured than you'd ever need for something like this. It'd be worth your while to get a solid grasp of core C programming, though; most of what you learn in doing that will be transferrable to pretty much any other development work, especially in the DSP field. Just be prepared to shoot yourself in the foot a lot at first.
infinitemachinery
commodorejohn wrote:
If your goal is specifically to code for the Axoloti platform, I'd start with tutorials geared specifically toward that; it looks from what I'm seeing like the use of C/C++ is highly specialized/idiomatic compared to what you'll find in general-purpose programming texts. C++ specifically is massively more over-featured than you'd ever need for something like this. It'd be worth your while to get a solid grasp of core C programming, though; most of what you learn in doing that will be transferrable to pretty much any other development work, especially in the DSP field. Just be prepared to shoot yourself in the foot a lot at first.


I couldn't agree more. The language used to program Atmega and other MPs is a small subset of the C++ syntax. Jumping in and learning the full standard C++ language would be a waste.
MUFF WIGGLER Forum Index -> Music Tech DIY  
Page 1 of 1
Powered by phpBB © phpBB Group