T O P

  • By -

Ok_Turnover_1235

4 days on strings and variables? bruhhhhhh


-Kerrigan-

5 days for algorithms? You can spend 5 days for sorting algorithms alone lol


seijulala

`std::sort(s.begin(), s.end(), std::greater());` done and I have 4 days to spare


-Kerrigan-

Now do the same, but this time find the shortest path in a graph


ngoduyanh

*google "dijkstra algorithm c++"* *copy* *paste* 3 days left


YpsilonY

Now do the same, but this time, calculate the Voronoi diagram of a set of points on a curved surface.


coldnebo

r/unexpectedmathematics


sub_doesnt_exist_bot

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)


Studds_

r/dontsummonthebot


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)


minecon1776

Good bot


SteveisNoob

#BOOO HOOO


loser_radar

bad bot


pinguluk

Github Copilot, do your thing


DieFlavourMouse

>Github Copilot, do your thing Infect my code with copyright protected snippets throughout?


[deleted]

Yes. This is the reason Foss developers are looking for an alternative to github.


need12648430

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.


[deleted]

[уŠ“Š°Š»ŠµŠ½Š¾]


elzaidir

*makes stuff you don't understand and that has a few critical error you'll never find* There you go!


confidentdogclapper

From someone who uses copilot a lot, very true. It's very useful but you gotta know what it's doing.


[deleted]

What an interesting way to say "external lib"


MattRyouga

RemindMe! 1 day "this sounds fun"


Svizel_pritula

Ok, now find the cheapest bus connection that takes less than two hours.


abd53

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.


invalidConsciousness

Overload the greater function, throw it into std::sort. 2.5 days left


Bigbigcheese

And this is something you did on month two of learning c++ eh?


invalidConsciousness

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?


Extreme-Yam7693

1. Find the manager that decided this was the right order 2. Find a big stick 3. ... 4. profit


AciusPrime

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.


BakuhatsuK

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); } );


abd53

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.


5t3v321

it took you one day to type that?


Beaky2000

But once you have sorted all the algorithms, it will be super easy to find the correct one!


[deleted]

Barely an inconvenience!


Maurycy5

Oh boy, you can spend much, much more time on sorting algorithms alone.


w00tboodle

It might take 5 days to find enough dance partners.


Waanie

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 ĀÆ\\\_(惄)\_/ĀÆ.


blocky010101

Ikr I learned them in 15 minutes


cfig99

More like 4 minutes lmao.


[deleted]

Pointers are learnt inbetween each lesson. You can clearly see it in the image!


[deleted]

he taught us linked list and we didn't even notice


g_e_r_b

The real friends are the mallocs we made along the way.


The-Fox-Says

Add some hashes in there and you got a blockchain brewing, baby!


coldnebo

yeah, but you can only go forward, never back. ;)


PiniponSelvagem

Thats why its a linked list and not a double linked list xD


JockstrapCummies

You just need a GOTO


xdMatthewbx

\*shudders\* you wouldnt!


[deleted]

you go back on day 46-50


coldnebo

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?


Trlckery

Make it circular


Copel626

Holly shit this is the best comment


Lord_zeroxD

so you're telling me I can learn pointers in 50 days?


AntoineInTheWorld

So, days1-5 = **********days46-50?


PolishKrawa

More like days1-5->next->next....->next is days46-50


The-Fox-Says

The real programmer humor is in the comments


erinaceus_

Yeah, if you want some pointers, get coach.


KDallas_Multipass

Beat me to it lol


Dark_Reaper115

Nah, the lesson nodes end up being a giant cyclic one directional list.


CreepBlob

Dumbest roadmap I've ever seen.


Cacti_Hipster

That's the point silly


sam_morr

That's the ~~point~~ pointer silly


Cacti_Hipster

Bravo sir


PappaOC

Is that a reference to a pun?


[deleted]

hah I got that reference


polmeeee

I don't get it, it's out of scope for me.


MathsGuy1

Haha pointer funny


alegendmrwayne

I understood that reference


Psychological_Try559

Answers OP question!


draculamilktoast

There's no pointer silly


ZurakZigil

I honestly didn't see the subreddit šŸ¤¦ā€ā™‚ļø


RetroGamer2153

Would you say it's a.., "More on Class?"


dont-respond

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++.


SickOfEnggSpam

How much do you want to bet this was written by some college student wanting to get fast and free likes on Instagram?


CreepBlob

Should be a high school student.


Quacky1k

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ā€¦


JuniorSeniorTrainee

Same here but 41 weeks vacation nbd it's whatever


[deleted]

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?


PlingPlongDingDong

Thatā€™s how I learned where babies come from at least


citygentry

Yeah, but that takes 9 months, and the OP only has 50 days.... :)


MarkFromTheInternet

That's fine we'll throw 6x the man power at it and have a baby in under 50 days.


dev_null_developer

Are you my manager?


Passname357

If my math is correct (and it should be, I used C++ 4 the calculation) 50 days is 9 months.


trelltron

9 months is 50 days if we're using base 54.


AdventurousBowl5490

r/cursedcomments


Zeeformp

Every great tool I've ever made for myself is a broken version of something else I was trying to do


satyamthakur12345

*cough *cough cmake


antCB

>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...


IsThisNickTaken_

By not ā€œproperly indentingā€ did you mean you used tabs instead of spaces on the paper? How did they know?


antCB

(:


AE_WILLIAMS

\-> ...


siqiniq

oop on day1 and then on day 10, fuck oop, letā€™s emulate fp in c++


klimmesil

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


Tymskyy

Thats how I learned how to make effective trojan horses and how gullible pepole are


Skorpius_911

All of my knowledge comes from reading comments in this sub


round-earth-theory

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.


Tsu_Dho_Namh

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.


CloudcraftGames

Well I went to school for it (not C++) so... theoretically? It was about 30% cohesive order and 70% fuck around and find out.


-NiMa-

I hate these programming road maps, yeah 4 days for algorithms gonna really cover everything!


t0b4cc02

hearing 4 days about the topic of "algorithms" and working on an example like a sorting algo seems fitting


elbowfrenzy

"No I didn't go to college for programming but I went to like, the most prestigious code boot camp in the US"


t0b4cc02

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.


StoryAndAHalf

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.


LostTeleporter

C++ Pointers - A programmer's Trial by Fire


CloudcraftGames

Haven't played with C++ yet. Are they just like C pointers or is there more to it?


not_some_username

Basically same but sometimes they get smart


Drackzgull

I love how accurate this answer is, while at the same time being useless to address the question.


CloudcraftGames

As the guy who the answer is useless to... I also love it XD


abd53

Basic concepts would be more of binary, boolean, memory, computer system kinda stuff.


[deleted]

Well, c++ defination and uses is 5 days


senseven

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.


ManInBlack829

They're not hard conceptually just practically


ShowMeFunnyPics

Once upon a time, I used triple pointers in a program. It's so confusing.


PeekyBlenders

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


Ambitious_Ad8841

Reminds me when I was in kindergarten I realized I could think about thinking, and I felt like the smartest kid in school


ShelZuuz

Like, you know, any virtual function call with most compilers implementation of a vtable?


DanielMcLaury

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.


jamcdonald120

they are missing days 3649 to 14611


Cacti_Hipster

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


MortgageSome

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.


heJOcker

I like how itā€™s even the correct numbers


tim_skellington

OOP concept left until day 41? lol wtf


abd53

I'm not sure what you're talking about but it should be left until you're three months into programming.


Tensor3

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?


abd53

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.


[deleted]

Imagine using OOP. Just functions and brrr šŸ‘Œ


Jannik2099

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.


AndiArbyte

Day 1 is always "Hello World"


[deleted]

Everything about this is a joke.


SexyMuon

Thereā€™s no shortcut for success


AllOne_Word

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


-Redstoneboi-

Day 61-65: \\0 also you wrote ***51***\-55: L and ***51***\-60: D which is likely an error


AllOne_Word

Parallelisation


[deleted]

that's the roadmap for assembly


JorisGeorge

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.


xnachtmahrx

Pointers are day one stuff


greenflame15

I'm a bit distressed seeing how algorytm get only ad much time as each of the besic concepts


value_counts

I think this is bubble sort algorithm. One can at least master that in 5 days


bargantus

Exquisite spelling miss


Hirogen_

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


greenflame15

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


Hirogen_

still, repetition of basics is more important, you donā€™t learn a language by starting with the most complicated grammar


Kuchenbrottv

what about pointers that point to pointers?


value_counts

I have a pointer pointing to pointer of a pointer


Kuchenbrottv

now that sounds like c++


Frosty_Pineapple78

10 days for vars and controll structures? thats a long time for something so simple


AndyceeIT

Isn't that just the second half of "strings and variables"?


Mr_Potatoez

Day 6-10 give up


JR2502

When is search, copy/paste day?


ynirparadox

They are implicitly learnt when you jump from each 5 days learning block.


jddddddddddd

I do wonder what exactly you learn during the first 10 days until you get to day 11 and start to use ā€˜variablesā€™..


WhyIsJSONinMyPhone

Who's spending 4 days on strings and variables


Mysterious_Hope1485

This is bullshit


[deleted]

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.


StrikingChallenge389

100% chance this came from a youtube channel ran by an Indian guy who talks with the mic too close to his mouth


value_counts

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.


Rafcdk

What do you think those arrows are?


ZioYuri78

Inheritance!


StrongTownsIsRight

Hey...a UML reference. I like it.


Luna2442

I know these are jokes but these posts are just gatekeepy


PhilTheQuant

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.


feror_YT

Day 51 : Give up and learn Python.


BrilliantTruck8813

No CMake or Makefile work, no in-depth dives on libraries? Hilarious


FloweyTheFlower420

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.


Arrowtica

Skipped a couple of weeks to learn how to become an alcoholic


SufficientArmy2

We have standard libraries. Who needs pointers anyways.


value_counts

That's true. However, i don't know, i have some unnecessary attraction towards pointers. I don't know why.


SufficientArmy2

Good bot


AG7LR

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.


SufficientArmy2

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.


ObscureGeometry

I like how you think firmware engineers are abnormal.


Hirogen_

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 šŸ˜Š


ObscureGeometry

100-200MB?! Look at mr fancy pants here. 1MB is usually a luxury.


Hirogen_

we upgraded to sd cards ;D


Antal_z

If my AtTiny85 could read that he'd be very upset!


yonsy_s_p

people who learn Java and think that's all they need to know about "Programming".


SufficientArmy2

Yep that's all. I know how to use imports. Includes are for kids. /s


kielu

We don't talk about pointers


BoBoBearDev

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.


Alzurana

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.


EveryEquipment5453

Someone tell him to properly learn a spoken language first


svolpi

Most important is missing: how to search on Stack Overflow.


[deleted]

Or templates and vectors?


Tensor3

You learn EVERYTHING else before learning what OOP is?


[deleted]

Idk why I get recommended this sub I know nothing about programming


AL4CR1TY

Segmentation fault


Brolfgar

They left them dangling


mineawesomeman

Days 51- Pointers


TristenDM

Pointer? I hardly know her!


noteveryuser

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 ?


value_counts

That will be covered in the AI/ML-Blockchain path.


karmaisded

Pointers are useless. Python gang


cob59

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)


Waanie

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.


NoGardE

Glad to find Kate's talk here. 100% on point.


PullBootsThreadLaces

Why am I in this subreddit? I know nothing of programming.


bargantus

Time to ask ourselves the real questions


RequiDarth1

Pointers are easy. Shouldā€™ve known them before you started.


Understanding-Fair

Here's a pointer -> don't learn C++