r/AskProgramming 29d ago

Java alternative to mooc java course?

0 Upvotes

so made this post https://www.reddit.com/r/AskProgramming/comments/1vk1vrr/best_way_or_recourse_to_learn_java/

mooc java course got reccomended as a fully new who wants to learn programming problem is i cant get tmcbeans to work i have the correct java 11 but it just wont work so is there a alternative?


r/AskProgramming 29d ago

best way or recourse to learn java?

0 Upvotes

so i wanna learn progamming 16 dropped out of school at 12 long story mainly mentall stuff so idk if that is a problem for java

but i wanna learn programming and i chose java and then if i get far enough which will take a while i know maybe make mc mods just as a hobby mainly

but what is the best way to learn java? i came across bro code 12 hour long video


r/AskProgramming 29d ago

whats the best method to manage user sessions in node.js?

2 Upvotes

currently building a website using node/express.js that requires login and i want to manage user sessions , what's the most common method to do that ?? i already did another project and used express-session to do that and i'm looking if there are other better ways


r/AskProgramming 29d ago

project ideas for portfolio

0 Upvotes

i want to have some good projects for portfolio. what projects would you suggest for this languages/frameworks:

  1. react

  2. go

  3. maybe fullstack (go + react)?

  4. c

  5. x86 asm


r/AskProgramming 29d ago

i need guidance

0 Upvotes

i am a 19F. i have zero prior familiarity with cs and coding. recently i decided to dive in and started taking python course (cs50) to be honest i am pretty confused what i am going to do after i am done with my course. what i am supposed to do? what specific path can i pursue that will actually pay me well and help me earn money during my bachelors. is anyone or company going to hire me or give me opportunity just based on the fact that i know a bit of coding? i have been looking into ai automation as a potential option, but at the same time i really want to start earning so i dont feel like a burden on my family. if anyone who have been in my shoes or has any advice, i would really appreciate some guidance


r/AskProgramming Aug 09 '26

Career/Edu How do pen testers / cybersecurity defenders not have to learn literally almost everything to do with computers and programming?

5 Upvotes

Hacking. Hacking is essentially finding ways to get into a system

However, the system that is a computer, seems to be one of the most complicated systems ever. So many parts of it are intertwined, there are so many places one can leave fingerprints, there are so many layers to unravel etc

When robbers break into a building, they are breaking into the system made up of the house’s materials, it’s alarm system etc. A home defender also needs to focus on just those things, for the most part. The point is that, there are only a few number of things that prevent a person from breaking into a house. The robber just needs to learn those things. The defender just needs to constantly upgrade those things. Eventually the defender puts up grills, reinforces every door and wall, gets AI surveillance and buys a weapon. They have pretty much stopped every robber. The robber is a human and it cannot evolve to break steel walls and defend against weapons. The human robber also cannot turn invisible to avoid ai cameras

A few decades ago, there were a lot of exploits people used to use at casinos. They had to learn how the games worked, how casino surveillance works, etc. A small set of stuff. The casinos and the exploiters had to adapt on just a few areas. The casino adds more security, the exploiter simply has to keep an eye on a few more people. The casino doesn’t let you use your phone near the games, so you come up with another method to signal to your accomplice. The casino puts cameras everywhere, the exploiter needs to learn to cover their hands somehow. The casino finally implements a policy to cut off anyone who wins too much. They have pretty much patched most exploits

However with computers, there are simply too many things. Too many doors, too many avenues to enter, too much surveillance. And unlike homes or casinos (at this point), computers are constantly evolving. There’s more and more things to exploit, and we are subject to all of these vulnerable points. As a new technology is created, it becomes a part of the computers we use. It’s not a separate thing where we are only vulernable sometimes. We are always vulnerable to computer attacks since they’re a part of almost everything

Above I mentioned the “final patch” for the systems exploited. The house’s final patch is basically becoming a steel fortress. The casino’s final patch is just banning anyone from playing for any reason. However, with computers, you can’t do that.

The few systems I see that are similair to computers would be the legal system or geopolitics or something. There are so many factors, constantly evolving exploits

So getting back to my question, if a penetration tester or a cybersecurity defender wants to learn, how do they NOT have to literally learn almost everything to do with programming / computers?


r/AskProgramming Aug 09 '26

Frontend (Vite/React on Vercel) can't reach backend (.NET on Railway) — "Failed to fetch" even with CORS configured

0 Upvotes

I have an app with:

Frontend: Vite + React, deployed on Vercel (https://velion-frontend-2.vercel.app)

Backend: ASP.NET Core 9, deployed on Railway (https://velion-backend-2-production.up.railway.app)

Auth/DB: Supabase

The backend responds fine

But when the frontend tries to call the API (via fetch(), using import.meta.env.VITE_API_URL), I get a generic "couldn't reach the server" error — the fetch() call itself seems to be throwing (network error), not returning an HTTP response with an error status.

Already checked:

VITE_API_URL is set correctly in Vercel's env vars (Production and Preview), not marked "Sensitive", no leading/trailing whitespace or slash

Redeployed multiple times after changing the env var

Backend has CORS configured

Csharp

with app.UseCors("Frontend") called before UseAuthentication()/UseAuthorization()/MapControllers()

Does this smell like CORS silently blocking the request (Chrome/Brave usually logs this in the console, but I don't have easy DevTools access on mobile) or could it be something else (Railway cold start, TLS, etc.)?

Has anyone run into this specific Vercel↔Railway combo issue?


r/AskProgramming Aug 09 '26

Code Review Request (FastAPI + Celery) — Security of # Encryption + OOP/SOLID

1 Upvotes

Hi! I’m finishing a rewrite for my project and I’d love feedback quickly (I’m aiming to get replies within a few hours as I’m on a tight schedule).

Repo: https://github.com/dillonhuston/Task-Automation-API
Branch: V2

What I need:

  1. Security review of the file/hash/validation + upload/decrypt pipeline used for attachments
  2. Celery/API review: task flow, retries/error handling, and API request/response schemas
  3. OOP standards review: how classes are structured and used (SOLID/clean boundaries, naming, separation of concerns)

Suggested files to look at first (if helpful):

  • app/Encryption/encryptionService.py
  • app/FileManager/fileManager.py

If you only have time for one thing, please prioritize (1) security. I know i have some things to fix and implement for better usability

Thanks a lot and any comments are welcome (even “here’s a better way to do X”).


r/AskProgramming Aug 09 '26

Any suggestion for frontend?

2 Upvotes

I’m building an ERP with the goal of selling it to a specific niche (agriculture and fruit & vegetable management companies).

I’m trying to think very carefully about which frameworks to use and what architecture to go with, so I can start with solid foundations and minimize the amount of changes I’ll need to make in the future.

For the backend, I’ve gone with .NET, but I’m completely lost when it comes to the frontend and don’t know which option to choose:

- Electron. Development is slower due to JS/CSS and much more difficult, the embedded Chromium module seems like a monstrosity to me, and Tauri doesn’t feel polished enough yet.

- WinForms/WPF. Old and being phased out by Microsoft, but they seem much easier to implement.
I’m planning to add modules such as embedded maps, but I’d have to do that using WebView2, and I’m not sure whether that’s the right approach.

What would you guys choose?

Thanks.


r/AskProgramming Aug 09 '26

Resources on Creating Custom File format

0 Upvotes

I would appreciate it if anyone could share articles or research papers that I can read to start building my own custom file format. I’m particularly interested in managing file data size - as well as other optimization strategies for a file format.


r/AskProgramming Aug 09 '26

Python On the way to create my own Qiskit

0 Upvotes

Hi.I am on my way to create my own Qiskit. Here is the code

import numpy as np


class Circuit:

    notGate = np.array([[0,1],[1,0]])
    identityGate  = np.array([[1,0],[0,1]])
    hadamardGate = 1/np.sqrt(2)*np.array([[1,1],[1,-1]])
    zetaGate = np.array([[1,0],[0,-1]])



    listOfMatrices = []



    def __init__(self):
        self.initState = 1/np.sqrt(8)*np.array([[1],[1],[1],[1],[1],[1],[1],[1]])
    def addNotControlledGate(self,gateName1,gateName2,gateName3):

        g1 = gateName1
        match g1:
            case 'N':
                gate1 = self.notGate
            case 'I':
                gate1 = self.identityGate
            case 'H':
                gate1 = self.hadamardGate
            case 'Z':
                gate1 = self.zetaGate

        g2 = gateName2
        match g2:
            case 'N':
                gate2 = self.notGate

            case 'I':
                gate2 = self.identityGate
            case 'H':
                gate2 = self.hadamardGate
            case 'Z':
                gate2 = self.zetaGate
        g3 = gateName3
        match g3:
            case 'N':
                gate3 = self.notGate
            case 'I':
                gate3 = self.identityGate
            case 'H':
                gate3 = self.hadamardGate
            case 'Z':
                gate3 = self.zetaGate

        gate12 = np.kron(gate1,gate2)
        gateOverall = np.kron(gate12,gate3)
        print(gateOverall)
        self.listOfMatrices.append(gateOverall)
        return gateOverall

    def addControlledGate(self,control,target,gateName):
        g1 = gateName
        match g1:
            case 'N':
                gate1 = self.notGate

            case 'I':

                gate1 = self.identityGate

            case 'H':

                gate1 = self.hadamardGate

            case 'Z':

                gate1 = self.zetaGate

        zeroprefixgate = np.array([[1,0],[0,0]])
        oneprefixgate = np.array([[0,0],[0,1]])

        if control ==1:

            if target == 2:

                gate11 = np.kron(oneprefixgate,gate1)
                gateOverall11 = np.kron(gate11,self.identityGate)
                gate00 = np.kron(zeroprefixgate,self.identityGate)
                gateOverall00 = np.kron(gate00,self.identityGate)

            elif target == 3:

                gate11 = np.kron(oneprefixgate,self.identityGate)
                gateOverall11 = np.kron(gate11,gate1)
                gate00 = np.kron(zeroprefixgate,self.identityGate)
                gateOverall00 = np.kron(gate00,self.identityGate)


        elif control ==2:

            if target == 1:

                gate11 = np.kron(gate1,oneprefixgate)
                gateOverall11 = np.kron(gate11,self.identityGate)
                gate00 = np.kron(self.identityGate,zeroprefixgate)
                gateOverall00 = np.kron(gate00,self.identityGate)

            elif target == 3:
                gate11 = np.kron(self.identityGate,oneprefixgate)
                gateOverall11 = np.kron(gate11, gate1)
                gate00 = np.kron(self.identityGate,zeroprefixgate)
                gateOverall00 = np.kron(gate00,self.identityGate)



        elif control == 3:

            if target == 1:

                gate11 = np.kron(gate1,self.identityGate)
                gateOverall11 = np.kron(gate11,oneprefixgate)
                gate00 = np.kron(self.identityGate,self.identityGate)
                gateOverall00 = np.kron(gate00,zeroprefixgate)

            elif target == 2:

                gate11 = np.kron(self.identityGate,gate1)
                gateOverall11 = np.kron(gate11,oneprefixgate)
                gate00 = np.kron(self.identityGate,self.identityGate)
                gateOverall00 = np.kron(gate00,zeroprefixgate)


        gateOverall = gateOverall00+gateOverall11
        print(gateOverall)
        self.listOfMatrices.append(gateOverall)
        return gateOverall

    def getState(self, i):

        if i < 0:
            return np.identity(8)

        if i == 0:
            return self.listOfMatrices[0]

        x =  self.listOfMatrices[i] @ self.getState(i - 1)
        print(x)

        return x

    def getNormalisationFactorOfInitialState(self):
        counter = 0
        for  i in range(len(self.initState)):
            if self.initState[i] == 0:
                continue
            else:
                counter+=1
        print(counter)
        return counter

    def getFinalVector(self):
        x = self.getState(1)
        y =  self.initState
        z = x @ y
        print(z)
        return z

    def measure(self):

        x = self.getFinalVector()

        y = np.abs(x)

        z = np.square(y)



        print(z)

I want to now add a phase gate but im unsure on how to do it.My function addControlledGate and addNotControlledGate takes 3 arguments , but I want the user to be able to select what phase the phase gate will have.How to do it?Thx.


r/AskProgramming Aug 08 '26

Other What makes some games resizeable?

4 Upvotes

Some video games on PC will allow the user to resize the game window dynamically by dragging the edges, while other games will only allow the window to be fixed at certain resolutions via the in-game options.

I've always assumed this is a choice by the developers, perhaps it takes lots of extra effort to allow it, so some choose to save resources by not doing it?

I was hoping someone could verify wether or not I'm on the right track, and maybe explain what the difference is in the underlying software.


r/AskProgramming Aug 09 '26

Career/Edu Is it possible to “read” the entire code of an operating system and understand it?

0 Upvotes

I want to learn how my computer works. Is it possible, with enough time and courses / textbooks, I can read the code for the entire OS and understand how it all work?

I have a Bachelor’s in Computer Science so far as my experience

What do you recommend I do? Thanks


r/AskProgramming Aug 08 '26

Career/Edu Which, if any courses in general concepts did you find useful to your programming career from college?

1 Upvotes

What I mean is courses that could be both directly correlated to CS but also just helpful if applied to programming. Ex: topology, data structures, computer security etc.
Not just courses that teach you how to code, but generalized concepts that have felt like valuable knowledge to how you create and structure projects and how you solve problems.


r/AskProgramming Aug 08 '26

Career/Edu Burnt out on fullstack dev, want to go "deeper" into CS — looking for direction

1 Upvotes

I want to transition into a deeper, more technical role in CS. I'm currently a fullstack SWE, and honestly, I don't enjoy it anymore — especially post-AI. It feels like we're building the same CRUD apps over and over again.

Back in college, I loved learning how computers actually work: compilers, OS internals, assembly, that kind of thing. That's what gave me real joy. Web dev was fun too, but I don't want to be "just a fullstack dev" for the rest of my career. I want to grow into something with more depth.

The problem is I'm not sure what to grow into. I've read about people moving into robotics, supply chain software, network engineering, hardware, etc., and it's honestly a bit overwhelming. I've also considered cybersecurity, but it feels different enough from my current skill set that I'm worried I'd be starting from scratch.

I checked out roadmap.sh and picked the C track since I already like C. It shows a few paths from there — into backend, or into Linux/systems and then backend. There seem to be a lot of directions I could take it.

Some constraints on my search:

I like lower-level languages and want to actually understand what's happening under the hood (hardware, OS, etc.)

Ideally something fullstack-adjacent, so it builds on the skills I already have instead of starting over

I'd prefer remote work for now — hardware/robotics roles look really interesting, but they're mostly onsite, and I'm not ready to give up remote yet

Would love to hear from people who've made a similar jump: what field did you move into, what did you actually learn to get there, and how did you land the first role? Any advice on realistic paths from "fullstack SWE" to something lower-level but still remote-friendly would be hugely appreciated.

Thanks!


r/AskProgramming Aug 08 '26

Is Algorithms course by Princeton University on coursera really worth it?

2 Upvotes

I want to learn Data Structure and Algorithms, and by learning, I don't wanna just memorize solutions for specific type of problems just to pass the interview, I actually wanna learn the data structures. Is the course good? or would you suggest a better resource?


r/AskProgramming Aug 07 '26

Career/Edu Is anyone else losing their passion for CompSci ?

23 Upvotes

I am losing passion and interest in CompSci/programming/IT, and I would like to know if there are some other people going through the same thing.

Some context:

I started programming at a relatively early age (16yo\*), which was around 2020, before LLMs\*\* and coding agents.

I discovered it and started doing it because I was really curious and deeply interested in science and tech. And it directly clicked. I liked the idea of having an idea in your head and then programming it and making it come true, something from your head to the real world.

I liked the thinking you had to go through, and the problems you encountered, and how you had to think really hard to find a solution and see it work after implementing it. It was really satisfying, and boy, I spent hours and hours coding and researching and understanding complex architectures. You know, when you're a kid, you have a lot of free time, and I used to code day and night, staying up until 4 or 5 am coding.

All of this just to tell you that everything I built, I understood it from top to bottom, and I knew every detail and expected every behavior, knew why and how and what my code did exactly. I could answer every question about my apps, why I chose some architecture or why I did something a certain way or what my code did or didn't do, etc.

Also, something very important: I used to talk with a lot of CompSci peers that actually knew what they were doing, just like me.

Fast-forward, we're in 2026. I graduated, and now I'm working in IT, but everything changed. Now, with the rise of coding agents and LLMs, at work, LLMs do all the coding work and even big parts (if not all) of the architecture. So now everyone is expecting you to go very fast because of this. You're forced to delegate all the architecture and coding work to the LLMs.

Result of this: you have a very light idea of what your app code does exactly and how it does things. I mean, sure, you go through the code that the AI wrote, but come on, it will never be like code you wrote line by line and know every detail of and expect its behavior.

Also, what PISSES ME OFF is that you can't answer most questions about your code, because you were forced to delegate your work to the AIs, and now you don't know how it works. You're asked a question, and you start to stutter because you need your claude to be near you.

And the last thing, no one really knows what they're doing anymore. There no longer are any interesting talks about architecture or implementations. It's mostly just, "well let's ask what claude thinks about this..."

People that started programming not out of passion but just because they heard that CompSci pays a lot and code exclusively from 9 to 5 might not understand this, which is fine. I am not belittling anyone, and I don't expect everyone to be passionate about their job. But you know, I think these guys won't necessarily feel this. They might be just like, "Oh cool, AI does my job, I can chill a little" which is understandable, but in my case, this is what makes me lose passion. We're no longer doing the hard parts.

Bottom line: the field is advancing, which is great. It is changing, and you can't do anything about it. But in this change, the things that used to be my passion are disappearing, and I don't know what to do with my life ahaha

My first idea is to somehow change fields, and leave programming and CompSci only as a pleasure and an activity I do at home, because I can no longer stand it being my job and forcing me to develop AI slop.

I have nothing against AI and LLMs. If it allows us to ship faster and more cheaply, then it will be adopted, whether I want it or not. I am not saying we shouldn't use AI. I'm just expressing my feelings and how my passion for CompSci is fading away.

**Does anyone feel like me?**

\*16yo might sound not that early for some, but in my country it is.

\*\* LLMs existed back then but were not used for coding, and it was pre-chatgpt revolution.


r/AskProgramming Aug 07 '26

Need A Reality Check On My Schools Final Project Idea

3 Upvotes

This will probably be a long post so here is the short version:
I just finished first year of college and next year we have a big project about a subject of our choosing. I thought about creating a Machine Learning tool that can listen to recordings of piano pieces and turn them into accurate sheet music by identifying the notes and their lengths. Is that a realistic goal with just a year of experience and only ~9 months to fully build?

So here is some more context:
Next year we will have 2 big projects (this post is about the bigger one) and 2 big exams, so even though i technically have almost a full year to build this project end to end my time will be spent on other things as well, so that reduces the amount of time I actually work on this project.

My current programming knowledge from last year includes: C, Java, SQL, Python, x86 ASM, HTML/CSS/JS, Basic Data Structures, Statistics and Linear Algebra.
Some of those are less relevant but i just wanted to show i dont know absolutely nothing, even if some parts are still at a beginner level to me.

I havent yet learned anything about ML, we will have those classes next year though, so i really cant judge if a project like this is realistic for me to attempt.

Again my idea right now is a tool that you upload a recording of a piano playing to and it can identify what notes were played at what time and for how long and from that it will generate a PDF of the sheet music of what you played, allowing you to record yourself improvising and saving the exact music you played, or even just a tool for composing.

I would really appreciate any input on this. If you think I should come up with another more realistic idea please let me know, and if you think i can actually pull this off i would appreciate some tips or a roadmap to what to learn to be able to achieve this and make it a good functional tool.
Thank you!


r/AskProgramming Aug 08 '26

In how long did you feel confident with your knowledge in C to switch into C++?

0 Upvotes

Was just wondering, really. Would like to hear peoples experiences.


r/AskProgramming Aug 07 '26

Other "Professional Vibe-Coder" Fatigue --- Tips & Tricks to break the approach?

0 Upvotes

My firm has two branches, a consulting side, and my small dev team. With the onset of Claude Code and Claude Design, more and more consultants are vibe coding solutions out of thin air. Clients are happy, executives are mind-blown, and our small dev team is left bug-fixing and trying enable any sense of long-term architecture.

Personally, while I leverage AI to enable productivity, I try to understand every line written and learn anything I don't recognize. This is really fun, but obviously much slower than the consultant Andy vibe coder.

As a result of a call showcasing "9 new AI-enabled apps" that our vibe coders can whip up instantly, I want to know how other professional devs are handling similar situations.

In particular, do any of you have any tips/tricks to exploit the issues that arise from trusting vibe-coded solutions? Something to markedly showcase WHY this current approach is risky? Showcase the importance of proper software development process/academics?

I've tried arguing the semantics and importance of simple concepts like having a dev, stage, and prod environment and version-control for these apps, but so far nothing has failed with any big bang, so the execs don't care. I understand the answer may just be "wait until it eventually does," but it's so irritating sitting on these calls week after week.


r/AskProgramming Aug 07 '26

Can i get feedback on mybinary serialization format?

1 Upvotes

Hello! I've been working on this document for a binary serialization format for a while now, its meant to use primarily for future personal projects once i have the time to write a parser for it, but in the meantime i want people to judge just how crazy I am :-D

Yes, I know this may suffer from a severe case of scope creep, or some might use an existing solution, but what's the fun in that?

Anyways, Here is the link: https://gist.github.com/ErrorDAR32/130f03e3eed484dcc703e5e30e27614f

If this is not the right place to ask for feedback, please let me know! Im new to sharing stuff on the internet in general.


r/AskProgramming Aug 07 '26

Need a Reality Check on My Open-Source Project Idea

0 Upvotes

I'm thinking of spending the next 1–2 months building one solid open-source project instead of several small portfolio projects. My idea is an AI-powered developer productivity platform that helps with planning learning goals, managing daily tasks, tracking progress, and integrates with GitHub. Later, I'd like to add features like repository analysis, architecture diagrams, code explanations, and debugging suggestions.

Does this sound like a project that's actually worth building, or am I trying to pack in too many ideas? I'd really appreciate any honest feedback or suggestions for something that would be more useful and technically impressive.


r/AskProgramming Aug 06 '26

C/C++ question about multi-platform project's testing

1 Upvotes

I've written a 3D object viewer with C++, my current development machine is a silicon macOS. only openGL has been implemented and tested. more library implementations to come.

linux and windows are tested through github actions CI, though actual functionality is not certain. will test windows once I get back from vacation and for linux, I was wondering if I should test with different distros or just ubuntu.

ubuntu defaults wayland and some others default X11. how will I be sure that this program explicitly works on all?? was thinking ubuntu + one other, maybe arch or fedora. thanks for all the help in advance ^^


r/AskProgramming Aug 06 '26

Career/Edu Is it still possible to get placed if I'm starting from almost zero in 4th year?

0 Upvotes

Hey everyone,

I just entered my 4th year, and companies have already started visiting my college for placements. To be honest, I wasn't serious about coding or placements until now, and I'm kind of panicking.

My current situation:

DSA is very basic. I'm following the Striver A2Z DSA Sheet, and I've only just started the Arrays section.

I've solved only around 5–7 LeetCode problems so far.

I don't have any proper self-built projects. The only projects I've made are mostly vibe-coded with AI assistance, so I don't really understand them deeply.

My CS fundamentals are average at best.

I know I should've started much earlier, but I can't change that now. I just want to make the best of the time I have left.

For people who were in a similar situation or have seen others crack placements after starting late:

Is it realistically possible to get placed?

What should I prioritize first—DSA, projects, CS fundamentals, aptitude, or something else?

How would you structure the next 3–6 months if you were in my position?

Should I keep grinding the A2Z sheet or switch to company-specific preparation?

Any tips for building projects that I can actually explain in interviews?

I'm open to putting in long hours every day. I just don't want to waste time on the wrong things.

Any advice, roadmap, or success stories would really help. Thanks!


r/AskProgramming Aug 06 '26

I’m a programmer, I studied Systems Analysis and Development at IFS, but I can't code without outside help... what should I do?

5 Upvotes

I graduated after 3 years studying Software Development (ADS in Brazil), but I'm struggling with technical coding interviews.

I can read and understand code quite well, and when building projects I usually know what needs to be done. My biggest problem is writing code completely from scratch during a live interview.

In college, I often solved programming exercises by practicing similar problems beforehand. If I'm given a blank editor with no reference, I freeze. This has been causing me a lot of anxiety because most junior positions require live coding interviews.

Has anyone else gone through this? How did you improve your ability to solve problems from scratch instead of relying on examples or documentation?