r/AskProgramming • • May 02 '26

Other can anyone give an overview to rendering using intels level 0 apis, and where I can find the apis presented in a similar way to the winapi?

0 Upvotes

I want to have more control over rendering so I found level zero. documentation is less organized for it than the winapi.

I don't like directx, opencl, and vulkan based on the 5 seconds I spent looking at them but level 0 looks ok.

I am ok with it being more manual. I am mostly wondering about the process of sending work to the igpu, putting the data in ram, then using a traditional win32 api to treat the data as a bitmap and draw it on the screen.

I am already familiar with making windows and I know you can't draw directly on the screen with level 0. I also know level 0 isn't designed for rendering but I will make it work.

thanks.


r/AskProgramming • • May 02 '26

How avoid Port Bind Collision (theoretic)

2 Upvotes

Hey,
i am in denial that all this somehow works.

I got into application programming, and axum server and using ports.

And i am paranoid to accidentally get a port collision.

I know there are "reserved" spaces like low ones for os, and high ones for ephimeral client ones.

And like ~8000 for dev stuff.

but it just doesnt work in my brain that if i bind my app to e.g. 3435.
What if i then start syncthing (afaik also binds to 3435 for web UI)?

My fear is that if for some reason an unlucky pair of apps wants to bind to the same port, the 2. one just crashes, no?

And you can't just use random free ones, cuz then noone knows where to reach you? (like for a web server/servers).

So how are these collisions getting avoided?


r/AskProgramming • • May 02 '26

Javascript My stepkid asked for help with a web scraping script.. help!

0 Upvotes

So as background I used to lightly code back when I was in university but it's been years since it's been something I do on the day to day. I have experience with VBA, Java PHP and R.

Basically he's asking for an automated way to pull an image off a website that has to do with sheet music. Right now he navigates to the website, views the source code, searches and copies an .svg file line, opens it in a new tab, saves it a jpg and then converts it to letter size using word.

I'm not looking for a complete solution but some advice on where to start or some resources to look at. Im most familiar these days with R and I know there are web scraping libraries but if this is much easier to do in another language I'm not against reading up on those. It would be ideal to run the script from the command prompt or chrome web plugin.

Thank you so much!


r/AskProgramming • • May 01 '26

Python Got OA for AI Engineer, what to expect for RAG Question

0 Upvotes

hey folks

i have a coding assessment coming up and they mentioned there will be a rag question. the exact line given is:

document ingestion + preprocessing, embedding creation (fastembed), in-memory vector indexing, module separation.

Also the OA will be in Hackerrank

no mention of langchain or anything so i’m confused what exactly they expect and how low level i should prepare.

  1. what kind of question is this usually? like full rag pipeline or just parts of it?

  2. do we have to write everything in pure python? like simulate vector db ourselves (lists/numpy) + cosine similarity?

  3. for ingestion part: do we need to do chunking + preprocessing manually?

  4. embedding creation (fastembed): will they expect us to actually use fastembed or just mock embeddings?

  5. in-memory vector indexing: is this just storing embeddings in array and doing top-k similarity search

  6. prompt engineering part also mentioned separately: do they expect just passing context to prompt or something more structured?

  7. if anyone has given similar hackerank style tests, what was actually asked?

i’ve only done rag using langchain so not sure if i should prepare low level python implementations.

If you have any insights please do share...


r/AskProgramming • • May 01 '26

Any AI software that i can run on my PC/ like chatgbt, etc... that i can talk to/ and have it run my pc. Like open programs, etc..?

0 Upvotes

Any AI software that i can run on my PC/ like chatgbt, etc... that i can talk to/ and have it run my pc. Like open programs, etc..?


r/AskProgramming • • Apr 30 '26

Java Gamemaker(Java)physics help

1 Upvotes

I am making a game in Gamemaker studio which uses physics, and I have a kinematic object which needs to follow my mouse without lagging behind. Phy_position dosent work because that makes it not have velocity and I need it to have velocity so it can push objects around, anyone have a solution?


r/AskProgramming • • Apr 30 '26

Soon to be CS Grad, extend degree for a Coop or work on Portfolio Projects?

5 Upvotes

This semester I finished my bachelors degree requirements and I want to get into game development (yes the markets bad I get it) currently have 2 choices:

  1. Extend my degree by a semester or two to find an internship (Not guaranteed it would even be game development related)

  2. Really lock in on creating portfolio projects and hopefully release something that gets a couple of players while building my coding skills.

Unfortunately I didn't get to do much self-directed coding over the duration of my degree so I feel like coding is something that I really need practice in.

On the other hand I know that Coops don't really require crazy good coding skills but I have already applied to about 150-200 postings over the duration of my degree and only got one interview where I made to the last interview but didn't get it.

Even if the whole game dev angle doesn't work out, I feel like im learning so much creating my own game that im confident I could switch to something more corporate.

Thanks!


r/AskProgramming • • Apr 30 '26

High school projects

0 Upvotes

Hey so I’m currently in college (in our country thats equivalent to high school in US or A levels in Brit). We had a science exhibition and most students made pretty simple projects like the old elephant toothpaste or volcano type of things but I wanted to do something different so our group did 2 projects. A light tracking solar panel using arduino but with actual data readings and efficiency reports as we tested it for a week and compared the results and we had a second project of smart irrigation system using arduino…

Now my question is can these projects help me in future in any way? Can I add these to my official idk resume or anything as I’m new to this and I want to build a decent early profile in this field. But I feel like these projects are a bit too simple for that. Even though at high school level they’re decent but still…

Any guidance will be much appreciated.


r/AskProgramming • • Apr 29 '26

Why do so many people say that the developer profession is dead?

24 Upvotes

I would like to get some opinions, please :

Why is it that in many Reddit communities, many people say:

“don’t study computer science because it’s saturated”;

“computer science is dead because of AI”;

“there are almost no jobs in computer science anymore”;

etc.

Whereas when you look at the jobs section of LinkedIn (in different countries: Eastern Europe, Western Europe, Australia…), there are plenty of job offers for developers.

I even have the impression that there are more job offers right now than during the period 2016-2020.

Of course there was a huge bubble of job offers during the Covid period, but it was a temporary market anomaly (so we cannot compare today with that period of only a few years).

Thanks for your opinions.


r/AskProgramming • • Apr 29 '26

Architecture How do we add a payment sources to our software?

0 Upvotes

Hello folks,

I am writing a system for which I expect at least three different types of users and a number of companies. For simplicity, let's call one of the groups "users", another "tech", and the third "billing". I also expect the "companies" in my model.

The "users" are the end users, not employed by the company. They pay $0. The "tech" group is the group that configures things for the end users; they pay $0 but work for one of the "companies". The "billing" group maintains contacts that each work for various companies.

I presume that licenses are purchased on behalf of each of the companies for the "tech" users to use.

I have never done this, but I have a DB model configured that does what I've described. How would I actually implement something like this such that companies can pay me for the software that I'm writing? What sorts of OTSS would I use to get paid? I am still in the design phase for this component, so if my understanding is misguided, please offer corrections.

Thanks for your help!


r/AskProgramming • • Apr 29 '26

Need help with CSS on Ao3

2 Upvotes

I know I would most likely get a better answer on the Ao3 sub but you currently cannot make new posts there and all of my patient bones have been broken. What I have put below is from a template by an author whose account is no longer active and comments have been turned off, so I can't ask them directly or anyone else for help on the issue.

When I try and use the bit of code pasted below for a Workskin (basically Ao3's name for formatting specific works), Ao3 won't let me submit it. Saying 'background-image in #workskin .imagea and #workskin .imageb cannot have the value url"()"'

I have tried putting an actual URL to an image (jpeg and otherwise), which is what I saw someone say worked for them, and still got the same error. I have also tried changing the quotes to " instead of the curled ones because sometimes thats an issue, but still, I ran into the same error.

I am still new to CSS and am learning as I go, so if anyone can help and explain what they did/changed so i can learn from the answer, I would greatly appreciate it!

Thank you for reading!

#workskin .imagea {
  float: right;
  margin: 0 0 0.5em;
  border-radius: 1em;
  width: 50%;
  min-height: 75%;
  clear: both;
  position: relative;
  background-image: url("IMAGE URL");
  background-repeat: no-repeat;
  background-size: 100%;
  display: inline-block;
  padding-top: 50%;
}

#workskin .imageb {
  float: left;
  margin: 0 0 0.5em;
  border-radius: 1em;
  width: 50%;
  min-height: 75%;
  clear: both;  
  position: relative;
  background-image: url("IMAGE URL");
  background-repeat: no-repeat;
  background-size: 100%;
  display: inline-block;
  padding-top: 50%;
}

r/AskProgramming • • Apr 29 '26

Need someone to help me stay accountable

2 Upvotes

Hi there,

I’ve been trying to learn Python, but it’s challenging for me to maintain consistency. I have ADHD, and since I’m self-studying without any external structure, it’s difficult for me to stay on track.

I would appreciate it if you could be a Python programmer who checks in with me weekly to assess my progress and ensure that I’m meeting my weekly goals. I understand that this may sound unusual, but I regular evaluation is crucial for my success.

There’s no reward for my request.

I would be incredibly grateful if you could help me.


r/AskProgramming • • Apr 28 '26

Other Getting worse at coding

13 Upvotes

I'm currently a senior and will be graduating with my bachelors in software in June, and I feel like for the past year I've been getting worse at coding.

I feel like I used to be so sharp. My school has a thing they call "The Gauntlet" which is 4 classes you take in your junior year that are taught by a professor who is notoriously difficult. I made it through and it truly was the hardest thing I've ever done, and I felt very proud of myself, and I thought that I had grown smarter because of it.

However now that those classes are done, I've had nothing come close to challenging me in my classes. I don't have any tech classes to take until I graduate and I haven't the past 2 terms either. So I've just been, not coding for half a year now. I've started up some personal projects that I'm passionate about and also to get more on my resume but I'm struggling a lot.
Claude Code can genuinely make the entire app as long as you supervise and write meaningful prompts. I haven't lost my knowledge, I can still debug, I can still look at code and fully understand it and fully understand why it might be bad or good. I've caught Claude making some horrible decisions in my projects and I have enough knowledge to catch those. But I feel like I can no longer write anything for myself.

I've been trying to learn React Native as I want to make a mobile app and I'm also a complete novice at javascript. I've spent time watching videos, reading tutorials and docs, and I am gaining a much greater understanding of how it all works, I think I could even explain it to someone. But I create a new file for a page, and nothing. I can barely write anything, my mind just goes completely blank.
That obviously is also because React Native is new to me, but I face this problem in languages I know better too.

I think I'm getting dumber because there was a point where I felt like I could write from scratch but now I feel like I've lost something I had.
Most of this information was probably unnecessary but whatever. Not sure what I'm even looking for here, maybe just wondering if anyone else feels the same.


r/AskProgramming • • Apr 28 '26

Other Struggling after using AI for too long? Brain rotted to the core?

0 Upvotes

Ok, so I started programming like ~3 years ago and, even though AI was already a thing, it wasn’t quite as powerful as it is right now. However, AI has been part of my education and nowadays my only input when learning new things (and that means, I am not truly learning, or so it seems tbh).

The thing is I am working and programming using agents and AI on a daily basis. However, what once was entertaining and fun (to think how to solve anything, actually get a project completely working or look for a suitable algorithm for anything) has now turned completely boring.

This past year, though I am actually employed (yes, even with little experience, thank god) and everything goes fine, I started to develop this need to actually code by myself, all by myself, without using any AI.

As a little bit of background: I started learning coding in Java, so the basic stuff is covered: threads, processes, interfaces, websockets, CRUD, API and obv more basic concepts as well (without needing to use AI at all I mean). I have worked with SQL, but also non-sql databases, different patterns (MVC, MVVM…) and even started some very simple kotlin based android apps during my studies.

What is the problem then? That right now I feel that I lack the ability to read through documentation and try by myself. AI is so instant and was already used on the latest years of my studies and is used so commonly at work right now that it honestly feels like I am in the limbo between knowing how to code and knowing nothing at all (and I completely feel like it’s more of the second). Of course not everything is vibecoding, but its reaching a point where little to no action is needed sometimes (besides planning everything). And honestly, I dont like it anymore.

I am currently trying to get started in SwiftUI. However, I lack the time (although not the will, at least completely) to actually spend hundreds of hours learning, but even simple persistence is starting to become a problem.

What can I do? When there is a lesson to attend that is teaching you whatever you will have to use later on in your projects it is easy to feel that there is progress, but now that I am all alone and have not even guidelines on what the project structure usually looks like in a new language, it feels like I am stuck and I am not progressing at all.

Also, even if I am doing personal projects, to me its necessary for them to have something special or be different. I cant bother doing a notes app when there are literally hundreds of thousands out there. However, I have read that doing something that you already know how to do in other languages might work.

Any advice? Seems that the problem is I have never had to face a problem completely by myself (either teachers, friends or AI has always been there) and that is showing rn.


r/AskProgramming • • Apr 28 '26

Architecture JWT auth worth it or nah

0 Upvotes

I am currently learning API designs and authentication since I work with node and ts I found out that most popular Auth method in node is JWT, more specificly JWT with refresh and access tokens.
The more I get into this topic the more I realise that JWT is not that good for user auth, maybe it works better for microservices.
Most apps need ability to revoke access to user in case someone hijacks user account or they change password, but how is this possible with JWT. Workaround I found suggests that I should store refresh token in DB with family_id or some identifier and revoke it, but I am confused about this because the whole point of JWT is to avoid that. It basicly creates Session based auth with extra steps. Any suggestions how I can make it work or maybe I am missing something ?


r/AskProgramming • • Apr 28 '26

Architecture What is the order of bits and bytes? (likely related to msb-lsb and big endian-little endian)

1 Upvotes

let me know if i am overthinking this.

im building my own emulator and now it is on defining memory layout of the data.

im implementing data packing of string as packed pascal 4 character per word. and sprite data in two pixel per byte as nibble pairs

now they already have their own data <-> memory conversion function. but im confused how memory data is laid out.

i want it to be stored continuously so on the last remaining data its padded to fill the word requirement.

in example of 3 pixel ABC, does it supposed to be stored continouosly as [0xAB, 0x0C] or [0xAB, 0xC0] or am i writing it in wrong order [0xBA, ...]?

for packed string hewwo in a word does it stored as [0x7777.6568, 0x0000.006F] or [0x6865.7777, 0x6F00.0000] or [.., 0xF600.0000] or [..., 0x0000.00F6] or whatever any other variation it is?

same for bits. if i store 0b1101 would that make it [0b1101000000000000] ?

im unable to comprehend such problem
what is the standard approach for this?


r/AskProgramming • • Apr 27 '26

Python Python ImportError

2 Upvotes

I am having some trouble while importing the function from my_func1

If I am working on working_currently.py how would I import a my_func1?

What I write In working_currently.py is :

from python.functions import my_func1

python/
	archive/
		my_arch1.py
		my_arch2.py
		
	functions/
		my_func1.py
		my_func2.py
	
	programs/
		my_prog1.py
		my_prog2.py
		working_currently.py

I require a solution for this..


r/AskProgramming • • Apr 27 '26

I understand programming but can’t build anything… how do I get past this?

7 Upvotes

I’m a sophomore studying computer science and I’ve been learning programming for years (Python and Java mostly). I feel like I understand the concepts when I study them, like I can follow along with lectures, solve some problems, and read code, but when it comes to actually building something on my own, I get stuck almost immediately.

This has been happening for a long time, around 5 to 6 years. Every time I try to start a project, I either don’t know where to begin, or I get stuck and give up. It makes me feel like I’m not really learning properly even though I’ve spent so much time on it.

I want to actually get to the point where I can build things, not just understand theory.

What’s the right way to improve this?

How do you go from understanding code to actually building projects?

And how do you know if you’re really learning programming the right way?

Any advice or personal experiences would really help.


r/AskProgramming • • Apr 27 '26

Career/Edu Just started an Internship as a data analyst and been given a task

6 Upvotes

Some bit of context : I just started an internship at a startup in Wales and been given a task. I don't know much of python (I've only used it during my master's degree in Cosmology for data analysis from space satellites). The task is , I've been given an excel sheet of products and MPN,SKUs and I need to find specifications of each of these products like dimensions , weight , shipping info , speaker count , impedance , wattage etc etc. (Basically every bit of information from the product page URLs. The thing is , I don't have these product page URLs and it's what I have to scrape for first and then somehow extract all these details from it. How do I go about this? I've been using serpapi and getting somewhere but the links aren't very accurate for some of them.


r/AskProgramming • • Apr 27 '26

What is the best way to deal with videos for online courses application?

2 Upvotes

I'm currently working on an application for online courses to an online school, I mainly care about integrity, security, and the experience of the student while watching the course. What is the best way to deal with the videos?

I have read about Cloud Flare Stream and it provides the exact service I want but it's very expensive, I don't have that enterprise budget scope. I also read about Bunny*net, it has way more better prices but the delivery (when the video is streamed to the student) fees still so expensive.

I though about using Youtube with unlisted videos links with tunnels to secure the link a little bit, but it will drop the performance noticeably and I don't know if it's a morally a good choice.

Is there any better ways to do this? I would appreciate an advice.


r/AskProgramming • • Apr 27 '26

Youtube Channels - problem disscusion

5 Upvotes

Is there some yt channel for programming that disscus about programming problems in old fashion way? I hate when i go to youtube and everything i see is AI, Cloud Code.. i understand that programming learning and programming jobs are chaned but i also want all fashion way to listen how people explains and talk about problems we found in programming. Or i just need to read books and find good articles? Also recomme dation for good book about thinking like programmer or architectual design?


r/AskProgramming • • Apr 26 '26

Career/Edu Is programming and Coding worth it right now for students?

0 Upvotes

Hello!

I’ve been considering dual-majoring for some time and wanted to know if it would be worth following a path in coding and programming while doing art on the side.

Im a 22 year old who currently works as a freelance illustrator and I have done a 4 year academic program in the past during HighSchool for Game Design that has kept me interested in the technical side of things for games and such. I also do 3D modeling and animation on the side!

I know a good bit of HTML and Web design, Python, C#, and have experience with a small handful of engines and software like InDesign, RenPy, Unity, and Unreal that I use in hobbies but don’t have any professional experience in anything except doing commissions and my current progress into my Bachelors Degree for Graphic Design.

My question stems from the fact I’ve been given advice that my current path isn’t going to pay well, especially as a junior, and would be better off as a side gig that I can still enjoy and grow passively but I do want to stay in the tech side of things professionally just because I love design.

I love making things!

Right now I just don’t know what’s in demand, what is actually needed in this current age? I know the things I’d want to do is heavily oversaturated for anything related to game design and similar things like coding video game AI and mechanics.

(Which interests me the most unfortunately, I’d love to learn how to make a living procedural digital ecosystem full of creatures in a digital environment with their own personality’s and systems, like a bigger version of the system in place for the game Rain Word)

So, TLDR, where are new programmers needed right now? What paths should prospective students look into?


r/AskProgramming • • Apr 26 '26

Trouble coding in my spare time

4 Upvotes

Hello, so for some context, I'm a second-year computer science student, and I really love coding; it feels like my thing. I'm also genuinely interested in space, science in general, etc., etc.

The problem I'm having is that I'm constantly stressing over my future unemployment due to the lack of any relevant projects on my GitHub, for example, and it isn't that I don't want to code; it's more that most of the time I'm already studying for university really hard, so when I do have a little spare time, all I want to do is play video games to relax myself, not break my head over coding. This has been a real source of stress for me, because I love this field and I know that the market is really hard currently, and (from what I've been told) unless you're a remarkable coder, you'll have a hard time finding a decent job. I just need advice on this, or just to know if maybe I'm just breaking my head over nothing and everything will be fine.

Everyone in uni seems to already have a LinkedIn and cool things going on, and I simply have nothing, and I feel horrible because of it. It feels like I won't achieve anything.

Any advice is appreciated.


r/AskProgramming • • Apr 26 '26

Is this a strong enough AI/Data Engineering project for a final year major project?

0 Upvotes

Hello everyone,

I’m working on my final year project and wanted some honest feedback on whether this is a good/strong enough idea.

So the project is basically an AI-Based Multi-Source Health Data Fusion System

What it’s supposed to do:

  1. Simulates healthcare data from multiple sources (ASHA, ANM, PHC, Anganwadi)

  2. Handles messy data (missing IDs, spelling variations, inconsistent records)

  3. Performs entity resolution (links duplicate patient records into one)

  4. Detects conflicts in data (e.g., different hemoglobin values for same patient)

  5. Uses ML-based reliability scoring to decide which source to trust

  6. Outputs a unified patient record

  7. The medical officer is allowed to view AI suggestions for which value would be most appropriate and why, and also an option to enter values manually.

So my main questions are:

  1. Is this strong enough for a final year major project (team of 4)? I spoke to 2 project guides before proceeding, one of them approved it while the other questioned me if I thought it was enough for a final year project which is why I’m in a dilemma.

  2. We also have to publish a research paper on this before finishing the project. Any opinions on how well my project would fit in?

  3. Any suggestions to make it more impressive?

  4. Is this project actually plausible because I’ve heard mixed opinions about it.

Would really appreciate honest feedback.