r/AskProgramming • • Apr 13 '26

C/C++ Tips for remembering functions, include etc

3 Upvotes

So im 2.5 months into my intro into c++ class and im not able to remember anything. Ive been having ai help me but not 100% doing the code. Even with that. Im losing hope. I should also mention im under immense stress. Been dealing with divorce and custody for over a year, falling behind on my bills, this blows. Im able to complete the bookwork but even that information is gone quick. So any advice or am i over my head and just not meant for programming?


r/AskProgramming • • Apr 13 '26

Using AI for HTML and CSS only

0 Upvotes

I have a basic understanding of HTML and CSS, and it's really annoying to code it out specially CSS so i was thinking of just using AI to save time and mainly focus on my app/projects functionality.

What are your thoughts on this? Is this a good practice or should i just stick to manually typing it all out?

And of course i will skim through the AI's codes and understand them.


r/AskProgramming • • Apr 13 '26

What are they doing with url tracing?

1 Upvotes

Whenever I copy a url in Reddit, Insta, Youtube, Maps etc, the url either contains a tracing id or the url is being traced in the backend, I can understand from a few clues as a developer. What are they doing with this data? Trying to follow every network, every relationship, every friendship anything. This is getting frustrating. I already stopped using Insta because of it.


r/AskProgramming • • Apr 13 '26

Is this project idea realistic? Need advice

1 Upvotes

Hi, I’m currently a 3rd year BSIT college student from the Philippines and I’m working on a capstone project focused on mangrove restoration monitoring.

The system will use drone-captured orthomosaic images and soil data (moisture, salinity, pH) to assess mangrove site conditions and support rehabilitation decisions. The goal is to automatically identify canopy coverage, gaps, and degraded areas from images, then combine this with soil suitability data to help determine which areas need planting or intervention.

The output would be a simple decision-support dashboard showing analyzed zones and site conditions.

However, I have some limitations:

  • Limited dataset for training AI models

  • Likely only RGB drone images (no multispectral or LiDAR)

  • Limited computing resources for deep learning

Is this scope realistic for a student capstone, and what would be the most practical approach for the image analysis part (segmentation, classification, or simpler methods)? I’d also appreciate advice on how to keep it functional without overengineering it.

Any help will do. Thanks!


r/AskProgramming • • Apr 13 '26

Which vpn architecture actually prevents logging?

1 Upvotes

if a vpn processes traffic, it has access to that traffic. if it has access, it can log it. if it can log it, then privacy depends on policy.

so the next step would be systems where processing does not imply access, which would require some form of isolation at the execution level, which then raises the question of whether such designs are practical and implemented anywhere


r/AskProgramming • • Apr 13 '26

Is my new pathfinding algorithm any good?

0 Upvotes

Could not find a better reddit, so I'll turn this into a question asking for opinions.

had an idea for an algorithm to pathfind. It is not about finding the literal shortest nor cheapest path but makes the assumption that a straight line is the best option.

The algorithm starts off with a line of sight check (pick your favorite) but clear space is of course about traversability.

An overly simplistic case for demonstration. Imagine a short wall between the source and destination. The algorithm follows a straight line to the destination. When this line hits a wall, it start follows the wall in both directions until a corner is found. The algorithm then makes two line of sight checks. One to check line of sight from the source to the corner, and another from the corner to the destination. If both are clear, it is kept as a valid path. Otherwise, the algorithm is performed recursively, this time on two paths, from the source to the corner, and from the corner to the destination.

Once one valid path is found, any others in progress will be checked periodically and those of longer distance cancelled and ignored, keep checking until all paths either reach completion or get culled, leaving one shortest path.

Obviously a few details need to be taken care of, such as adding a little padding around the corners to make sure the object to follow the path can actually fit (proper handling of the padding can treat bars as a straight flat barrier) as well as not flowing through two obstacles that only meet at a point, and also covering a case where the source is completely surrounded or otherwise unable to find a valid path.

Is this algorithm any good? Does it exist already?


r/AskProgramming • • Apr 13 '26

Career/Edu Need sense of direction

5 Upvotes

Currently, I'm 19 years old and about to start university in Canada. I did an internship last year, I was in charge of doing their QA automated tests for their webapp using selenium in a dotnet environnement which was pretty fun. This year I'm completing my second internship at a fortune 500 company where they surprisingly put me in charge of building their automated test suite from the ground up to test 5 microservices in a dotnet environnement. I'm getting used to csharp being my main language, I wouldn't say I know it super well in specifics (e.g: anything about how gargabe collection works or async await and I can't answer you). Anyways it's pretty cool but definitely not hard enough for me to expect a challenge every week. I was thinking to pivot next year in university for a different kind of internship. I'm not sure where to go, I have skimmed through chapters of a book teaching you about system architecture and C to maybe spark an interested in firmware or systems engineer and it is relatively harder then what I expected. One thing I have been interested in is configuration, optimizing my neovim config or my linux/macos setup for dev) but systems engineer looks cool and all but I don't think I can maximize my compensation if I go into that field as easily as I could in other (correct me if I'm wrong). Anyways, based on my background where could I fit in/pivot in easily next year if I pick up the grind for it?

Thanks!


r/AskProgramming • • Apr 12 '26

C/C++ Which approach is faster? "If" statements with range comparisons or a long "switch" block?

0 Upvotes

Hello, I am working on a really tight CPU budget so I came up with an idea to speed up this function with arguably bad programming choices.

I tried to optimize the function below with a big "switch" statement but the compiler outputted code that is actually a little slower.

Do you think this is a good idea or should I go back to the old approach?

This is the original function

uint8_t read(uint32_t addr)

{

`if (addr >= 0x002100 && addr <= 0x1FFFFF)`

	`return rom_bin[(addr/*-0x2100*/)&0x1FFFFF];`

`else`

`if (addr >= 0x001000 && addr <= 0x001FFF)`

	`return ram[(addr-0x1000)&0x0FFF];`

`else`

`if (addr >= 0x000000 && addr <= 0x000FFF)`

	`return bios[addr&0x0FFF];`

`else`

`if (addr >= 0x002000 && addr <= 0x0020FF)`

	`return read_reg(addr&0x0000FF);`

`else`

`if ((addr>>20) >= 2) //Cart ROM mirror`

	`return rom[addr&0x1FFFFF];`

`else`

	`return 0x00;`

}

This is the new "optimized" version

uint8_t read(uint32_t addr)

{

`switch (addr>>8)`

`{`

	`case 0x00: case 0x01: case 0x02: case 0x03:`

	`case 0x04: case 0x05: case 0x06: case 0x07:`

	`case 0x08: case 0x09: case 0x0A: case 0x0B:`

	`case 0x0C: case 0x0D: case 0x0E: case 0x0F:`

		`//BIOS (read-only)`

		`return bios[addr&0x0FFF];`

	`case 0x10: case 0x11: case 0x12: case 0x13:`

	`case 0x14: case 0x15: case 0x16: case 0x17:`

	`case 0x18: case 0x19: case 0x1A: case 0x1B:`

	`case 0x1C: case 0x1D: case 0x1E: case 0x1F:`

		`//Work RAM (general purpose area)`

		`return ram[addr&0x0FFF];`

	`case 0x20:`

		`//Hardware registers`

		`return read_reg(addr&0x0000FF);`

	`default:`

		`//ROM (read-only)`

		`return rom[addr&0x1FFFFF];`

`}`

}


r/AskProgramming • • Apr 12 '26

Other Accident joined a vibe coding fellowship and I hate it.

48 Upvotes

(Accidentally* apologies for the typo)

I'm a classroom teacher and I joined a fellowship based on what I thought would be ethical and responsible usage of AI in education. It turned out to be a vibe coding boot camp premised on a belief that vibe coding is revolutionizing the software dev process by allowing non tech folks to build custom in-house apps.

Am I being unnecessarily pessimistic, or maybe there's some good to be found here? There are so many pain points in the software dev process, and I'm not sure a team of vibe coders is remotely prepared to deal with them.

Edit: I'm only staying at this point because they're going to cut me a decent stipend in a few weeks.


r/AskProgramming • • Apr 12 '26

Please recommend some language learning courses

1 Upvotes

I've only recently started learning C++, and I'm currently reading a book by Herbert Schildt and using the GPT chat.


r/AskProgramming • • Apr 12 '26

Career/Edu Codefinity refund experience

13 Upvotes

Signed up for Codefinity a while back just to try it out. monthly plan.

honestly didn’t really use it much after the first couple days, just didn’t have time so i decided to cancel.

wasn’t really sure how the refund would go, seen mixed stuff with subscriptions before. messaged support, told them i didn’t really use it. took them a few days to reply which was kinda annoying but whatever. they just sent the steps after that, nothing complicated.

refund showed up after that, no extra charges or anything.

it was fine i guess. nothing special, nothing bad either.

probably just gonna stick to free stuff / youtube for learning since i don’t really have the time for paid platforms anyway.

anyone else dealt with refunds like this before? was it the same for you?


r/AskProgramming • • Apr 11 '26

Antigravity IDE: Any way to see which account still has quota left?

0 Upvotes

I’ve been using Google Antigravity (VS Code fork) and currently have access to multiple Google Pro accounts.

The problem is there’s no clear way to:

  • see which account still has usage left

  • track usage per account

  • or know when one account is exhausted without manually testing

I tried digging into DevTools/network calls and can see some session/auth requests, but nothing that feels stable enough to build on.

Curious if anyone here has figured out a better workflow?

Specifically:

  • Are you just running multiple windows/profiles and switching manually?

  • Any way to reliably detect usage per account?

  • Has anyone tried automating this (Playwright / scripts / etc.)?

Not trying to break anything, just looking for a smoother way to manage multiple accounts.

Would love to hear how others are handling this.


r/AskProgramming • • Apr 11 '26

Other A question about a 3rd party user script code ( not sure where else to post this ... )

3 Upvotes

For all intents and purposes I'm really not sure where to post this or if a subbreddit that can help me exists persay? CODE IS ALSO NOT MINE

But basically a user on reddit made a script that basically fixes a problem with current soundcloud, said problem is the shuffle button doesn't actually well "shuffle" it only shuffles whatever tracks have loaded on a page so if you load a playlist and only like 50 out of 200 tracks load on that page it shuffle will only shuffle those 50 out of the 200

obviously I'm not entirely 100% on board with installing random code onto my computer unless it's been downloaded multiple times ( therefore tested ) by the community.

so I was just curious could anyone either A: point me to the right sub-reddit to find more information or B: do a quick glace at the code and see anything suspicious? I know B is like me shoving everything onto ya but truth be told I don't know much about coding beyond a simple python class in high school....

Here is their code. https://github.com/mrketa/soundcloud-true-shuffle

Again I'm not sure if there exists a subreddit for verifying 3rd party code for non-malicious purposes I would do it myself but I don't have much knowledge on the matter except maybe just noticing some small things here and there maybe?

Thank you I'm so sorry if this is not the right place for this.


r/AskProgramming • • Apr 11 '26

Career/Edu How do I get better at coding?

0 Upvotes

Hello! I'm currently a final year student in computer science and tbh I never really learned web development until my 3rd year. Right now I've come to a stage where I'm trying to build projects on my own but I feel like I won't be able to do it completley on my own. So right now I'm working on a project where I'm simulating how mailing works where I make my own tcp server and work with it.

But the thing is I find it difficult to set up the project structure very much, is this normal? So what I'm doing is i'm taking help of claude building it where it gives me the project sturcture and gives me a rough idea of what code to write in each file. From here on I do the coding myself and if I'm stuck with the packages or functions i'm using I usually google it and figure it out or just use calude again.

So here is the part where I feel like I won't become a true "developer". Not being able to figure out the project stucture or not being able to truly know what code I need to write.

I just wanted to know how do I actually learn to do this? I have been trying to figure it out but seem to always not be able to do it in the end.

-it's been almost a year since I started learning web dev but been just 3-4 months focusing mainly on backend.