r/learnprogramming • • 27d ago

feeling discouraged - coding is 'too hard'

im trying to get into learning C++. I've taken courses and have some experience with data structures and algorithms. but I can't code from scratch and when I go learn tutorials, I often feel like I can't do anything on my own. I know people say to sit with your code and debug in order to learn, but how do you even get to that point? I guess my question is: how do you actually learn to program from scratch?

edit: it looks like I've found a number of people looking to work on projects, so I made a discord for group projects! You can join here: https://discord.gg/ysbgcD8Baf

90 Upvotes

102 comments sorted by

View all comments

Show parent comment

1

u/MrCodeGameandAnime 27d ago

I'm more than willing to go to the mat with this argument because it doesn't hold up unless you are explicitly operate from C# everything.

  1. Dotnet and thereby aspnet as modern frameworks have improved massively. This much is true. However, to build anything meaningful with C#, you require the ecosystem/development tool of dotnet.
  2. Just because something comes with something does not make it ideal for learning because of all the dependencies. While I'm not a fan of Django because of how much the framework comes with, you can never compare the lightweight nature of flask which is highly customizable. Further, I would not choose fastapi if concurrency is the real bottleneck given the requirement of redis and celery not being durable enough at scale relative to GoLang.
  3. Java has a lot of boilerplate code and I agree. Once you start using interfaces it gets very heady. The big gap is mobile. Choosing dotnet as your core library is rough to say the least. Java sets you up for kt which thereby prepares you for the largest mobile market possible on Android.
  4. Best and most user friendly is relative. If you're speaking from the stance of someone who has lived and died inside of dotnet, aspnet, and azure for the majority of their development history, then yes. If you're speaking from 2020-2026+, then no. Dotnet is a big hill to climb, very heavy, and far too opinionated.
  5. Imports are the best feature of python. Why? You only download exactly what you need. Further, you don't need it in your machines wheel. You can keep the dependencies contained to a venv.
  6. I agree node is a headache. This one I will give you hands down. It is incredibly bloated at this point. While it is very capable, node js not the answer to everything like it was taught in the early 2020s. JS also gets way too massive, sprawling, and developers become reliant on shortcuts.

In simpler terms, if teaching a 13 year old how to code from the ground up on two paradigms; compiled and interpreted, then C# is very heavy to start with. The majority of beginners books are python because it is easy to get going. We could debate back and forth about Java vs C# all day, but pros/cons of Java as a staticly typed and compiled oop language are far more valuable because they build to kotlin. Now you don't even have to teach them xml by and large. They can just build.

1

u/DenverCoderv2 27d ago
  1. What do you mean? You need the proper tooling to build anything in any language. Python needs, well Python; Java has Maven/JVM; Rust has rustc, etc. Dotnet is no exception here and the Dotnet sdk is all you really need, and that is a one click install.
  2. Well ok but everything has some dependencies no?
  3. Mobile is better in the Java/Kotlin ecosystem, no arguments from me here.
  4. Dotnet is not heavy, not anymore. Opinionated sure, although you could argue if that is a bad thing.
  5. Brother isn't venv one of the biggest pains in Python? In Dotnet you also download what you need, and everything is scoped to your solution as well. And that is without the pain of switching venvs or whatever.

Again, I disagree. C# is lighter, faster and (in my opinion) far more pleasant than Java nowadays. And neither is really that bad of a starter language. Python is probably the easiest though, like you said.

1

u/MrCodeGameandAnime 27d ago
  1. Python runs in the interpreter. No SDK required to build the executable. Lol, rust is probably the bane of all developers, but you're absolutely right. Maven and dotnet aren't really comparable. One is a complier and the other is a SDK. Grade on the otherhand? Yeah, you have a solid argument and I'll definitely concede.
  2. Everything has dependencies, but the underlying dependencies of dotnet vs stock java are pretty wide. Once you get into stuff like Android the dependcy chain grows so drastically with gradle that it can be overwhelming. However, to build with java the main dependencies is all the boilerplate and interfaces 😂😂😂
  3. I don't have experience with swift, but MAYBE XCode/swift are better?
  4. Dotnet in comparison to gradle is exactly where it gets heavy. Once you hit scale beyond hello world both can become cumbersome. Not bad, but dotnet sure loves telling you no a lot.
  5. I'm split honestly. Venv can be great or horrible. It really comes down to how you structure your projects. It's great because if you keep it to the top directory and nowhere else, then it's as simple as requirements.txt or yaml, but if you mess up and start nesting venv, then you're gonna hate your life. It's super unnecessary, but people will people. I'd imagine the big issue some people run into is not using the right ide like pycharm (heavy as hell), or keeping it super simple and activating your venv like a sane human being. Mmv 😂😂😂

I think we're gonna disagree no matter how many times we do this loop. I would never call a language pleasant, but useful is a great description. To that end, I will respectfully agree to disagree with you and we can both subscribe to whichever paradigm we choose.

1

u/DenverCoderv2 27d ago

Sure thing, agree to disagree. To leave on a positive note, if you'll ever get a chance to try Swift I highly recommend it. Xcode itself sucks ass lol, but Swift is a nice language in my opinion.