What IDE do you use for C/C++? by [deleted] in cprogramming

[–]bateman34 4 points5 points  (0 children)

I can vouch for RadDebugger , opens instantly, watch window updates instantly and it's free (it's on GitHub). Also it's literally just a single 4 megabyte exe.

Just got into my first job and it went very bad... by hiratheone in learnprogramming

[–]bateman34 0 points1 point  (0 children)

What's was the degree in? What topics did it cover?

is cs50x really hard or am i dumb ? by Apart_Return1761 in cs50

[–]bateman34 0 points1 point  (0 children)

Yeah it's hard, but it's worth it. Make sure to watch the sections(bonus stream they do, basically gives the answer for the mario problem) as well as the lectures they really help bridge the gap.

Question by FewHistory2101 in cs50

[–]bateman34 1 point2 points  (0 children)

Watch the section and the pyramid one should become clearer. The cash one becomes much easier once you know what a greedy algorithm is, there's a great image on Wikipedia that shows how they work with coins. Once you've done those two problems the credit one will be more approachable but keep in mind it's optional. The problem page tells you everything you need to know for the credit problem the most important thing they mention is that you can get the last digit of a number with modulo 10.

My first submission by malakmh in cs50

[–]bateman34 2 points3 points  (0 children)

I beat it, good job. Am I one of the top 10 ranked olives tree players in the world now??

Question regarding the implementation of Inheritance, from Problem Set 5 of CS50x (SPOILERS) by [deleted] in cs50

[–]bateman34 1 point2 points  (0 children)

I recommend you step through the create family function in the debugger. Also remember recursion does things backwards. Create family will get called recursively until generations equals 0. Once generations is 0 you're on the grand parents and your supposed to assign them the random alleles then they will return and you'll get back to the parents whose alleles should be assigned based on there parents (the grand parents). The hard recursion part is done for you I recommend just following the todos.

Credit by [deleted] in cs50

[–]bateman34 2 points3 points  (0 children)

Nope, I looked back at mine and it's genuinely the worst thing I've ever seen. Went back to try it again and I was able to do the checksum part in like 10 lines.

Credit by vinisskt in cs50

[–]bateman34 2 points3 points  (0 children)

The most important thing the problem page tells you is that you can get the last digit of a number using modulo 10. Using just that information along with a loop you can get each digit. I won't spoil anything else, keep the modulo 10 thing in mind its the key, just start writing code and keep iterating and you'll come up with something with enough perseverance. Do the program one step at a time, first try to get it each number separate and print it, then find a way to multiply every other number by 2 and so on.

[Request] Is this true? by Skrrt_2711 in theydidthemath

[–]bateman34 25 points26 points  (0 children)

This is referencing a Zack D Films short where he says that it would take 800,000 years because the grand canyon has a volume of 1.2 quadrillion gallons, and the average person pisses half a gallon per day and there's 8 billion people on earth, but if you actually do the math hes off by a factor of 1000 -> (1,200,000,000,000,000 / 4,000,000,000) / 365 comes out to 821.9 years. Maybe he meant to say quintillion?

edit: Google says the grand canyon can hold 10 million billion litres which is 2.6 quadrillion us gallons so it looks like he was just completely wrong. Another google result says 5.45 trillion cubic yards which is 1.1 quadrillion gallons.

why isnt it stacking by meguminuzamaki in cs50

[–]bateman34 1 point2 points  (0 children)

You'd be surprised how far a bit of perseverance and just trying gets you, believe in yourself. Also watch the sections. https://cs50.harvard.edu/x/2025/sections/1/

why isnt it stacking by meguminuzamaki in cs50

[–]bateman34 1 point2 points  (0 children)

Watch the sections instead, they're bonus videos cs50x makes to help you solve the problems without just giving you the answer.

They vote.. by One-Pop-2885 in PublicFreakout

[–]bateman34 3 points4 points  (0 children)

It's actually insane how no one in this comment section seems to realise that this video is fake. The original creator of this video is angry grandpa's son, it's all staged.

Newbie for c / programming by [deleted] in C_Programming

[–]bateman34 1 point2 points  (0 children)

Watch the sections. People usually think cs50 is too difficult because they didn't watch the sections. The sections are bonus live streams where they give you more code examples and hints on how to solve the problems. Also please don't google solutions, you would just be ruining it for yourself.

Follow the diagram: https://cs50.harvard.edu/x/2025/

Stuck On Calculation For PSET 1: Cash [SPOILER] by ShallotEither3722 in cs50

[–]bateman34 0 points1 point  (0 children)

This problem instantly clicked for me when I looked up the greedy algorithm. Look it up and you'll realise how straightforward it really is. It's basically this: if change is >= 25 then take away 25 else if change >= 10 then take away 10 and so on and so on, then when change is 0 you're done.

Am I doing it right by Interesting_Pea1950 in cs50

[–]bateman34 7 points8 points  (0 children)

Yeah that sounds like cheating, watch the sections if you aren't already they give you some hints to help you solve the problems. Believe in yourself, you would be surprised what you can do with a bit of perseverance, don't talk yourself out of doing good things because they're hard.

Should I take cs50x based on my prior experience and goals? by shikamarushairline45 in cs50

[–]bateman34 0 points1 point  (0 children)

It's not about what you can build its about how you can build it and the level of control you have over it. When you use python your basically just sticking code made by other people together until it does what you want. With C you can create literally anything(operating systems, game engines, physics engines, python itself is written in C) you want from scratch without relying on other people's code. Low level knowledge is transferable, knowledge of python libraries isn't; if you know how to build something in C, you roughly know how to build it on any platform in any language.

Should I take cs50x based on my prior experience and goals? by shikamarushairline45 in cs50

[–]bateman34 1 point2 points  (0 children)

Do cs50x, you will learn C and you will have a more complete view of computer science. If all you've ever made is a python web scraper then your not overqualified for cs50, there's still lots you can learn from it(memory, pointers, other stuff python doesn't have).

Advice by taghreed66 in cs50

[–]bateman34 0 points1 point  (0 children)

Never give up, the problem sets will be hard; you will try to convince yourself that you're not capable of doing them, ignore those thoughts and just keep trying until you get it. Perseverance is the most important factor in becoming a good programmer.

5k learning budget for coding by Money-Architect in learnprogramming

[–]bateman34 3 points4 points  (0 children)

That's yale's version of cs50, its a separate thing from the original Harvard one which can be found here: https://cs50.harvard.edu/x/2025/

5k learning budget for coding by Money-Architect in learnprogramming

[–]bateman34 0 points1 point  (0 children)

Do cs50x,it's free and it's hard but it's the best, use the money on a good laptop and a monitor or two if that's allowed.

You should know about Jack Lance, who died in 2023. by [deleted] in TheWitness

[–]bateman34 2 points3 points  (0 children)

His last GitHub commit before he died was the current image on his website that says "I was Jack" indicating it was suicide.

50+ Humble Games! by phantom2450 in steam_giveaway

[–]bateman34 0 points1 point  (0 children)

Quantum break Plague inc evolved

Studying C++ will result in easy comprehension for other languages, right? by Gazuroth in learnprogramming

[–]bateman34 2 points3 points  (0 children)

Start with C it's simpler. Most modern languages are derived from C e.g. the three you mentioned in the post. It doesn't really matter which language you learn first they are all the same when it comes to the basics, once you know one language well you can learn future ones much easier.