This project is underway and will be refined with the following concepts in mind:
Clarity and coolness
Knowledgebase searching optimized
Casual and often fun
Well selected mixed media and visual communication
Bookish layouts (book3.0)
A series with modern people in mind.
"... cpp has been kicking my arse for months: The compiler is a garrulous wanker --- standard C-type arrays, iterators and pointers are (basically the same thing) and are more slippery than a USSR politician --- the online docs are more opaque than an emo's soul and well, Ive also been more maladroit than a coder academy educator.
Nonetheless, I now seem capable of: anticipating & deobfuscating the compilation, selecting and manipulating containers, browsing the docs for clues, and writing an expression without debugging it for an hour. Yay...1 exam and then what's next? C#? Rust? Go? Julia? Review Python probably; is bash still relevant for hackers?
Not big-noting, but I can teach you C/C++ (just have to put together a list of how the two exactly are different - in terms of writing them...it's a matter of mainly which includes to use and obviously no objects) if you would like that. I mean, I'd call it From Python to C in 4 Weeks make a site/blog about it at the same time. Interested?"
use_function<char>(args); // Explicit type templating
void print_v(vector<char> v_chars)
{
ostream_iterator<char> output(cout, " ");
for (char c : v_chars)
*output++ = c;
cout << std::endl;
}
friend ostream & operator << (ostream&, const Thing&); // declared in class
// Defined outside the class
ostream & operator << (ostream & out, const Thing & thing)
{
out << "Number: " << thring.id << endl;
out << "Location: " << thing.location << endl;
return out;
}
$ ~ valgrind --leak-check=full ./a.out
int x;
int* x_ptr = &x; // int pointer
*x is an address that is whatever x resolves to being used as an address.
*x_ptr is the value of x for the same reason as above.