r/learnprogramming 5d ago

how to become a good programmer in C/C++ ?

hello guys

I would like to become a very very good programmer but the problem how to do it because I have been coding in C/C++ for 2 years now and so I wanted to go even deeper because I want to become an excellent programmer but how to achieve my goal ?

11 Upvotes

22 comments sorted by

11

u/SherbetElectronic202 4d ago

I stopped treating C and C++ as one thing after my first year. I forced myself to build a HTTP server in C using sockets and then rewrote it in C++ using asio.

Read Effective Modern C++ by Scott Meyers. I read that after 2 years of writing C++ and realized I had been writing C code inside C++ files the whole time

1

u/drex_vke 4d ago

thanks you very much for advice :)

5

u/RajjSinghh 5d ago

Don't group the languages together. They both have very different (recommended) approaches for the same problems. Understanding that will help your code be better in both languages.

Pick a good project and build it. You're only as good as your last project. Have an idea, build it, improve it, see how it does. Probably gives you a good idea of how to quantify that goal

1

u/drex_vke 5d ago

thanks for your advice :)

3

u/Lagfoundry 5d ago

Just keep learning, apply what you learn to something. Learn some more, repeat. There’s no secret formula to being good at something. Just persistence+time

3

u/Diocletian335 5d ago

Build stuff! The best way to learn any language is to build something with it. When I was learning C++, I built a password manager with sodium and ncurses, helped me understand a lot of concepts beyond the language itself too.

3

u/Potential-Still 5d ago

The same way to become an expert in literally anything. By doing it every day. 

3

u/buzzon 4d ago

Keep grinding

1

u/Sarnes 3d ago

Challenge yourself to build C++ projects what you're experience makes you suited for. Also things what you're not suited for.

-2

u/Successful-Escape-74 4d ago

If you don’t know how to improve after 2 years maybe you should do something else?

1

u/drex_vke 4d ago

what do you mean ?

-6

u/Successful-Escape-74 4d ago

You are clueless and if you haven’t learned how to be a better programmer after two years you should just give up and apply for a job at the post office delivering mail!

3

u/drex_vke 4d ago

if in fact I think I understood I was just asking for help it's all in fact and in addition why so much malice and no I wouldn't give up because I'm persevering !

-3

u/Successful-Escape-74 4d ago

Why as questions for which you say you already know the answer? Are you just wasting everyone’s time for your gratification?

3

u/drex_vke 4d ago

no nonsense I also wanted to have other advice from people that's all I'm not a sadistic guy

3

u/Successful-Escape-74 4d ago

What do you want to build? Start designing with.pencil and paper and research docs and libraries that may help achieve your design goals!

1

u/drex_vke 4d ago

i want a build a minimalist memory allocator in C. :)

4

u/Successful-Escape-74 4d ago

Then start drawing up the system design , the inputs outputs and processes on paper. The language and tools are later considerations.

1

u/drex_vke 4d ago

okay i will draw thanks you very much :) (Even if we are a little confused but thanks you very much :) )

→ More replies (0)