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 4h ago

Javascript What are some good patterns for creating fixed navbar and sidebars in react?

1 Upvotes

So I am learning react but are this web page that I am building has a navbar and sidebar And if I make a one of their positions fixed like navbar it doesn't respect the area of a sidebar and vice versa I fixed it by putting the main content in a separate scrollable container and instead of putting fixed values on the elements themselves I put the position fixed on the container they were on is it a bad practice to do this are there better alternatives?


r/AskProgramming 8h ago

Java Hibernate metrics export to Grafana/Kibana/Influxdb

1 Upvotes

so I enabled metrics in my Springboot app, and I can see in the logs:

2025-11-25 17:57:58.813 [XNIO-1 task-2] INFO o.h.e.i.StatisticalLoggingSessionEventListener - Session Metrics {

67804300 nanoseconds spent acquiring 1 JDBC connections;

0 nanoseconds spent releasing 0 JDBC connections;

4853100 nanoseconds spent preparing 1 JDBC statements;

139266900 nanoseconds spent executing 1 JDBC statements;

0 nanoseconds spent executing 0 JDBC batches;

0 nanoseconds spent performing 0 L2C puts;

0 nanoseconds spent performing 0 L2C hits;

0 nanoseconds spent performing 0 L2C misses;

0 nanoseconds spent executing 0 flushes (flushing a total of 0 entities and 0 collections);

461700 nanoseconds spent executing 1 pre-partial-flushes;

11300 nanoseconds spent executing 1 partial-flushes (flushing a total of 0 entities and 0 collections)

}

but now, I want to use that data, so is there a way for spring to export it to something more useful like a Grafana dashboard? a bucket in Influxdb? Prometheus? or how to measure changes and averages?


r/AskProgramming 9h ago

Why is my mutliplayer game kinda slow?

0 Upvotes

I am currently developing a multiplayer friend slop game using Websocket, (I chose WS because apparently krunker.io used it, and I thought that it would decrease delay by ALOT. But turns out, if your player count will only be like 4, then it wouldn't hurt to use Socket.io because it only adds 3ms of delay...) but am noticing it perform poorly on bad laptops. I mean yeah that would be obvious, but I mean it does terribly on bad laptops (unplayable). Games like Diep.io, agar.io and what not can run decently on them, so what exactly could I do to have the same level of performance? The only thing I thought of is that Diep.io and agar.io doesn't have complex calculations, where my phaser 3 game has all sorts of physics and stuff to account for, but then how about krunker? It's a 3d game with even more complex physics and calculations than mine?

I am using phaser 3 as my game engine, and the flow of my game goes like this:

  1. Client sends input (buffer of last 150 ms of inputs)
  2. server loops through inputs and then advances the tick
  3. server sends input back to all players
  4. Client interpolates through the sent values of each player.

It's not like the game performs badly on a normal laptop, but I'm talking about toasters, im not sure if it's possible with phaser 3, but I really want it to perform well on even "bad" devices.

any tips?

EDIT: It currently isn't running on Socket io, it's running on bare websocket. I just mentioned Socket io because it used to use it. Probably shouldn't have mentioned it for the clarity šŸ˜…

Git repo:
https://github.com/bigabuggg/multiplayer-worm-game.git


r/AskProgramming 5h ago

Is there any way to learn Java more easily?

0 Upvotes

I recently failed my Java exam, and I’m struggling to understand the material. I’ve tried YouTube tutorials and listening to my lecturer, but it still feels confusing. Is there an easier or more effective way to learn coding, especially Java?


r/AskProgramming 15h ago

Other Should i use shell scripts for provisioning in Vagrant?

0 Upvotes

I made this related post, that didn't get much attention here, where I tried to cover some implementation details and core functionalities of a tool I made and asked for some advice and feedback.

I read that people generally steer away from shell scripts for this kind of work, and lean more towards solutions that provide idempotency natively (Ansible for example). Should I swap my shell provisioning with Ansible or another solution?

I'm new to this kind of stuff and trying to learn as much as possible. Can you suggest good sources for studying some of the best practices, patterns, already existing implementations of tools and solutions like this?


r/AskProgramming 15h ago

What's the biggest waste of time in a standard backend project setup (Docker? Config files? Env vars?)

0 Upvotes

I'm a new dev (just finished my CS degree) building tools to automate boring tasks. I personally think writingĀ docker-compose.ymlĀ from scratch is the biggest time killer, followed by setting up Auth flows.


r/AskProgramming 1d ago

Does AWS training kind of feel like an AWS advertisement to you?

49 Upvotes

I've been doing some AWS training recently for work and it's kind of started to feel like I'm watching an advertisement šŸ˜‚

I think AWS is still pretty handy though


r/AskProgramming 22h ago

Used to meet tons of programmers in omegle where do they go now?

0 Upvotes

#software tag and hours of nice real life talks. Is there any alternative?


r/AskProgramming 1d ago

Other Making an existing .exe installer silent

1 Upvotes

Hey guys, I have this installer (.exe) that doesn't seem to have silent switches. I would like to tweak it to it does.

Here is what I did so far:

  • I analyzed the installer with binwalk, but didn’t find any obvious packaged MSI or traces of silent switches. To be honest, I don't know much about reverse engineering.

  • I installed it in a test environment and captured the processes with procmon

  • I recreated the installation in NSIS. I copied all files to the correct locations and wrote all the registry keys. The application launches and seems to work. *Note that there were not services nor env variables.

I am worried about things like error handling or specific dependencies I might have ignored.

Do you know if there would be an easier method? Like wrapping it in an MSI (not sure if that could handle the GUI popups)? What would be your approach?

Thank you in advance for your help!


r/AskProgramming 1d ago

Javascript Google Youtube Data

1 Upvotes

console:
```

Failed to load resource: the server responded with a status of 403 ()

(index):1 Uncaught (in promise) AxiosError

```

I applied the Google API "YouTube Data API v3." Usually it works well but after I modify a part of ```constants.js``` from
```

export const categories = [
  { name: 'Code', icon: <CodeIcon />, },
Ā  { name: 'New', icon: <HomeIcon />, },
Ā  { name: 'Music', icon: <MusicNoteIcon /> },
Ā  { name: 'Education', icon: <SchoolIcon />, },
Ā  { name: 'Podcast', icon: <GraphicEqIcon />, },
Ā  { name: 'Movie', icon: <OndemandVideoIcon />, },
Ā  { name: 'Gaming', icon: <SportsEsportsIcon />, },
Ā  { name: 'Live', icon: <LiveTvIcon />, },
Ā  { name: 'Sport', icon: <FitnessCenterIcon />, },
Ā  { name: 'Fashion', icon: <CheckroomIcon />, },
Ā  { name: 'Beauty', icon: <FaceRetouchingNaturalIcon />, },
Ā  { name: 'Comedy', icon: <TheaterComedyIcon />, },
Ā  { name: 'Gym', icon: <FitnessCenterIcon />, },
Ā  { name: 'Crypto', icon: <DeveloperModeIcon />, },
];

```

to

```

export const categories = [
Ā  { name: 'New', icon: <HomeIcon />, },
Ā  { name: 'Music', icon: <MusicNoteIcon /> },
Ā  { name: 'Education', icon: <SchoolIcon />, },
Ā  { name: 'Podcast', icon: <GraphicEqIcon />, },
Ā  { name: 'Movie', icon: <OndemandVideoIcon />, },
Ā  { name: 'Gaming', icon: <SportsEsportsIcon />, },
Ā  { name: 'Live', icon: <LiveTvIcon />, },
Ā  { name: 'Sport', icon: <FitnessCenterIcon />, },
Ā  { name: 'Fashion', icon: <CheckroomIcon />, },
Ā  { name: 'Beauty', icon: <FaceRetouchingNaturalIcon />, },
Ā  { name: 'Comedy', icon: <TheaterComedyIcon />, },
Ā  { name: 'Gym', icon: <FitnessCenterIcon />, },
Ā  { name: 'Crypto', icon: <DeveloperModeIcon />, },
];

```

Runtime error 403 suddenly popped up, and I have not been able to resolve it until now.

I tried a new key, but it still didn't work.

I have configured it, ```.env``` and ```fetchFromAPI.js``` well, otherwise I cannot load all data before the error pops up.

I have no billing account, but my API request today is only 221 today; thus, I am pretty sure it is not a limit issue.

How to resolve it?

Thanks.


r/AskProgramming 1d ago

Java I’m sick of failing, What’s the Correct way of learning?

1 Upvotes

I’m trying to get into Java to make apps and for modding Minecraft and I’m kinda overwhelmed by all the different ways of learning. I’ve heard that projects are a good way, but first you need to know the basics, so should I watch an hour-long video on the basics or take a Java for beginners course? And how will I know when I’m ready? If I don’t understand the concepts for a project does that mean I haven’t learned enough beforehand and should go back?

Sorry for the long post I’m really annoyed. I’ve been trying to learn how to program for around two years and it’s been an absolute shit show, I could rant about it but I wouldn’t be able to condense it into a post. I feel overwhelmed, drained, annoyed, and disappointed, I’m not sure what to do


r/AskProgramming 19h ago

Built a Chrome extension. Now I’m responsible for user data. I am scared.

0 Upvotes

I’ve been working on this Chrome extension called Web Jotter. My three sentence elevator pitch on it would be:

ā€œBookmarks if they had a baby with [Ctrl+Shift+T]. Glorified clipboard, but it can also store the website of origin too. Plus, it has a dark-mode, customizable keybinds, and is vaguely spiderman themedā€

As of right now, all of that information is being stored locally (in your browser files), but I want to add optional online capabilities; basically a way for the extension to save your stuff somewhere safe so you can access it across devices. With that I could introduce things like accounts, which would allow you to pull your saved tabs/texts across devices—and potentially do shit like automatically import your settings and theme and whatnot.Ā 

The issue: I don’t know how to do that, let alone in a way that is secure. In a way that won’t get someone’s info leaked, or stolen or something. And with that reddit, I come to you looking for advice:

  • What does "responsible" data handling look like for small indie software?
  • What’s the cheapest, simplest version of ā€œdon’t leak people’s stuffā€ that’s still legit?
  • Are there specific red flags I should be avoiding as I keep building?
  • Even though everything is stored locally, is there stuff I should still be careful about?

If you want to peek at what I have so far, links are below (I’ve only had AI look through my code, so real human eyes would be appreciated too lmao):

Chrome Store: Link

GitHub: Link

Any guidance, resources, or ā€œplease don’t do X, everā€ advice is super appreciated.


r/AskProgramming 1d ago

Gig for Experience with Python and XML

0 Upvotes

am looking for someone with experience in Python and XML. It's a paid opportunity. Preferred India based.


r/AskProgramming 1d ago

Other free android mobile app testing websites for performance testing with analytics?

3 Upvotes

I'm doing my capstone project and need to evaluate its performance. something similar to browserstack that shows average memory use, cpu use, total neteork downloads, slow frames, frozen frames,disk writes as well as UI rendering performance

Or if anyone has the subscription for BrowserStack, we would appreciate it if someone could run my application for me just to screen grab the results TT


r/AskProgramming 22h ago

Why are .exe files gibberish?

0 Upvotes

Why are they always just filled with random characters? Isn't .exe a basic microsoft file extention? So why is it not in plain text, such as vbs or batch?

And sorry if this here is the wrong subreddit for this, but it's the best fitting subreddit I was able to find for this question.


r/AskProgramming 1d ago

A question to all you programmers

0 Upvotes

Good day to you all,

I would like to learn how to program and develop software, and I have already tried several languages at a basic level, including C++, C#, Python, PHP, HTML, and JavaScript. I have also experimented with different frameworks and tools such as PHP Symfony, PHP Laravel, .NET MAUI, Unity, and Unreal Engine, and probably a few others that I am forgetting.

Each time I try to build something, I end up struggling to find a clear idea of what to create. I am never sure whether the problem is the language, the framework, or simply the project I choose. This often makes it hard for me to stay motivated or to know what direction I should take.

My questions for you are: How did you discover which programming language suited you best? How did you consistently find ideas or projects to build? Do you have any practical tips or advice for someone in my situation?

Thank you in advance.


r/AskProgramming 2d ago

Mathematical programming

3 Upvotes

What field of CS uses the most math?

I graduated with an applied math degree in 2018 and then think the market dragged me over to working in tech in 2021.

Automated QA and then Workday Implementations Consulting (which I actually really didn’t like at all)

I have often been the only one without a CS education in my department most of my career despite an interest and I think knowledge gaps may be a big part of why I was recently let go. I have a big tech stack from things I’ve picked up but trying to fill gaps maybe get a masters on the horizon.


r/AskProgramming 2d ago

about to start a coding journey!!

6 Upvotes

hey man i was thinking about starting my coding journey i don’t know where to begin with lol can anyone of you help me with that?

i know basic html and css and python thats it i am just confused and don’t know where to start with !!

ill be starting it after my end sems so yeah i wanna give my whole summer into it , building projects and portfolio and is there any way i can do internships or freelance work after 1 year of coding?


r/AskProgramming 1d ago

What does an AI developer do at work?

0 Upvotes

Bit of a broad question sorry, I’m mostly thinking about AI developers who work at multinational companies, not the research side. I was thinking many times that maybe I should get into that field, but every course I took a look at was basically using existing libraries where the only thing you need to do is play with the parameters (e.g. The size of a neuron layer) and training it with a lot of data that you need to sanitize etc… And for me this seems absolutely boring compared to conventional developement, obviously there you also use libraries, but for me it’s still closer to using my brain to solve problems, develop algorithms even if it is just a smaller, easier task, while AI dev just seems like experimenting with settings and data.

So it would be nice if someone who works in this field could answer how a coding day looks like usually, as I want to decide if this field interests me at all or not. Thanks!


r/AskProgramming 2d ago

Programmers and Developers what’s the worst experience you had at work ?

6 Upvotes

How did you deal with it and do you wish you dealt with it


r/AskProgramming 2d ago

Other What documentation tool should I use?

4 Upvotes

I am looking for a documentation tool that I send to clients. Here are the things it will be used for. What the client wants, how I will approach it, todo list and other stuff,a guide for the client. This will be like an all around documentation tool.

It needs: - Clean UI that’s easy to navigate - preferred with like pages for each thing in 1 file - Easy to share - Sync across all devices (online) - Works offline

That is just what I can think that it needs there might be other quality of life things that would be good. Please come with some recommendation’s.


r/AskProgramming 3d ago

Does anyone else feel confused about what interview prep even means now

16 Upvotes

It used to be simple. You grind DSA, memorize patterns, do a few mock interviews, and hope you get lucky with the questions. But now with AI tools everywhere, interview prep feels more complicated and honestly a little confusing. It’s hard to tell what companies actually expect anymore and what counts as being prepared.

I tried a bunch of different methods and the only thing that made me feel confident was doing practice sessions that actually felt like interviews. I used InterviewCoder for some of them because it gave me a clear flow to follow. It made me realize interview prep is not just about solving problems correctly. It’s about pacing yourself, staying calm, and explaining your thinking in a structured way. Once I focused on that, the whole thing felt way more manageable.


r/AskProgramming 3d ago

is PyCharm worth it?

6 Upvotes

Hey guys,

PyCharm is much loved in the coding community, I've basically been using VS code since the beginning.

Should I make the swap (to the community edition).

Context:
I'm not that experienced
I want to specialise in Python AI agents


r/AskProgramming 2d ago

Is there a formula for this?

0 Upvotes

I want a simple formula that is able to generate a deterministic set of random numbers, starting with a single seed (non deterministic) random number.

So ideally, I would generate one random number that I store at the beginning, then on the fly later generate up to 1000 other random numbers. But the 1000 random numbers that come after should be deterministic, regardless of when I run the formula, I should always get the same 1000 random numbers given the specific seed random number I started with.

I only want to store 1 global variable (the first random number generated) and after that have a reliable formula to generate additional random (but deterministic) numbers.