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

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

2 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 • • 9h ago

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

3 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 • • 6h ago

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

1 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 • • 8h 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 • • 4h 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 • • 1d 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 • • 1d 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 • • 1d 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 • • 2d 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 • • 2d 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 • • 2d 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.


r/AskProgramming • • 2d ago

Other I want to build a tool to transfer liked songs between YouTube Music accounts but I have no idea how to start ?

1 Upvotes

so i have this annoying problem where all my youtube music liked songs are also showing up in my main youtube liked videos playlist and it's getting pretty messy.

i want to move all my liked songs to a separate google account but doing that manually would take forever since i have thousands of songs. i was wondering if there's any tool that can transfer all my liked songs from one youtube music account to another. something where i can connect both accounts and just transfer everything at once. or maybe select specific songs and playlists to transfer. it'd also be nice to have an option to remove songs from the original account after transferring them.

i couldn't really find anything that does exactly this so i'm thinking of trying to make one myself. if anyone knows something similar please let me know.

i'd also like to add spotify support at some point so people can transfer liked songs between spotify accounts too but that's something for later. for now i just want to figure out the youtube music part.

basically i want the tool to fetch all my liked songs and let me transfer my entire library to another account or select specific songs and playlists. and also remove songs from my liked songs because that's actually the main reason i want to make this. i do have some coding experience but i'm still a beginner so i'm not really sure where to start with something like this and also i know APIs and hosting can cost money but is there a way to make something like this completely free? like can i build and run the whole thing without spending anything? what libraries or technologies should i look into?

i mainly want to build this as a learning project. if i manage to get it working i'll probably put it on github so other people can use it too. just need some guidance on where to start and what approach would make sense.

not looking for anyone to build it for me. just trying to figure out how to get started. any help would be appreciated.


r/AskProgramming • • 2d ago

Learning Python in an age of AI?

0 Upvotes

I am doing a degree apprenticeship in Cybersecurity over the next four years, and I’m lucky that my employer is paying me to do this, despite not “needing” it for my role.

One module in the first year is Python and, I won’t lie, I’m struggling. Initially, I enjoyed the learning, though it doesn’t come naturally to me. Despite spending lots of evenings and weekends on it, I’ve struggled to learn fast enough to keep up. I’ve got two big projects due in after Xmas, and I’m feeling a bit demoralised.

I think part of it is that I can see how easily AI blasts through this stuff. In a way, I’m quite excited about this. I enjoy using Claude to make my own small projects, and AI-assisted PowerShell scripting at work has been a real force multiplier. But nobody is ever going to pay me to sit there and write code. I can, however, see myself increasingly using it to make tools for my team's workflows.

When I finish this module, I’m going to have lots of other work to balance alongside my day job and home life, and I know I’ll forget a lot of this. It can leave me wondering what the point is.

Anyway, this isn't meant to be a downer. I’d like to take the positives from this experience. What would you say are the most important things to take away from learning programming that are still important and/or useful in an age of AI?


r/AskProgramming • • 2d ago

I keep seeing a number of vibe coded applications on GitHub

0 Upvotes

For the avoidance of doubt: I am not a programmer and I am not discussing code. My question concerns the production of code and avoidance of AI to support a marginalised business model of software as a product. It is contextual and not output based hence seeking expertise on the subject matter.

I am hesitant and don't feel it's correct to suggest that Claude is a contributor. What are the security implications of the wave of imitations of industry applications without the quality control, performance and security testing? In other words the conditions of producing code.

Edit: For context I don't have a programming background but from what I do know of coding the labour isn't merely the code itself it's all the other aspects involved as well. I find the suggestion that you can exclude the necessary and complicated work because Claude can perform a parlour trick extremely concerning.

Thanks for the comments about Cluade. I didn't occur to me that visibility is important to avoid it. I am not so idealistic to believe that no software is developed without it. When Serif developed the Affinity Suite I paid for it similarly with Softmaker's office suite.

I am always keen to purchase quality software as it supports my own work but I also believe in the merit of delivering quality work. I don't see that same appreciation with this approach to AI. I recognise it plays a part in much the same way as typing a document doesn't involve a grammarian or copyediting.

I am happy to support independent and secure apps from developers but I don't know where to start beyond say the App Store, I guess?


r/AskProgramming • • 3d ago

Other What language should I use for my app's backend?

1 Upvotes

Hi!

I'll try to keep this short:

I'm going to start building a social media-like app for my university and I'm wondering which language i should use for the backend.

The frontend will be typescript, react native + expo (unless I end up switching it for some reason).

For the backend I'm between python and typescript + nestjs.

If you want more context, I'm studying computer engineering, I'm halfway through my studies, and I've already build two other big apps, one for desktop and one web app, so the size of this app is not a problem don't worry.

The idea of this app is to have class notes, discussions, news, etc. all in one place, and also add some instagram-lime entertainment (allowing the users to upload pictures and stories). I know it will most likely not blow up or anything like that, again, don't worry, i just want something fun to build. Also if i see a oart of the idea isn't good I'll just scrape it.

The main reason as to why I'm building this is because I want to learn new things during summer and try coding more by myself than with AI. I want to practice things i saw in class but we haven't really implemented. I also want this to add to my resume and i think having a full stack app will do the job.

Now, my options for the backend are python because it's the one i know the most and i want to learn even more, and typescript because chatgpt (yes, i know. Sorry) told me it's a good option for the frontend and if i use it for the backend ill be able to share types and a few other things. One con is that I don't know typescript but ill learn it anyway for the frontend.

I'll use typescript for the frontend because i want the app to be available on android ios and web and ts works for all three.

I think I'm not missing anything of my mind-dump here.

Then, should i use python, ts, or another option?

Thanks


r/AskProgramming • • 3d ago

Career/Edu Am I ready to start working on a real project as a beginner?

7 Upvotes

I've been thinking about working on a small project based on a problem I've noticed at my university.

The library has a pretty basic seating system. You ask a staff member for an available seat, they give you a number, and then you have to walk around looking for it. During exam periods, this can get pretty frustrating.

I'm currently in my second year of CS. I've spent about a year learning C and covered things like pointers, linked lists, trees, and data structures. However, most of my experience so far has been solving exercises. I haven't really built anything substantial on my own.

I thought this could be a good opportunity to apply what I've learned and understand how programming works beyond exercises.

I'm just not sure whether I'm ready for something like this or if I'm getting ahead of myself.

For those who have been in a similar situation, how did you get started? Any advice would be appreciated.


r/AskProgramming • • 3d ago

Other What exactly is vibe coding ?

0 Upvotes

I started a project of porting a PSP game on 3DS and when i started the project, i didnt really know how to start as i didnt saw videos about this type of project so i asked about how to do it. Later on, i've found a subject about vibe coding and im scared that me asking about how to work on my project result in me being a vibe coder


r/AskProgramming • • 3d ago

Career/Edu If you were starting from scratch in 2027, which tech stack would you learn and why?

0 Upvotes

Hey everyone,

I'm currently pursuing my M.Tech, and I want to start learning programming and software development from scratch. I don't have any practical experience yet.

Considering the current job market, the rapid growth of AI, and future industry demand, I'm confused about which tech stack to focus on.

My main goals are to:

  • Learn a tech stack from fundamentals to an advanced level.
  • Improve my chances of securing a good software engineering job.
  • Develop skills with strong demand and long-term career potential.
  • Build my own products, pursue freelancing, or start a startup if campus placements don't work out.

I would love to hear your thoughts on:

  • Which programming languages and tech stack should I focus on?
  • What additional technologies and advanced concepts should I learn alongside them?
  • Which skills are worth investing time in considering the rise of AI?
  • What would your learning roadmap look like if you were starting from zero today?

I'd especially appreciate advice from experienced developers and people currently working in the tech industry.

Thanks in advance for sharing your experience and suggestions!


r/AskProgramming • • 4d ago

Other I am brand new to basic programming and looking for some advice

5 Upvotes

So, I know a very baseline knowledge of coding and am looking here for some help. My goal is to automate edits made from exported playlists so they work with my phone for MP3 files.

The edits that would need to be made for these playlists is as just turn location X to Y and switch \ to /

From brief google searches, it recommended python, but I am unsure how much to trust google. I also am curious if it is fairly simple to export it as an executable and run the above edits to all m3u8 files in the same folder as the executable.

Edit: Thank you all for the help, has been rather informative


r/AskProgramming • • 4d ago

Why don't browsers have "Pause" features to limit RAM usage?

0 Upvotes

Situation / Background Info (if TL;DR skip to the actual question at the bottom):

I'm currently playing a CRPG (Pathfinder: Kingmaker, just think of Baldur's Gate 3 if you're unfamiliar) which, for an optimization-inclined player such as myself who is not super familiar with the mechanics, requires a LOT of open Wiki pages to see how things work and what skills/spells/items/etc do. I go back to reference many of these pages occasionally, so it's easiest to keep them open.
At times I also have Youtube open, I'm sometimes taking a break and browsing other stuff, or even letting something download in the background while I play.

I think to myself:
Right now I have 8 wiki/guide tabs open, and that's after closing over 10 others, ones which I don't have to check as frequently. I also have 6 other tabs open unrelated to the game, most of which I only touch once a day or even once every couple of days.
Why the heck does my Internet Browser take up 5+ GB of my RAM, just to "hold" these pages in the background? And when I do check on them, I don't require to actually do anything advanced? They might as well be a large screenshot for my purposes.
I googled and found this answer:
https://www.reddit.com/r/AskProgramming/comments/s8ogk6/how_do_browsers_use_so_much_ram/
If I understand correctly, the short of it is that each tab runs its own instance of an engine for various purposes. That much makes sense.

The first available (lacking) solution:
I use OperaGX, which at least in its advertising seemed to be very proud of its "RAM Limiter" feature. All it does is give you a slider where you can limit your RAM usage for the browser - essentially I can set the slider to [X] GB and it will only ever take up [X] GB at a time.

Why it is lacking:
As far as I can tell, if I set the limit to, say, 1 GB, there is no differentiation between what I care or don't care about. Maybe my youtube video will be affected all the same, resulting in stuttering or being unable to play at all. Maybe that download I'm doing in the background will be affected.

The other available solution:
I did a little googling on "Tab Suspender" extensions, which claim to reduce memory usage by hibernating tabs you haven't used in some amount of time. It's not my perfect solution, as I don't even care to have the tabs run all their garbage even when I AM accessing the page, but maybe it's good enough.
I find "The Great Suspender Reloaded" which seems to be the #1 recommendation (or at least, the original Great Suspender was...), go to download it, and OperaGX pops up with a warning window:
"This extension's contents have not been verified by Opera"
"It can: Read and change all your data on all websites."
"It can: Read and change your browsing history on all your signed-in devices."
Well if that's not the biggest red flag I've ever seen, I don't know what is. I ain't touching that.

-----------------------------------

Anyways, my preferred solution:
Have a way to "pause" a tab by "converting" a page into a simple screenshot. You click a button, the browser automatically takes a screenshot of the page, and displays it as such. All other memory or CPU requirements are killed. I don't need each of my 20 wiki pages to constantly be running muted videos/ads when I access them (and maybe even in the background? I wouldn't put it past them), I just need them to display text and look as pretty as they did when I first loaded them. If I want to access the actual page again, I can just hit the "reload" button and it reloads the actual web page again.

Quirks:
I imagine this wouldn't be very compatible with resizing the browser window. I don't care. If I care, I can reload & pause it again at the new size.
Maybe we'd still want page links to work, so even on a "paused"/"screenshotted" page I can still click a link and then the next page is accessed as normal. I'm sure this would be extremely easy to implement - if adblockers can detect specifically ads and block them, I'm sure this "pause" feature can detect text/image links and overlay clickable zones onto a PNG.
Maybe this could conflict with logins? But I highly doubt that, and even if so, I'm the one choosing to pause the page - I'll relog if I have to when I get back to the real website.

Questions:
Is this unfeasible for some reason?
Does something like this exist and I'm just ignorant?
Why doesn't every browser include this kind of thing as a baseline option? Is the use case too narrow? Are the browser companies too symbiotic with sneaky advertising to allow for this?

Thanks!


r/AskProgramming • • 4d ago

Other Where to commission Rpg Maker MZ filter plugin (no AI), and a fair asking price

1 Upvotes

Title; I really want a filter that makes the game look like how pictures do on the ntsc-rs website except for the glitch bar at the bottom. I've never commissioned code before so I'm wondering where to look and what's fair!


r/AskProgramming • • 5d ago

Other Contracting a developer?

9 Upvotes

Hi! I have no idea what I’m doing or whether this would be worth it.

I run a commercial laundry service that is growing in volume rapidly. Unfortunately, the type of laundry industry I’m in is niche and there isn’t really an app or software specifically for it (I’ve tried them).

Currently, I use Google Sheets, forms, invoice ninja, Wix, and a few other programs just to run my business. I have to manually text/email hundreds of customers about their order status. I’d love to have my own management software to track all of this in one place and maybe export to invoice ninja.

The things I’d need are:
• Laundry tracking database
• Auto reminders (customer + me)
• Status alerts
• Pickup/delivery routing
• Scheduling form
• Data analysis
• Customer/order database
• Inventory tracking

Is it worth contracting someone to build this?

EDIT TO ADD: I have my own web domains, so the software can be an extension of those in just a browser version. Doesn’t need to be an app. This would be for my own use only.


r/AskProgramming • • 4d ago

Architecture Advice needed

0 Upvotes

Hey guys, I started developing an app which is mostly ai internet search based, my problem is, I always hit usage limits, since I only use free options. (It will change in the future)
Do you guys have any other idea how an ai could search on the internet without a subscription?
My other question is, Is it a good idea to have a fallback system on free plan gemini api keys?
Are there any other way an AI could search the internet for me, totally free?
Thanks for your time and reply!