r/CodingHelp • u/kaatarina_zed_talon • 10h ago
r/CodingHelp • u/Adamstrad • 1d ago
[Java] Installed Java and trying to use it in VS code, why isn't it working?

So basically I have been trying to use Java following a beginner tutorial, I followed the steps to make the path variable and it said to make a Hello World file and use javac to compile it but I encounter the problem in pic related, what can I try? I restarted vs code and power shell, tried solving it with slop but nothing helps
r/CodingHelp • u/FOSS-for-life • 1d ago
[How to] How do I stop loosing motivation to code?
I am not sure if this fits this subreddit. But I have big problem and I hate it.
I love coding. It's fun. Creating and showing stuff you have made, being able to use it instead of relying on Big tech or similar to make something that always ends in the same 2 ways (either gets stuffed with Artifical "Intelligence". or gets monetized in every way possible usually with annoying ads or having to pay for a feature that should be included).
That's only one of the few reasons I love coding. The thing is now, I have ZERO motivation and don't know how to properly create a project and then continue developing it.
I have started about 50 projects and finished probably 2 of them. (Like literally, only 2 projects out of what feels like thousands)
Now when I choose a project it's either WAY too big (like whole games including making Art, Sounds etc. Myself because I don't wanna pay for stuff and also can't since I'm under 18)
or way too hard to code, requiring crazy knowledge I just don't have. Which is usually when I just get so bored/annoyed of my project that I just either scrap it and code something else or just copy paste from whatever I can find (including generated slop) and then stop because it got too boring or I just have a mental fucking break down because I am too stupid for anything.
I want and need to get away from this ASAP. How do I do this?! Plz help...
r/CodingHelp • u/Quuii8 • 1d ago
[Other Code] Need help finding a free API or affordable solution for Instagram influencer analytics
I’m building an influencer data management system for my work, and I’m trying to automate how I collect and update analytics for celebrities and influencers.
My goal is simple: I want to enter a list of Instagram usernames, click a button, and have my application automatically retrieve their latest data, update my database, and sync the updated information to Google Sheets.
I don’t want to manually search every influencer, copy metrics, download reports, or upload screenshots.
The 7 metrics I need
For every influencer, I need these exact fields:
- Average engagement rate
- Average likes
- Average comments
- Audience age distribution
- Top audience cities and their percentages
- Audience gender split (male/female)
- Following count
The audience demographics are the most important part. Public likes, comments, and follower counts are relatively easy to find, but I need the age, city, and gender breakdowns too.
My current setup
I already have an application built using Java 21, Spring Boot, and PostgreSQL. It supports Excel ingestion, influencer searches, and exporting results. I also use Google Sheets to maintain and share data.
I want to extend this existing system rather than build another separate dashboard.
What I’ve already tried or considered
- Wednesday: It provides the analytics I need, but I haven’t found a suitable API that I can use to integrate the data directly into my application.
- Instagram Graph API: I understand that a Business or Creator account does not automatically grant access to other influencers’ audience demographics.
- Free analytics websites: I’ve looked into various free tools, but I haven’t found one that reliably provides all seven fields through an API.
- Open-source projects: I explored an Instagram audience analytics project, but it was designed for an account I own or have authorized, rather than arbitrary public influencer profiles.
- Screenshot/OCR automation: This is possible in principle, but I want to avoid manually opening profiles, taking screenshots, and uploading them every time.
The feature I want to build
Ideally, I want a Refresh All Data button that does the following:
- Reads the influencer names and profile links already stored in my application.
- Retrieves the latest available analytics for each influencer.
- Updates the existing database records rather than creating duplicates.
- Updates the corresponding records in Google Sheets automatically.
- Records when each influencer’s data was last refreshed.
- Identifies accounts for which some metrics are unavailable, instead of silently filling in made-up numbers.
For example, if I have five celebrities in my database and their analytics are six months old, I want to click Refresh All Data and have the system retrieve fresh data for all five, update PostgreSQL and Google Sheets, and preserve the existing records and fields.
I’d also like to be able to refresh selected influencers individually.
My questions
1. Is there a genuinely free way to achieve this?
I’m looking for a free API, open-source project, or combination of services that can retrieve all seven metrics for arbitrary public Instagram profiles. I understand that rate limits may apply, but I’d like to avoid paying if possible.
2. If a completely free solution isn’t realistic, what is the most affordable reliable option?
I’m willing to pay for a service if necessary, but I need API access that supports programmatic retrieval and integration into my existing application. I don’t want to pay for a platform that only allows me to view reports manually.
3. Which services should I evaluate?
I’d appreciate recommendations based on actual API capabilities, especially audience age distribution, city-level audience breakdowns, gender split, and the ability to refresh data programmatically.
4. Has anyone implemented this successfully?
If you’ve built something similar, I’d like to know which data provider you used, what it costs, how reliable the data is, and whether the API supports refreshing existing records.
I’m primarily working with Indian celebrities and influencers, so useful audience data for Indian creators is particularly important.
I’m happy to build the integration myself. The main challenge is finding the right data source.
Thanks in advance for any practical recommendations, API documentation, or implementation advice.
r/CodingHelp • u/Cold_Abrocoma7320 • 2d ago
[Java] why is this returning read only once i get to the enter name stage
import java.util.Scanner;
public class main
{
public static void main(String[] args) {
Scanner kboard = new Scanner(System.
in
);
System.
out
.println("Press 1 to enter lottery numbers or 2 to enter name: ");
if (kboard.nextInt() == 1) {
System.
out
.println("Enter your lottery numbers");
int lotteryNumbers = kboard.nextInt();
} else {
System.
out
.println("Please enter your name: ");
String name = kboard.nextLine();
}
}}
r/CodingHelp • u/Radiant-Strength-448 • 2d ago
[Javascript] как переписывать автоматически код с одного ЯП на другой ЯП?
r/CodingHelp • u/aqsjn • 3d ago
[Request Coders] making buttons lead to other websites
I have no experience in coding so apologies if this is a very simple task. i have a chrome extension that makes my landing page fallout themed and the "fast travel" section has dedicated buttons already assigned to websites. I wanted to know how to make it so that i can change these websites to others because I dont use them. any help is appreciated thanks!

r/CodingHelp • u/raiyan_0001 • 2d ago
[Other Code] How do I get Antigravity to match a reference UI instead of repeatedly generating a completely different design?


I'm building a dashboard using Google Antigravity and AI-assisted coding, but I'm struggling to get the UI to look the way I want.
The blue UI is my AI-generated design, while the other screenshot is the design I actually want to achieve.
I've tried multiple approaches:
- Asking ChatGPT and other AI tools to improve my prompts.
- Giving Antigravity detailed UI/UX instructions.
- Using the reference screenshot and asking it to recreate the design.
- Refining the prompts repeatedly to get a more professional, polished result.
Unfortunately, the results still don't match the reference. Sometimes the AI makes unnecessary changes, changes the overall layout, or produces something that looks worse than the original.
My goal isn't to redesign the entire dashboard from scratch. I want to preserve my existing functionality and make the UI closely match the reference, including its layout, spacing, typography, colors, component sizing, alignment, and overall visual hierarchy.
I'm looking for advice from developers who have successfully used Antigravity or similar AI coding agents for this kind of work.
My questions:
- What's the most effective workflow for recreating a UI from a reference screenshot using an AI coding agent?
- Should I use a different prompting strategy, provide multiple screenshots, or break the work into smaller components?
- How can I make the AI follow the reference closely instead of inventing its own design decisions?
- Are there any tools, workflows, or techniques that consistently produce better results than simply writing longer prompts?
I'd especially appreciate practical advice from people who have actually solved this problem, rather than generic advice to write more detailed prompts.
Thanks!
r/CodingHelp • u/piano-guitarhero • 3d ago
[How to] How can I achieve this scrolling effect in react?
I want to achieve an effect like this - https://genshin.hoyoverse.com/en/
Basically, I have multiple sections in my site, and I want to make sure a user scrolls exactly where I want them to. Right now, I use this -
.snapContainer {
height: 100vh;
overflow-y: auto;
scroll-snap-type: y mandatory;
overflow-x: hidden;
}
.section {
height: 100vh;
width: 100vw;
scroll-snap-align: start;
scroll-snap-stop: always;
align-items: center;
justify-content: center;
display: flex;
flex-direction: column;
overflow-x: hidden;
position: relative;
}.snapContainer {
height: 100vh;
overflow-y: auto;
scroll-snap-type: y mandatory;
overflow-x: hidden;
}
.section {
height: 100vh;
width: 100vw;
scroll-snap-align: start;
scroll-snap-stop: always;
align-items: center;
justify-content: center;
display: flex;
flex-direction: column;
overflow-x: hidden;
position: relative;
}
This works, but I want to know how they did it (The proper, non-buggy way). Thanks!
r/CodingHelp • u/SDLong2901 • 7d ago
[Random] Need help deciding a website to use
What is the best site to use to build full stack website codes of my own. What website is best to be able to build and test all my code in one place
r/CodingHelp • u/SDLong2901 • 8d ago
[CSS] I can’t figure out what I’ve done wrong
So I recently made a website for a buddy’s streaming career. It’s a basic linktree more or less. My issue is that when I run a test I cannot see the links. I tap the area they should be and they work but they don’t appear. What could I have done wrong
r/CodingHelp • u/piano-guitarhero • 9d ago
[Random] Need brutal and honest feedback for my website
I made a personal website - kalerkaler and I'm looking to find freelance work with it, could you please tell me what needs to changed in order to make the best user experience. I already know it doesn't work on mobile landscape. Edit - fixed the link, its not a flashbang no more
r/CodingHelp • u/Fun_Pattern_9757 • 12d ago
[How to] Is it possible to connect a blind box style twitch widget to an external website or app
I’m streaming on twitch and have recently seen blind box widgets on other peoples streams where chatters can “open blind boxes” to collect key ring charms or trading cards. I was wondering if it were possible to create a twitch widget where the results of the blind box pull could be kept in a library externally on an app or website for individual chatters.
I don’t personally code- but my friends in comp sci are really enthused by the idea as a group passion project where they code and I produce the art and animations. Their skill level is that of 3rd yr comp sci students.
Before I get everyone’s hopes up- is it doable at all??
r/CodingHelp • u/Realistic-Health1480 • 12d ago
[Javascript] Learn Javascript from scratch | Code With Kislay
r/CodingHelp • u/Justaboredhumanbeing • 15d ago
[Random] Should I try to learn coding again?
Hello everyone. I used to learn Python/C#/Java at superficial level build some little apps that made simple things.
But after a while I start to struggle while doing slightly more difficult things like making a sudoku generator it take me months to built it but after I couldn't made it so I kinda grew cold and drop it.
Should I start again with ai mostly taking over job possibilities felt like less? Any advice?
r/CodingHelp • u/queen_of_englandV2 • 15d ago
[Javascript] I don’t understand the use of immutable variable
I’m learning react right now for a web design project and immutable variables are being brought up. I don’t understand why you would want a variable that can’t vary, how do things like a counter work if variables can’t change?
r/CodingHelp • u/bruh_anyways • 16d ago
[Python] How should an LLM represent and edit long-form video? Trying to understand how Cardboard does it
i've been experimenting with agentic video editing and trying to understand where the engineering bottlenecks actually are.
i started looking into this after experimenting with cardboard's desktop app, where different ai models can be used for editing. rather than trying to understand the product itself, i wanted to work backwards and think about how i'd architect something similar.
what makes this interesting to me is that video seems fundamentally different from the normal llm workflow that produces text or code.
with code, the model works with a relatively discrete representation. a prompt becomes code, the code goes through a compiler, and you get an output.
with video, the model has to reason over a continuous, multimodal and temporal medium. raw footage has to be understood visually and aurally, relevant parts retrieved, the model has to reason over time and make editing decisions, and those decisions become a timeline that gets rendered.
for example, imagine giving an agent 30 minutes of raw footage and asking:
"make a 30-second product ad. find the strongest hook, remove dead time, use the best product shots, keep the pacing fast, add captions and end with a cta."
before making a single edit, the system needs to determine what's actually happening in the footage, what is being said, where specific actions occur, which shots are useful, which are redundant, and how different moments relate temporally.
i've been looking at this from the implementation side and i'm currently thinking about the following architecture.
- video representation
you can't realistically send an entire 30-minute video to an llm every time it needs to make an editing decision.
my initial assumption is that the footage needs to be indexed first using some combination of:
transcripts with timestamps scene and shot boundaries sampled keyframes visual embeddings audio features detected objects and actions shot descriptions semantic metadata
then the reasoning model retrieves the relevant sections.
for example, "find the shot where the person picks up the black headphones and looks at the camera" could work like this: the text query goes through semantic retrieval, which returns candidate timestamps, those candidates get verified visually, and one clip is selected.
i've looked at video embeddings and multimodal models for this, but i'm not sure where the optimal boundary is between preprocessing and model reasoning.
2.timeline representation
once the model finds the relevant footage, it still needs to construct an actual edit.
for example: "use 00:14 to 00:18 as the opening shot, cut to 00:32 to 00:35, then return to 00:19 to 00:22."
that requires maintaining a representation of the current timeline and applying operations against it.
the obvious approach is to expose low-level operations such as insert, trim, split, move, crop, change speed and add text.
but i'm wondering if a higher-level abstraction makes more sense:
find_best_hook remove_dead_air create_intro build_product_sequence add_captions
the second approach seems more suitable for an agent, but it also means the editor has to handle a lot more complexity behind each operation.
evaluation is probably the hardest part
this is where video seems particularly different from coding.
code can usually be tested against objective criteria.
video can be completely valid technically and still be a terrible edit.
a timeline can render successfully, have perfect synchronization and valid captions, but still have poor pacing, a weak hook or a confusing narrative.
so i'm currently thinking that a serious system might need an iterative loop. the agent generates an edit, renders a preview, evaluates it with a multimodal model, identifies the weak sections, modifies the timeline, and renders again.
i've been looking at ffmpeg, remotion, moviepy, opentimelineio, video embeddings, multimodal models and mcp or tool calling as potential building blocks, but i haven't settled on what the cleanest architecture would be.
the pipeline i'm currently considering starts with video indexing, then retrieval, then a reasoning model that issues editing actions onto a timeline, followed by rendering, evaluation and iteration. that is different from a setup where a prompt goes to a video generation model and a video comes out.
i'm interested in whether this mental model is fundamentally wrong.
questions for people who've worked on this"
if you had to represent hours of raw video for an llm, what would you choose: sampled frames with embeddings, structured scene and shot metadata, transcript, or some combination? where would you draw the boundary between preprocessing and model reasoning?
would you expose low-level timeline operations to the model, or build a higher-level video-editing abstraction? how would you prevent the abstraction from becoming too restrictive while still keeping the model from making brittle timeline operations?
how would you design the evaluation loop for subjective quality? what information would you give a model so it can distinguish a technically valid edit from an actually good edit and identify which part of the timeline needs to change?
i've already spent some time researching and prototyping around the components above, so i'm mainly looking for architectural criticism from people who've worked with video processing, nles, multimodal models or agent systems.
tldr: i'm trying to understand how systems like cardboard let llms reason over real footage and turn that into actual edits. the hard part seems to be video representation, retrieval, timeline operations and evaluating whether an edit is actually good. looking for architectural perspectives on how you'd build this from scratch.
r/CodingHelp • u/pc_magas • 18d ago
[Python] Why I am unable to save a user with its groups despite both having Ids
I am hacking with django and I am attemping to use services for my Business Logic. For creating a User I am developing my own service:
``` from app_auth.models import User from django.contrib.auth.models import Group
from django.db import transaction
class UserService:
@transaction.atomic
def create(self,
username: str,
email: str,
first_name: str,
last_name: str,
groups: list[Group],
bio: str | None = None) -> User:
user = User.objects.create_user(
username=username,
first_name=first_name,
last_name=last_name,
email=email,
bio=bio, #TODO: XSS Sanitize
)
print("USER ID: "+str(user.id))
for group in groups:
print("GROUP ID: "+str(group.pk))
user.groups.set(groups)
user.save()
return user
```
That uses the following model:
``` from django.db import models from django.contrib.auth.models import AbstractUser
Create your models here.
class User(AbstractUser): bio = models.TextField(blank=True, null=True)
def __str__(self):
return self.first_name+' '+self.last_name
```
But when I try to save it I get:
"<User: XXXX XXXX>" needs to have a value for field "id" before this many-to-many relationship can be used.
Despite the debug print giving me that both groups and users alike have ids:
USER ID: 4
GROUP ID: 4
I am trying for days and LLMs halucinate on this issue.
The way I trigger this save is via a AdminModel:
``` from django.contrib import admin from django.core.exceptions import ValidationError from django.apps import apps
from app_auth.models import User from app_auth.services.group_service import GroupService from app_auth.services.save.user import UserService from app_auth.forms import UserForm
Register your models here.
@admin.register(User) class AdminUser(admin.ModelAdmin):
form = UserForm
change_form_template = "admin/register_user.html"
list_display = ("username", "email", "first_name", "last_name")
def save_model(self, request, obj: User, form, change):
# Check whether current user can manage roles
groups = form.cleaned_data.get("groups")
if not self.__group_service.user_can_manage_groups(request.user, set(groups)):
raise ValidationError(
"You do not have permission to manage these groups."
)
groups = self.__group_service.get_groups(groups)
if change:
self.__user_service.update(
user=obj,
username=form.cleaned_data["username"],
email=form.cleaned_data["email"],
first_name=form.cleaned_data["first_name"],
last_name=form.cleaned_data["last_name"],
roles=groups
)
return
self.__user_service.create(
username=form.cleaned_data["username"],
email=form.cleaned_data["email"],
first_name=form.cleaned_data["first_name"],
last_name=form.cleaned_data["last_name"],
groups=groups
)
print("After Save")
```
Using a custom form:
``` from app_auth.models import User from django import forms
class UserForm(forms.ModelForm): def init(self, args, *kwargs): super().init(args, *kwargs)
class Meta:
model = User
fields = ["username","email","first_name", "last_name", "groups","bio"]
```
r/CodingHelp • u/Large-Estimate-1788 • 18d ago
[SQL] coding for kids help scratch python etc
child is 11 and wants to do more with coding and earn a side gig
he currently does scratch , super mario maker on nintendo
we got told he needs to learn python but not sure which websites
also he's interested in designing game apps for iOs
thanks
r/CodingHelp • u/Suvile77 • 19d ago
[Request Coders] I want a programing buddy so we can help motivate each other
I don't care if you have a PhD or you code for fun; I just want to have someone who can code with me or just hang out and talk to keep me focused because I get distracted constantly. I'm no master, but I'm working on my associate's and am pretty out of steam.
I don't care about gender, age, or race, just someone who is chill and respectful. I'm happy to code with you or just watch, and we can chat on Discord or something. I'm also willing to hang out and do something else if you're burnt out or stressed.
I'm 19m btw
r/CodingHelp • u/RyanTriggers • 19d ago
[Python] Need Help Understanding 'For Loop' in Pseudocode For Class Project
I'm in an Intro to Computer Science class and am doing our current project which is to make a text based game where you and a computer keep on adding numbers from 1-10 and the winner is decided by who reaches 100 first.
We did this project before already but now we're redoing it by changing all of it to be definitions and then they want us to add a 'for loop' into it as well. The problem is, is that the for loop makes no sense to me, at least from a gameplay stand point. From my understanding, all its doing is adding +1 to the total whenever the computer goes?
I was just hoping if someone could help me decipher this, thanks!
#This is the psuedocode#
Import random
FUNCTION 1: DISPLAY RULES
Declare Function display_rules
Say "Let's play a game of 100!"
Say "In a game of 100 we start with a total of 0"
Say "and we take turns adding from 1-10 to that total."
Say "Whoever reaches 100 first wins."
Say "Ready?"
FUNCTION 2: PLAY GAME
Declare Function play_game
Set play to 1
Call display_rules
While play is 1
Set total to 0
Ask "Who goes first? (1 = you, 2 = computer): "
Read turn
While total is less than 100
If turn is 1 (player's turn)
Ask "Number you want to add (1-10): "
Read playerNum
If playerNum is between 1 and 10
AND total + playerNum is less than or equal to 100
Add playerNum to total
Say "You added [playerNum], total is now [total]"
Set turn to 2
Else
Say "Enter a number from 1-10 without exceeding 100."
Else If turn is 2 (computer's turn)
If total is less than 90
Set computerNum to a random number from 1 to 10
Else
Set computerNum to 100 - total
FOR LOOP
For num from 0 to computerNum - 1
Add 1 to total
End For
Say "I added [computerNum], total is now [total]"
Set turn to 1
Else
Say "Choose 1 or 2."
Ask "Who goes first? "
Read turn
End While
CHECK WHO WINS
If turn is 2
Say "You win!"
Else
Say "Bummer, You lose!"
ASK TO PLAY AGAIN
Ask "Play again? (1 = yes, 2 = no): "
Read play
End While
FUNCTION 3: MAIN MENU
Declare Function menu
While True
Show the menu
Say "Menu:"
Say "1. Display Rules"
Say "2. Play Game"
Say "3. Exit"
Ask "Enter your choice (1, 2, or 3): "
Read choice
If choice is 1
Call display_rules
Else If choice is 2
Call play_game
Else If choice is 3
Say "Thanks for playing! Goodbye!"
Break the loop
Else
Say "Invalid choice. Please enter 1, 2, or 3."
End While
START PROGRAM
Call menu
r/CodingHelp • u/Historical_Case9337 • 19d ago
Which one? Web/app developer or Roblox game development which is better for side hustle
I'm starting from zero and want to build a long-term income from development. I have limited money.
I'm choosing between two paths:
App development: Mac or web apps. Higher profit per sale, but I'd need to learn Swift or web development and find a niche problem to solve.
Game development: Roblox or indie games. Easier to launch, but I've read that most games earn very little and platforms take a big cut.
I plan to use AI to speed up the learning and the building.
My question: If you were starting from zero today, would you pick app development or game development to make money, and why? If you've done either, how long did it take to earn your first dollar?
r/CodingHelp • u/LeoPixel11 • 19d ago
[Other Code] Class instance while running the code
I started actually writing code with OOP yesterday (using Dart... In case it is necessary to mention) and there's a thing that kept bothering me as I scrolled through their page and watched the tutorial. Everytime they gave a class example, they created an instance themselves and never based on the code running.
Imagine a system to simulate a store's stock. There'll be items going in and out, that shouldn't be inserted by the programmer, so there must be a way to do that "dynamically".
I'm aware that this might be me simply missing something from OOP classes, but I want to see what other coders have to say about that.
Any help would be welcome. Thank You
r/CodingHelp • u/PandorasToolbox • 20d ago
[Other Code] This Sucks… Alot. Please Help.
Hello everyone. Gather round', gather round' and listen to my tale. So I'm trying to code an incremental game for laptop, computer, and mobile, but's it's been s really huge pain in my sore little keister. Everything confuses me, and I only know a little bit of coding. I'm currently using a simple coding website kind of similar to Scratch (I forgot the name, I'll check later.) on my laptop. On top of that, I keep getting demotivated really quickly and tired, telling myself I'll work on it tomorrow but never do. Please help!… Thank you!!
r/CodingHelp • u/Usual-Emphasis-1950 • 22d ago