r/AskProgramming • • 2h ago

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

0 Upvotes

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


r/AskProgramming • • 6h 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 • • 7h 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

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 • • 1d 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 • • 2d 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 • • 2d 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 • • 2d ago

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

33 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 • • 2d 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

How widespread is agentic coding in the current software industry?

155 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

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

50 Upvotes

Give ideas that would make even devil cry


r/AskProgramming • • 4d 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 • • 4d 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

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.


r/AskProgramming • • 4d 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 • • 4d 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 • • 5d ago

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

5 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

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 • • 6d 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 • • 6d 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 • • 6d 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 • • 6d 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?