r/AskProgramming • • 4d ago

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

0 Upvotes

r/AskProgramming • • 6d ago

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

9 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)


EDIT: This question I asked out of curiosity is still getting responses saying it'd be a dumb idea and no one would use it; again, I AM AWARE OF THAT!

Not everything made has to aim to be a new standard for everyone to follow... sometimes it's just a way to experiment, to have fun or even to make art. Gemini is an example of the kind of thing I was curious about.


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

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

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

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

21 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 • • 8d 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 • • 8d 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 • • 9d 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 • • 9d 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 • • 9d 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 • • 9d 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 • • 9d 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 • • 10d ago

Which kind of scam is this?

6 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 • • 11d 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 • • 11d 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 • • 11d 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 • • 11d 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 • • 12d 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 • • 12d 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?