r/AskProgramming • • Mar 24 '23

ChatGPT / AI related questions

146 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 • • 13m ago

Architecture Advice needed

• Upvotes

Hey guys, I started developing an app which is mostly ai internet search based, my problem is, I always hit usage limits, since I only use free options. (It will change in the future)
Do you guys have any other idea how an ai could search on the internet without a subscription?
My other question is, Is it a good idea to have a fallback system on free plan gemini api keys?
Are there any other way an AI could search the internet for me, totally free?
Thanks for your time and reply!


r/AskProgramming • • 7h ago

Other I am brand new to basic programming and looking for some advice

2 Upvotes

So, I know a very baseline knowledge of coding and am looking here for some help. My goal is to automate edits made from exported playlists so they work with my phone for MP3 files.

The edits that would need to be made for these playlists is as just turn location X to Y and switch \ to /

From brief google searches, it recommended python, but I am unsure how much to trust google. I also am curious if it is fairly simple to export it as an executable and run the above edits to all m3u8 files in the same folder as the executable.


r/AskProgramming • • 6h ago

Why don't browsers have "Pause" features to limit RAM usage?

1 Upvotes

Situation / Background Info (if TL;DR skip to the actual question at the bottom):

I'm currently playing a CRPG (Pathfinder: Kingmaker, just think of Baldur's Gate 3 if you're unfamiliar) which, for an optimization-inclined player such as myself who is not super familiar with the mechanics, requires a LOT of open Wiki pages to see how things work and what skills/spells/items/etc do. I go back to reference many of these pages occasionally, so it's easiest to keep them open.
At times I also have Youtube open, I'm sometimes taking a break and browsing other stuff, or even letting something download in the background while I play.

I think to myself:
Right now I have 8 wiki/guide tabs open, and that's after closing over 10 others, ones which I don't have to check as frequently. I also have 6 other tabs open unrelated to the game, most of which I only touch once a day or even once every couple of days.
Why the heck does my Internet Browser take up 5+ GB of my RAM, just to "hold" these pages in the background? And when I do check on them, I don't require to actually do anything advanced? They might as well be a large screenshot for my purposes.
I googled and found this answer:
https://www.reddit.com/r/AskProgramming/comments/s8ogk6/how_do_browsers_use_so_much_ram/
If I understand correctly, the short of it is that each tab runs its own instance of an engine for various purposes. That much makes sense.

The first available (lacking) solution:
I use OperaGX, which at least in its advertising seemed to be very proud of its "RAM Limiter" feature. All it does is give you a slider where you can limit your RAM usage for the browser - essentially I can set the slider to [X] GB and it will only ever take up [X] GB at a time.

Why it is lacking:
As far as I can tell, if I set the limit to, say, 1 GB, there is no differentiation between what I care or don't care about. Maybe my youtube video will be affected all the same, resulting in stuttering or being unable to play at all. Maybe that download I'm doing in the background will be affected.

The other available solution:
I did a little googling on "Tab Suspender" extensions, which claim to reduce memory usage by hibernating tabs you haven't used in some amount of time. It's not my perfect solution, as I don't even care to have the tabs run all their garbage even when I AM accessing the page, but maybe it's good enough.
I find "The Great Suspender Reloaded" which seems to be the #1 recommendation (or at least, the original Great Suspender was...), go to download it, and OperaGX pops up with a warning window:
"This extension's contents have not been verified by Opera"
"It can: Read and change all your data on all websites."
"It can: Read and change your browsing history on all your signed-in devices."
Well if that's not the biggest red flag I've ever seen, I don't know what is. I ain't touching that.

-----------------------------------

Anyways, my preferred solution:
Have a way to "pause" a tab by "converting" a page into a simple screenshot. You click a button, the browser automatically takes a screenshot of the page, and displays it as such. All other memory or CPU requirements are killed. I don't need each of my 20 wiki pages to constantly be running muted videos/ads when I access them (and maybe even in the background? I wouldn't put it past them), I just need them to display text and look as pretty as they did when I first loaded them. If I want to access the actual page again, I can just hit the "reload" button and it reloads the actual web page again.

Quirks:
I imagine this wouldn't be very compatible with resizing the browser window. I don't care. If I care, I can reload & pause it again at the new size.
Maybe we'd still want page links to work, so even on a "paused"/"screenshotted" page I can still click a link and then the next page is accessed as normal. I'm sure this would be extremely easy to implement - if adblockers can detect specifically ads and block them, I'm sure this "pause" feature can detect text/image links and overlay clickable zones onto a PNG.
Maybe this could conflict with logins? But I highly doubt that, and even if so, I'm the one choosing to pause the page - I'll relog if I have to when I get back to the real website.

Questions:
Is this unfeasible for some reason?
Does something like this exist and I'm just ignorant?
Why doesn't every browser include this kind of thing as a baseline option? Is the use case too narrow? Are the browser companies too symbiotic with sneaky advertising to allow for this?

Thanks!


r/AskProgramming • • 6h ago

Other Where to commission Rpg Maker MZ filter plugin (no AI), and a fair asking price

1 Upvotes

Title; I really want a filter that makes the game look like how pictures do on the ntsc-rs website except for the glitch bar at the bottom. I've never commissioned code before so I'm wondering where to look and what's fair!


r/AskProgramming • • 21h ago

Other Contracting a developer?

7 Upvotes

Hi! I have no idea what I’m doing or whether this would be worth it.

I run a commercial laundry service that is growing in volume rapidly. Unfortunately, the type of laundry industry I’m in is niche and there isn’t really an app or software specifically for it (I’ve tried them).

Currently, I use Google Sheets, forms, invoice ninja, Wix, and a few other programs just to run my business. I have to manually text/email hundreds of customers about their order status. I’d love to have my own management software to track all of this in one place and maybe export to invoice ninja.

The things I’d need are:
• Laundry tracking database
• Auto reminders (customer + me)
• Status alerts
• Pickup/delivery routing
• Scheduling form
• Data analysis
• Customer/order database
• Inventory tracking

Is it worth contracting someone to build this?

EDIT TO ADD: I have my own web domains, so the software can be an extension of those in just a browser version. Doesn’t need to be an app. This would be for my own use only.


r/AskProgramming • • 18h ago

C/C++ Need to translate multiple files from Rust to C, but can't understand C very well... is there any GitHub project or something similiar that translates Rust to C?

1 Upvotes

i know my question is kinda dumb, but with so many repositories out there, maybe theres a chance lol


r/AskProgramming • • 23h ago

Python Distraction Is the Enemy of Learning Python

0 Upvotes

One of the biggest obstacles to learning programming is distraction.
You start learning Python, then jump to Django, AI, cybersecurity, or another programming language. You keep searching for better tutorials and new resources instead of focusing on what you are already learning.
The result? You consume a lot of information but make very little practical progress.
How to avoid this:

  • Stick to one learning path.
  • Focus on understanding the fundamentals.
  • Spend more time writing code than watching tutorials.
  • Avoid switching between resources unnecessarily.
  • Practice consistently, even if progress feels slow.

Remember: You don’t need to know everything. You need to focus long enough to learn something properly.
Consistency beats constant switching.
Have you experienced this problem while learning programming? How do you deal with distraction and avoid constantly switching between topics and resources?


r/AskProgramming • • 20h ago

Why can’t we invent something with the simplicity of python but the performance of C++?

0 Upvotes

r/AskProgramming • • 1d ago

Other Has anyone ever tried creating an alternative set of technologies for the web?

4 Upvotes

Poor title, sorry.

People generally don't like JS. I know why we don't replace it. But I do wonder if anyone's actually tried, even as just an experiment?

Even if it's never gonna be practical, there's nothing preventing someone from making a browser that doesn't follow HTML5 standard to the letter and interprets a different scripting language, yes? Similarly, it could render other things than HTML/CSS if it wanted to. Has that been tried?

(To be clear, I'm very much not talking about a language that compiles to JS like TypeScript)


r/AskProgramming • • 1d ago

Architecture We counted 12 notations in a pretty standard React/FastAPI/Postgres setup. Where do you draw the line on seams?

0 Upvotes

Take a pretty standard stack for a task manager with an AI feature: React and TypeScript, FastAPI, Postgres with an ORM and migrations, Redis doing double duty as cache and Celery broker, a hosted LLM API, all of it in Docker with GitHub Actions, Terraform and Kubernetes around it. Nothing weird, every piece is the usual choice for what it does.

If you tally what someone has to read to work in that repo, it comes to twelve notations. Four carry logic (TypeScript, Python, SQL, shell in CI), two are presentation (JSX and CSS) and six are config (JSON, TOML, three unrelated YAML schemas, Dockerfile, HCL, dotenv). That's an undercount, since it leaves out the ORM's query language and the prompt templates that are half English and half JSON.

What bothers us more than the number is what happens to a single click. "Prioritize my tasks" goes from a TypeScript handler to a generated client, then JSON over HTTP, a Python route, schema validation, a queue job, a prompt, the model, a parsed reply, an ORM write, and finally a cache invalidation where the key is just a string two codebases agree on because people remember to. By our count that's at least eight times the same intent changes shape, and no compiler sees both sides of any of those changes.

We'd put the real cost in the crossings, not in any single tool. Each one is two descriptions of the same thing that humans keep in sync by hand, so each side can pass its own tests while the pair is wrong. That's probably why drift bugs get through review and CI so reliably. We suspect a lot of it is inherited convention and not something the problem requires.

Full disclosure, this is the exact question our founder, Jason Mars, spent about a decade on. Jac, the language he created, is where he landed: one language and one type checker across the frontend, backend and data layer, so those seams are the compiler's problem and not yours. We're more curious about the other side of it, though.

Where do you draw the line? Do you accept the seams and put your effort into contract tests and codegen, or have you found ways to cut down how many there are?


r/AskProgramming • • 2d ago

For beginner, which language do you recommend?

5 Upvotes

Future goal: website, game, to be able to read other people's code, mostly for fun; nothing too serious


r/AskProgramming • • 1d ago

Algorithms Help me please

0 Upvotes

Hey guys, I have a DSA exam in about 4 hours and I’ve just started studying. The topics are mostly beginner friendly (Bubble sort, recursion, quick sort, merge sort etc). What’s the most efficient way to study rn in order to get a pass?
(I’ve just started studying because I’ve been ill)


r/AskProgramming • • 3d ago

Why are vague error messages such as "Something went wrong" so prevalent in software nowadays?

95 Upvotes

I tried logging in to my bank today and the page said "Something went wrong. Please try again".

Personally I find these error messages very frustrating and borderline infantile, because they give me no hints about what could be done about this error, and whether there is something I can actually do myself to remedy them? Is this "something" that "went wrong" on the bank side (i.e. it is malfunctioning at the moment)? Or is it something with my Internet connection? Or my browser configuration (like browser extensions that play badly with the page's code)? If the bank system is not working properly, why don't they say it plainly: "It is our system's operation that went wrong". If something else, why doesn't the error message say so?

I understand that the opposite such as "Error 0x804634FF in module blahblah.dll address 0x0001:0x37E5" is also frustrating, but I think this has gone too far in the other direction. Every possible error is now "Something went wrong, good luck next time" with no context whatsoever.


r/AskProgramming • • 1d ago

Other Are flipper zero and flipper one worth it ?

0 Upvotes

I don’t know yet why I need them,but I will start my technical computer science course within a couple of months. I am curious if flipper can help me somehow to learn new things about programming or is it just a useless toy ?

Edit: it’s technical computer science


r/AskProgramming • • 2d ago

How is your team's workflow adapting to AI-assisted development?

0 Upvotes

We're a small team and we're benefiting massively from AI-assisted development. We ship things now that would've required ten devs before. But honestly what we do barely looks like programming anymore. We prompt code, test it, review it among ourselves. That's it.

PR review is our biggest bottleneck and we genuinely don't know how to solve it. When you're generating code at this speed, multiple PRs land per day and actually reading and understanding each one is exhausting, hard work. With that volume the only realistic option feels like letting AI do the review, but then you're trusting a machine to catch what matters and the human review becomes a formality. You end up rubber-stamping PRs because the AI "already looked at it." We don't have a QA team either, so testing also relies heavily on trust between devs that it works, and at this volume that trust gets harder to maintain.

The third thing that surprised us is that the bottleneck shifted upstream. Figuring out what to build is now the hard part. Writing tickets and specs is so much faster with AI that our senior devs often do it better than a dedicated PO would, because they actually understand the technical domain. We're starting to think the dev role is evolving into full lifecycle ownership: requirements, mockups, conceptual design, implementation. Basically absorbing what POs used to do.

I've also heard from big corporations that they're forcing devs to run five agents in parallel, multiple features and bugs simultaneously. We tried it ourselves and quickly realized it's overwhelming. Switching context between five different tasks means you can never truly get into any of them, and the result is that you just wave the code through instead of actually understanding it. The review process completely degrades.

Curious how others are navigating this. How are you handling the review bottleneck? Has anyone found a stable model where devs own the full lifecycle?


r/AskProgramming • • 3d ago

C/C++ Markovs Chains, initializeChains part 2

2 Upvotes

Okay so I figured out how to utilze the chain to like do things with instead of just reading word by word but im still getting failues in testing. I dont know if its correct or not honestly.

void MarkovChain::initializeChains(const vector<string>& words) {

//(void)words;

// fill me in

map<list<string>, map< string, int>> token;

for (size_t i = 0; i <= words.size() - 3; i++) {

list<string> key{ words\[i\], words\[i + 1\] };

token\[key\]\[words\[i + 2\]\]++;

}

r/AskProgramming • • 3d ago

About the guilt about using AI in personal projects

0 Upvotes

Hello everyone,

I have a day job as a fullstack web developer and I haven't really made personal projects before, I went pretty quickly from school to my current job (which is a luxury for most, I'm well aware).

However, I've wanted to work on something for myself for a while. I've been planning a beer brewing desktop application for a while and I started putting in the work a little while ago, even though I'm still in the technical design phase.

Now here's the thing. Throughout school, we were encouraged to use AI "responsibly", that is to say without just copying and pasting responses, but rather thinking critically about its usage and not using it as a crutch.

I've carried this mentality along with me for a long time, but I've always felt that something was off about it. I started feeling more and more uneasy about it, given all the other concerns I already had about AI, for instance the fact that it was built by taking everyone's data without any consent, the horrible impact it's having on the planet and the communities around data centers, the further enshittification of software, etc. .

But even if we were to ignore the above, what bugs me the most is that now that I'm trying to make something for myself, I constantly hear a voice in the back of my mind that tells me to "ask AI" whenever I need to make a decision, whenever I need to plan something, whenever there's a technical issue I can't figure out. I feel like by all measures I use AI quite responsibly: I question the output, I never copy-paste code, etc., but it really bugs me that, especially when I'm doing something software dev-related, my head seems to have a space that's permanently reserved to AI that I can't get rid of even when not using it.

In this sense, it IS a crutch, and a big one at that. Even when I spend entire sessions without opening any chat or CLI, there's a voice inside me that tells me that I should, as a quicker and easier alternative to whatever online search I'm doing or problem I'm trying to figure out. I suppose my brain knows that instead of all the researching to obtain the information I need, I could have it there in a much shorter time, and the fact that it does exist as an option, makes it almost irresistible. And yet, even here, my concerns about it remains: people made the effort, most often for free, to put up those resources for people to read, not for bots to scrape them, and it's worth reading their own words, not the filtered and repurposed version of an LLM.

This whole inner battle is exhausting. I almost wish I didn't know AI existed so I could just try and fail without constantly feeling that I'm inflicting this upon myself needlessly. To make matters worse, AI feels good. When I used it in school, it was mostly for planning projects and analyzing the codebase, and I felt so safe, so secure knowing that I had a watchful eye with me that made sure I wouldn't be left alone with the project. This one aspect is probably something I'm sure is mostly shared by people who feel a lot of insecurity about their own work, it's no news to me. And this is where AI helped me the most, essentially to get unstuck in endless mental loops. Nonetheless, the problem remains: I feel like the more I use it, the more I'm incapable of thinking by myself.

I'm sure this is not new and I wonder how you feel about it. I need some perspective and I'd love to hear your opininos an experiences. Thanks!

PS Apologies if the topic doesn't fit the subreddit, I'm struggling to know where it would fit best.


r/AskProgramming • • 4d ago

Python What is the most minimal, dead simple, modern way to make a quick GUI for a small Python program?

16 Upvotes

I've tried Tkinter and it just looks so ugly and outdated.

I just want to make a simple GUI app that doesn't run in a browser, doesn't look ugly, and doesn't need 200MB worth of libraries to run.

Do you know anything that fits this criteria?
If you don't know any good Python options, feel free to suggest something for Lua or Go.


r/AskProgramming • • 4d ago

Other How can I get out of this rut?

0 Upvotes

For historical context:

I self studied during an apprenticeship and basically got my foot in through JS/php which is what I currently work with.

During most of my employment history I’ve consistently felt like I was behind, didn’t know enough, was too slow etc.

My previous job I got into this really bad cycle of being unable to do work for a week or more (i worked from home) and then somehow crunching something together. It wasn’t sustainable and I got fired. I felt unable to sit down and do my work as I was constantly overwhelmed with the task at hand.

I got a job at a different company, smaller. I’m the only other developer working with another senior. I’ve been here for 6 months but I feel like I barely got my foot in. They use various configurations of laravel with some frontend or fullstack js framework.

I don’t feel like I get a lot of support here, I’m not sure how much I should get. I often feel lost. I’m unsure how much I should really know, I ask for help if i’m stuck on topics and eventually finish the task but overall I feel like I disappoint with my performance.

I want to improve but I don’t know how.

Sorry this turned into kind of a rant. I’m scared of losing this job but I also feel kind of stuck. Maybe this profession isn’t for me.


r/AskProgramming • • 4d ago

Other Is an interview so hard for now?

1 Upvotes

I've just experienced hardest hiring process in my life. And I'd like to know if someone else has had some similar experience recently on the current labormarket.

Now I'm going through the hiring process for a company on a Frontend (React) position. So I've passed (if I can say so) 3 interview. They took one month 😬**.** All of them were the tech interviews, but just the second was about principles, patterns, and abstract things in programming. The third was biggest one with HR, Tech Lead, and Tech Interviewer.

I had to learn a lot of things for the last - I received a file with topics and there were 11 topics with 5-10 questions each and some additional questions. They took around 8-9 days straight - I really spent almost all my days after work (part-time) for tht cuz I wanted to show my best result and I went through all details, deep into details yk. And I've learned some really usefull things in this field.

Today I just "passed" the third and now I'm looking forward to a feedback. If everything is good there will be one more interview 😳 , but it'll the interview with CTO about my thinking and abstract things probably.

I've never experienced something similar - the process is so long, a lot of information which I have to know. Guys is tht okay for now for my case? Expected salary - $1000-1200 and I'm not sure about getting the offer 😭. But I wasn't so bad in the interviews and especially in the last, I've really showed my best.

Btw I rate myself as a middle (beginner).

EDIT: it's Belarusian labormarket


r/AskProgramming • • 4d ago

Part two of my Markov Chain Project

3 Upvotes

Hey there! So i figured how to do the lottery system for my markov chain but im getting stuck on how to initialize it. what im trying to do is im trying to get the first two words and get them to predict the third word coming. But i dont know how to do it so far and this is what i have. I just kinda threw stuff at the wall till it stuck but yeah this is what i have so far. Thanks

I cant figure out the stupid code format on reddit for mobile, sorry in advanced.

void MarkovChain::initializeChains(const vector<string>& words) {

//(void)words;

// fill me in

map<list<string>, map<string, int>> token;

map<string, int> ngram;

for (const auto& word : words) {

list<string> key(words.begin(), words.end());

token\[key\]\[word\]++;

}

}

r/AskProgramming • • 5d ago

FFT (Fast Fourier Transform) in modern programs

17 Upvotes

I haven't seen a modern music player on modern day computers represent FFT as responsive as it could in the days of the 486Mhz with 16Mb of RAM (or less) (DAW's not included). I know DOS worked more directly with hardware, but we are over 20 years into the future and I want my Wallpaper Engine to keep up with the sound. Maybe there is an offset somewhere to delay the audio a few ms, but I haven't found it.

I was just reminiscing over some Future Crew demos from the 1990's in DosBox-X (when much was written in C and Assembly).

I was around during the time and owned a 486 DX2-66Mhz. These demos were big at this time (Panic, Unreal, 2nd Reality).

EDIT:
I should add that using iplay121 (for playing mod, s3m, etc) in the 1990's shows lightning quick response on the FFT on a 486 DX2-66Mhz and also on DOSBox-X on a modern computer. This was one of my favorite programs that barely used any space on a 1.44Mb floppy.

It would be nice if there was a way to delay the visuals in Wallpaper Engine. I'm surprised nobody else has mentioned this anywhere. Over 100,000 people started this program today on Steam (currently 12th place) and it's not even 10am yet.


r/AskProgramming • • 5d ago

can i run xbox softwere on a laptop in the same way i can run gameboy softwere on a ti-82 calkulator

0 Upvotes

r/AskProgramming • • 5d ago

How do you test your tools on macOS for free without owning a Mac?

7 Upvotes

I'm building an open-source tool on Windows and would like to test it on macOS as well.

Are there any ways to access a mac environment for free, even temporarily? I've looked into GitHub Actions, but that's mainly for automated testing.

curious how other developers handle this without owning a mac.