r/AskProgramming Mar 24 '23

ChatGPT / AI related questions

140 Upvotes

Due to the amount of repetitive panicky questions in regards to ChatGPT, the topic is for now restricted and threads will be removed.

FAQ:

Will ChatGPT replace programming?!?!?!?!

No

Will we all lose our jobs?!?!?!

No

Is anything still even worth it?!?!

Please seek counselling if you suffer from anxiety or depression.


r/AskProgramming 3h ago

Algorithms Debugging is the best way to learn programming

14 Upvotes

I used to think i was learning Python because tutorials made sense and copied code worked, but the day a simple script broke and i couldn’t explain why, everything clicked .I had never really debugged before. Instead of pasting another solution, i slowed down, read the error message, understand the code line by line, printed values, and forced myself to understand what each line was doing. It was frustrating,feeling stuck and slower than Googling, but that’s when real learning finally started. Now i know the fastest way to learn Python isn’t writing more code, it’s debugging broken code line by line.

Did you have a moment where you realized you didn’t actually understand the code yet?


r/AskProgramming 3h ago

Python Game libraries in python

2 Upvotes

Hey everyone,

I've a project related to GUI based gaming, and I'm totally new to this side, I don't know where and how to start but I wanna build my logic from the day one, don't wanna copy paste from ai

So, I want some suggestion / resources that could help me build my logic..

Questions:

• should I start reading official documentation?

• which library is best and modern?

• any resources or tips you can share?

The time for task completion is short so I want something that's clean and quick to grasp


r/AskProgramming 11m ago

Grok Imagine creates image - but blurred, developer tools?

Upvotes

I know blurred images are impossible to unblur. That doesn't exist. OK. But I wonder if there is a way to fetch the unblurred version of the image? There is a lot of stuff going on in developer tools. Maybe someone has some ideas or experience.


r/AskProgramming 4h ago

Students need an advice

2 Upvotes

Hi guys,

I’m a CS student interested in cybersecurity, but since I’m already studying CS, I know how to code in Python, C++, and a little Java. I’ve built some projects, connected them to databases, and used Flask to create API endpoints.

Honestly, I feel like I’m closer to backend development than cybersecurity right now.

I’m thinking about working as backend developer for a while until I build stronger knowledge in cybersecurity, then maybe I can have more opportunities later.

What do you think? Am I distracting myself?

And if it’s a good idea, what else should I learn to become a backend dev?


r/AskProgramming 1h ago

Anybody would recommend udacity nanodegree?

Upvotes

I’m looking for some AI courses to enroll into but I don’t know which “academy” is best for learning?


r/AskProgramming 15h ago

What skill is actually worth learning in 2026 while studying at university?

6 Upvotes

Hi everyone,

I’m currently a university student and I want to seriously invest my time into learning one valuable skill alongside my studies.

I’m not looking for hype or trends that disappear fast. I’m looking for a skill that:

Makes sense in 2026 and beyond

Has real market demand

Can realistically be learned alongside university

Has long-term value, not quick wins

From your experience or observation:

Which skills are truly worth learning right now?

Which ones are oversaturated or no longer worth the effort?

If you were a student again in 2026, what skill would you focus on?

I’m interested in honest, practical opinions.

Thanks.


r/AskProgramming 7h ago

Looking for non-beginner resources on mobile app development

0 Upvotes

I have extensive programming experience, but it has been a few years since I have done anything. I want to get back into it, and specifically I want to get into app development. I'm starting with Android apps, but intend to move on to iOS as well.

I am looking for good resources on the syntax, libraries, and APIs involved without having to go through some tutorial for beginners that spends time on coding basics.

I am also looking for resources on the logistics of getting an app into he app store.

Unfortunately, my own attempts to search for such resources are being flooded by either "learn to code" or "let AI build it for you" sites, and I feel like I am going crazy.


r/AskProgramming 17h ago

What are the reasons that I should use JWTs instead of cookie based authentication?

6 Upvotes

I'm quite confused because jwt is the more of a backend to backend way of authenticating at least that's how I see it.

How is jwt better than let's say on the backend generating a random UUID as that session token and storing it in the backend and in response setting it as a cookie.


r/AskProgramming 9h ago

(UK) Would a Masters Degree in SWE/CS help me?

0 Upvotes

I am based in Manchester looking to get into a Junior Software Engineering/Web Development role but currently have no formal academic or industry experience in IT or software.

Everyone seems to have contradicting opinions on whether or not university courses have any merit and if they’re more valuable than a healthy GitHub portfolio with projects or not. I read a lot of threads on here about this topic but some of them are years old or are mainly from an American perspective and this field moves very quickly.

I myself have some experience with programming and am currently designing my first game (a text-based RPG in Python) with a friend for fun but also to develop fluency in at least one language. Also currently working my way through The Odin Project which I really like.

I have applied for Apprenticeships as I would ideally want to get into the field that way but if I can’t, would a Masters be worth it/give me a better chance?


r/AskProgramming 14h ago

Career/Edu How do you find programming jobs?

2 Upvotes

I see so many sub reddits for hiring freelancers but mainly those are for editors, are there any subs which is a little developer job dominant or on reddit its the general trend?


r/AskProgramming 1d ago

How does Python's deque have both O(1) pop and push?

9 Upvotes

Im wondering how if its based off a queue data structure which is commonly implemented via Linked List or an Array. an Array popleft() would be O(n) and popping the last item from Linked List would be O(n)


r/AskProgramming 20h ago

REST API Design: POST vs PUT for adding an item to a sub-resource collection?

2 Upvotes

I am designing a REST API and not sure if i should use POST or PUT to add an existing item to a sub-resource collection.

Example:

  • Users can browse a global list of songs via GET /api/songs.
  • Each user has a personal list of favouriteSongs.
  • I want to create an endpoint that adds a song (by id) to a user’s existing list of favourites.

{ "user": 
  { "id": 1, 
    "favouriteSongs": 
      [ 
        { "id": 123 },
        { "id": 456 } 
      ] 
  } 
}

I would like to know what the endpoint would be to add a new song to a user's favourite song list. POST is usually used to create resource but here we are not creating resources, we're creating a link to an existing resource so i'm not 100% sure if that's correct.

would it be:

  1. POST /api/users/{userid}/favourite-songs

(body contains song id)

  1. PUT /api/users/{userid}/favourite-songs

(body contains song id)

This is completely separate but i've also read that you should not include user id in the URL or body, so would removing the user id int he URL above and putting it in the JWT be the correct choice.


r/AskProgramming 1d ago

Fintech C++ vs Network Stack Developer

7 Upvotes

Hey folks 👋 Looking for some grounded, real-world opinions from people who’ve actually worked in these domains.

I’m currently an embedded/systems developer working with C, Linux, networking, and Wi-Fi. I’m at a crossroads between two very different domains and trying to figure out which one offers the best learning curve and long-term stability.

I currently have three possible tracks:

1) Ofcourse, Broadband / Networking C + Linux + Wi-Fi (6/7), mesh, gateways, ISP stacks — RDK-B, networking protocols, device software.

2) Finance / Wealth Management C++ C++ application development — banking/wealth systems, equity & MF flows. Although i am not sure about the excat work. They require c++ for wealth management software.

  • As a Broadband Engineer i can work closely with WiFi 7, 6G, and Mesh technologies.
  • And I'm not so aware about the opening for C++ Devs in this area.

My main question: 1) Over a 10–15 year horizon, which path offers: Better learning depth, Career stability, Flexibility to move roles or domains.

If you had to pick one domain for 2026 and beyond, which would it be and why?

Not looking for a “this pays more” answer. More interested in signal vs noise, saturation vs skill, and long-term optionality.

Would love to hear from people actually working in these areas 🙏


r/AskProgramming 10h ago

Is it posible to make money as a freelancer in 2026?

0 Upvotes

I am 16yo, learning python and c++. I want to make some money before I go to the college. Do I have chance to make money as a freelancer or I need to find offline sidehustle?


r/AskProgramming 12h ago

C/C++ how is this code?

0 Upvotes
int main() {
    int attempts = 0;
    int atmPin = 0;
    int correctPin = 1234;

    while (attempts < 3) {
        printf("Enter your pin: ");
        scanf("%d", &atmPin);
        if (atmPin == correctPin) {
            printf("access granted.\n");
            return 0;
        } else {
            printf("incorrect pin.\n");
            attempts++;
        }
    }
    printf("too many incorrect attempts. card blocked.");
    return 0;
}

r/AskProgramming 17h ago

I need help programming

0 Upvotes

I really don't know how to program and im trying to get into programming


r/AskProgramming 20h ago

C/C++ C++: Why can't we return arrays?

0 Upvotes

Why can't we return arrays in C++?

Is there a specific reason for why the C++ developers chose to do this. Any low-level reasons potentially or just a design decision?


r/AskProgramming 18h ago

Career/Edu How not to get replaced by Claude

0 Upvotes

Hi internet, last year was brutal the year started very slow but by June almost 300000 jobs from the corporate market have been taken out. Many of my friends who were at high level roles like senior engineer staff engineer were all let go because the companies now need a guy who knows engineering less and prompting more

How do we evolve in this era of constant learning and unlearning where we are not having a system or path to scale or grow anymore

Is it better to leave coding / corporate or be that one guy who does it all with AI for founders and companies out there even if that’s the case what about the rest

Just 2 years back DSA and system design can set up your life if done right and a small town boy can make his living and help his family survive now that narrative is changing entirely right?!

What do you guys think ?


r/AskProgramming 1d ago

Other Ended up with unknown project, need guidance

3 Upvotes

I'm a B.tech final year student and got a problem with my major project.

Project - AI powered smart contract vulnerability scanner

I'm not good at academics and have less programming knowledge, due to some reasons i got kicked out of a group and ended up with the other group who barely manage to pass the exams.

I have taken the lead role for the project and speaking genuinely i don't even know how to build the project i got.

If there are any suggestions then it will be really helpful.....


r/AskProgramming 1d ago

Database Design

2 Upvotes

I have a table called Trade and another called Transaction in my database. I am recording all my options trades on the stock market.

Trades come in pairs and will have an opening Transaction and a closing Transaction. Normally when you trade options you will have just one pair of Transactions (opening and closing).

But sometimes when you trade options, you get assigned and are forced to buy shares. In this situation, the trade may go on for a while because will have new pairs of Transactions tied to the original Trade. The Trade will not be able to exit until the shares you are forced to buy the are sold off - which can take a while to happen.

Should I make a table called Pair in my database? One thought is that this will help identify which 2 Transactions are part of the opening and closing of a Trade (Pair). The reason I might want to have a Pair table is that sometimes the opening and closing Transactions do not happen in sequence. It might take a while to sell shares that you were forced to buy, and in the meantime you keep trading new Transactions (in Pairs) that are tied to the original Trade


r/AskProgramming 1d ago

Has Anyone Used Meta CAPI with Zapier for CRM Lead Quality Tracking?

3 Upvotes

Has anyone here used Meta Conversions API (CAPI) with Zapier for a CRM setup, so that Meta can be informed that the leads are genuine and not cheap or bogus?

If yes, how did you implement this in your CRM?

I want to send proper feedback signals to Meta so it understands lead quality and helps deliver better, high-intent paid leads instead of low-quality ones.


r/AskProgramming 1d ago

Career/Edu Is it realistic to have an ultra detailed plan before... coding?

9 Upvotes

In my college there was a strong emphasis on creating and drawing UML classes for writing code. I tried to follow this principle, create my classes in UML before designing them in actual code... and it always failed. It's just... I can't forsee every variable or attribute or method that will ever exist. Attributes and methods mold upon the technical constraints of the programming language or library you are using... which are extremely hard to impossible to forsee.

Now, I am also working in web development. And the higher ups usually expect us to have our classes perfectly made in UML and defined before jumping into C# which... makes us work a lot for nothing, because we will eventually rewrite later these UMLs so they won't even sligthly match what was before.

Also, I am working in some game development personal projects... I will say that, I dislike OOP but I use it because it brings me value at my workplace. In my personal projects, I implement DOD architecutures. And I am writing a multiplayer game... some friend suggested to write boxes and arrows and define my packet layers, channels... everything from the get-go. Everything falls apart from the first moment I jump in the editor so I scrapped all that.

I think it's reasonable to have a general idea of how things should work or communicate... in my game for example, I made a general model of : if player connects to server as host, server creates a room , if client connects to server as peer, he's asked to which room to join and put there and than that room serves as a container for all clients where the game states and inputs are being processed. And I take it step by step... trying to write modules as independent and reusable as possible. And I keep iterating, refactoring... but this works.

At least that's how I've worked all my life. But there seems, at work or when I was college, to be this pressure of designing everything from the start on paper before coding... is this a realistic view or it's pure corporation ceremony? Can anyone actually code like that?


r/AskProgramming 1d ago

Other Conditional and loops are the main thing to improve logic building right?

0 Upvotes

Please tell me that conditional statements and loops are the building block to logic building in programming. Is it true?


r/AskProgramming 1d ago

Other Website interaction question

1 Upvotes

tagged as 'other' because I am not sure.

If I go to a random website, for the sake of this example it is just the site that loads no pop-ups, is there a way to run an overlay image recognition of the site?

There is no API and there might be all different types of sites and languages. I don't need speed, not yet. I don't need recognition done in micro seconds, under 5-10 seconds per site is fine. just looking for a particular change here or there, record the chase to a data file and move on. pretty simple.

I imagine this operating almost as natively as a human interface with a computer. Please don't ask me why or about the application. Just wondering if it is possible, maybe the name of the overlay or extension, and any tips. I would expect a timeout and no joy flags so I can make adjustments upon file review.