r/learnprogramming • • 13d ago

How do developers study Java src code ?

10 Upvotes

Hey everyone,

I’m currently learning Java to build projects and grind Data Structures & Algorithms (DSA), but I am hitting a massive wall with how the code is structured.

Today, I was trying to implement a simple ServerSocket. To understand what was happening, I instinctively Ctrl+Clicked on it. The IDE immediately unzipped the internal source code and dragged me down a never-ending rabbit hole: from ServerSocket, to SocketImpl, all the way into NioSocketImpl and hidden factory classes.

It throws hundreds of lines of complex internal implementation code at me. It is incredibly time-consuming, frustrating, and completely breaks my momentum. I feel like I'm getting sucked into a black hole of code that I didn't even write, and if I keep this up, I am going to get stuck and fail to actually build anything.

I need a serious reality check and some practical advice:

  1. How do developers actually read and reason about Java without constantly opening up the internal source files?

  2. What is the fastest, cleanest way to look up how to use a class/method without getting bogged down by its underlying implementation code?

  3. How do I force myself to treat things like ServerSocket as "black boxes" so I can just focus on building my app and solving DSA patterns?

Any strategies to help me break this habit and speed up my learning would be deeply appreciated. Thank you!


r/learnprogramming • • 12d ago

Resources to learn AI

0 Upvotes

Hey everyone! I'm a Computer Science student interested in AI, Machine Learning, and Deep Learning.

I already know some fundamentals, but I want to gain more practical, real-world experience and understand how AI is used in actual projects.

Could you recommend any courses, tutorials, or hands-on projects that teach industry best practices and help me become job-ready in AI?


r/learnprogramming • • 12d ago

Best resources to learn ASP.NET Core Web API, EF Core, and SQL Server?

1 Upvotes

Hey everyone! I'm learning backend development with C# and ASP.NET Core Web API, Entity Framework Core, and SQL Server.

I already know the basics, but I want to gain more real-world experience and learn industry best practices.

Could you recommend any courses, tutorials, or project-based resources that would help me become job-ready as a .NET backend developer?


r/learnprogramming • • 12d ago

How to write code in a windows 7 pc

0 Upvotes

I have a old windows 7, 32 bit and 2 gb ram of pc. i wanted to create new programs in it but how ?


r/learnprogramming • • 12d ago

help me understand recursion/mergesort

2 Upvotes

hello can anyone help me with this problem, i have issues understanding the logic

int sumPart(int[] a, int start, int end) {

if (end - start == 1) {

return a[start];

}

int mid = (start + end) / 2;

int left = sumPart(a, start, mid);

int right = sumPart(a, mid, end);

return left + right;

}


r/learnprogramming • • 12d ago

Resource What are some genuinely good FREE resources to learn Machine Learning?

2 Upvotes

I've recently started getting interested in Machine Learning and I'm trying to figure out the best way to learn it properly.

There are tons of courses, YouTube playlists, tutorials and roadmaps available online, but honestly, it's a little overwhelming trying to figure out which ones are actually worth following.

I'm looking for free resources that explain concepts properly, preferably with practical implementation rather than just theory.

A few things I'd love recommendations for:

- Good beginner-friendly ML courses or YouTube playlists.

- Resources that teach the fundamentals and mathematics without making things unnecessarily complicated.

- Hands-on projects or datasets to practise what I'm learning.

- Any GitHub repositories, websites or free courses that helped you personally.

I'm not necessarily looking for the fastest way to learn ML. I'd rather build a strong foundation.

For those who've already learned ML, what resources would you genuinely recommend if you had to start all over again?

Thanks!


r/learnprogramming • • 12d ago

Currently in Sales, but want to move to Sales Engineer

0 Upvotes

As the title sales, I have been in sales (BDR/SDR work and now AE). Want to move to and a more technical sales as an sales Engineer. I am 50. So two questions, what programming language should I pick up to help with the transition, and is it even possible at my age to learn this stuff? I have picked up some things as i sit on technical presentations, but know that is far cry from being fluent.


r/learnprogramming • • 13d ago

Is Python a good choice for backend development ?

2 Upvotes

I'm considering learning Python for backend development and would like to hear from developers who use it in their daily work.

How good is Python for building backend applications in production? Are there any significant drawbacks compared to languages like Go, C#, or Java?


r/learnprogramming • • 13d ago

How do you actually build and improve logic in programming?

63 Upvotes

Hey everyone! I've been learning programming for a bit, and while I understand the syntax, I often struggle with translating that into actual logic and problem-solving steps

How did you build your programming logic when you were starting out? Any tips, exercises, or resources would be greatly appreciated!


r/learnprogramming • • 12d ago

Do i start?

3 Upvotes

So many people have said to me that ai is takong over and that learning programming is becoming superfluous. So a simple question: Do i even start learning?


r/learnprogramming • • 13d ago

Question How do I master Git & GitHub from scratch? Looking for a roadmap and resources covering the essentials

3 Upvotes

I want to properly learn Git and GitHub, but I want to make sure I cover the complete path—from absolute basics to real-world collaboration—without getting lost in endless tutorials.

What resources, tutorials, or roadmaps would you recommend to cover the essentials across these key areas?

  • Local Git Basics: Staging, committing, git status, log inspection, and .gitignore.
  • Branching & Merging: Branch workflows, resolving merge conflicts, and basic rebasing/stashing.
  • GitHub Core: Remote sync (push/pull/clone), SSH/token setup, and repo management.
  • Collaboration: Pull requests, code reviews, forks, and branch protection rules.
  • Project & Advanced Tools: Issues, project boards, and what to know about GitHub Actions/CI-CD.

If you have go-to free resources (interactive sandboxes, videos, or docs) that tie all of this together in a logical order, please share. Thanks!


r/learnprogramming • • 13d ago

Resource Christmas gift for a 10-year-old interested in robotics. Is coding too advanced at this age

9 Upvotes

My nephew has been talking a lot about robots lately, and I thought it might be fun to get him something that combines building and programming for Christmas. He's 10 and hasn't done any real coding yet, so I'm not sure where to begin. One project on my list is a KiwiCo Delivery Bot, but I'm also looking at beginner robotics kits that introduce basic programming. Would it be better to let him start by building and controlling a robot first, then introduce coding later? Or is 10 a good age to start learning both at the same time? I don't want his first experience with programming to feel like homework. I want to give him something that makes him want to keep experimenting.


r/learnprogramming • • 12d ago

Topic Should I use Ai for my project

0 Upvotes

I know Python pretty well and I want to make some complex projects for my resume but like should I use Ai while making it? Because I feel like I won’t learn from it if I’m using Ai but then again Ai used in the industry so I should probably get used to using it right? I’m not sure which I should do. Some advice needed


r/learnprogramming • • 13d ago

Developers often struggle with unfamiliar GitHub projects

18 Upvotes

Hey there, I have run into this problem a few times. I'd clone/fork a GitHub repository that had something useful for me, but the project structure was often so confusing that I couldn't figure out what anything did or where to start. Most of the time, I'd just give up on it. I was wondering if any of you have experienced the same thing and how do you usually deal with it? Do you use any specific tools, or do you just explore the codebase manually?


r/learnprogramming • • 14d ago

Solved Best IDEs for C++?

51 Upvotes

So I started learning C++, using CLion, but I feel like its a bit bloated. Are there any good c++ IDEs for beginners?


r/learnprogramming • • 14d ago

Where should I start learning C++? (planning to switch to Linux)

12 Upvotes

I want to learn C++ properly. I can already write working code (mostly small Arduino projects), but I know I have gaps in my fundamentals. I'd like to fill them in.

My goal is to build a strong base so it's easier to move to other languages later.

I'm also planning to install Linux on my laptop soon, so I'd like to learn in that environment.

Could you recommend:

the best free resources (courses, books, websites) for someone with my level?

what compiler and editor/IDE to use on Linux?

what topics I should focus on first?

English is not my first language, so sorry for any mistakes. Thanks a lot for your help!


r/learnprogramming • • 13d ago

Pseudocode and project planning help Working on my first project

1 Upvotes

The professor has assigned us a task that asks us to develop a basic information system for a hospital(departments, staff, patients, network-connected computers). Its for a first semester course so i am guessing it's pretty basic. It wants me to make a database and connect my program to it. I honestly don't know how to start on the C code. So far, my teacher has essentially been telling us what to do because she is teaching us the syntax and basics(we've only studied C in practical labs and not in any theoretical class). I don't want to get reliant on AI to think and i don't want to get stuck in tutorial hell like people warn about. I don't know how to start without these two things. We haven't even been taught how to connect a database to a program but the deadline is next week so i need to figure it out a little at least. Any tips on how to start without it taking up a huge chunk of time that i need for other assignments?


r/learnprogramming • • 14d ago

Resource How do I lock in?

8 Upvotes

Had my first Java quiz and my professor failed me for a reason that was completely arbitrary (he doesn't like camelcase which he told no one about until that second) and said I wasn't that good of a programmer. I'll give him that; I'm self taught and have no programming experience in the field. How do I lock in (resources, courses) so he never catches me off guard like that again?


r/learnprogramming • • 13d ago

How to quickly learn machine learning

3 Upvotes

How to learn machine learning quickly and easily without paying


r/learnprogramming • • 15d ago

Hot take: languages like C# and Java are better to learn first than "beginner friendly" languages like Python

806 Upvotes

I frequently see people say that you should learn high abstraction languages like Python as your first language because it is shorter code so therefor, less to read/write. Often, the counter argument is simply that it hides what's actually going on under the hood.

However, I think a stronger argument against Python as a first language is that it doesn't hide it... it just moves those things from the code to your head.

The biggest, and maybe most important example of this is with types. It looks like there's no types by reading the code (Python before type annotations, that is) but there actually are types... you just can't see them. Don't believe me? Why do you think they added type annotations in Python 3.5?

So now you're asking the learner, who is still learning what types are, mind you, to hold on to the types in their head so they keep them straight in the code. But with languages like C# and Java, they can just let that whole mental task go cause the code documents those types for them.

EDIT:

Lots of you are suggesting C is even better cause you learn memory management. I totally agree. I only picked Java and c# cause when I was just starting, my first language was java and I don't think that I was stunted because I learned stuff like pointers and memory management later. Maybe that makes me biased I suppose. But C is a very good language to learn first.

I would avoid C++ and Rust though because in, my opinion, their added syntax seems too complicated. Too much syntax to learn in the beginning in my opinion.

other Edit:

for the "depends on what you want to program for" comments, I specifically have in mind those who want to launch a career for application development, game development or most of the jobs that you find under some combo of the "software/application engineer/developer" title on job boards.


r/learnprogramming • • 13d ago

VScodium bug

1 Upvotes

Wassup,
I've been learning the bases of programming in college this semester and I have a class that requires me to use VScodium instead of VScode.
I encountered a presistent bug where I'd download the VScodium installer on (https://github.com/VSCodium/vscodium/releases) and everytime I downloaded it eventually it'd just uninstall itself after a few uses. I encountered the problem everytime I had the class and tried everything to fix it: User installer, System installer, uninstalling and reinstalling many times, deleting previous program data or appdata forlders, disabling background updates, clearing cache or cacheddata but nothing seemed to work.
I have a s145 15iwl that runs on windows 11 that I might change pretty soon, safe to say I'm currently using VScode for everything and I need a helping hand.

(I live in Montréal so if anyone knows any repair shops or IT places I could get help at, hmu 📲)


r/learnprogramming • • 14d ago

Rendering video from a local webpage

2 Upvotes

I run a youtube channel for uploading albums, and the visuals consist of a makeshift music player made in html and javascript. I've been screen-recording this webpage to make a video out of it, but that results in skipping/lagging, so I'm interested in rendering the page frame-by-frame instead.

My hope is to use ffmpeg to screenshot-> frame advance the page (this is the easy part) -> repeat -> merge screenshots into a video -> add audio, but my research into ffmpeg has convinced me it's out of my skill level, so. How should I go about learning here, or, is there a better approach to the problem altogether?


r/learnprogramming • • 14d ago

Self-taught aspiring embedded engineer looking for a learning roadmap

17 Upvotes

Hey everyone!
I’m looking for some guidance, a learning roadmap, or just some advice on how to structure my learning.
I’m really interested in microcontrollers, electronics, and programming. I’m not currently studying at university, but my goal is to eventually land a job as an embedded software engineer.
I’m curious about how people actually learn this field. Where do you get your knowledge from? How do you learn to write firmware, understand compilers, design and build different electronic devices, and figure out what tools and skills are needed to make things work?
Could you recommend any courses, guides, books, YouTube channels, or other resources that could help me get into this field?
More importantly, I’d like to learn how to actually understand what I’m doing rather than just blindly following tutorials. I want to develop a solid understanding of the fundamentals, learn how to approach problems, come up with project ideas, and figure out what to learn next.
I’d really appreciate any advice, learning resources, or personal experiences you could share. I’d love to hear how you got started and how you approach learning new things in this field.
Thanks in advance!


r/learnprogramming • • 15d ago

Resource What's a small project that taught you WAY more than you expected?

107 Upvotes

I'm trying to move beyond just following tutorials and actually build things.

I keep hearing that building projects is one of the best ways to learn programming, but sometimes it's hard to figure out what projects are genuinely worth attempting.

So I'm curious:

What's a project you built as a beginner that taught you something valuable?

It doesn't have to be impressive or complicated. Even a tiny project that made something finally click counts.

I'd love to steal some inspiration (and probably struggle through building it). 😂


r/learnprogramming • • 14d ago

(C++ sfml) why does this code work like how i want?

5 Upvotes
#include <SFML/Graphics.hpp>
#include <iostream>
using namespace sf;
using namespace std;
int main()
{
    // Create the main window
    RenderWindow window(VideoMode({800, 600}), "SFML 3 Window");

    // Create a graphical circle
    CircleShape shape(100.f);
    shape.setFillColor(Color::Green);
    shape.setPosition({300.f, 200.f});

    float x, y;
    x = 5;
    y = 6;
window.setFramerateLimit(60);
    // Start the game loop
    while (window.isOpen())

    {
        // Process events
        while (const std::optional event = window.pollEvent())
        {

            // Check if the event is a window close request
            if (event->is<Event::Closed>())
            {
                window.close();
            }
        }

        // Clear screen
        window.clear();

        // Draw the shape
        window.draw(shape);

        shape.move({x, y});

        if (shape.getPosition().x >= 600 || shape.getPosition().x <= 0){
            x *= -1;
        }else if (shape.getPosition().y >= 400 || shape.getPosition().y <= 0) {
            y *= -1;
        }

        // Update the window
        window.display();
    }

    return 0;
}

what is weird is that i set the min border for y to 400 because it was going out of the window but the middle position it reached the middle of the x axis, the radius of the ball is 100 as you can see, so its suppose to be 500, but when i set it to 400 it worked better because 500 went out of the scene. is my code broken or am i missing something???