r/AskProgramming • • Mar 24 '23

ChatGPT / AI related questions

144 Upvotes

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 • • 8h ago

Javascript help with pseudo code guys.. “new Date()”

0 Upvotes

Hello everyone,

I’ve recently been struggling with the ‘new Date()’ object in JavaScript.

I wanna understand how to solving that, what I’m trying to achieve is a function that captures the current date once and keeps it unchanged for 5 - 6 days

Once that period has passed, it should capture a new date and keep it unchanged again until the next update

—-

Is there a better way to approach this?


r/AskProgramming • • 1d ago

Other Which programming languages do you think will stick around much longer than expected?

30 Upvotes

I constantly come across languages that were predicted to disappear several years ago. Production applications and internal tools are still built using them.

Which one has surprised you the most by not disappearing, and why is it still being used in the places where you’ve seen it?


r/AskProgramming • • 8h ago

Javascript How Can I Run My Node.js WhatsApp Bot in the Background Without Keeping VS Code Open?

0 Upvotes

I'm developing a WhatsApp moderation bot in JavaScript that automatically detects and moderates NSFW content, including text messages, GIFs, voice messages, and other media. For this, I'm using tools such as Whisper (Base), Tesseract OCR, and CLIP.

At the moment, whenever I want to start the bot, I have to open VS Code, navigate to the project directory, and run:

node index.js

Since index.js is the main file, this starts the bot. However, the problem is that the bot shuts down as soon as I close VS Code.

What I'd like to achieve is a way to keep the bot running in the background, independently of VS Code.

Ideally, my workflow would look something like this:

  1. I turn on my PC and open VS Code.
  2. I start the bot by running node index.js in the terminal.
  3. Once the bot is running, I can close VS Code without terminating the bot.
  4. The bot continues running in the background without requiring VS Code to stay open.
  5. When I shut down my PC at night, the bot stops. The next day, when I turn my PC back on, I can start the process again—or have it launch automatically at startup.

I'd also like to know whether there's a way to keep the bot operational when my PC enters sleep mode.

Essentially, I'm looking for a reliable way to run my Node.js WhatsApp moderation bot as a background process or Windows startup service, rather than having to keep VS Code open all the time.


r/AskProgramming • • 22h ago

Python Looking for free resources to deepen my knowledge in AI Engineering / DevOps

2 Upvotes

Hi everyone!

I work in an AI department and I'm trying to deepen my technical knowledge and better understand the concepts and technologies used by my team and our DevOps colleagues.

Recently, I've been hearing terms like SDKs, AI agent templates and variables, clusters, Django/FastAPI integration, forward engineering, CI/CD, change requests and sign-offs.

I'd love to understand how all these concepts fit together and strengthen my foundations in AI Engineering and the infrastructure side of AI.

Do you have any recommendations for free courses, books, PDFs, YouTube channels or other learning resources?

Practical, beginner-friendly resources would be especially appreciated!

Thanks!


r/AskProgramming • • 1d ago

How widespread is agentic coding in the current software industry?

138 Upvotes

At my job, we were still writing everything by hand. But they are finally starting to get ramped up for us all to get access to AI agents. This was like a deer in headlights moment for me. I suddenly realized everyone is using AI agents? Are there still shops out there doing hand-coded software? Will I never get to hand code anything anymore going forward?


r/AskProgramming • • 1d ago

Why is spell check dictionary so few words?

3 Upvotes

I use a pretty broad vocab and some science stuff. I’m amazed how few words spellcheck on iPhone knows.

The OED is under 100,000 words. If they average 8 letters, that is 800 KB. Your phone is loaded with images 10-100 times larger

Why the parsimony ?


r/AskProgramming • • 11h ago

Why are 17% of UK developers still not using AI coding agents? saw survey that said 1 out 6 devs dont use AI coding agents still

0 Upvotes

I came across a short video about a 2026 survey of around 29k developers and one stat honestly surprised me.

It showed how many developers don’t use coding agents at all:

  • UK: 17% (roughly 1 in 6)
  • India: around 2–3%
  • China: around 2–3%
  • Overall: 7%

I didn’t expect the UK number to be that high. You’d think with how much AI is being adopted in the UK tech scene, more developers would already be using these tools.

Meanwhile, in India and China, the number of developers not using coding agents is surprisingly low.

Not sure how accurate this is in practice, though.

If you’re working as a developer in the UK, does this sound about right? Are people on your team still avoiding AI coding agents, or is this survey missing something?

source : https://youtu.be/EBfUYxwk2-4?si=dOHNJen7Vu9aMRNS


r/AskProgramming • • 1d ago

Career/Edu What should a software engineer study in the age of agentic coding?

2 Upvotes

I was lucky enough to land a job as a junior software developer without formal techincal education (no cs degree or anything like that). I aim to improve my overall sfotware engineering skills in order to find a better position in the next few years. I'm perfectly at peace with the fact that manual coding is more and more becoming a thing of the past, and I was wondering how to leverage that in order to accelerate my learning path towards higher, architectural skills.

Assuming that coding agents are increasingly capable of handling syntax, framework-specific details and the actual implementation of functions, provided they are given sufficiently precise requirements and contracts, it seems to me that human expertise might become concentrated at two different levels:

  • Higher-level knowledge: software architecture, system design, infrastructure, requirements engineering and domain modeling.
  • Lower-level knowledge: memory management, data representation, algorithms, concurrency, networking, operating systems and performance.

So I guess my question is: if you agree with this premise, how would you structure an efficient software engineering curriculum? Any specific books / online resource?

Are there any books, articles, research papers, courses or structured learning roadmaps that explicitly address this question?


r/AskProgramming • • 1d ago

Other First Year Electrical Engineering wants to start programming

2 Upvotes

Hi im a first year electrical engineering student in Canada who wants to get started in programming but i dont really know how. I took some high school classes so I have some knowledge of python but i dont feel nearly good enough or qualified enough. I will also be learning basic C next semester for my programming class. How do i start learning/get better at python and C or any other programming language.


r/AskProgramming • • 1d ago

How can I use Python to process my Apple Music library?

1 Upvotes

Hello!

I'm currently (re-)taking a Python course for my school and had an idea for a personal project which requires extracting info about all the albums in my Apple Music library. At first, I looked into authorizing through iCloud to make a request with Apple's Apple Music API. One StackOverflow user suggested:

  • Set up a minimal local web server in Python
  • Open a browser to Apple's auth flow
  • Capture the token when it redirects back
  • Save it for use in subsequent API calls

This seems pretty advanced, certainly nothing I've ever done before, but local web servers seem pretty straightforward to setup via libraries. It's the "capture" part I'm confused about. As I understand it, web apps use JavaScript for their backend functionality, so I'm a little confused about what each language would be doing in this scenario.

Any advice on how to actually execute this?

Thanks!


r/AskProgramming • • 2d ago

Help with web app development (beginner)

1 Upvotes

Hi all, I’m hoping this is the right subreddit, fairly new to the app for posting.

On visual studio code, I’ve been trying to create a web app for my own personal use similar in purpose to MyFitnessPal, but covering more than just diet tracking. I’m not new to coding in general, I’d say I’m pretty okay at python, but coming into HTML, CSS and JavaScript simultaneously has absolutely blown me away. I’m very confused on where to begin, I’ve learnt some basics for each, but unfortunately every video or article I attempt to use to develop tends to point to “vibe coding” which I’m against doing. I’m not sure how to link my .css, .js and .html files together properly, nor do I know how to do the backend and frontend linking.

Ultimately I’d like to be able to search for a food item in a database, if there is no data, then I’ll add it there and then, and I’ll have pie charts showing me progress for the day/week/month etc.

If I’ve explained this terribly, or it’s a daft idea, do let me know. I’m at a loss.


r/AskProgramming • • 2d ago

Lets say that theoretically professor asks to write a program in ANY programming language. What is the best way to make him regret giving the opportunity to write it in ANY programming language? Asking for a friend

46 Upvotes

Give ideas that would make even devil cry


r/AskProgramming • • 3d ago

How do you decide what to learn when you're interested in everything?

3 Upvotes

I've been learning programming and recently finished MIT 6.100L. Now I'm trying to figure out what to learn next.

The problem is, I'm genuinely interested in cybersecurity, game development, and deep learning. Every time I think I've decided on one, I get interested in the others again.

For those of you who've been in a similar situation, how did you figure out what you actually wanted to pursue?

Did you just pick one and stick with it, or did you try a bit of everything first?

Would love to hear how you guys went about it.


r/AskProgramming • • 3d ago

Other How long did it take for you to get into ioi or any national competition

0 Upvotes

I have been interested in ioi/comp programming for a while now but im actually starting to put effort into it now and im curious on

How long will it take for an average person to be able to attend national/international competitions and do you think that 3 years is enough or is it just too late


r/AskProgramming • • 3d ago

Javascript I saw a cool blog post. What's the tech behind the blog post?

0 Upvotes

I just had a read through this agentic AI post on using minecraft bots

I really liked the design and widgets. How were these made? especially the 3d minecraft replay video thingy

https://labs.ycombinator.com/projects/games/index.html


r/AskProgramming • • 3d ago

The best language to learn to create a cross-platform app

1 Upvotes

Hello everyone. Recently, I've had an idea for a cross-platform project that I want to create. However, I have no idea which programming language would be best to learn in order to develop my app.

By cross-platform, I mean compatibility with windows, macos, ios, Android, Apple Watch, and VR devices, not just phones and computers. The project itself is some sort of habit tracker.

The main goal is to have synchronisation between all devices.

Which language would fit the most under this idea?

Thanks!


r/AskProgramming • • 3d ago

Is this vibecoding?

0 Upvotes

I want to learn 3 programming languages but i am really struggling

i want to learn ASM,C and C++ and currently ive only managed to get the basics of C++ like For loop , While Loop , Variables , integers , booleans , definitions , arrays , vectors , if else functions , classes and structs

and i wanted to make my first ever project even though i didnt fully learn C++

but due to my lack of knowledge and also programming skills

i decided to use AI with one rule

I cant paste in AI code

so what i am doing is i keep asking AI on how i do this etc. and the AI gives me code of functions for things and then in the project im making i look the code the AI has given me and copy it like it shows me how this functions and how i can make something that i need and it gives me an example and explains how it works and then i look at it on the side and write code like that.

is there a better way? (also a way to learn actually since i pretty much dont know how to learn)

I use C++03 on Visual Studio 2008 Express (my computer is old so its the best version i could find with an interactive ui)

(im not a college student still in 8th grade and i just wanted to get into Engineering earlier and the project im trying to make is a online building toy made with G3D 6.06 , SDL 2.30.12 , Lua 5.1 and ODE or Physics that i want to write all by myself via ASM cause Since this building toy will have thousands of blocks i will need a fast way of calculating everything and ASM provides a very great opportunity with some SIMD stuff letting me calculate 4-8 vectors in a single CPU clock cycle instead of the usual 1 vector at a time but i dont know ASM i dont know C and i barely Know C++ ive been just learning via the help of ai and documents i found from 1990 to 2000s this is very difficult and literally the only coding experience i have is back when i was 7yo experimenting with Lua )


r/AskProgramming • • 4d ago

C# filestream writing to bitlocker drive binary files are corrupt, any ideas?

4 Upvotes

I wrote a program in c# that stores multiple files in a single file similar to zip or tar. That program just uses filestream writing, nothing fancy. I recently got a new computer, so I copied my compressed file onto the computer and was able to extract files from it.

After using my program, I used bitlocker on the ssd. Bitlocker gives you two options, use the old aes-cbc or new xts-aes cypher and if you want to do the entire drive or just existing files. I took the default of new xts-aes and only existing files. Let it run until the drive was encrypted and rebooted.

First thing I did after reboot was try to extract more files using my program and it found the input file corrupted. That shouldn't happen, but I just reloaded the file from a backup and things seemed to be working again. However, when I extracted to the encrypted ssd, text files were ok but media files like images and videos were corrupted. I used a diff tool and confirmed every single text was ok and every other file corrupted. Extracting from the same file on the encrypted ssd to a flash drive worked perfectly and nothing was corrupted. So only writing to the encrypted ssd from my app was having issues. Copying from the extracted files on the flash drive to the ssd also did not corrupt the files.

My understanding is bitlocker shouldn't care about the file type and it should be completely transparent to the application, yet thats not the behavior I was getting.

I then turned bitlocker off on the ssd, let it decrypt the drive and rebooted. The file on the ssd was not corrupted by the decrypt and extracts from the same file to the ssd now worked for all file types.

I turned bitlocker back on for the ssd and used the older aes-cbc and told it to encrypt everything including free space. After it completed and I rebooted, my program now correctly extracts files to the ssd.

So clearly other applications like the windows file copy didn't have issues with the bitlocker ssd and only my applcation did. I'm not able to come up with a theory as to how this could happen. I could see if everything was corrupted but the fact that text files are all ok is even more confusing. I used crystaldiskinfo to confirm there were no read or write failures on the ssd and the event logs don't show any errors reading or writing files to the ssd or bitlocker issues.

I guess my next step would be to decrypt the drive again and try the original bitlocker options to see if the problem returns. Any ideas what could be going on? Everything I've been able to read says bitlocker shouldn't care about the file type and bitlocker presence should be transparent to filestream writing in c#.

Edit: including relevent code

        public void Extract(string pFileName, long pSize)
        {
            byte[] vIV = ReadIV();
            CryptoStream cryptoStream = new(
               oFileStream,
               oAes.CreateDecryptor(oAes.Key, vIV),
               CryptoStreamMode.Read, true);
            {
                long vSize = pSize;
                int n = 0;
                using (FileStream vOutputFileStream = new FileStream(pFileName, FileMode.Create, FileAccess.Write, FileShare.None))
                {
                    do
                    {
                        n = MAXBUFFER;
                        if (vSize < n)
                            n = (int)vSize;
                        cryptoStream.ReadExactly(oBytes, 0, n);
                        vOutputFileStream.Write(oBytes, 0, n);
                        vSize -= n;
                    }
                    while (vSize > 0);
                    vOutputFileStream.Close();
                }
            }
        }

r/AskProgramming • • 5d ago

Career/Edu how to study/read technical books like "Hands on Machine learning with Scikit-learn, keras and tenserflow"

0 Upvotes

ive recently got Hands on Machine learning with Scikit-learn, keras and tenserflow after going through a lot of recommendations on starting machine learning, im a second year college student pursuing my bachelors in AIML and i do have ML as my major. My major concern now is how do i study from a technical book? Im quite an avid reader but technical is a genre ive never touched except now. Any advice or tips to start my ml study journey from this book?


r/AskProgramming • • 4d ago

what is more complicated in CS between Bill built OS Windows vs Sergey, Larry invented a new algo PageRank for search engine?

0 Upvotes

r/AskProgramming • • 5d ago

WebRTC on localhost?

0 Upvotes

For a personal project, I needed to create a video call and screen sharing service, but to avoid paying for a server, I was wondering if it’s actually possible to run the server on localhost and have the other person connect through a Cloudflare tunnel. Do you know if this is possible? How feasible is it, and what problems might arise?


r/AskProgramming • • 5d ago

Other SpecKit experience?

0 Upvotes

What your experience regarding spec driven development especially using SpecKit?

Rather positive or different opinion?

For me personally Im a bit overwhelmed with all the bureaucracy with those constitutions and later having walls of text to digest.

Maybe my org done something wrong with this but it opened a Pandora box of problems we never had before.


r/AskProgramming • • 5d ago

How can you prevent the Windows SmartScreen warning from appearing the first time you create a Windows application?

1 Upvotes

I've been working as a software engineer for the past 13 years, but I've never built applications for Windows. I'm now testing an idea, but I've run into an issue with SmartScreen protection and am unsure whether I need to verify my application at all.

Since I'm validating my idea, I don't want to register a company before I know whether my application is useful. It would mean extra expense and bureaucracy. If I understand correctly, without a company, I can sign my application as an individual (I'm based in the EU), but SmartScreen won't go away; it will just show my name as the publisher. And even if I sign as a company, users will still see a warning the first time they install each version. Since I release several versions per week and get up to 10 downloads a day, signing as a company wouldn't help much either.

I've added anonymous tracking to see whether users install my application, and I see that more than 90% don't. So I'm leaning toward the idea that the SmartScreen warning is scaring away my first users.

So my question is: is it worth it? How do people usually get started with a new Windows application? I don't think I'm the first to face this. Is there another option besides registering a company and signing the application under its name?

P.S. I also have a Mac version, and I was able to sign it with my personal identity, which resolved the issue.