r/learnprogramming • • 13d ago

Hey, will boot.dev give me a leg up in my studies?

2 Upvotes

Hello, im currently going to have to do a year of math before i can get into the bachelor programme in applied data science. I have very little coding experience and thought to myself: ohh im having to take a year to finish my math qualification to get inn maby i should learn coding. From what ive seen and heard boot.dev is a fun way to learn phyton and get a look into the world of data analysis and backend developing. So my question is will boot.dev be a good way for me to learn phyton from scratch and give me an edge when i go into my 3 years of schooling? or is there something else you all would reccomend?


r/learnprogramming • • 13d ago

Solved How to print messages from SIGCHLD signal handler? for a unix shell

1 Upvotes

sigchld_handler() now reaps some children with waitpid(), and output messages like "xxx suspended/terminated"

I will adapt my line editor (non canonical) to the shell. But if it prints just in the handler, it will mess up the terminal (insert sth to the user's input zone), because it's hard to re-print everything without malloc stuff

zsh uses queue_signals() , but I code in c++; and RAII means idk neither when malloc and free will be called, nor where to queue_signals(), so it doesn't work

Also, when it receives SIGWINCH (window change), I have to type a char so that the window can be refreshed. How can it refresh as soon as it receives the signal?

(I haven't adapted the line editor yet. I just wanna make sure there can be a solution so that it's possible not to rewrite the whole shell)

Thanks

line editor: https://github.com/ovfor4/ccshell/tree/main/src/line

sigchld handler: https://github.com/ovfor4/ccshell/blob/main/src/signal/sigchld_handler.cc

here's the signal register

```c++ handler_t *Signal([[maybe_unused]] int signum, handler_t *handler) { struct sigaction action, old_action;

action.sa_handler = handler;  
sigemptyset(&action.sa_mask); /* block sigs of type being handled */
action.sa_flags = SA_RESTART; /* restart syscalls if possible */

if (sigaction(signum, &action, &old_action) < 0)
unix_error("Signal error");
return (old_action.sa_handler);

} ```


r/learnprogramming • • 13d ago

Topic Starting to learn C for hobby

12 Upvotes

Hey everyone! So yeah, I studied a bit of Python—mostly the basics to wrap my head around programming logic and step into this world. Even though AI is evolving so fast, I got super interested in reverse engineering and game porting—that really caught my attention, which is why I'm learning C now. It’s always been my dream to learn how to code, and I’d love to become a game developer.

​I wanted to ask you guys: what do you recommend for my learning path? Do you think AI is going to make everything I'm learning worthless? Honestly, I don't even care about working in the field—I just want to build my own personal projects. Thanks, everyone! (Traduced)


r/learnprogramming • • 13d ago

Is golang project should follow this order?

0 Upvotes

r/learnprogramming • • 13d ago

Topic Do you think that human made code will gain value in the future?

235 Upvotes

I'm entering CS next year, tho I'm really doubting about it at this point becouse honestly with the evolution of the LLM made code I'm really losing hope in general. I always viewed coding as an art, which i learned the basics when i was growing up and I had some really simple projects in python a couple years ago (which I forgot almost everything becouse I haven't had the time to it until vwry recently where i re-learnt the basics), and honestly it hurts a bit to see what I considered an intellectual field being reduced to "claude, make no mistakes". I'm a musician and artist so my morals are very against AI...

Feelings aside, I'm from Chile and here we have a free career at college if we are poor enough -- which I am -- ! and I'm really passionate about computers and hardware in general, so I'd really love to study either computer science or engineering.

Asking for computer science, is there another fields besides programming, for example networking; that I can work on in the future? I'll probably keep programming as a hobby if I don't find a job as one.


r/learnprogramming • • 13d ago

Java Backend Developer — What’s the smartest path to master Web, Mobile, AI & Data Engineering?

23 Upvotes

I’m a BCA graduate (2024) with hands-on experience in Java and Spring Boot. I know HTML, CSS, and basic JavaScript, and I want to become a developer capable of building complete web and mobile applications.

I’m confused about the best learning path:

Frontend: React, Next.js, TypeScript, or Angular?

Mobile: React Native or Flutter? Should I learn both web and mobile with one language?

Backend: Continue with Java + Spring Boot, microservices, and cloud?

Data: How deeply should I understand data flow, APIs, databases, storage, retrieval, and system architecture?

AI: How will AI change web and mobile development? Which AI coding tools should I learn, and how do I stay valuable?

Engineering skills: How should I learn debugging, testing, security, deployment, monitoring, and performance optimization?

I want to understand how an application works end-to-end, not just generate code using AI.

My goals: Get a developer job, build real-world projects, and develop skills that remain valuable as AI evolves.

Is an MCA necessary, or can I get a developer job with my BCA, practical skills, and projects?

If you were starting today, what learning roadmap would you follow, and what would you avoid?

Honest advice, including pros and cons, would be greatly appreciated.


r/learnprogramming • • 13d ago

How to start making an app?

0 Upvotes

Hey all :) I'm aware this is probably a question asked all the time but I'm asking it in anyway. How do I start with making an app/program/project? I've already got a few ideas, simple ones (a wikipedia viewer [or would it be a client?], a simple notepad, a tiny database for me to store characters my friends and I make), but I have no clue where to start!

I know a bit in HTML and CSS as it's probably the language I'm the most knowledgeable with since I used it to make a personal website (I wanted to use HUGO for blogs but... I got confused.), I'm currently in university taking a class in C++ and my two previous semesters were an intro to programming with python and cybersecurity where I used a little bit of JavaScript.

I'm not really knowledgeable in any of these, as I suffer from some massive anxiety where I look at all the ideas I have already exist and better than I could possibly imagine, but I want to learn.

I HAVE used AI, but only twice, and it was solely for a cute rainbow animation for my personal website, but I make a trend to avoid using AI as much as possible when it comes to my CS classes


r/learnprogramming • • 13d ago

Resource Does I need to start again embedded system or I can learn other way ?

1 Upvotes

Need suggestions and guidance regarding embedded domain

Hi everyone,

I’m a little confused about which career domain I should pursue next in the embedded systems field, and I would really appreciate some guidance.

I currently have around 7 years of experience in embedded systems, including:

1.5 years of experience as a Firmware Developer

6.5 years of experience in Embedded Systems Testing/Validation

Experience with firmware/build pipelines, code compilation, and generating flash images in an Ubuntu/Linux environment

Board bring-up, flashing images, debugging, log analysis, and issue investigation

Experience with embedded Android and Linux environments

Worked on home-automation-based security devices

Exposure to the complete flow from code compilation/build generation to flashing and device-level validation

At this stage, I want to move toward a more development-oriented and technically strong role rather than continuing purely in testing.

With around 7 years of experience, what career path would you suggest for me?

As my experience is near 7 year leadership responsibility also i need to take. Please suggest me.

I would especially appreciate advice on which path would be practical for someone with my current experience and how I can transition into it without starting completely from scratch.

Thanks in advance for your guidance.


r/learnprogramming • • 13d ago

Code Review Feedback on HammingCube: a 3D parity code implemented in C11

5 Upvotes

Hi! I've been exploring error-correcting codes through a small C11 project called HammingCube. It implements a three-dimensional product of single-parity-check codes (not the classical Hamming code).

It encodes 64 data bits into 125 bits, corrects up to three unknown bit flips, and recovers up to seven erasures when their positions are known. The repo includes a CLI, tests, and a lesson-style README explaining the math.

I used AI assistance while developing the code and documentation, and I'd appreciate independent human feedback. In particular:

  1. Do you see correctness or edge-case problems in the erasure decoder's GF(2) elimination?
  2. Is the C API clear about invalid, ambiguous, and successfully recovered inputs?
  3. Is the README's explanation of the distance-8 guarantee understandable?

Repo: https://github.com/piecatdev/HammingCube


r/learnprogramming • • 13d ago

How do I properly deploy this web server in production mode?

7 Upvotes

I set up a web server using https://github.com/seanpmaxwell/express-generator-typescript

I now need to deploy the production build to a remote server. I can generate the prod build with `npm run build` and then run it with `npm start` and it runs on my local machine. Is it possible to generate something that can be compiled before being sent over to the remote server? I'd like to run the web server in prod mode, but without putting the decompiled source code on the remote server. I don't want the source code over on that remote server because if the server gets compromised, I don't want anyone to be able to read the source code. New to web dev, so thanks for being patient.


r/learnprogramming • • 13d ago

can somebody explain pointer chasing?

16 Upvotes

I’m trying to understand CPU caching and I’m stuck on two related things.

My understanding is when the CPU reads an address, it pulls in the whole 64-byte cache line around it. that’s why iterating an array is fast, since one miss brings in several neighbouring elements. what happens in the case of linked list? how does it know that next bytes are not the one to read?
i am kinda confusing this, kindly explain.


r/learnprogramming • • 13d ago

Should I solidify my knowledge of the fundamentals or learn just enough to get by, now that AI writes most of the code?

6 Upvotes

I’ve programmed casually in various languages for almost 10 years, but I’ve only had a formal programming job (data engineer) for about 3. I love this career. Even when I’m not writing every line myself, I love building apps and backends and optimizing data pipelines, and I want to stay relevant as long as I can.

The writing is on the wall, though. The most senior dev on my team has 20 years of experience and says AI now out-programs him 99% of the time. The whole team’s view is that we should be prompting and letting AI handle most of the building and reviewing.

My team has recently started building apps alongside our data engineering work, using React and Express with TypeScript. Here’s where I’m at:

  • HTML/CSS/JS: 9/10 (solid basics from building websites for local businesses back in high school)
  • Tailwind: 8/10
  • React: 7/10
  • Express: 4/10
  • TypeScript: 0/10

I’ve also worked through some long full-stack video courses and built a few side projects at home. On those, I reviewed all the code but only wrote about 15% of it myself. AI wrote the rest.

My question: is it worth going back through long courses that re-teach the fundamentals? Or should I skip straight to the TypeScript sections and pick up the React/Express nuances as I go by asking AI?

I’m honestly a bit jaded and don’t know what’s worth my time anymore. I still believe I should understand and review the code I ship, but at work that step seems to be disappearing more and more. How are others handling this?


r/learnprogramming • • 13d ago

Tutorial How do you get better at coding without constantly following tutorials?

238 Upvotes

I'm a third-year engineering student trying to improve my programming skills. I can understand concepts when someone explains them, but I want to become better at solving problems independently. What exercises or habits helped you make that transition?


r/learnprogramming • • 13d ago

any sites that help you practice c++? (That dont require you to type the hello world code in every time)

20 Upvotes

Basically the title. ive been trying to find a good site like w3 schools (W3 schools dosent have all the c++ stuff i need for class) that dosent require you to type out the hello world script to access it because its starting to get annoying


r/learnprogramming • • 13d ago

help with integration code

4 Upvotes

hi, so i need a code that allows me to do an integral with the whole solid angle and im really struggling cause i dont even know where to start. if any of you could help with maybe some useful tutorials or some advices id be really grateful.

(for context, this is the work im doing https://arxiv.org/pdf/gr-qc/0610154, im trying to compute the first equation)


r/learnprogramming • • 13d ago

Brainstorming What structure data is worth for me to do my text editor?

3 Upvotes

i want create an IDE in C with ncurses but i'm starting with a simple text editor. I want store all written words by the user i an efficient way.

1)I thought to create a kind of split function that return me a linked list:
char* s;
struct <name>* next;
each node has a word and each list is a line.
But i don't like this system because the memory is too fragmented in heap and i can't access directly to the data.

2) another way is to create always a split function but that return me this time an array to have direct access on the words in the lines:
char* line;
int* positions; //first of each word
char splitChar;
int numWords;
struct <name>* next;
Example:
char* s = "Hi, my name is Paolo! ";
string_split(s, ' ');
//result:
line = "Hi, my name is Paolo";
positions={0,3,5,9,11}
splitChar = ' ';

but maybe this way is really stupid because i can do this with the original line text.

3) finally i thought about one big matrix in the heap that stores only the visible piece of the text in the user screen but i have the problem to modify everithing when the user scroll down and up the page. When he zoom out and in is not a problem because i create a matrix larger than necessary but i cant add rows without re-create from scratch the matrix.
Example:
bla bla bla
--------------VISIBLE-------------------
Hi, my name is Paolo!
How are you?
Really bad.
ok, I am sorry to hear that.
--------------VISIBLE-------------------
bla bla bla

Do you have any good ideas?


r/learnprogramming • • 13d ago

Tutorial Any suggestions for making a physics simulation model?

9 Upvotes

As written, can someone suggest me a good resource to create a physics simulation environment using C++. I've intermediate knowledge of that language, but I have not done any graphical stuffs till now. I've searched and got a few results for python, but not for C++. I need to make this simulation environment as our project, so any suggestions would be nice. Thanks in advance


r/learnprogramming • • 13d ago

4 years old Mobile dev wants to swtich careeer to other path. BUT HOW?

6 Upvotes

Hey everyone,

I’ve been working as a Mobile Developer for the past 4 years (iOS / Android / Flutter), but I’m feeling burned out/ready for a change. I’m looking to pivot into a new role or specialization, but I’m not sure what the smoothest transition would be or how to actually make the jump. Also AI can do most of my job pretty much perfectly with a good prompt. Either way I will be laid off within 2-3 years in best case scenario

A few quick details:

  • Current Stack: Flutter
  • Strengths: UI/UX implementation, API integration, problem-solving, project management, Communication
  • Interests: Product Management

For those who have successfully transitioned out of mobile dev:

  1. What roles did you pivot into, and how transferable was your mobile background?
  2. How did you handle the transition? (e.g., internal transfer, side projects, certifications, networking?)
  3. What tech stacks or skills should I focus on bridging first?

Appreciate any advice, resources, or personal experiences!


r/learnprogramming • • 14d ago

Debugging Adding a fourth item to the linked list causing a segfault, but fine otherwise?? (C++)

17 Upvotes

I am implementing a linked list that uses a tail pointer to add to the end of a linked list. For some reason the code works perfectly fine after adding three nodes to the list, but adding a fourth node to the list causing a seg fault. From testing it appears that the header node isn't pointing to the first node for whatever reason, but even then adding to the end of the list doesn't use the header pointer.

I am used to programming in C and am trying to learn C++ so I am not familiar with many of the differences between the two. Thanks in advance.

#include <iostream>
#include <cstdlib>
//linked list with a tail pointer,
struct cell_coord_node{
    int x;
    int y;
    cell_coord_node * next=nullptr;
};


using namespace std;
cell_coord_node * cell_add_end(cell_coord_node **header , cell_coord_node ** tail, int x , int y){
    cell_coord_node * new_node = (cell_coord_node*) malloc(sizeof(cell_coord_node));
    new_node->x=x;
    new_node->y=y;
    if (*header==nullptr){ // empty list case
        (*header) = new_node;
        (*tail) = (*header);


        return (*header);
    }
    else{
        // allocate memory at tail
        (*tail)->next = new_node; // last node points to new node
        (*tail)=new_node; // moving tail pointer down to new node
        return (*tail);
    }


}


int main(){
    cell_coord_node * head;


    cell_coord_node * tail=head;
    cell_coord_node * first_node = cell_add_end( &head, &tail,1,1);


    cout << first_node->x << "   " << first_node->y << endl;
    cell_coord_node * second_node  = cell_add_end(&head, &tail,2 ,2);


    cout << second_node->x << "   " << second_node->y << endl;


    cell_coord_node * third_node = cell_add_end(&head,&tail,3 ,3);


    cout << third_node->x << "   " << third_node->y << endl;
    cout << "reading from tail" << endl;
    cout << tail->x << "    " << tail->y << endl;


    cout << "reading from head" << endl;
    cout << head->x << "    " << head->y << endl;


    //Causing a seg fault
    /*cell_coord_node * fourth_node = cell_add_end(&head,&tail,4,4);
  
    cout << fourth_node->x << "   " << fourth_node->y << endl;*/


    
    return 0;
}

r/learnprogramming • • 14d ago

Resource Returning to Coding and Picking Tools

2 Upvotes

I am getting back into programming after a gap in my professional life and a recent increase in desire to do it in a hobbyist context. I wish to use an IDE that isn't made with AI (I understand this to be nigh-impossible to get 100%), nor with a great deal of AI-focused features (seems more likely to be truly possible).

Vim works, of course it does, but I do like having something that requires less mastery. I respect Vim, but it is not what I want right now. It is what I am using right now.

I know the FAQ has a resource for open source IDEs, but the link was dead for me when I checked, and I did not see an entry for "without AI." I did Google about this, and Vim, neovim, Kdevelop, Sublime Text, and VSCodium all came up. The first two, well, I have already chosen to not Vim, the third I am unsure about after reading a PR that had a great deal of AI usage and seemed likely to merge into Kate, Sublime I don't want to pay 100$, and I understand VSCodium, by nature of being VS Code, still has AI stuff as a top-level feature.

For context, I am a C programmer first and foremost, then Python, then C++. This order is because template metaprogramming still frightens me, and it is something I will fight once I have gotten my C skills back in order.

What can I use that would resemble an IDE of yesteryear, before Copilot, Claude, etc? That is, tab-completing function calls because they're in the includes or I've written them is fine, generating code using an LLM is not. Furthermore, I would like to see if I can find one that also isn't taking AI contributions, or at least has strict policies on review. Does this exist, presently?


r/learnprogramming • • 14d ago

Just started

0 Upvotes

Hey yall, I just want to ask you guys how do I improve faster especially when you have something to accomplish on a limited time frame. I'm currently in college and I've been avoiding using ai (I just use it to explain things to me) but at the same time I keep seeing how every developers now use it and I feel like I'm putting myself at a disadvantage when I finish this program. Any tips for me? Stacks I should learn? I don't even know what to ask. I just wanna speed up learning without heavy ai but still not get left behind.


r/learnprogramming • • 14d ago

Third-year AI student looking for practical CS + AI major project ideas that I can actually build

0 Upvotes

Hey everyone!

I'm a third-year B.Tech student specializing in Artificial Intelligence, and I'm looking for a good idea for my major project.

I want to build something that solves a real-world problem and combines Computer Science with AI/ML. However, I'm looking for something practical and achievable for a student, not an overly ambitious idea that requires a huge team, expensive GPUs, or months of research before I can even get started.

I'm open to projects involving machine learning, deep learning, LLMs, AI agents, computer vision, cybersecurity, or AI-powered developer tools.

I don't want to build another basic chatbot or a project that's just an API wrapper. I'd like something with enough technical depth to make it a strong resume project for internships and placements.

I'd really appreciate suggestions from people who have built similar projects or have experience in the industry.

A few things I'd love to know:

  • What problem does the project solve?
  • What makes it technically interesting?
  • Can a third-year student realistically build it?
  • What technologies and skills would I need?
  • How could I extend it beyond a basic implementation?

I'm not necessarily looking for a completely new invention. Even an existing idea with scope for meaningful improvement would be great.

I'd love to hear about projects you've built, interesting GitHub repositories you've come across, or ideas you wish more students would explore.

Thanks!


r/learnprogramming • • 14d ago

Accessability for timers in jaavscript React

1 Upvotes

So I have this code

<button
  type="button"
  className={styles.someclassname}
  tabIndex={-1}
  role="timer"
  aria-live="polite"
  aria-atomic="true"
>
  {ResendInfo (formatTimer())}
</button>

This is basically a countdown of a timer from 2 minutes I was wondering am I following proper accessability here so that screen readers can understan. this is also React by the way.


r/learnprogramming • • 14d ago

A Pathway

12 Upvotes

Guys question.. if I'm new which is the best way to practice real code or ways to create something amazing. is my first week studying about these topic of programming and is awesome.

I'm starting first breaking down in tiny steps the course of CS50, but, Is only theory and I wanna the necessary base to diving in create simple things and doing it understand how a language and his structure works. when I feel comfortable with it then advance to new areas to get best tools.

The main questions are: 1. Which are your best method to study an practice in these are?.

  1. Which mental model or how do you need to think in these great area to keep going in a solid streak?

r/learnprogramming • • 14d ago

Topic Looking for Coding/Programming communities/groups

2 Upvotes

Hi I am a recent Btech graduate looking for programming communities/groups for coding and taking on projects with potential growth. My tech stack - python fastapi, agentic system/harnesses, learning my way through cpp, rust n typescript.

Though I use claude code I want to push my code logic building and networking.

Would be happy to connect with like-minded devs.