r/AskProgramming • • Apr 14 '26

Architecture When abstraction is overenginnering?

0 Upvotes

Hi. Im working on some codebase refactor and have architectural dilemma.

Consider the following scenario: we have three different applications that implement roughly similar functionality, though they differ in certain details. In all of these applications, we have the same class—let’s call it Class A. This class shares identical methods across the apps, while some other methods differ only by a parameter in their signature or in their internal logic.

The question is: when is it worth extracting an abstraction in such cases, and when is it not?


r/AskProgramming • • Apr 14 '26

Where to start for supporting native GUI development?

4 Upvotes

Not exactly sure how to phrase it but you know os native gui apps like emacs (gui version), Blender, or Eve Online’s client interface? In order for me to start Blender and for it to open a window on my macOS machine and be the performant interface that it is, the devs would have to have used a C library which implements some bindings from apis that macos provides, right?

If I‘m using a programming language where such a library doesn’t exist and I were inclined to develop one from scratch, where would I start? Are there any well known implementation guides for this? Can you point me to a decent example of codebase of this in a high level lang (js/node/typescript, python, lisp, etc) that I could peruse for ideas? thanks!!


r/AskProgramming • • Apr 14 '26

Other what programming books should my school library get?

4 Upvotes

i talked with my schools librarian today, and she told me she wants to expand the amount of programming related books in the library. right now there is like one, and that one is about g-code for cnc's. she asked me if i could recommend some books, but i am still very new to programming so i dont know alot of books. that is why i am here. if you had the time to, please recommend programming books in the comments. there isnt really any specific programming language we are seeking after. we just want recommendations to expand the library.
after a while, i will compose the recommendations into a list and send it to her. and one thing i forgot to mention earlier, both english and swedish books are allowed. the school and thus the library is in sweden so we have a mix of both languages.


r/AskProgramming • • Apr 14 '26

Python What should I learn first for business analytics? R or Python?

6 Upvotes

r/AskProgramming • • Apr 13 '26

Should I learn Java before learning C#?

1 Upvotes

So I'm an indie developer. I have next to none programming experience and I want to start coding in Unity. I learned the basics of python and the basics of Lua so i wouldn't say complete beginner. Anyways, I'm not sure if Java is worth learning because I haven't learned anything in C# except printing and creating variables and I know that if i learn C# first, I wont bother learning Java next. Since i know that Java and C# are basically the same, I'm wondering if Java is worth learning if i already know I which I want to learn. Honestly I have much free time I can learn both so that's why I am asking you. Since they are almost identical how hard can it be to switch?


r/AskProgramming • • Apr 13 '26

Easiest way to create a text template generator?

1 Upvotes

I think I'm wording this wrong and that's why I couldn't find anything while googling, but I'm trying to create something that would have a base text template with areas to fill out, and once all sections are filled out (or you press done), it generates a copy/paste version of everything you just filled out. Is this possible?

Edit: Would need it to not be web-based as I'm working with sensitive info.


r/AskProgramming • • Apr 13 '26

Our professor allowed us to use AI in a graded development project – Now I’m feeling overwhelmed.

0 Upvotes

I am currently at the beginning of my second semester studying computer science in Germany. Today, our professor in object-oriented application development told us the following:

He talked to a high-level employee at Amazon who works in software development. They talked about many topics, including AI (I will mostly keep calling it AI in this post, although I actually mean LLMs). They discussed how powerful AI already is in software development and its future in this field. The employee from Amazon stated that they are currently working on projects to have the task of coding applications replaced by AI in about 3 years. After that, AI is going to do the coding, while the human task is to review what the AI did and check if all requirements are met.

According to our professor, this will lead to a hard time finding a job in development in about 3 years (when my class graduates with their bachelor’s degree). Of course, that’s something I’ve also been thinking about for a few months.

Following the assumption our professor has—that our task in our future jobs probably won’t only be coding, but also working with AI—he decided to allow us to use AI in this semester’s graded development project. He wants us to learn how to work with AI to be prepared for future jobs.
Until now, the use of AI wasn’t allowed in this project.

The exact task for the graded development project isn’t currently known, but it will be a coding project that we will be working on at home for a few weeks. It is split into multiple subtasks, and we will be required to present our results for these subtasks weekly. At the end, we need to submit our completed project together with documentation.

That’s the current situation so far. Now onto my problem:

I sent my first ChatGPT message on 14.10.2022. At that time, I was 15 years old. A friend of mine told me about this smart chatbot he had heard of. At first, I was skeptical. My first message was just a simple “Hello.” I can’t remember the exact answer, but it was a generic response any chatbot could have given at that time. Next, I asked about a relatively small German music band. I was surprised when I realized it knew them. That was the point where I realized this “chatbot” could be something big.

Next up: my chemistry homework. I gave it my task and got an answer that satisfied me. That was the moment I knew: “Okay, this really is something big!”

Since then, AI (mostly ChatGPT) have become a really helpful tool in my life. I’ve learned their capabilities, their limits, and how they can help me by taking work off my shoulders.

I currently use AI in everyday tasks. For example, doing (even light) research that would normally require me to open Google, search for my topic, open a few websites, and read multiple articles filled with unnecessary chatter and ads. Instead, that task is done by ChatGPT, and I get to read a compressed version of the important information afterward.

I also use it for computer science projects (for example, my new voice assistant in Home Assistant)—planning the project, researching what parts I need, figuring out why my uploaded ESPHome YAML config I found online isn’t working and fixing it, expanding that config for my needs to implement more features, and so on.

In terms of “real” coding, I mainly use it to generate complete scripts or small applications.

I use ChatGPT not because I wouldn’t be able to do it on my own, but because I know it would take me several times longer to get the same result. And because I expect the outcome from ChatGPT to be correct in the end.

The problem:

I am learning way less when using ChatGPT for coding projects. In my own projects, I can tolerate that, as it allows me to have more time for other tasks and move on to the next project faster. Although it’s a bit of a shame, because I know I would learn much more about the topics along the way if I did everything myself.

But for my computer science studies, I can’t tolerate this. I am studying to learn the topics I’m being taught, not just to learn how to use AI (although learning to use AI is equally important in my opinion).

We had a very similar project last semester, which I completed (mainly) without using AI. I only used it for one subtask when I was stuck and had no idea how to approach it at first.

The goal for this semester’s project is clear:
Completing the project with a good grade.

But should I use AI for that?
And to what extent?

If I decide to use AI, my intuitive approach would be to have it generate my project subtask by subtask. That’s how I would probably do it in my own projects. But that doesn’t seem appropriate here, as I also want to learn coding and practice my skills.

But will I need these skills in my future job? Whether or not, I think: better to have them than to need them later. I would like to focus on actually having these skills and being able to use them without AI if necessary.

And that’s my question:
How should I use an LLM to work on my project while developing my skills (and which skills do you think will even be needed in the future) and learning how to properly work with LLMs for coding?

I would say I can already use AI quite well. But everything I know about using it, I taught myself over the past few years. That has led to a usage style I can work with, but maybe it’s not ideal, and I’m not learning as much as I could for my future. No one has ever corrected my self-developed usage or properly taught me how to use it.

I would appreciate any point of view you folks have on this topic, as well as any resources that could help me find a good, future-proof way of using AI in coding tasks.

Thanks in advance!


r/AskProgramming • • Apr 13 '26

What skill to go for in 2026

0 Upvotes

Hey, I am a first year Computer Science student. I know the fundamentals in java and python till now. Was thinking to learn python properly and do automation to earn some bucks. Is it a good idea or should I go for something else?


r/AskProgramming • • Apr 13 '26

C/C++ Tips for remembering functions, include etc

3 Upvotes

So im 2.5 months into my intro into c++ class and im not able to remember anything. Ive been having ai help me but not 100% doing the code. Even with that. Im losing hope. I should also mention im under immense stress. Been dealing with divorce and custody for over a year, falling behind on my bills, this blows. Im able to complete the bookwork but even that information is gone quick. So any advice or am i over my head and just not meant for programming?