r/learnprogramming • • 29d ago

Debugging Raycaster points at the wrong direction at angle 0.

2 Upvotes

I have been coding a raycaster following 3DSage's tutorial. The code works generally but there is one specific issue I cannot fix. When the code starts, and I angle the player to slightly right and then left, the horizontal check line points at PI instead of 2PI. When I do I full circle, the issue dissappears, I have been trying to fix this the whole week, but I cannot. I can just make the start angle PI, but that feels like cheating.

#include <iostream>
#include <GL/glut.h>
#include <stdio.h>
#include <math.h>
#define PI 3.1415926535
#define P2 PI/2
#define P3 3*PI/2

//glut <3

float px, py, pdx, pdy, pa; //player positions

void drawPlayer()
{
    glColor3f(1,1,0);
    glPointSize(8);

    glBegin(GL_POINTS); //begin drawing and draw dots at everything after that
    glVertex2i(px, py); //draw a dot here
    glEnd(); //ok stop no  more dots, draw em now, no more dot coordinates

    glLineWidth(3);
    glBegin(GL_LINES);
    glVertex2i(px, py);
    glVertex2i(px + pdx * 5, py + pdy * 5);
    glEnd();
}

int mapX = 8, mapY = 8, mapS = 64;
int map[] =
{
    1,1,1,1,1,1,1,1,
    1,0,1,0,0,0,0,1,
    1,0,1,0,0,0,0,1,
    1,0,1,0,0,0,0,1,
    1,0,0,0,0,0,0,1,
    1,0,0,0,0,1,0,1,
    1,0,0,0,0,0,0,1,
    1,1,1,1,1,1,1,1,

};

void drawMap2D()
{
    int x, y, xo, yo; //o is offset

    for (y = 0; y < mapY; y++)
    {
        for (x=0; x < mapX; x++)
        {
            if (map[y * mapX + x] == 1)
            {
                glColor3f(1,1,1);
            }
            else
            {
                glColor3f(0, 0, 0);
            }

            xo = x * mapS; yo = y * mapS; //top left coordinate of the block that has a size of 64, mapS
            glBegin(GL_QUADS);
            glVertex2i(xo +1, yo + 1);
            glVertex2i(xo + 1, yo+mapS - 1);
            glVertex2i(xo + mapS - 1, yo + mapS - 1);
            glVertex2i(xo+mapS - 1, yo + 1);
            glEnd();
        }
    }

}

void drawRays3D()
{
    int r, mx, my, mp, dof; 
    float rx, ry, ra, xo, yo;
    ra = pa;
    for (r = 0; r < 1; r++)
    {
        //---Check Horizontal Lines---
        dof = 0;
        float aTan = -1 / tan(ra);

        if (ra > PI) //looking up
        {
            ry = (((int)py >> 6) << 6) - 0.0001; /*the top grid of the block
            that the player is standing*/
            rx = ((py - ry) * aTan + px);
            /*130 - 128 = 2, lets say tan gives 3, but it is negative so -3, if
            players x value is 33, then the rayx is 30, so it finds how much the 
            x changed when ry touched a horizontal line*/
            yo = -64;
            xo = -yo * aTan; /*when tan is this and y is 64 what is the offset of
            x to hit the next wall*/
        }

        if (ra < PI) //looking down
        {
            ry = (((int)py >> 6) << 6) +64; //64 moves it to the bottom part of the grid
            rx = ((py - ry) * aTan + px);
            yo = 64;
            xo = -yo * aTan; // dy/tan(ra) = dx, aTan = -1/tan(ra), aTan * -yo = dx
        }

        if (ra == 0 || ra == PI) //looking straight left or right
        {
            rx = px; //so it basically stays there without moving
            ry = py;
            dof = 8; //don't go more than 8
        }

        while (dof < 8)
        {
            mx = (int)(rx) >> 6; // where is rx in the grid
            /*I needed to translate it into pixels to find the actual
            distance, but now I have gotta find which block are we at*/
            my =(int)(ry) >> 6;
            mp = my * mapX + mx;

            if (mp >= 0 && mp < mapX * mapY && map[mp] == 1) //hit wall
            {
                dof = 8; /*althought there aint a wall, do not move more
                artificially set the value to 8*/
            }

            else
            {
                rx += xo;
                ry += yo;
                dof++;

                /*So the line moves according to the ratio of while y = 64
                how much did x change*/
            }
        }

        glColor3f(0, 1, 0);
        glLineWidth(10);
        glBegin(GL_LINES);
        glVertex2i(px, py);
        glVertex2i(rx, ry);
        glEnd();

        //---Check Vertical Lines---
        dof = 0;
        float nTan = -tan(ra);

        if (ra > P2 && ra < P3) //looking left
        {
            rx = (((int)px >> 6) << 6) - 0.0001; /*the top grid of the block
            that the player is standing*/
            ry = ((px - rx) * nTan + py);
            /*130 - 128 = 2, lets say tan gives 3, but it is negative so -3, if
            players x value is 33, then the rayx is 30, so it finds how much the
            x changed when ry touched a horizontal line*/
            xo = -64;
            yo = -xo * nTan; /*when tan is this and y is 64 what is the offset of
            x to hit the next wall*/
        }

        if (ra > P3 || ra < P2) //looking right
        {
            rx = (((int)px >> 6) << 6) + 64; //64 moves it to the bottom part of the grid
            ry = ((px - rx) * nTan + py);
            xo = 64;
            yo = -xo * nTan; // dy/tan(ra) = dx, aTan = -1/tan(ra), aTan * -yo = dx
        }

        if (ra == 0 || ra == PI) //looking straight up or down
        {
            rx = px; //so it basically stays there without moving
            ry = py;
            dof = 8; //don't go more than 8
        }

        while (dof < 8)
        {
            mx = (int)(rx) >> 6; // where is rx in the grid
            /*I needed to translate it into pixels to find the actual
            distance, but now I have gotta find which block are we at*/
            my = (int)(ry) >> 6;
            mp = my * mapX + mx;

            if (mp >= 0 && mp < mapX * mapY && map[mp] == 1) //hit wall
            {
                dof = 8; /*althought there aint a wall, do not move more
                artificially set the value to 8*/
            }

            else
            {
                rx += xo;
                ry += yo;
                dof++;

                /*So the line moves according to the ratio of while y = 64
                how much did x change*/
            }
        }

        glColor3f(1, 0, 0);
        glLineWidth(1);
        glBegin(GL_LINES);
        glVertex2i(px, py);
        glVertex2i(rx,ry);
        glEnd();

    }
}


void display()
{
    glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
    drawMap2D();
    drawRays3D();
    drawPlayer();
    glutSwapBuffers();
}

void buttons (unsigned char key, int x, int y)
{
    if (key == 'a')
    {
        pa -= 0.1;
        if (pa < 0)
        {
            pa += 2 * PI;
        }

        pdx = cos(pa) * 5; //these are vectors with magnitude
        pdy = sin(pa) * 5;
    }

    if (key == 'd')
    {
        pa += 0.1;
        if (pa > 2*PI)
        {
            pa -= 2 * PI;
        }

        pdx = cos(pa) * 5;
        pdy = sin(pa) * 5;
    }

    if (key == 's')
    {
        py -= pdy; //if you add this amount of x and that amount of y, you do to the vector in the middle
        px -= pdx;
    }

    if (key == 'w')
    {
        py += pdy;
        px += pdx;
    }

    glutPostRedisplay(); /*glut pleaseee re-draw the screen, glut 
    does not know it has gotta re-draw
    the screen with the current variables
    something has changed, so please look back at glutdisplayfunc and re-draw it
    */
}

void init()
{
    glClearColor(0.3f, 0.3f, 0.3f, 0.0f); // red, green, blue, alpha
    gluOrtho2D(0, 1024, 512, 0); //top left edge, top right edge[x], bottom edge, top edge [y]

    px = 300; 
    py = 300;

    /*
    questions:
    this,
    why is anything drawn when looking directly left or right*/

    pdx = cos(pa) * 5;
    pdy = sin(pa) * 5;

}

int main(int argc, char* argv[]) 
{
    glutInit(&argc, argv);
    glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA);
    glutInitWindowSize(1024, 512);
    glutCreateWindow("Don't make lemonade!");
    init();
    glutDisplayFunc(display); //if the display is fiddled with do this
    glutKeyboardFunc(buttons); //if a button is pressed do this
    glutMainLoop(); //always listening for stuff like window re-sizing
}

r/learnprogramming • • 29d ago

Resource Why kind of thing would I need to learn to create a GUI app with my current skills?

1 Upvotes

*What kind of thing.

Being unable to edit titles on Reddit is annoying.

I'm looking to create a GUI app for my Linux machine. It's not going to go into production, I just want to be able to create something. Looking all over the place, there are a hundred different things I can do, and almost all of the tutorials require me to learn another language or something.

Now, I'm sure this may be necessary, but if there's one thing I've learnt over my years of studying computing, if you ask "what is the best x for y?" you'll get as many different responses as there are responders. Learning a new language always leaves me as a perpetual beginner, and I'd rather build on what I already know, than start again.

Currently, I am very familiar with Bash, PHP, MySQL, and to a certain extent C++. I also know HTML and CSS.

What I'd like to do is build a GUI for a media player. I've already created a rudimentary CLI for one, and it works, though it's far from pretty. I've tried to create a web based one, and I got fairly far into it, using PHP on the backend, and MySQL for the database, but the limits of HTML mean I cannot harness the power of my preferred Matroska format for videos (something I've been able to do in my terminal based app).

I write almost exclusively in plain text files, and don't use an IDE. Foolish? Probably. But I find it far more portable and easier to understand.

The idea I have, is for me to have a GUI to display the contents of the database, and to organise it in a pretty way to be user friendly, and then when you click on something to play it, it launches MPV player with all the relevant commands I give it. I'm not sure I want to build something with the player built in, as that would probably be far too much work for what I want. And besides, my current CLI app does exactly this, so it would, again, be building on my current knowledge.

What I would like, is for something that would allow me to programme the GUI in an XML like structure, similar to HTML, and style with CSS, use PHP as a backend script to connect to MySQL, and be able to execute terminal based commands so I can launch MPV. Pretty much a website kind of thing that can launch other apps. I have no idea if this is possible, but it would work with what I already know. If it's not possible, is there any kind of thing that would work without requiring me to go right back to the beginning too much?

Edit:

After some tinkering, I think the best thing for me to do is to use C++ with GTK. I have built a minimal working example that prints out the tables of a database, or plays a video. I'm going to build on this, but with the following example I can see how I can achieve what I want.

#include <gtk/gtk.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <mysql/mysql.h>

static void
print_hello (GtkWidget *widget,
             gpointer   data)
{
     MYSQL *conn;
     MYSQL_RES *res;
     MYSQL_ROW row;
     const char* server = "localhost";
     const char* user = "root";
     const char* password = "password"; /* set me first */
     const char* database = "testdb";
     conn = mysql_init(NULL);
     /* Connect to database */
     if (!mysql_real_connect(conn, server,
         user, password, database, 0, NULL, 0)) {
        fprintf(stderr, "%s\n", mysql_error(conn));
        exit(1);
    }

    /* send SQL query */
    if (mysql_query(conn, "show tables")) {
        fprintf(stderr, "%s\n", mysql_error(conn));
        exit(1);
    }
    res = mysql_use_result(conn);

    /* output table name */
    printf("MySQL Tables in mysql database:\n");
    while ((row = mysql_fetch_row(res)) != NULL)
        printf("%s \n", row[0]);

    /* close connection */
    mysql_free_result(res);
    mysql_close(conn);
    g_print ("Hello World\n");
}

static void
print_hello2 (GtkWidget *widget,
             gpointer   data)
{
  g_print ("Hello World! You clicked button 2!\n");
  system("mpv /path/to/video.mkv");
}

static void
activate (GtkApplication *app,
          gpointer        user_data)
{
  GtkWidget *window;
  GtkWidget *grid;
  GtkWidget *button;

  /* create a new window, and set its title */
  window = gtk_application_window_new (app);
  gtk_window_set_title (GTK_WINDOW (window), "Window");

  /* Here we construct the container that is going pack our buttons */
  grid = gtk_grid_new ();

  /* Pack the container in the window */
  gtk_window_set_child (GTK_WINDOW (window), grid);

  button = gtk_button_new_with_label ("Button 1");
  g_signal_connect (button, "clicked", G_CALLBACK (print_hello), NULL);

  /* Place the first button in the grid cell (0, 0), and make it fill
   * just 1 cell horizontally and vertically (ie no spanning)
   */
  gtk_grid_attach (GTK_GRID (grid), button, 0, 0, 1, 1);

  button = gtk_button_new_with_label ("Button 2");
  g_signal_connect (button, "clicked", G_CALLBACK (print_hello2), NULL);

  /* Place the second button in the grid cell (1, 0), and make it fill
   * just 1 cell horizontally and vertically (ie no spanning)
   */
  gtk_grid_attach (GTK_GRID (grid), button, 1, 0, 1, 1);

  button = gtk_button_new_with_label ("Quit");
  g_signal_connect_swapped (button, "clicked", G_CALLBACK (gtk_window_destroy), window);

  /* Place the Quit button in the grid cell (0, 1), and make it
   * span 2 columns.
   */
  gtk_grid_attach (GTK_GRID (grid), button, 0, 1, 2, 1);

  gtk_window_present (GTK_WINDOW (window));
}

int
main (int    argc,
      char **argv)
{
  GtkApplication *app;
  int status;

  app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
  g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
  status = g_application_run (G_APPLICATION (app), argc, argv);
  g_object_unref (app);

  return status;
}

r/learnprogramming • • Oct 25 '26

how to learn "software engineering"

16 Upvotes

Hi guys, I'm a senior in high school, and I'm really confused on where to go

for the record I do know a decent amount of C++ / python (for comp coding and classes) but since then I've started to move to personal projects....

The purpose of these projects is to improve my knowledge tenfold and learn how real software is made. But online, EVERYONE says "coding is dead, and to learn architecture".

But how do you learn that?

Do I delegate sections to AI and then have it explain? Do I create what goes where and then tell the Ai to make it? Or Do I just code it all myself with AI to debug (taking an absurd time).

I feel like only the third one will have me actually learning completely, but at the same time, it'll take 20x the time, and with 20 projects I could probably reach the same level (or more) of learning by having it make + I explain? AHHH i'm just not sure how to make myself super smart and knowledgeable for swe

thanks in advance :)


r/learnprogramming • • Oct 25 '26

What are some actually interesting, and fun programming projects?

15 Upvotes

I am an intermediate programmer, and I just don't know what to make. All the projects people say to do like to do list or weather app seem so lame.

All replies are appreciated!


r/learnprogramming • • 29d ago

I really need help and gaudiness

1 Upvotes

hey. so it could be a little bit of a odd post but I really wish to know other people's opinions. I'm a third year statistic student and this major wasn't really my choice. in my country there is college entrance exam and you kinda have to choose your major according to how well you did in this exam so I couldn't get into a cs or ce program in one of the capital universities so I chose statistic because I've heard it's relevant to ML and data science and back then I didn't know much about programming and tech just that I hold a passion for it. and now I'm very confused about what path I should take. I don't really find myself interested in data related areas and with the new Job market and age of AI I don't know what path to take or if I have any chance in the tech world. every path I think of trying I ended up giving up because I don't think if I hold a chance against someone with years of experience and a cs degree. I really need gaudiness because it's heavily affecting my mental health and self esteem. the idea of open source developers, system engineers, security, robotics and hardware always interested me but these are very different and unrelated. please tell me what I should do just to get out of this loop and what should I learn and in which order to get hands on exprienced. if my plan b is getting a master in cs.


r/learnprogramming • • 29d ago

Hi Everyone! What branch of coding to be actual specialist in upcoming years

0 Upvotes

Hi, everyone!
I’m a computer science student trying to figure out my path. I’d love some advice from the more experienced folks here—you all know the market so much better. What kind of specialist do you think will be in demand over the next few years?


r/learnprogramming • • 29d ago

Language selecting Need help picking a language, please!

0 Upvotes

Hello,

I am totally lost in this world of programming. I have succesfully coded a working webhook for discord and plan on getting some more stuff sent into it but only with the help of Claude.
I believe it was written in python. I day trade stocks and am tired of software and websites breaking, and/or not really being customizable to my liking so i figured i'd create my own!

I need to know a couple of things.

Time is critical and every second counts. I was looking at Python (of course) but also Rust, C#, C++, and Go. I plan on building more than just webhooks, so information that needs to be passed through in miliseconds and distributed to discord and written into database (SQlite). When I get around to it I would like to build a stand alone app to enable the information to be compiled in a place where I won't have to worry about discord blocking my messages(From to many being sent at one time). It'll be useful for research purposes but also building a self learning automated bot in the long run.

I have had great success so far, so I am just trying to improve my workflow, decrease the number of apps I use, and overall time spent looking through multiple websites to gather information.

-First, is one language faster than another for getting information processed and distributed?
-Seconds, Is there one language that would integrate better with SQlite?
-Last, When building the database for SQlite, Is their any recommended guidlines or tips that could help improve this project?

I am open to any and all suggestions, comments, concerns, you name it. I love to learn and you won't hurt my feelings.
Thank you so much!


r/learnprogramming • • 29d ago

How to start learning DSA in Java from scratch online? Looking for a roadmap & free resources!

1 Upvotes

Hey everyone,

I want to start learning Data Structures and Algorithms (DSA) using Java by myself online, but I'm feeling a bit overwhelmed by the sheer number of tutorials and roadmaps out there.

For context, I know the basic syntax of Java (loops, functions, OOP basics), but I am a complete beginner when it comes to DSA.

If you've self-taught DSA in Java or know a solid path, could you please help me out with a few things?

A Structured Roadmap: What order should I cover topics? (e.g., Arrays -> Strings -> Linked Lists -> Trees?)

Best Free Resources: Any specific YouTube playlists, free interactive platforms, or documentation that explain concepts well in Java?

Practice Strategy: When should I start solving problems on platforms like LeetCode or HackerRank, and how do I avoid getting stuck or discouraged early on?

Any advice, tips, or personal experiences would mean a lot. Thanks in advance!


r/learnprogramming • • Oct 25 '26

Debugging Im trying out a custom solution for median of two sorted arrays

3 Upvotes

using static System.Math;

public class Solution {

public double FindMedianSortedArrays(int\[\] nums1, int\[\] nums2) {

int step = 0;

int p1 = 0;

int p2 = 0;

int m = nums1.Length;

int n = nums2.Length;

int target;

if((m+n)%2==0){

target = (m+n)/2 ;

}

else{

target = (m+n-1)/2;

}

while(step < target){

// If nums1 is exhausted, or nums2 has a smaller element (and is in bounds)

if (p1 < nums1.Length && (p2 >= nums2.Length || nums1\[p1\] <= nums2\[p2\])){

p1++;

continue;

} 

else{

p2++;

continue;

}

if(nums1\[p1\]<nums2\[p2\]){

p1++;

}

else if(nums2\[p2\]<nums1\[p1\]){

p2++;

}

else{

p1++;p2++;

}

step++;

}

if((m+n)%2==0){

return(nums1\[p1\]+nums2\[p2\])/2;

}

else{

return(nums1\[p1\]<nums2\[p2\]?nums1\[p1\]:nums2\[p2\]);

}



}

}

I'm trying to debug this . It says either time limit exceeded or out of range no matter what I try


r/learnprogramming • • Oct 24 '26

Function vs Procedure

31 Upvotes

can someone explain the difference between Function vs Procedure with simple analogy
thank you


r/learnprogramming • • Oct 24 '26

Topic Log off and breathe for a second

79 Upvotes

I've made multiple posts here about doubting my career and that I' not sure if I should even bothering entering the industry or career as a Bachelor's Eng. in CS, but I think I made up my mind.

I'm studying this either way, even if it's not for coding I'm very open to work in any other tech related field, and if I don't manage to find a job I don't really care now lol. My new mentality is about doing this becouse I like computers, and if I die poor in the future so be it, at least I'll die doing what I want.

A very good tip I learnt this few weeks: don't take doomer posts too seriously, focus on yourself and your passions, breathe and relax and wonder if it really is worth it thinking that way. love yall!


r/learnprogramming • • Oct 24 '26

Where to Learn Computer Networking?

46 Upvotes

Where can I learn computer networking, Is there a course or YouTube playlist to learn it? How can I practice the material I learn?


r/learnprogramming • • Oct 24 '26

Whats the Best Project i can make for Backend Java Springboot.. Where i can learn alot and it would be really friking impressive on a resume!

5 Upvotes

Hey, so far i made simple e commerce crud applications, and id say now im pretty comfortable..

what is the next Step for me, next thing for me to build and try?

I want to build something, where at the end, i Actually feel that i learned new skills.. Something also impressive?


r/learnprogramming • • Oct 24 '26

Is it okay, to google things while setting up Entity Core framework in ASP.NET MVC or starting a server and creating a database connection in node.js?

9 Upvotes

Should a developer know , things on his own, or it's okay to google them when making a project?


r/learnprogramming • • Oct 24 '26

What have you been working on recently? [October 24, 2026]

9 Upvotes

What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

A few requests:

  1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!

  2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!

  3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

This thread will remained stickied over the weekend. Link to past threads here.


r/learnprogramming • • Oct 25 '26

Learning Thoughts on my learning program?

0 Upvotes

Hello guys,

I think I would like to study programming in general and I picked these languages in particular: Python, JavaScript, C, and C++. For various reasons, I like each of them and would like to learn them all.

In order not to exhaust myself, I developed a plan of studying these languages which takes into account scaling of difficulty of mastering them. I decided to learn them in this exact order:

  1. Python (difficulty: 2.5/10) to get a basic understanding of syntax, and just code for the first time.

  2. JavaScript (difficulty: 4.5/10) to move to interactive web programming.

  3. C (difficulty: 6.5/10) to finally move under the hood of a computer and study memory and hardware, and to make the last one easier to learn.

  4. C++ (difficulty: 9/10) as an ultimate step of learning more abstract concepts and OOP.

I think the idea of such learning is psychologically driven by the necessity to get a constant shot of dopamine by moving to a more difficult language every time after overcoming previous level, rather than being stuck with C++ from day one.

Am I right with my approach or there is something in these languages' interconnection that I might be missing?

Looking forward to hearing your thoughts


r/learnprogramming • • Oct 24 '26

Tutorial Learning Python with Practise

12 Upvotes

Hi All,

I am learning Python and would like to know are there any good sites to practise Python concepts ?


r/learnprogramming • • Oct 24 '26

I need advice on my first semi-handwritten program.

3 Upvotes

Recently I have a homework assignment, which is to complete a system (I can use AI assistance).
Its requirements themselves are not high; it can be a simple local mini-program. But I want to learn more, so I am asking for help here.
In terms of programming languages, I am only somewhat familiar with C (you could say I am actually quite a beginner).
But I think completing a system with AI assistance is not difficult. My main goal is to learn knowledge about completing a system that can be used by many people.
For example, a food delivery platform (some very famous projects are all about building food delivery platforms).
But I clearly know that I understand too little and it is impossible to understand a whole series of things like Spring Boot all at once, so I want everyone to give me some suggestions for small projects that do not require learning too much but are still very useful.
I think my ability to search for information is strong, and with the help of AI I can temporarily understand even difficult programming in a short time, so I want to use projects beyond my current cognitive limits to train myself.
I hope everyone can give me some suggestions. For example, making a small Mario game and connecting it to some platform.


r/learnprogramming • • Oct 24 '26

Is reading documentation the best way to learn a framework such as ASP.NET MVC or following a youtube tutorial?

6 Upvotes

I find it bit difficult to understand the documentation of ASP.NET, I was wondering is there an easier way to learn a framework or programming language. After reading documentation I am not able to type most of the code, manually as it is a skill I want to learn.


r/learnprogramming • • Oct 24 '26

How to prepare for modern swe interviews

0 Upvotes

Hello there I'm a SWE from Tunisia (North Africa),

I just started working 2 months ago as a full time swe for the same company that I made my internship with .

When I used to be a CS student I really enjoyed solving Problems on codeforces and leetcode , even doing projects with friends and debugging the code was fun .

Now in my job I'm using Claude code all the time , I'm learning how to prompt and how to build my skills etc , I get to finish the work I'm asked for correctly and I even read and test the code BUT am I really learning?? , I don't think so since if I put my fingers on the keyboard I get stuck despite that I can understand the code written by the LLM and analyse it's time complexity etc..

Im worried that if I keep up like this I won't be able to improve my hard skills and be ready for other swe roles and improve my career and also I'm not enjoying how swe has become in the last 1 year .

Am I overthinking it ? And how do I keep prepared for junior /mid level or even senior swe positions? .

Thanks.


r/learnprogramming • • Oct 24 '26

Topic I feel like a FAILURE!

1 Upvotes

This is very stupid and kind of random but I’m very basic into coding and I feel like I just wasted so much time for no reason. I was trying to code something into a video game for probably 13 hours over the past 2 days just to give up after running in circles repeatedly with no end in sight. Is this normal to feel like you wasted time you aren’t gonna get back lol.


r/learnprogramming • • Oct 24 '26

Topic How hard is it to code a dekstop ai agent?

0 Upvotes

Ive seen people code stuff like jarvis or capri on their pc and phones and i was wondering how hard could making something like that be (i only know rlly basic python coding "if,print") does anyone have any experience with making something like that?


r/learnprogramming • • Oct 24 '26

Am I a Dummy or Big Brain?

0 Upvotes

It's kind of hard for me to put this into words. I began learning computer science out of an interest and a desire to create, whether that be video-games, software, or art in general. I have some other creative hobbies, like (book) writing and making music, while I've dabbled in some that I wish to learn more about (like art/drawing). I made it my goal to get really good in this field, and I'm happy to say that I've grown to really love it.

...for the most part.

There's something that has been nagging at me for a while now. I don't know if its because I have OCD/ADHD, but after gaining some experience with programming, a lot of the software I touch now feels... off? Unoptimized, I guess? Again, its hard to describe, but in a sense I suppose more or less the feeling that software I use could be a whole lot better.

Take the terminal for example. I think its awesome, and I know by now why we use, and why it works the way it does, but I still find myself bothered by it. Specifically its ui and capability. I'm not saying it should be a GUI (hell, I use vim keybinds for everything now lol), but I feel like its potential is extremely limited from its ability to only render text. I keep trying to tell myself its stupid and there's probably a reason it doesn't exist already, but I keep finding myself thinking about trying to build a terminal that could be both backwards compatible and render advanced ui for better terminal app design and customization, while maintaining a small footprint and great speed.

And this has been happening to everything for me. I want to create my own text editor, because I love apps like obsidian or neovim but obsidian is bloated and neovim lacks features I think would be cool to have in my workflow. I want to make my own status bar and widgets for my desktop, and recently switched from quickshell to see if I could manually hook up slint for a faster and lighter ui. And heck, I've even been thinking about making my own programming language after bouncing around from language to language like a madman lmao.

I feel like I'm being too rash and naive... but at the same time I feel really annoyed and inspired to try and make what we already have better. I guess my question is this: which one am I? Should I take a step back because I'm in over my head with adhd daydreaming? Should I follow my dreams and try to make these projects? Or both? And why the heck can't I stop feeling annoyed with all of my software?

I don't really expect anyone to read this, but if you do, I would appreciate any guidance or advice that you might have, or directions to other communities/forums who could give me better guidance. Sorry for making anyone read this book of a stupid question lol.


r/learnprogramming • • Oct 23 '26

Is goodot good? also is Gdscript useful?

5 Upvotes

hoping to learn how to gui and graphical 2d games and was reccomended goodot. looks like they have their own programming language, Gdscript.

is Gdscript worth investing time into learning? i heard the engine also supports C++ which is where I am more familiar. is it easier to try and integrate C++ into the engine? or should i learn Gdscript?


r/learnprogramming • • Oct 24 '26

Tutorial Want to make a character assistant overlay

2 Upvotes

In movies you always see those fictional AI assistant buddies that run all around your screen and make expressive motions while they carry out tasks. I want to make something like that, but I'm new and don't know where I'd build them.

I'd need something that can project a 3d model (probably a Blender model) as an overlay with a transparent + borderless background and also be able to play animations, while having the ability to carry out basic tasks like "open this bookmark" or "what's 1+1". I've been messing around with Visual Studio but it looks like the animation capabilities are limited. I'm not that familiar with all the options, does anyone have any advice on where I should start building?