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 • • 11m ago

Does using AI to plan my projects help me learn, or am I getting too dependent on it?

1 Upvotes

I'm 17 and studying IT in high school. For the past few months I've been building stuff to understand how things work under th hood instead of just following tutorials. So far I've made a Unix shell in Python (parsinnmg, pipes, redirection), a task maager with FastAPI/PostgreSQL/SQLAlchemy and a JS frontend, and a business analytics project in SQL.

I use AI a lot, but not to generte projects. I use it to explain concepts and when I'm stuck. The thing I've noticed isthat before starting anything unfamiliar, I ask it for the gneral architecture, the main components and a rough order of steps. Since I don't know the topic yet, that roadmap is my starting point. After that I make my own decisions, change the design and write everything myself.

Now I want to build a chess engine in C, with search algorithms and a neural network from scratch, and I'm wondring if this habit is actualy hurting me. Figuring out the architecture and researching the pieces myself would probably teach me more. But I'm also afraid of wasting weeks going in circles or missing important concepts completely.

I see three options:

  1. Get a rough roadmap from AI, then research and implement everything onmy own
  2. Skip AI for planning and only use it when I hit a specifi problem
  3. Design it myself first, then have AI poke holes in my decisions

I'm not tryig to quit AI. I just don't want to realize in two years that I outsourcedthe part where you learn to think like an engineer. If you've mentored beginners or learned something hard through personal projects, what would you do


r/AskProgramming • • 15m ago

Javascript How to focus a parent window from a child window?

0 Upvotes

To specify, I am a beginner in javascript, so I apologize if I cannot understand any terminology.

I want to state the limitations I working in currently. I am writing vanilla JS into the in-built text editor on a chromebook, (ChromeOS version 150.0.7871.222). The JS is running in chrome. The reason why is because this is a school-issued computer, and I want to produce something that can work within those limitations. JS, CSS, and HTML are the only coding languages I know that be ran in a Chrome and edited from a text editor.

I want to create a little game where I can move a window around the screen. The reasons for making this using windows is for the meta-narrative of the game.

I understand for it to move or to be focused, it must have user activation via an IsTrusted bool turning on from an event like a button click.

I have made the basic movement code, but then I came onto a massive issue. I cannot move multiple windows without having them all being unfocused at the same time and letting them go underneath the parent Window. I have spent countless hours perusing forums, Stack Overflow, and MDN. Many of the solutions have not worked. I cannot call a function from the parent window to focus itself. I cannot focus using the opener method. Post message does not work. Calling it from inside an onblur event does not work. Putting these things in user activated functions also does not work.

Is there any way I can do this, or is this just another limitation that I need to work around?


r/AskProgramming • • 5h ago

Problems with AI coding agents...

0 Upvotes

Hello everyone, I have a question. I am a developer with 5 years of experience, and I’ve been using Claude Code for about a year now. While AI models have improved significantly, I still encounter many issues. For instance, the AI ​​often creates multiple nearly identical functions—instead of defining a single function that accepts parameters, it might generate three separate ones. Furthermore, function names often fail to accurately describe what the functions actually do. There are many such problems, and I simply don’t trust the AI ​​to work in an "agentic" mode—writing code on its own—without me constantly monitoring it. Ultimately, I find this process quite exhausting; it feels like I spend more time configuring the AI—setting up the coding rules it should follow—than actually writing code myself. I’m not sure if this is just my personal experience or a more widespread sentiment. Given that Anthropic’s models are capable of solving complex mathematical problems (even if those are specialized, lab-based versions rather than the ones we use), I find my own results rather underwhelming compared to what I see online—even though I’ve gone to great lengths to configure the environment, such as defining business logic, establishing coding standards, and providing documentation. What are your thoughts on this? Thanks!


r/AskProgramming • • 5h ago

js/ts dev adding devops, should i learn go or rust in the ai era?

0 Upvotes

hey everyone,

I have around 2 years of full stack experience with javascript and typescript (next.js, react, nestjs, postgres), and right now i'm going deep on system design and interview prep.
i'm almost done with AWS SAA-C03 and i'm adding devops (docker, ci/cd, observability) so i can own a project from code to deployment.

I keep going back and forth on what to learn alongside it: go seems practical for backend and infra tooling, while rust looks great but has a steep curve and unclear job payoff. with ai writing more boilerplate and code :(

is a new language even worth it, or is going deeper on infra and distributed systems the better bet? my goal is a remote role at a startup, so what would you learn and build to stand out?


r/AskProgramming • • 1d ago

Other Does anyone use Eclipse Theia IDE ?

3 Upvotes

Hi,

I just learnt today about the existence of Eclipse Theia. It seems like an interesting open-source alternative to VSCode, but after looking online I don't seem to find many programmers discussing it much which leads me to believe it isn't used too much by programmers.

I wanted to know if people used Eclipse Theia and if they do why choose it over VSCode aside from the fact its open source.


r/AskProgramming • • 19h ago

in college did you make a filesystem?

0 Upvotes

Computer science, let’s hear about projects in 2010 era. What was your capstone?


r/AskProgramming • • 1d ago

Looking help for finding MCA final semester project ideas

1 Upvotes

Hi everyone,

I am currently in my final year of MCA and honestly struggling to decide on a topic for my main project. I really appreciate some guidance and suggestions.

My advisors asked us to build a project that involves identifying, analyzing a relevant problem and developing a computing solution for it. It can be application-oriented, research-oriented,  experimental or innovation-oriented. Interdisciplinary projects are also allowed

We can select topics from the following areas:

  • Artificial Intelligence and Generative AI
  • Machine Learning and Deep Learning
  • Data Science and Big Data Analytics
  • Cybersecurity and Ethical Hacking
  • Cloud Computing and Distributed Systems
  • Internet of Things
  • Web and Mobile Application Development
  • Blockchain Technology
  • Natural Language Processing
  • Computer Vision

My current technical background includes Python, Java, Flask, MySQL and ML. I've previously worked on an EEG-based Alzheimer's disease detection project as my mini project.

I am not interested in usual ideas like disease detection, phishing detection, document analysis, language recognition system, chatbots, as many of these have already been done by students as their mini projects. So i had like some relevant, important, that can be studied and done in the coming months. I am open to learning new technologies and exploring different domains.

I had especially appreciate suggestions for projects that have sufficient technical depth rather than only the crud operations. Projects with scope and further improvements, practical applications. And also feasible implementation within one semester by an individual student.

If you have completed an MCA project, worked on an interesting project or came across an interesting problem that could be developed into a project, I has love to hear your suggestions

Research papers, GitHub repositories and references to existing implementations would also be very helpful

Thank you.


r/AskProgramming • • 1d ago

Is artificial intelligence allowed during programming interviews?

0 Upvotes

Everyone uses AI in their work. Banning it during interviews seems a little strange. When candidates are allowed to use it, though, it becomes way harder to figure out what they really know on their own.

What are your thoughts on this right now?


r/AskProgramming • • 2d ago

Are reading these textbooks required to be a good programmer, or if you’re a programmer, how did you become a programmer?

1 Upvotes

The books are “think like a programmer,” “how to design programs,” “starting out with programming logic and design,” etc…


r/AskProgramming • • 2d ago

Help with finding/creating a program or application?

0 Upvotes

I manage the hospital gift shops at a very large, high traffic hospital. The shop I manage rents out breast pumps. There is currently no program offered from the company who provides the pumps we rent out. 15-20 years ago, the retired husband of one of our board members wrote a program for tracking the pump rentals. I think it did the job okay for many years but it has started failing. I asked our IT department of the hospital to have a look at the program and see if it was something that could be maintained or if we can start from scratch since the needs from the program have changed slightly over the last several years. The IT department said they were not surprised it was starting to fail and if they went in to try to "fix" it, it would likely stop working entirely. They advised me to get a quote outside of the hospital for getting a new program written and that is what leads me here... I have no idea how one goes about this. I also have no idea how much this is supposed to cost.

Does anyone have any suggestions on how to seek someone out for this project? I do not currently have a budget in mind. I will need to get an estimate and pose it to my board for approval on the cost. Any advice or assistance would be greatly appreciated!


r/AskProgramming • • 2d ago

Python Help needed for schools python learning

0 Upvotes

so a little of context i have computer science as a subject in grade 12 , and in it i have to study python , sql , stack and python connectivity with sql . i have managed to study sql but im struggling with python all i know is print("hello world") , i dont know if this is the right place to post this but help will be really appreciated . also i cant give it much time sadly coz i have subjects like physics chem and maths hanging in my neck . max i can give is 45 mins a day and i have to do it in under a month .

these are all the topics i need to learn

  • Basics: Tokens, keywords, identifiers, literals, variables, data types, operators, and type conversion.
  • Control Flow: Conditional statements (if, elif, else) and loops (for, while, break, continue).
  • Strings: Indexing, slicing, traversal, and built-in string methods.
  • Lists, Tuples, and Dictionaries: Creation, indexing, slicing, mutability vs. immutability, traversal, and built-in functions/methods.
  • Standard Modules: Importing and using math, random, and statistics.
  1. Functions
  • Types of Functions: Built-in functions, functions defined in modules, and user-defined functions (def).
  • Parameters & Arguments: Positional arguments, default parameters, and keyword (named) arguments.
  • Return Values: Returning single or multiple values (return statement) vs. void functions.
  • Scope of Variables: Global scope vs. local scope and the global keyword.
  1. Exception Handling
  • Error Types: Syntax errors, runtime errors (exceptions), and logical errors.
  • Built-in Exceptions: ZeroDivisionError, TypeError, ValueError, IndexError, KeyError, FileNotFoundError, IOError, etc.
  • Handling Blocks: try, except, else, and finally clauses, along with raise and assert statements.
  1. File Handling
  • File Types: Text files (.txt), binary files (.dat), and CSV files (.csv).
  • General File Operations: open(), close(), with statement, and file access modes (r, r+, w, w+, a, a+, rb, wb, ab, etc.).
  • Text Files: Reading (read(), readline(), readlines()), writing (write(), writelines()), and file pointer manipulation (seek(), tell()).
  • Binary Files: Serialization/deserialization using the pickle module (pickle.dump() and pickle.load()).
  • CSV Files: Reading and writing tabular data using the csv module (csv.reader(), csv.writer(), writerow(), writerows()).
  1. Data Structures (Stack)
  • Stack Concepts: Linear data structure and LIFO (Last-In, First-Out) principle.
  • Stack Operations: Implementation using Python lists (push via append(), pop via pop(), peek/display, and underflow/overflow checks).
  1. Python–Database Connectivity
  • MySQL Interface: Connecting Python to a MySQL database using mysql.connector.
  • Query Execution: connect(), cursor(), execute(), parameterized queries (%s or .format()), commit(), fetchone(), fetchmany(), fetchall(), and rowcount.

THANKS A LOT FOR READING


r/AskProgramming • • 1d ago

Since AI writes the majority of the code, how do you guys approach implementing a feature in a programming language you are not familiar with?

0 Upvotes

I’m a mobile developer and my choice of programming is Swift. I’m interested in backend development to build AI-powered applications. I know a little bit of Python, but Rust has caught my attention because of its efficiency and cost savings when it comes to cloud infrastructure. I have no knowledge of Rust, but I want to use it in my personal project. How do I approach learning it? Do I just follow the traditional route, such as reading a book about Rust or delegating the task of writing Rust to AI agents and just understanding the behaviour? How do you approach learning a new language in this AI age?


r/AskProgramming • • 4d ago

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

35 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 • • 5d ago

How widespread is agentic coding in the current software industry?

174 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 • • 3d 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 • • 4d 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 • • 4d ago

Why is spell check dictionary so few words?

4 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 • • 4d ago

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

4 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 • • 5d 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 • • 4d 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 • • 5d 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 • • 6d 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

57 Upvotes

Give ideas that would make even devil cry


r/AskProgramming • • 6d ago

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

4 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.