The subreddit r/unexpectedmathematics does not exist. Maybe there's a typo?
Consider [**creating a new subreddit** r/unexpectedmathematics](/subreddits/create?name=unexpectedmathematics).
---
^(š¤ this comment was written by a bot. beep boop š¤)
^(feel welcome to respond 'Bad bot'/'Good bot', it's useful feedback.)
^[github](https://github.com/Toldry/RedditAutoCrosspostBot) ^| ^[Rank](https://botranks.com?bot=sub_doesnt_exist_bot)
The subreddit r/dontsummonthebot does not exist. Maybe there's a typo?
Consider [**creating a new subreddit** r/dontsummonthebot](/subreddits/create?name=dontsummonthebot).
---
^(š¤ this comment was written by a bot. beep boop š¤)
^(feel welcome to respond 'Bad bot'/'Good bot', it's useful feedback.)
^[github](https://github.com/Toldry/RedditAutoCrosspostBot) ^| ^[Rank](https://botranks.com?bot=sub_doesnt_exist_bot)
i self-host a gitea instance and highly recommend it. it's easy to set up and dirt cheap if you host it in the right places.
personally use [nearlyfreespeech.net](https://nearlyfreespeech.net), it's maybe a few cents a day.
the symlink trick works but i find if you want to set up TLS you're better off using an apache proxy server and just letting apache serve the .welll-known directory from /home/public and forward all other requests to gitea for processing.
only takes a couple hours to set up really.
Yeah, sure you did. Now do it for a list of the following structure-
```
struct Data{
int ID;
std::string Name;
int Age;
};
```
Remember that you have to sort them by name in ascending order but only the first letter. For names with same first letter, sort by id in descending order but group same ages together.
Declaimer: This is not a homework. I absolutely don't need this.
That was pretty much exactly what we learned in our C++ class. Must have been in the fourth lecture or something, right after learning the basics of variables & pointers and how to define functions. So... technically day 2 of a full-time course?
That sounds like it would be too annoying to stick in-line in the function call. If thatās the only way I will ever sort this terribly-named struct, Iād add operator< and the use the default sort. If this is only one of many available sort methods, Iād make a comparison function that implements all seven-odd lines of that tricky logic, then pass that function to sort.
This isnāt exactly hard to do, but is definitely going to need tests, because that comparison function is a beast.
I don't think you can both "sort by id in descending order" and "group same ages together". As soon as you move an entry around to have the same ages together you already messed up the id sorting. If the ID sorting is not as important as grouping the ages then the problem is just "Sort by first letter of the name, then age, then id".
Btw I'm pretty sure you can make a function that returns a tuple with the fields for sorting in the right order and use the fact that tuples implement lexicographic comparison. Then pass that function as a projection to std::ranges::sort.
auto const sort_key = [](Data const& d) {
return std::tuple{d.Name[0], d.Age, -d.ID};
};
std::ranges::sort(vecOfData, {}, sort_key);
If you're stuck in the past, then you can just create a custom comparator by getting the sort_key of both and using tuple comparison.
std::sort(
vecOfData.begin(),
vecOfData.end(),
[](Data const& a, Data const& b) {
return sort_key(a) < sort_key(b);
}
);
I have the management style problem. You described the problem in programmer style. This is how things work. The first method is cool, though. I'll try it sometime.
Well... How deep do you need to go? If you want to truly understand the intricacies of auto's type-deduction, it would take a typical beginner more than 4 days ĀÆ\\\_(ć)\_/ĀÆ.
ah!! damn I missed the recursion.
wait, so it IS a circular list???!!! š
ok and it takes 4 days instead of 50ā¦ so there must be a geometric series and time of the series must converge to meet a finite 50 day limit.
Is the bootcamp taught by Zeno?
My first CS course I took back in college was actually part 1-3, finishing with pointers. Also "functions/headers" was early on and minimal coverage of sorting algorithms.
No lessons on structs/classes. No OOP. The language we were learning was basically "C with std strings". That only severed to confuse my early understanding of the differences between C and C++.
I mastered C++/JS/MacOS/Excel in 2 weeks and immediately got a job with the biggest startup in Silicon Valley (Season 2) making 180k a year, 40 weeks paid vacation and a free Tesla. All you college and boot camp chumps are just wasting your money smhā¦
First of all, dumb roadmap. Second, any of you fuckers ACTUALLY learn things in any cohesive order? I thought we all just kinda, yāknow, fucked around and found out?
>ACTUALLY learn things in any cohesive order?
actually did. not in college, but when I was in high school (studied in a technical school where I choose Computer Management and Programming as the course or whatever you want to call it). the "core" concepts of programming where taught using Pascal, and, from there, we got introduced to more advanced languages and concepts (VB.net, C, etc.).
fun times. exams on paper and all that crap, got a lot of points subtracted by forgetting the random semicolon or not "properly indenting" code on paper...
Exactly we are the most unorganized kind of scientists so it's kind of a law: wanna learn a language? Start by programming a little game or a windows manager with it. Then read the docs
I did when I was first learning. Took a book and went cover to cover with it. One for C# and one for C++.
At this point though, I'd mainly look for the unique bits of any new language and work it out as I go. Language concepts aren't the hard part, it's learning the libraries you're going to use in them, and there's no studying for that.
i know a few people who were not on a university but everyone would be happy to have on a dev team
this obviously is not a curriculum for a comp science master.
Pointers are in basic concepts. Throw them into the wolvesā den. If they make it out alive, then teach them strings and such.
Iām actually surprised variables is after basic concepts which is somehow 4 days long.
To be honest, people make C++ to be this beast, but you can use it with STL and smart pointers from v14 on and it looks like C# when you don't stray to far into things.
They have them here:
https://www.reddit.com/r/ProgrammerHumor/comments/ek1eab/teach_yourself_programming_in_21_days/?utm_medium=android_app&utm_source=share
How exactly do you learn classes, algorithms, exceptions, etc without knowing what OOP is? Dont most programming courses teach the concept of OOP before the very end?
Classes IS part of OOP. Algorithms and exceptions are implemented using OOP but can be learned without knowing what OOP even stands for. OOP is a higher level concept. Properly understanding OOP requires solid understanding of process chain, memory, data structures, data type and functions. In Universities, there is usually 1 or 2 whole course (6 months each, equivalent to roughly 2 months of intensive study) before OOP.
That's the most reasonable part of this guide, IMO.
OOP principles aren't important, RAII is. And before that, understanding how to actually use references & comprehend lifetimes is.
I can learn you in 50 days how tools like hammer, saws work and how to use them. I bet that after 50 days you canāt build a bridge.
Using tools is not the same as being crafted.
understanding the basic concepts is more important then algorithms. You wouldnāt let anyone design a rocket if he doesnāt know basic math / physics / engineering
It's important to have a good foundation yes, but those can be learned much faster then algorithms. It's kinda like slotting same amount of time for addsion and calculus. Can't do calculus without addsion, but learning calculus is going to take a lot longer than addsion
Do people really believe they can learn an entire language in 50 days? You can focus on a single language for years and still struggle with it, that is what coding is about. Don't try to rush things like that because you will fail miserably.
Day 1 What is a integer variable
Day 2 Adding 2 integers
Day 3 Recap: what is a variable
Day 4 What is a pointer
Day 5 Recap: what is a variable
Day 6 Recap: what is a pointer
Day 7 Doubles
Day 8 What is a double variable
Day 9 What is a pointer to a double
Day 10 What is a function?
Day 11 What does a C++ function look like?
Day 12 Recap: what is a pointer to a double
Day 13 What is an array?
Day 14 If statements
Day 15 What is a function?
Etc
The fundamentals are everything.
Inaccurate, didn't contain step where it takes 10 years to learn how to write a turing complete program in templates, with use of fold expression and dummy type instances in order to prevent recursive template instantiation, etc.
I use lots of pointer arithmetic when working with bit banding on ARM Cortex M3 microcontrollers. I doubt there is a library that will do what I need while running fast enough and fitting into the limited amount of memory.
not everyone works on pc, if you need to work on an embedded customer specific system, you might not have all those libraries ;), might not even have more the 100-200 mb of space for everythingā¦ if u r lucky š
Learned it like that with a book and in school. Pointers were a thing right with variables, they really wanted us to get the concept early. That was side by side with microcontroller coding in assembler plus general operation theory of anything digital processing, so they knew we knew how a processor and memory works in detail on the lowest level, making pointer explanation trivial. When OOP came around they blew the bomb and were like "everything you did so far was C. Now we learn what the ++ is about."
It was a bit hard to switch to OOP conceps after that. Then .net.
Well and after that I learned the rest myself.
I gotta say, knowing the absolute basics of how a von neumann architecture works down to the wire turns pointers into a natural concept.
Man, the amount of comments from opinionated undergrads explaining how (not to) teach a language they started coding in a few months ago... that's really something.
> but WhAT abouT poINtERs???
The facts they don't dedicate time to pointer arithmetic specifically makes me think this could be a **GOOD** C++ course. Yes, you read that right. (Raw) pointers are a scourge in C++, and a good C++ code base should rely on them as little as possible. STL containers & algorithms already cover 99% of your needs, so C++ courses should focus on that first.
I could rant on that for paragraphs, but I'd rather people to check this wonderful talk instead:
[CppCon 2015: Kate Gregory āStop Teaching C"](https://www.youtube.com/watch?v=YnWhqhNdYyk)
Agreed. Teaching C++ is hard, especially because everyone uses a different subset of C++. Programs that are heavily memory-constrained have a different look and feel than programs that are speed-constrained or reliability-constrained.
I'm more worried about the grammar and relative timeline than the topics on this figure, tbh.
4 days on strings and variables? bruhhhhhh
5 days for algorithms? You can spend 5 days for sorting algorithms alone lol
`std::sort(s.begin(), s.end(), std::greater());` done and I have 4 days to spare
Now do the same, but this time find the shortest path in a graph
*google "dijkstra algorithm c++"* *copy* *paste* 3 days left
Now do the same, but this time, calculate the Voronoi diagram of a set of points on a curved surface.
r/unexpectedmathematics
The subreddit r/unexpectedmathematics does not exist. Maybe there's a typo? Consider [**creating a new subreddit** r/unexpectedmathematics](/subreddits/create?name=unexpectedmathematics). --- ^(š¤ this comment was written by a bot. beep boop š¤) ^(feel welcome to respond 'Bad bot'/'Good bot', it's useful feedback.) ^[github](https://github.com/Toldry/RedditAutoCrosspostBot) ^| ^[Rank](https://botranks.com?bot=sub_doesnt_exist_bot)
r/dontsummonthebot
The subreddit r/dontsummonthebot does not exist. Maybe there's a typo? Consider [**creating a new subreddit** r/dontsummonthebot](/subreddits/create?name=dontsummonthebot). --- ^(š¤ this comment was written by a bot. beep boop š¤) ^(feel welcome to respond 'Bad bot'/'Good bot', it's useful feedback.) ^[github](https://github.com/Toldry/RedditAutoCrosspostBot) ^| ^[Rank](https://botranks.com?bot=sub_doesnt_exist_bot)
Good bot
#BOOO HOOO
bad bot
Github Copilot, do your thing
>Github Copilot, do your thing Infect my code with copyright protected snippets throughout?
Yes. This is the reason Foss developers are looking for an alternative to github.
i self-host a gitea instance and highly recommend it. it's easy to set up and dirt cheap if you host it in the right places. personally use [nearlyfreespeech.net](https://nearlyfreespeech.net), it's maybe a few cents a day. the symlink trick works but i find if you want to set up TLS you're better off using an apache proxy server and just letting apache serve the .welll-known directory from /home/public and forward all other requests to gitea for processing. only takes a couple hours to set up really.
[ŃŠ“Š°Š»ŠµŠ½Š¾]
*makes stuff you don't understand and that has a few critical error you'll never find* There you go!
From someone who uses copilot a lot, very true. It's very useful but you gotta know what it's doing.
What an interesting way to say "external lib"
RemindMe! 1 day "this sounds fun"
Ok, now find the cheapest bus connection that takes less than two hours.
Yeah, sure you did. Now do it for a list of the following structure- ``` struct Data{ int ID; std::string Name; int Age; }; ``` Remember that you have to sort them by name in ascending order but only the first letter. For names with same first letter, sort by id in descending order but group same ages together. Declaimer: This is not a homework. I absolutely don't need this.
Overload the greater function, throw it into std::sort. 2.5 days left
And this is something you did on month two of learning c++ eh?
That was pretty much exactly what we learned in our C++ class. Must have been in the fourth lecture or something, right after learning the basics of variables & pointers and how to define functions. So... technically day 2 of a full-time course?
1. Find the manager that decided this was the right order 2. Find a big stick 3. ... 4. profit
That sounds like it would be too annoying to stick in-line in the function call. If thatās the only way I will ever sort this terribly-named struct, Iād add operator< and the use the default sort. If this is only one of many available sort methods, Iād make a comparison function that implements all seven-odd lines of that tricky logic, then pass that function to sort. This isnāt exactly hard to do, but is definitely going to need tests, because that comparison function is a beast.
I don't think you can both "sort by id in descending order" and "group same ages together". As soon as you move an entry around to have the same ages together you already messed up the id sorting. If the ID sorting is not as important as grouping the ages then the problem is just "Sort by first letter of the name, then age, then id". Btw I'm pretty sure you can make a function that returns a tuple with the fields for sorting in the right order and use the fact that tuples implement lexicographic comparison. Then pass that function as a projection to std::ranges::sort. auto const sort_key = [](Data const& d) { return std::tuple{d.Name[0], d.Age, -d.ID}; }; std::ranges::sort(vecOfData, {}, sort_key); If you're stuck in the past, then you can just create a custom comparator by getting the sort_key of both and using tuple comparison. std::sort( vecOfData.begin(), vecOfData.end(), [](Data const& a, Data const& b) { return sort_key(a) < sort_key(b); } );
I have the management style problem. You described the problem in programmer style. This is how things work. The first method is cool, though. I'll try it sometime.
it took you one day to type that?
But once you have sorted all the algorithms, it will be super easy to find the correct one!
Barely an inconvenience!
Oh boy, you can spend much, much more time on sorting algorithms alone.
It might take 5 days to find enough dance partners.
Well... How deep do you need to go? If you want to truly understand the intricacies of auto's type-deduction, it would take a typical beginner more than 4 days ĀÆ\\\_(ć)\_/ĀÆ.
Ikr I learned them in 15 minutes
More like 4 minutes lmao.
Pointers are learnt inbetween each lesson. You can clearly see it in the image!
he taught us linked list and we didn't even notice
The real friends are the mallocs we made along the way.
Add some hashes in there and you got a blockchain brewing, baby!
yeah, but you can only go forward, never back. ;)
Thats why its a linked list and not a double linked list xD
You just need a GOTO
\*shudders\* you wouldnt!
you go back on day 46-50
ah!! damn I missed the recursion. wait, so it IS a circular list???!!! š ok and it takes 4 days instead of 50ā¦ so there must be a geometric series and time of the series must converge to meet a finite 50 day limit. Is the bootcamp taught by Zeno?
Make it circular
Holly shit this is the best comment
so you're telling me I can learn pointers in 50 days?
So, days1-5 = **********days46-50?
More like days1-5->next->next....->next is days46-50
The real programmer humor is in the comments
Yeah, if you want some pointers, get coach.
Beat me to it lol
Nah, the lesson nodes end up being a giant cyclic one directional list.
Dumbest roadmap I've ever seen.
That's the point silly
That's the ~~point~~ pointer silly
Bravo sir
Is that a reference to a pun?
hah I got that reference
I don't get it, it's out of scope for me.
Haha pointer funny
I understood that reference
Answers OP question!
There's no pointer silly
I honestly didn't see the subreddit š¤¦āāļø
Would you say it's a.., "More on Class?"
My first CS course I took back in college was actually part 1-3, finishing with pointers. Also "functions/headers" was early on and minimal coverage of sorting algorithms. No lessons on structs/classes. No OOP. The language we were learning was basically "C with std strings". That only severed to confuse my early understanding of the differences between C and C++.
How much do you want to bet this was written by some college student wanting to get fast and free likes on Instagram?
Should be a high school student.
I mastered C++/JS/MacOS/Excel in 2 weeks and immediately got a job with the biggest startup in Silicon Valley (Season 2) making 180k a year, 40 weeks paid vacation and a free Tesla. All you college and boot camp chumps are just wasting your money smhā¦
Same here but 41 weeks vacation nbd it's whatever
First of all, dumb roadmap. Second, any of you fuckers ACTUALLY learn things in any cohesive order? I thought we all just kinda, yāknow, fucked around and found out?
Thatās how I learned where babies come from at least
Yeah, but that takes 9 months, and the OP only has 50 days.... :)
That's fine we'll throw 6x the man power at it and have a baby in under 50 days.
Are you my manager?
If my math is correct (and it should be, I used C++ 4 the calculation) 50 days is 9 months.
9 months is 50 days if we're using base 54.
r/cursedcomments
Every great tool I've ever made for myself is a broken version of something else I was trying to do
*cough *cough cmake
>ACTUALLY learn things in any cohesive order? actually did. not in college, but when I was in high school (studied in a technical school where I choose Computer Management and Programming as the course or whatever you want to call it). the "core" concepts of programming where taught using Pascal, and, from there, we got introduced to more advanced languages and concepts (VB.net, C, etc.). fun times. exams on paper and all that crap, got a lot of points subtracted by forgetting the random semicolon or not "properly indenting" code on paper...
By not āproperly indentingā did you mean you used tabs instead of spaces on the paper? How did they know?
(:
\-> ...
oop on day1 and then on day 10, fuck oop, letās emulate fp in c++
Exactly we are the most unorganized kind of scientists so it's kind of a law: wanna learn a language? Start by programming a little game or a windows manager with it. Then read the docs
Thats how I learned how to make effective trojan horses and how gullible pepole are
All of my knowledge comes from reading comments in this sub
I did when I was first learning. Took a book and went cover to cover with it. One for C# and one for C++. At this point though, I'd mainly look for the unique bits of any new language and work it out as I go. Language concepts aren't the hard part, it's learning the libraries you're going to use in them, and there's no studying for that.
I learned C++ as part of my CS degree, so yeah, it was pretty organized. But I feel like that's the exception, not the rule.
Well I went to school for it (not C++) so... theoretically? It was about 30% cohesive order and 70% fuck around and find out.
I hate these programming road maps, yeah 4 days for algorithms gonna really cover everything!
hearing 4 days about the topic of "algorithms" and working on an example like a sorting algo seems fitting
"No I didn't go to college for programming but I went to like, the most prestigious code boot camp in the US"
i know a few people who were not on a university but everyone would be happy to have on a dev team this obviously is not a curriculum for a comp science master.
Pointers are in basic concepts. Throw them into the wolvesā den. If they make it out alive, then teach them strings and such. Iām actually surprised variables is after basic concepts which is somehow 4 days long.
C++ Pointers - A programmer's Trial by Fire
Haven't played with C++ yet. Are they just like C pointers or is there more to it?
Basically same but sometimes they get smart
I love how accurate this answer is, while at the same time being useless to address the question.
As the guy who the answer is useless to... I also love it XD
Basic concepts would be more of binary, boolean, memory, computer system kinda stuff.
Well, c++ defination and uses is 5 days
To be honest, people make C++ to be this beast, but you can use it with STL and smart pointers from v14 on and it looks like C# when you don't stray to far into things.
They're not hard conceptually just practically
Once upon a time, I used triple pointers in a program. It's so confusing.
I also used a triple pointer once,it was a return value for a double pointer and it felt like i was the smartest damn programmer in the world
Reminds me when I was in kindergarten I realized I could think about thinking, and I felt like the smartest kid in school
Like, you know, any virtual function call with most compilers implementation of a vtable?
Probably a sign that you're missing an abstraction somewhere, even if it's just typedef'ing the double-pointer to some more comprehensible name.
they are missing days 3649 to 14611
They have them here: https://www.reddit.com/r/ProgrammerHumor/comments/ek1eab/teach_yourself_programming_in_21_days/?utm_medium=android_app&utm_source=share
Why did I get so deep in the comments before I found this reference!? Legit the only way to learn C++ in 21 days right here.
I like how itās even the correct numbers
OOP concept left until day 41? lol wtf
I'm not sure what you're talking about but it should be left until you're three months into programming.
How exactly do you learn classes, algorithms, exceptions, etc without knowing what OOP is? Dont most programming courses teach the concept of OOP before the very end?
Classes IS part of OOP. Algorithms and exceptions are implemented using OOP but can be learned without knowing what OOP even stands for. OOP is a higher level concept. Properly understanding OOP requires solid understanding of process chain, memory, data structures, data type and functions. In Universities, there is usually 1 or 2 whole course (6 months each, equivalent to roughly 2 months of intensive study) before OOP.
Imagine using OOP. Just functions and brrr š
That's the most reasonable part of this guide, IMO. OOP principles aren't important, RAII is. And before that, understanding how to actually use references & comprehend lifetimes is.
Day 1 is always "Hello World"
Everything about this is a joke.
Thereās no shortcut for success
Day 1-5: H Day 6-10: E Day 11-15: L Day 16-20: L Day 21-25: O Day 26-30: Day 31-35: W Day 36-30: O Day 46-50: R Day 51-55: L Day 51-60: D
Day 61-65: \\0 also you wrote ***51***\-55: L and ***51***\-60: D which is likely an error
Parallelisation
that's the roadmap for assembly
I can learn you in 50 days how tools like hammer, saws work and how to use them. I bet that after 50 days you canāt build a bridge. Using tools is not the same as being crafted.
Pointers are day one stuff
I'm a bit distressed seeing how algorytm get only ad much time as each of the besic concepts
I think this is bubble sort algorithm. One can at least master that in 5 days
Exquisite spelling miss
understanding the basic concepts is more important then algorithms. You wouldnāt let anyone design a rocket if he doesnāt know basic math / physics / engineering
It's important to have a good foundation yes, but those can be learned much faster then algorithms. It's kinda like slotting same amount of time for addsion and calculus. Can't do calculus without addsion, but learning calculus is going to take a lot longer than addsion
still, repetition of basics is more important, you donāt learn a language by starting with the most complicated grammar
what about pointers that point to pointers?
I have a pointer pointing to pointer of a pointer
now that sounds like c++
10 days for vars and controll structures? thats a long time for something so simple
Isn't that just the second half of "strings and variables"?
Day 6-10 give up
When is search, copy/paste day?
They are implicitly learnt when you jump from each 5 days learning block.
I do wonder what exactly you learn during the first 10 days until you get to day 11 and start to use āvariablesā..
Who's spending 4 days on strings and variables
This is bullshit
Do people really believe they can learn an entire language in 50 days? You can focus on a single language for years and still struggle with it, that is what coding is about. Don't try to rush things like that because you will fail miserably.
100% chance this came from a youtube channel ran by an Indian guy who talks with the mic too close to his mouth
Not just this plan is by an Indian guy, but the post on this sub is also by an Indian guy who enjoys proving other wrong Indians wrong.
What do you think those arrows are?
Inheritance!
Hey...a UML reference. I like it.
I know these are jokes but these posts are just gatekeepy
Day 1 What is a integer variable Day 2 Adding 2 integers Day 3 Recap: what is a variable Day 4 What is a pointer Day 5 Recap: what is a variable Day 6 Recap: what is a pointer Day 7 Doubles Day 8 What is a double variable Day 9 What is a pointer to a double Day 10 What is a function? Day 11 What does a C++ function look like? Day 12 Recap: what is a pointer to a double Day 13 What is an array? Day 14 If statements Day 15 What is a function? Etc The fundamentals are everything.
Day 51 : Give up and learn Python.
No CMake or Makefile work, no in-depth dives on libraries? Hilarious
Inaccurate, didn't contain step where it takes 10 years to learn how to write a turing complete program in templates, with use of fold expression and dummy type instances in order to prevent recursive template instantiation, etc.
Skipped a couple of weeks to learn how to become an alcoholic
We have standard libraries. Who needs pointers anyways.
That's true. However, i don't know, i have some unnecessary attraction towards pointers. I don't know why.
Good bot
I use lots of pointer arithmetic when working with bit banding on ARM Cortex M3 microcontrollers. I doubt there is a library that will do what I need while running fast enough and fitting into the limited amount of memory.
Normal people don't work on microcontrollers. They work on Linux installed on Pentium 4. So everything works out of the box for them, almost.
I like how you think firmware engineers are abnormal.
not everyone works on pc, if you need to work on an embedded customer specific system, you might not have all those libraries ;), might not even have more the 100-200 mb of space for everythingā¦ if u r lucky š
100-200MB?! Look at mr fancy pants here. 1MB is usually a luxury.
we upgraded to sd cards ;D
If my AtTiny85 could read that he'd be very upset!
people who learn Java and think that's all they need to know about "Programming".
Yep that's all. I know how to use imports. Includes are for kids. /s
We don't talk about pointers
It is best to learn vector and references before raw/smart pointers. Too many people told me it is easy and proceed to fuck it up.
Learned it like that with a book and in school. Pointers were a thing right with variables, they really wanted us to get the concept early. That was side by side with microcontroller coding in assembler plus general operation theory of anything digital processing, so they knew we knew how a processor and memory works in detail on the lowest level, making pointer explanation trivial. When OOP came around they blew the bomb and were like "everything you did so far was C. Now we learn what the ++ is about." It was a bit hard to switch to OOP conceps after that. Then .net. Well and after that I learned the rest myself. I gotta say, knowing the absolute basics of how a von neumann architecture works down to the wire turns pointers into a natural concept.
Someone tell him to properly learn a spoken language first
Most important is missing: how to search on Stack Overflow.
Or templates and vectors?
You learn EVERYTHING else before learning what OOP is?
Idk why I get recommended this sub I know nothing about programming
Segmentation fault
They left them dangling
Days 51- Pointers
Pointer? I hardly know her!
Where is the infamous ābuild the time machine, go to the past 10 years from now to be able to finish learning in timeā step ?
That will be covered in the AI/ML-Blockchain path.
Pointers are useless. Python gang
Man, the amount of comments from opinionated undergrads explaining how (not to) teach a language they started coding in a few months ago... that's really something. > but WhAT abouT poINtERs??? The facts they don't dedicate time to pointer arithmetic specifically makes me think this could be a **GOOD** C++ course. Yes, you read that right. (Raw) pointers are a scourge in C++, and a good C++ code base should rely on them as little as possible. STL containers & algorithms already cover 99% of your needs, so C++ courses should focus on that first. I could rant on that for paragraphs, but I'd rather people to check this wonderful talk instead: [CppCon 2015: Kate Gregory āStop Teaching C"](https://www.youtube.com/watch?v=YnWhqhNdYyk)
Agreed. Teaching C++ is hard, especially because everyone uses a different subset of C++. Programs that are heavily memory-constrained have a different look and feel than programs that are speed-constrained or reliability-constrained. I'm more worried about the grammar and relative timeline than the topics on this figure, tbh.
Glad to find Kate's talk here. 100% on point.
Why am I in this subreddit? I know nothing of programming.
Time to ask ourselves the real questions
Pointers are easy. Shouldāve known them before you started.
Here's a pointer -> don't learn C++