r/AskProgramming • • 1m ago

If programming is dead, then what does interviewer ask in interview?

1 Upvotes

r/AskProgramming • • 11h ago

C/C++ Markovs Chains, initializeChains part 2

1 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 • • 1d 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 • • 1d ago

Other Is an interview so hard for now?

0 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 • • 1d ago

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

15 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 • • 1d 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 • • 1d 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 • • 2d ago

FFT (Fast Fourier Transform) in modern programs

15 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).


r/AskProgramming • • 2d 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.


r/AskProgramming • • 2d ago

Architecture Does your framework mark HTML tags for trace-ability?

1 Upvotes

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 • • 3d ago

Which kind of scam is this?

5 Upvotes

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 • • 3d ago

C# Per-tenant filesystem root confinement (traversal + symlinks), cross-platform

0 Upvotes

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 • • 4d ago

Career/Edu C++ vs python

5 Upvotes

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 • • 4d ago

Career/Edu Is there still specialized areas AI hasn't replaced?

0 Upvotes

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 • • 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?

1 Upvotes

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 • • 4d ago

What does the future of programming actually look like? Seeing the shift firsthand at work.

0 Upvotes

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 • • 5d ago

Databases Windows & Linux file access

0 Upvotes

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 • • 5d ago

XML Course in 2026 ?

0 Upvotes

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 • • 5d ago

Way to go around web restrictions

0 Upvotes

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 • • 5d ago

Architecture Should I refactor the folder structure or continue working on the existing structure?

1 Upvotes

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 • • 5d ago

What's the most ridiculous temporary workaround you've seen become permanent?

29 Upvotes

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 • • 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?

42 Upvotes

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:

  1. 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.
  2. 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?
  3. 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?
  4. 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 • • 6d ago

Other Universal tips for beginner assembly programmers?

2 Upvotes

I know some of you out there have tips for me and other people seeing this post.


r/AskProgramming • • 6d ago

C# Development Path in C# .NET Backend and Motivation

2 Upvotes

Hi everyone! To give you some background: I graduated from university with top marks. That’s where I first started programming—we were taught a little bit of everything, including Pascal, C++, PHP, Python, C#, and so on.
Our coursework always covered up to OOP (Object-Oriented Programming), but never went any further.
I also studied C# and Python on my own, but again, I never really ventured much beyond OOP.

During my studies, I tried to avoid web development because it didn’t particularly interest me; however, after graduating, I realized that most of the job market is in web development, so I need to find a way to get comfortable with it. Since I’m most familiar with C#—and it’s the language I enjoy the most—I’ve decided to focus on C# backend development. But a few issues have come up:

It’s been a 2 years since I graduated, at that time, I had to find a job quickly, and it wasn’t in the field I had actually studied for; now, I want to return to my studies so that I can finally work in my chosen profession. and I’m not sure what tech stack I actually need to know to build a project of my own. Also, how can I recover the knowledge I gained during my studies? This uncertainty makes me procrastinate whenever I set out to learn something new, or I end up not dedicating enough time to actually master anything.

A crisis of ideas. Even back in university, I struggled to come up with projects to build. I have a persistent feeling that everything has already been created by more skilled programmers. Is it even worth working on a project if a more successful version already exists? How does one go about choosing a suitable project topic?

AI. The rise of AI happened around my third year of university, and we even started experimenting with it a little bit back then. It’s one thing to enter a prompt to get some guidance for a specific task, but it’s quite another to actually learn something and build a project of your own. How should one interact with AI models when learning? Should you even use them at all? I recall plenty of times spent endlessly tweaking prompts, trying to get a decent result—when, in reality, it would have been faster to just write the code from scratch myself. What is the right way to learn programming today using AI (given that AI is clearly here to stay)?

Right now, I’m trying to learn ASP.NET through a course by Teddy Smith on YouTube, but I’m struggling to grasp a lot of it. Plus, I’m essentially just following along and mimicking what he does—which isn’t really the kind of learning process I’m used to.