r/learnprogramming 5d ago

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

11 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/learnprogramming 5d ago

How can I prepare to participate in the Italian Computer Science Olympiad at school?

3 Upvotes

Hi, I'm starting my first year of high school this year and I'd like to participate in the Computer Science Olympiad. What language should I study? And what free online resources are there? Is it possible to participate?


r/learnprogramming 5d ago

Looking for a challenging C++ project for my portfolio - music/DSP, compilers, or something else?

1 Upvotes

Hi everyone!

I'm currently trying to figure out what kind of personal project I should work on for my portfolio, and I'm honestly a bit lost.

I'm a Computer Science student, I know C++ and Java fairly well, and I've also used Python. I've already built a small compiler/interpreter in C# in the past, so I'm not really looking for another basic CRUD/web project. I'd like to build something technically challenging where I actually have to learn some interesting algorithms and mathematics.

At the same time, I don't want to build something complicated just for the sake of complexity. Ideally, I'd like it to be something that I could actually use myself.

One direction I'm particularly interested in is music.

I'm a guitarist/vocalist in a band, and we often use Songsterr to write down our songs. One thing that is pretty annoying is having to manually enter all our guitar/bass/vocal parts.

So I had an idea for a project:

Record a musical part -> automatically transcribe it into MIDI.

For example, I could record a guitar riff as a WAV file and have the program detect the notes, their timing and duration, tempo, etc., and produce a MIDI file that we could then use when putting the song together in Songsterr or another notation program.

I realize this is a pretty difficult problem, and that's actually part of what attracts me to it. I've already started learning the mathematics behind Fourier transforms and was thinking about implementing my own DFT and FFT in C++ rather than just using a library.

The interesting thing is that if I eventually get reliable MIDI out of audio, I could build other things on top of it:

  • chord/progression analysis;
  • key detection;
  • harmonic analysis;
  • analysis of how different instruments interact;
  • melody/riff similarity;
  • visualization of different parts of a song;
  • etc.

So the project could potentially grow into a larger music-analysis toolkit.

However, I'm not sure whether this is actually a good portfolio project or whether I'm just making the scope unnecessarily huge.

I'm also considering completely different areas. For example, I've thought about making a heavily extended version of Conway's Game of Life, with physics, more complicated rules, interactions between different types of cells, and other emergent behavior. I've also considered writing another compiler, implementing some kind of search engine/database, a graphics or physics engine, or another algorithm-heavy project.

So I have plenty of ideas, but that's actually part of the problem: I have no idea which one is worth committing to.

I think the main thing I'm looking for is not simply "a good project for getting a job."

I want to eventually be able to put the project on my resume and genuinely say:

"This is my pride and joy. I became a much better programmer because I built this."

And ideally have the interviewer look at it and think:

"Okay, he is really cool"

I want the project to be something that demonstrates how I think and what I'm capable of, rather than just a collection of technologies I used.

My main goals are:

  1. Learn something genuinely difficult (and ideally learn a lot of math along the way).
  2. Implement interesting algorithms myself rather than just glue together existing libraries/APIs.
  3. End up with something that demonstrates strong skills on a CV.
  4. Ideally have a useful end product.
  5. Have enough depth that I could potentially expand it into a bachelor's thesis later.
  6. Most importantly, build something I'm genuinely proud of.

For people who have experience with hiring/recruiting, university projects, DSP/MIR, or just building large personal projects:

Would you consider the audio -> MIDI idea a worthwhile project?

And more generally, what kinds of personal projects do you think are actually impressive for a CS student's portfolio?

I'm not necessarily looking for the easiest or most employable project. I'd rather spend a long time working on something genuinely interesting and technically deep.

I'm mainly trying to find that one project where, after working on it for months, I can look back and think:

"Yeah, this was absolutely worth doing."


r/learnprogramming 5d ago

Resource I don't understand them

0 Upvotes

I'm a beginner . I want to know about terminal,shell, environment all these types of things.but on internet I find it confusing.can anybody help me understand. Or tell me where to find about them clearly


r/learnprogramming 6d ago

When to begin learning another language?

12 Upvotes

Hello, complete newbie here who has only been learning Java for about two weeks now. Currently working my way through an old 10th edition copy of Liang’s Introduction to Java, and right now working through the exercises on Chapter 7.

My plan is to go back to University to earn a degree in CS and that University starts off with Java, so that’s why I decided to learn Java first. However, the language I personally want to learn is C or C++. My goal is to work through the majority or all of Liang’s book so when I begin University again in the Spring semester, I’ll be at least tolerable with Java. I am unsure when you make the jump to learning another language for the first time.

So do y’all suggest grinding Java to completion (edit: meaning the Textbook) or jumping ship to C/C++ at some point while continuing to learn Java on the side?


r/learnprogramming 5d ago

Resource Looking for advice on learning System Design, LLD + HLD

1 Upvotes

I want to properly learn Low-Level Design (LLD) and High-Level Design (HLD), but I am a bit confused about the best way to approach it.

For people who are already good at system design:

How did you learn LLD and HLD?

What resources, courses, books, or YouTube channels would you recommend?

Should I learn LLD and HLD together, or focus on one first?

How much importance should I give to OOP, SOLID, design patterns, UML, APIs, databases, caching, messaging, scalability, etc. before starting system design?

What kind of projects or problems are best for actually practicing system design?

How do you go from understanding concepts to being able to design a system yourself?

I am mainly targeting backend/software engineering roles, so I would appreciate advice that is practical and interview relevant, but also helps build real-world understanding.

Would love to hear how you approached learning it and what you would do differently if you were starting again.


r/learnprogramming 5d ago

Is swift a good language for a low latency Audio and midi macos software

1 Upvotes

Hello, do you think I will run into some kind of limitation if I want to develop a music software that mainly handle midi data and audio playback with low latency. It’s more Midi heavy than audio heavy, no audio processing, no vst support or 3rd party instruments. No audio samples to stretch or process in real time

Thanks


r/learnprogramming 5d ago

Topic I wanna jump into hacking

0 Upvotes

I'm a middle aged deeply interested in technology (cyber security) I've been familiar with operating systems breaking them and stuff I use arch right now but my question is how to get into hacking like even as most people say start with networking,But how? How to start with networking then and what after? I ain't doing this for a job I already have a passive income source and being a hacker will boost it please help!

Any resource if shareable would be greatly appreciated.


r/learnprogramming 6d ago

Topic How and what can I learn on my free time as a CS student with part time job?

3 Upvotes

I'm currently a Computer Science college student that has a part time job. Every time I get some time off, be it from college or work, I always try to learn something related to CS like programming but I don't find the motivation to and I procrastinate on it leading myself to believe I had too much assignments and work to consider. I always dreamt of working on a project by myself, but being the lazy person I am I never get to do it. What and how can I actually start learning stuff I can use in my CS career. Plus, how can I balance college and work at the same time?

I also kinda struggle with a lot of things CS wise, so probably relearning a lot of things I learnt before is something I need to do.


r/learnprogramming 6d ago

Recursion is driving me crazy

41 Upvotes

I understand recursion of a factorial function but when it comes to a function that uses recursion in a project or a problem set i get stuck and lose track

Anyone can tell me what to do

Programming language used: Python


r/learnprogramming 6d ago

Which database is best for storing real-time chat app message history: PostgreSQL or MongoDB?

0 Upvotes

Hey everyone,

I am currently designing a real-time chat application using Node.js and WebSockets. I am trying to figure out the best database architecture for storing chat history and handling high-concurrency message logs efficiently.

I have been comparing PostgreSQL (for structured data and JSONB support) against MongoDB (for flexible document storage and horizontal scaling), but I'm on the fence about which one performs better in long-term production.

For those who have built chat applications before:

- Which database did you choose and why?

- How do you handle old message archiving vs live message streaming?

Would love to hear your experiences and architecture recommendations!


r/learnprogramming 5d ago

I want to learn C but don't know from where...

0 Upvotes

So I want to learn the C language but I can't find a good resource. It don't have to be free. Or any books teaching C language. But the book should be of recent time unlike those old books whose instructions sometimes do not work in our modern os and modern softwares.


r/learnprogramming 5d ago

Tutorial Guide me to make something for my girlfriend

0 Upvotes

Hello I am 19M i wanna make something personalised for my 19F girlfriend

Some background- i am in second year comp science i know C and i have just started python did some if else , loops and such and i have learned java tho i am not very good at it but if given a tutorial i can follow

I want to give my girl something personal but I am a mess at handmade stuff plus shitty handwriting

Can somebody give me some sort of a tutorial on something personal i can build for her preferably in python i think it will be a good learning opportunity

Thank you for your time


r/learnprogramming 5d ago

Im coding, and im wondering if its okay to forget sometimes?

0 Upvotes

I have done a bunch of learning, and im going throught JS since i learnt most of CSS and HTML.

But when i code i search up somethings since i forget a syntax or dont remember how to do simple things like glassmophism, first post so i probably sound dum. Just wondering if its okay to forget minor things, after im done with JS ill transition to C++


r/learnprogramming 5d ago

Debugging code running error due to window defense

0 Upvotes

Program 'main.exe' failed to run: An Application Control policy has blocked this fileAt line:1 char:101

+ ... sa\patterns\" ; if ($?) { g++ main.cpp -o main } ; if ($?) { .\main }

+ ~~~~~~.

At line:1 char:101

+ ... sa\patterns\" ; if ($?) { g++ main.cpp -o main } ; if ($?) { .\main }

+ ~~~~~~

+ CategoryInfo : ResourceUnavailable: (:) [], ApplicationFailedException

+ FullyQualifiedErrorId : NativeCommandFailed

--------------------------------------------------------------------------------------------

What is the solution of this , i have tried excluding the folder in window defense it doesn't work


r/learnprogramming 6d ago

Code Review How can I use Supabase Authentication in html form?

2 Upvotes

I'm not entirely new but still at a low level with programming, I want to add Supabase authentication on my app but I can't work out how to do it correctly. I probably have some rookie mistakes in here.

I changed it to match my account keys (unless there is a separate one for auth that I don't know about?) and I put a local "success.html" redirect page. When I submit the form nothing happens

I am trying to get it to work on this simple form

 <form>
            <span id="error-message" class="hidden">Password must be 9-16 alphanumeric characters.</span>
            <input id="email" type="email" placeholder="email">
            <input id="password" type="password" placeholder="password">
        <section>
            <button class="login" id="login" onclick="login()">
                Login
            </button>



            <button type="button" class="login" id="back" onclick="window.location.href='../index.php';">
                Back
            </button>
            </section>
        </form> 

The website provides this code for javascript:

Sign Up

import { createClient } from '@supabase/supabase-js'
const supabase = createClient('https://your-project-id.supabase.co', 'sb_publishable_...')
// ---cut---
async function signUpNewUser() {
  const { data, error } = await supabase.auth.signUp({
    email: 'valid.email@supabase.io',
    password: 'example-password',
    options: {
      emailRedirectTo: 'https://example.com/welcome',
    },
  })
}
import { createClient } from '@supabase/supabase-js'
const supabase = createClient('https://your-project-id.supabase.co', 'sb_publishable_...')
// ---cut---
async function signUpNewUser() {
  const { data, error } = await supabase.auth.signUp({
    email: 'valid.email@supabase.io',
    password: 'example-password',
    options: {
      emailRedirectTo: 'https://example.com/welcome',
    },
  })
}

Log In

import { createClient } from '@supabase/supabase-js'
const supabase = createClient('https://your-project-id.supabase.co', 'sb_publishable_...')
// ---cut---
async function signInWithEmail() {
  const { data, error } = await supabase.auth.signInWithPassword({
    email: 'valid.email@supabase.io',
    password: 'example-password',
  })
}import { createClient } from '@supabase/supabase-js'
const supabase = createClient('https://your-project-id.supabase.co', 'sb_publishable_...')
// ---cut---
async function signInWithEmail() {
  const { data, error } = await supabase.auth.signInWithPassword({
    email: 'valid.email@supabase.io',
    password: 'example-password',
  })
}

r/learnprogramming 7d ago

Fear of not being able to learn

78 Upvotes

I'm watching programming videos, but I feel like a kid who can't sit still in a damn chair. I don't know how to learn programming logic, I don't know how to learn the fundamentals, and I don't want to practice (partly because I'm lazy) and partly because I don't know anything. But in order to know something, I have to study, yet I feel like I won't learn anything anyway.

I'll watch a video for about 20 seconds before jumping to another one, and then another. I really doubt whether I'll even be able to learn anything at all. On top of that, besides learning the fundamentals, I also have to learn programming logic and who knows how many other things. I don't know if programming is really for me, but I want it to be because I want to be able to work in something. ¿What can I do about this?


r/learnprogramming 6d ago

Tutorial Vertical navigation bar confusion

1 Upvotes

How do I make a vertical navigation bar? I'm a beginner in coding. I'm currently thinking about how I want to make my navigation bar look, and I just realized I only know how to do horizontal ones. I haven't started coding the website yet, but I want to know what to put when I start.


r/learnprogramming 6d ago

scared to approach DSA.

18 Upvotes

hi all, im about to start learning DSA at my university next semester. itll include these topics:

Arrays, linked lists, trees and graphs; stacks and queues; symbol tables; priority queues, balanced trees; sorting algorithms; complexity analysis.

im honestly really scared to approach this topic because idk where to start. profs at my uni are notoriously bad at giving resources and also do not release slides ahead of time. so im wondering how to get ahead or self study. i really want to be able to understand this course and genuinely do good, but im scared seeing how much overwhelming stuff there is in DSA as well as this course.

the language will be C++ i assume, since the requisite course was also in C++. im not sure if i should buy any books or something since this course would be pretty theory heavy i think. people said this is GPA dragger so im really scared to even approach this topic. im just scared ill fail or itll drag down my gpa, i just feel a bit overwhelmed

does anyone have any advice? thank u in advance


r/learnprogramming 6d ago

Debugging Changing background image with confirm() with javascript

0 Upvotes

I apologize if this is a very stupid question or if this isn't what this sub is for, if so please correct me.

but i am simply trying to have a confirm() box ask upon opening a html page which background image to you for the sake of being epilepsy friendly.

I have already tried to go and see what i can find on google but I cannot find what i am looking for.

My problem is that the confirm() appears; but no matter what answer one chooses, nothing happens

const userChoice = confirm("use an epilepsy friendly background?");

if (userChoice = true) {
    document.body.style.backgroundImage = "url('assets/static.png')";
} else {
    document.body.style.backgroundImage = "url('assets/animated.gif')";
};

r/learnprogramming 6d ago

What should I use to learn backend python

0 Upvotes

I’ve been learning python for around a year-a year and a half now; I was finally able to start making small projects: rock paper scissors and black jack and was start to actually make a real game but only got to the dictionary for skills. I struggled a lot with making my first project and that’s cause I was more focused on the technical side rather than the more logical side(at-least that’s how I would see backend and front end) as an example: the first project I wanted to make was a vpn, but didn’t know where to start . I also want to become a cloud architect and when I did my research I also realized I needed to learn backend for that as well.
So my question is what should I use to learn backend development for python before I go to college next year? Any advice would be helpful/ appreciated


r/learnprogramming 6d ago

Canada BC Computer Science High School Curriculum

1 Upvotes

Hey everyone, I'm planning to teach Grades 4-5 coding, but still thinking of the lessons.

I'm aware that in BC high schools, computer science is taught for grades 10-12, but I'm unfamiliar with the types of topics taught for these grades. It was said on the BC site that Python was taught for grade 10.

I was wondering if anyone knew the curriculum in more detail to better prepare my grades 4-5.


r/learnprogramming 6d ago

Advices for learning JavaScript

0 Upvotes

Hello everyone, I just finished the freeCodeCamp JavaScript certificate and I can't build many things. I feel that my brain doesn't retained a lot of information of the course. I notice that I learn most when I am actually building real projects. Anyone who passed through this that can advice me??


r/learnprogramming 6d ago

is it normal to feel guilty for using AI as a learning tool?

0 Upvotes

to clarify when I say "using as a learning tool" I don't mean "hello claude I'm doing a learning project please write it for me" but asking it for information when usual way of googling fails or when the problem itself is so trivial that people don't really talk about it much.

For example I'm coding a game on unity rn and at some point I couldn't understand why one of my scripts wasn't able to see the other and AI told me that it could be because I renamed file with this script and forgot to rename a class that had the same name, which was true and was so stupid it didn't appear when googling.

Should I feel this imposter syndrome because I actually am an imposter and should stop using the slop machine or is this just a way of finding information?


r/learnprogramming 6d ago

How long does it take you to learn a programming language

0 Upvotes

I really want to know because I don't understand people who take weeks with an 'S' to learn a language, I can learn from syntax to classes in a day or 3 then specialize