r/AskProgramming • u/obliviousThunder007 • 1m ago
r/AskProgramming • u/YMK1234 • Mar 24 '23
ChatGPT / AI related questions
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 • u/OperationVisual6523 • 11h ago
C/C++ Markovs Chains, initializeChains part 2
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 • u/ansi-d • 1d ago
Python What is the most minimal, dead simple, modern way to make a quick GUI for a small Python program?
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 • u/scy_2k • 1d ago
Other How can I get out of this rut?
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 • u/Ok-Explanation9697 • 1d ago
Other Is an interview so hard for now?
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 • u/OperationVisual6523 • 1d ago
Part two of my Markov Chain Project
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 • u/RadianDRZ • 2d ago
FFT (Fast Fourier Transform) in modern programs
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).
r/AskProgramming • u/Bricks11_ • 1d ago
can i run xbox softwere on a laptop in the same way i can run gameboy softwere on a ti-82 calkulator
r/AskProgramming • u/Top_Speaker_7785 • 2d ago
How do you test your tools on macOS for free without owning a Mac?
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.
r/AskProgramming • u/Zardotab • 2d ago
Architecture Does your framework mark HTML tags for trace-ability?
Often tracing defective output back to the source code can be tricky. I've seen some shops that have various conventions and techniques to mark HTML tags with some kind of ID or indicator to make tracing the output back to the source code easier. Some use ID attributes, other use specially named CSS classes, and others just make up an attribute not defined in the HTML standard. HTML comments are another approach but can muck with spacing if not done carefully. Anyone have experience or recommendations on this practice?
r/AskProgramming • u/n2fole00 • 3d ago
Which kind of scam is this?
Like I know it's a scam, but how bad are we talking about here? And before you ask, I'm not even tempted.
Hi ******,
A friendly note out of the blue — I found your work on GitHub (******) and wanted to write to you.
I'm a developer based in Japan. Client projects for years, happy to take on whatever kind of work arrives, and confident I do it well.
I thought it was better to explain my reasons than to just ask.
There's one thing I can't change about my situation. The clients who pay best are in Western Europe and the US, and Japan is the far side of the world from them. Those clients prefer someone they can trust in or near their own time zone, and that is precisely the edge Finland gives you — inside the EU, inside the European working day, trusted naturally.
So I'd love to team up with you. My development work together with your location and time-zone advantage could bring us opportunities neither of us reaches alone. The way I imagine it: I'd find the clients and do the work, and you'd only need to step in for the occasional interview.
If that sounds interesting, just reply and we'll talk it through. And if it's not for you, genuinely no worries — a quick "no" and that's that.
Warmly,
Nozomi Kimura
Software Developer, Japan
r/AskProgramming • u/ElephantOdd5341 • 4d ago
Career/Edu C++ vs python
I'm a first year cs student and I'm wondering which is better for getting a job. I know it's more about your skills and not only the programming language but they do have different niches that they excel in.
The reason I'm asking is that I already know Python and have done extensive work in it. But I recently discovered C++ and truth be told I really like it and prefer it over Python. C++ just has so much more control and logic that you can manipulate in it. It feels more concrete for some reason.
Either way, I know learning Python is essential cuz it's the fastest way to get things done. But at the same time it's also the most popular language, so I'm wondering will learning C++ be worthwhile?
r/AskProgramming • u/Foreign_Career_454 • 3d ago
C# Per-tenant filesystem root confinement (traversal + symlinks), cross-platform
i am currently relying on string check to keep customers in own folders. Is it completely pointless on window? Or Force OS to look customers in isolation instead of filtering file names in c# & python
r/AskProgramming • u/mf_i_am_both • 4d ago
Trying to find a way to input an album with 1 million songs onto a music database site. Is there any way I or someone else could program a way for me to not have to do it manually?
So for some much needed context and clarity, there's an album called Aleph-Ten (ℵ₁₀) by the band Bull of Heaven. On the music database / cataloging site I was speaking of, (It's called Rate Your Music btw,) the track list originally shows as this if you look on the album on RYM:
1|0000001|0:01
2|0000002|0:01
3|0000003|0:01
...
9999998|9999998|0:01
9999999|9999999|0:01
1000000|1000000|0:01
Now, I'm trying to have it so all 1 million tracks are there instead of the "..." I'm wondering if there's a program or a way I can program something to automatically input a list of the tracks in that format so I can copy and paste it into RYM's track section.
Ty for any help, much love! <3
r/AskProgramming • u/verypoliticalusernam • 4d ago
Career/Edu Is there still specialized areas AI hasn't replaced?
I was basically thinking is it still possible to find a way to do coding in your job even if just occasionally in some specialized low-level or poorly documented novel environments? Anyone here working with for example compilers or advanced vulnerability research?
r/AskProgramming • u/nitfactor • 5d ago
Architecture Should I refactor the folder structure or continue working on the existing structure?
Hey there, I am working on top of a big production codebase. In the current version, the workflow is good, everything works, I made the app run locally using docker and it works fine.
The problem that I am facing is that, as it is a monorepo with a modular monolith architecture, everything is scattered around, I think the team has built it on purpose but I need to know if I should refactor the workflow and the folder structure according to my needs or continue working as it is ?
r/AskProgramming • u/JaseciLabs • 5d ago
What's the most ridiculous temporary workaround you've seen become permanent?
Every old enough codebase seems to have at least one piece of code that nobody wants to touch. Think temporary workaround from 2019. A function called fix_final_v2. Or a 600-line method that apparently holds the entire billing system together.
And the best part is that there's usually a perfectly reasonable explanation for why it was written that way, oooor at least there was at the time.
What's the weirdest workaround, architectural decision, or bit of legacy code you've inherited?
Bonus points if someone tried to remove it and immediately discovered why it was still there.
r/AskProgramming • u/Foreign_Career_454 • 5d ago
Databases Windows & Linux file access
Muti tenant self-hosted where each tenant has workspace directory at app level we resolve via
Path.GetFullPath(Path.Combine(tenantRoot, userPath))`, then require `resolved == tenantRoot || resolved.StartsWith(tenantRoot + Path.DirectorySeparatorChar)
os.path.realpath is cannoned for unresolved realpath. Wanted to know is `GetFullPath along with prefix-with-separator is enough? Does realpath needs O_NOFOLLOW`-style flags?
We volume-mount workspaces into containers is that ok or there should be OS level or app level canon? How to regress test in CI is there any fuzz list?
r/AskProgramming • u/redaben_ • 5d ago
XML Course in 2026 ?
I am currently doing a Master's degree in Computer Science and we have a 48h XML course (16 three-hour classes)
I am wondering: in 2026, how dumb is it to have this course ?
Even before AI, having an entire 48h course exclusively dedicated to XML seemed like a pretty dumb idea... what company needs you to know XML to this extent ? (especially as a junior) and XML alone can't get you a job, and you can't really build a career around it.
But in the era of AI, this seems even dumber
So I was wondering: am I wrong, or is this actually a really, really dumb course ?
and is this common in universities ?
r/AskProgramming • u/Slutha • 6d ago
Other Coworker used ChatGPT, Cursor, and Claude to build a replacement for enterprise geosteering software and wants $500/month per rig. What are the real technical and liability risks here?
I work in oil and gas doing geosteering, which uses downhole sensor data (gamma ray and directional surveys) to predict dip of underground rock layers in 2D cross-sections and guide a multi-million-dollar lateral wellbore operation.
The industry standard is commercial software (e.g. StarSteer, SES, Petrel, IHS Kingdom, etc.) built over decades by teams of credentialed mathematicians, geologists, and software engineers.
A fellow contractor has zero background in computer science, math, or geology (only 15 years of field experience mostly in a single basin). He didn't like the StarSteer, so he built a replacement using AI. He started in ChatGPT, moved to Cursor, and now bounces code back and forth between ChatGPT/Codex and Claude to "check" it.
Right now, we are "testing" it on jobs. It handles drag-and-drop LAS and survey files for 2D cross-sections, and he is building a separate program to handle real-time WITSML data feeds. The oil operator we work for has a "whatever gets the job done" mindset and doesn't care what software we use.
A few increasingly important concerns:
- Monetization: He now wants $500/month per rig for us to keep using it. He's been working on this for 11 months and is beginning to feel like we owe him to keep using it.
- Extreme Defensiveness: He calls the app his "baby" and gets visibly irritated/frustrated/loud/angry whenever anyone points out a bug, questions the math, or offers criticism, say they prefer StarSteer, etc.
- ToS Violations: He actually brought up the commercial vendor's Terms of Service himself, which strictly bans copying/adapting the software or using it to develop a competing product, and basically admitted that's what he's doing.
For the software engineers and tech leads here, I'm looking for clear and objective arguments on the liability he may be creating, especially since we're all operating under our own LLCs alongside him. I'm wondering about a few things in particular:
- Reliability of Prompt-based AI Coding: When someone who can't read code bounces a project between ChatGPT, Cursor, Codex, and Claude to "check" its own work, what kind of hidden bugs and architectural rot get introduced under the hood? His program was dogshit slow at first, but switching to Qt vastly improved responsiveness. But other issues persist. And the interface still doesn't look professional. More like Microsoft Paint / Excel on steroids.
- Hidden/Unknown Errors: For the 2D cross-sections he's created with the interface, geosteering relies on trigonometric survey math (minimum curvature, TVD, apparent dip) and clean LAS parsing. It seems to be working. But I've also noticed instances of where it's not quite right or doesn't match what I'm seeing if I recreate an interpretation in StarSteer. How risky is AI-generated math built by someone who claims the math is easy, claims the math is right?
- LLC Liability & Support: With no service agreement, no independent testing or verification or review, a creator who treats bug reports like personal insults, and an Operator who won't back us up if it fails, how exposed am I legally and financially if I pay $500/mo to steer a multi-million-dollar well with this?
- Use Restrictions: StarSteer has a section about preparing derivative works, enhancing, competitive analysis, etc. Basically, they could terminate our license if they find out what he's doing. But what happens when the license expires and he tries to go public and pushes this and tries to sell this to other contractors?
TL;DR: Fellow contractor with zero coding, math, or geology background used ChatGPT, Cursor, and Claude to build a 2D replacement for industry-standard geosteering software. We are all independent LLCs working for a hands-off oil operator. He gets angry at any bug reports, knowingly violated the commercial software's anti-compete Terms of Service, and now wants $500/month per rig. Looking for a realistic breakdown from actual devs on the technical failure points and liability risks of trusting this on live, multi-million-dollar wells.
r/AskProgramming • u/Realistic-Web-4633 • 4d ago
What does the future of programming actually look like? Seeing the shift firsthand at work.
Right now, and I'm actively working and shipping code. However, watching how fast these models are growing and becoming more capable, I can't shake some doubts about the long-term future of programming as a career.
I don't think we are that far from seeing massive replacement—and by "replacing," I mean a fundamental shift in headcount. Just recently, I worked on adding a feature that, two years ago, would have taken at least two weeks to build. With AI, it was done in one day. And to be clear, this one-day solution isn't bad code; it works, performs well, passed code review, and everything is solid.
What I’m seeing in practice right now is that a company doesn't need 10 engineers anymore—it needs 2 engineers with a Claude subscription.
A lot of developers hold onto the hope that this is just a hype bubble that will eventually pop, especially when people bring up how much money AI companies are burning. Personally, I don't buy that. AI isn't going to disappear because this goes much deeper than just corporate profit margins—from a geopolitical perspective, it's a global race, and the momentum isn't going to stop.
For those of you also working in the industry: how are you viewing the next 5 to 10 years?
r/AskProgramming • u/MiserableSlice7580 • 5d ago
Way to go around web restrictions
Hello,
my school blocks some websites (such as ChatGPT, WhatsApp, snapchat,…) on our iPads and I want to find a way to bypass it.
I first thought, could use a proxy to go around the website restrictions of the network but I found out that the restrictions are implemented with the device management as device specific restrictions.
But I still think proxies are not a bad approach. I thought that if the URLs are blocked it could work because when the banned URLs are encoded and sent to a proxy-server so the URLs don’t trigger the restrictions. One Problem with that: I think (correct me if I’m wrong) the prohibited websites are intercepted before the request reaches the URL-encoding of the proxy.
So a classical proxy doesn’t work but something similar might. My next approach would be to build a browser that encodes the URL before any request is made, so the device thinks I’m visiting on chatgpt.com, but rather that I’m visiting my Server.
Do you think this is a good approach or are there simpler solutions? Am I missing something? How would you approach this?
Regards Emil
r/AskProgramming • u/Fastpast93 • 6d ago
Other Universal tips for beginner assembly programmers?
I know some of you out there have tips for me and other people seeing this post.