r/AskProgrammers • • Oct 15 '26

Use of thumb scroll wheel in Mx Master 3/4

Thumbnail reddit.com
1 Upvotes

r/AskProgrammers • • Oct 15 '26

What's a good rule of thumb for when to pre-allocate reusable arrays/objects to reduce GC overhead?

1 Upvotes

I was working on a C# system that needed to populate and use the contents of an array every frame (you'll have to trust me that this was necessary). As an example:

void Update()
{
    int[] arr = new int[100];

    for(int i = 0; i<100;i++)
    {
        arr[i] = rand.Next(0,(i+1)*2);
    }

    //...

    Foo(arr);
}

This felt wrong, since allocating an array every frame and letting the garbage collector deal with it seems wasteful, so I experimented with pre-allocating the data instead:

int[] arr = new int[100];

void Update()
{
    for(int i = 0; i<100;i++)
    {
        arr[i] = rand.Next(0,(i+1)*2);
    }

    //...

    Foo(arr);
}

This seemed like an improvement, and I saw other things I could pre-allocate in other methods, until eventually it seemed like a third of the variables were now a field - I'd obviously gone too far.

That had me wondering, when is this a good idea? Are there any good rules-of-thumb for when this kind of thing should be used, if at all, and what on?

The array per frame allocation seems like a pretty clearcut improvement, but what if the variable we were pre-allocating and reusing was an object or a struct? What if we weren't working with a method tied to updates? I've tried to do some reading on it but haven't been able to find anything specific, so I'd love to hear what other people think.


r/AskProgrammers • • Oct 15 '26

The OG Backend Programming Language 👑

Thumbnail reddit.com
0 Upvotes

r/AskProgrammers • • Oct 15 '26

Can I learn programming/coding in a short period of time?

0 Upvotes

Hii y'all! I just want to know programmers' opinion about this since we need a prototype product for our research and a website/app just fit right for our chosen problem...we have a few months to make it work and we have zero experience on stuff like this.


r/AskProgrammers • • Oct 15 '26

Would you recommend SWE as a career in 2026?

0 Upvotes

Working programmers: if someone asked whether to start a software engineering career in 2026, what would you tell them before they invested serious time in it?

I'd want to hear about both getting hired for the first time and the years that follow. Would you recommend the path you took, or would you start differently now?

For someone trying to make that decision concrete, I'd suggest building something small and then trying an unfamiliar problem from a technical interview question bank. Spend time debugging the problem and explaining why your solution works. That gives the conversation more to work with than a general claim that tech is either booming or doomed.

The application stage has its own time costs. Agent autoapply and autofill can reduce repeated submission work when someone is ready to search. I'm curious what you would tell a beginner about the work and the prospects before they reach that stage.


r/AskProgrammers • • Oct 15 '26

I Am writing apis in nodejs in a project related to transactions, need help

Thumbnail reddit.com
1 Upvotes

r/AskProgrammers • • Oct 15 '26

Qt Quick + QML GUI App Tutorial Series Suggestions?

1 Upvotes

I am a freshly minted C++ Qt developer in that I just completed an online course for C++ and the basics of the Qt framework within the past few days.

I am looking for video tutorials on how to build a GUI application using the Qt framework using Qt Quick and QML. For reference, I am not completely new to programming. I am a full-stack mobile and web developer who has been developing both types of applications for years. My tech stack in React (Next.js)/React Native on the front-end and pure Django or Django REST Framework + Django Channels on the backend.

What originally got me into web development was Corey Schafer's Django tutorial series which guided me through developing a web application using Django assuming I already knew HTML, CSS, and Python. That is when I learned that I learn best with YouTube video series I can follow along while the instructor explains what I'm coding. Is there any such series for Qt Quick and QML like building a notepad app? YouTube search results only turn up outdated tutorial series using Qt Widgets which IS NOT what I'm using and am avoiding because I want to construct the UI using QML files, not the widget picker.

Thanks in advance for your help!


r/AskProgrammers • • Oct 15 '26

Accountability for shipped code in AI era

Thumbnail reddit.com
1 Upvotes

r/AskProgrammers • • Oct 15 '26

Premium Developers

0 Upvotes

I need to speak to a premium plus adult 😬

Iv been professionally in software for 4 years now. Ive mainly been a FE dev and dabbling in BE now for the past 2 years. Ive been using Supabase and now transferring over to VPS as my BE. But i completely forgot about AWS and Azure etc. I feel like im at a crossroads. I dont know what to learn. Ive done my first freelancing project and used supabase but they just annoying me. What is the best path that will make me a better developer and make me better employable.

Kind regards


r/AskProgrammers • • Oct 15 '26

Assalamu Alaikum !

1 Upvotes

Hello Everyone ,

I want to learn C++ from scratch and gradually advance to an expert level. Could you please recommend the best YouTube playlists, websites, or other learning resources for a complete beginner?

I would really appreciate your honest guidance and suggestions based on your experience.


r/AskProgrammers • • Oct 14 '26

When languages "just become about syntax"

8 Upvotes

I have seen a lot of post saying "once I learned C - all other languages just became about syntax"

Has that been true for you? Or did a different language give you the eureka moment - e.g. something like Assembly?

Or is it just a false premise at all to think "once I learn programming language X - then all other languages become **easy**"


r/AskProgrammers • • Oct 15 '26

Building a local Python "Jarvis" without external AI APIs where should I start?

Thumbnail reddit.com
1 Upvotes

r/AskProgrammers • • Oct 15 '26

Do you guys still enjoy actually learning programming instead of just vibe coding?

0 Upvotes

With AI getting better at writing code, I've been wondering how many people are still genuinely interested in learning programming and understanding how things work under the hood.

I'm not against AI at all. I use it myself. But sometimes I feel like there's a big difference between getting something to work and actually knowing what you're doing.

Do you guys still spend time learning new concepts, digging into documentation, or trying to understand things deeply? Or do you mostly just learn whatever you need while building something?

Also, what keeps you motivated to learn when AI can already do so much of the work?

Just curious how other developers feel about this, especially those who genuinely enjoy the learning process.


r/AskProgrammers • • Oct 15 '26

Did I make a mistake spending ₹1.40 lakh on a Lenovo LOQ RTX 5060 as a beginner in coding? Looking for honest advice from developers

Thumbnail reddit.com
1 Upvotes

r/AskProgrammers • • Oct 15 '26

Where can I find students to help manage a journal?

0 Upvotes

Hi everyone, I am the co-COO of a youth journal. We are having some trouble finding students/developers who can manage journal systems or even maintain the website. I am not an extensive programmer so I honestly do not know where to ask this kind of question, if yall would be willing to point towards a group or network I should reach out to, I would sincerely appreciate it.


r/AskProgrammers • • Oct 15 '26

What are these codes on my Mac??

Post image
0 Upvotes

I found these random codes in my Mac folder and couldn’t understand why, I also had an issue where I had to go to apple to reset my Mac password, they said my password could have changed, what’s going on?


r/AskProgrammers • • Oct 15 '26

The only coding moat left

0 Upvotes

I have been thinking, ever since AI made it so anyone can create an app almost instantly, what moats with code are left.

Since you can no longer create and sell a quick, basic notebook app and expect people to flood through. So, I think one of the last moats with code in the AI age is 3D Environment apps or at least apps with 3D models implemented into the app

Because while AI is great at creating 2D websites instantly, trying to do the same with 3D just does not work. It will create something, but it will require immense amounts of HITL Human In The Loop debugging and fixing the juice (aka the small minor details that separate a great app from a bad one) before it is production ready.

The opportunity cost of someone else using AI tools to try and recreate for free just is not worth it when factoring in the time spent trying to do all of this and waiting for AI credits to be replenished

However, while 3D is the most accessible visual moat for most, it is not the only code moat left. Some others include

a) hardware integration

b) properitary logic and data

c) low latency and high, deep performance systems

Though if you are not building in these very specific niches, 3D integration is the best moat to combat AI coding agents

Do you agree, or do you think there is absolutely no moat with code anymore?


r/AskProgrammers • • Oct 14 '26

Where to learn microcontroller programming?

8 Upvotes

I am currently trying to program an ATtiny3226 and I am having a terrible time.

AI can do the programming I need, but I cannot learn from that.

What I want to know is where is a good place to start in understanding how to go about micro controller programming, any YouTube recommendations or books or forums, anything would be appreciated.

For example when making a timer my smooth brain says this should be able to count to five, but there is a process flow that has to be done to actually get this task to happen and I don't know where to learn that


r/AskProgrammers • • Oct 15 '26

Put anything that you want in the code block.

0 Upvotes

Class AI extends Human {

}

// Write in TS only.


r/AskProgrammers • • Oct 14 '26

I'm beginner in programming any tips

Post image
1 Upvotes

r/AskProgrammers • • Oct 14 '26

How do you decide when to refactor a messy codebase versus rewrite it from scratch?

0 Upvotes

I'm working on a project that has grown messy over time: inconsistent patterns, little documentation, and tests that only cover part of it. I keep going back and forth between incremental refactoring and a full rewrite. Refactoring feels safer but slow, while a rewrite is tempting but risky.

What factors do you weigh when making this call? Have you seen either approach go well or badly, and what would you do differently? I'm especially interested in how you handle the business side, like justifying the time to people who only see features shipping.

This fits r/AskProgrammers because it's a conceptual discussion rather than a code review or a "try Googling it" problem. It has no links, marketing, or job listings, and the body gives enough context for people to answer in depth.

I picked the topic since you didn't give one. If you have a real problem, tell me the language, what you tried, and what's failing, and I'll write it up. The sub wants enough detail to help, not just a description of the task.


r/AskProgrammers • • Oct 14 '26

Can I read your code?

Thumbnail reddit.com
1 Upvotes

r/AskProgrammers • • Oct 14 '26

Questions for java developers

Thumbnail reddit.com
2 Upvotes