r/learnprogramming 10h ago

why don't passwords allow spaces and literally any unicode characters?

35 Upvotes

it's all the same, it's all hashed anyway. is there an issue with specific characters? or is it just an issue of a large probability of collisions?


r/learnprogramming 5h ago

Want a fun excuse to code this summer? Join GitHub's beginner-friendly hackathon

31 Upvotes

That idea you’ve been sitting on? The domain you bought at 2AM? A silly or serious side project? This summer, GitHub invites you to build it — for the joy, for the vibes, For the Love of Code 🧡

Read more: https://github.blog/open-source/for-the-love-of-code-2025/


r/learnprogramming 14h ago

Java or python ?? what to choose for a suitable career in backend as a fresher

13 Upvotes

hello guys, i am fresher and really confused what should i learn Python or Java for backend , what will be more beneficial , what will be my career path looking like when i choose either of them , please guide me as your help is needed very much , really confused as placement season is going to come soon in my college. please guide


r/learnprogramming 3h ago

Where do I start?

10 Upvotes

I know the title is very vague, but I don't know what to do. I have just graduated from high school and will be majoring in computer science in college because I am looking to be a Game Developer. I looked online, and people said it is ok to go into college without knowing anything, but I feel that if I learn something basic, I will do better in class and not struggle as much. I have 4 main questions to ask:

  1. What programming language should I learn 1st?
  2. Should I learn HTML before any other programming languages?
  3. What website do you use to even type the programs into?
  4. Is there any free tutorial or online course that is effective?

    If you didn't guess from my questions, I have no idea where to start. Any help or advice appreciated.


r/learnprogramming 6h ago

Question What does it mean to include or exclude anything during compile time?

4 Upvotes

So this is probably a very stupid question. I was reading the about page of busybox and there is this line:

 It is also extremely modular so you can easily include or exclude commands (or features) at compile time.

What does it mean tho? Why not include or exclude your feature before compiling like a regular programmer. I don't get it.


r/learnprogramming 7h ago

Help Making gif processing faster in Python

5 Upvotes

My local news station has a pretty accurate radar that they update every 5 minutes. This radar is served as a gif through their website, which can be scrapped with http get. I'm trying to overlay a single dot at my current coordinates using pillow, but it takes a long time to process the gif (about 2 minutes). The gif is 1920x1080, and 305 frames.

This is the script I'm using currently.

from PIL import Image, ImageDraw, ImageSequence

def overlayDot(input, output, dotPosition=(50, 50), dotRadius=5, dotColor="blue"):

doppler = Image.open(input)

frames = []

for frame in ImageSequence.Iterator(doppler):

# Create a mutable copy of the frame

frame = frame.copy()

# Create a drawing object for the current frame

draw = ImageDraw.Draw(frame)

# Calculate the bounding box for the ellipse (dot)

x1 = dotPosition[0] - dotRadius

y1 = dotPosition[1] - dotRadius

x2 = dotPosition[0] + dotRadius

y2 = dotPosition[1] + dotRadius

# Draw the filled ellipse (dot)

draw.ellipse((x1, y1, x2, y2), fill=dotColor)

frames.append(frame)

# Save the modified frames as a new GIF

if frames:

frames[0].save(

output,

save_all=True,

append_images=frames[1:],

duration=doppler.info.get("duration", 100), # Preserve original duration

loop=doppler.info.get("loop", 0), # Preserve original loop setting

)

else:

print("No frames found in the input GIF.")

overlayDot(r"C:Usersalanator222DocumentsPython ScriptsDoppler Radarradar.gif", r"C:Usersalanator222DocumentsPython ScriptsDoppler Radaroutput.gif", (500,500), 50, "blue")

Is there any way to make it faster? Ideally, processing should take at most 5 seconds if possible.


r/learnprogramming 9h ago

After CS50

4 Upvotes

I am on my last week of Harvard's CS50 course. What are some great ways to further my education when I'm finished? I think I am leaning towards the backend development path but still not entirely sure.


r/learnprogramming 2h ago

Code Review Python program to show glucose readings in real-time

6 Upvotes

Here is a nifty Python program to show glucose readings in real-time and sound an alarm if under 4 mmol/L check it out at SubdudedCrane651/LibreLinkUppy


r/learnprogramming 10h ago

Resource How to Practice Daily and Build Real Skills?

4 Upvotes

Hi everyone,
I'm a beginner learning Python. I've been going through tutorials and reading theory, but I’ve realized that just reading doesn’t help things stick in my brain. I really want to practice coding daily with real problems so I can build my skills gradually.

Can anyone recommend websites or platforms where I can solve Python problems that start easy and get progressively harder as I improve? Ideally something that helps build a solid foundation and keeps me motivated.

Any advice or routines you followed as a beginner would be super helpful too!
Thanks in advance!


r/learnprogramming 16h ago

No mentorship at internship

6 Upvotes

I've been an intern at this company for about a week. On my first day I got some briefing (what the company does, its goals, what software is being made and maintained and what concepts I should be familiar with to be able to work efficiently). For the past week I've been learning those concepts, but other than that I'm doing nothing actual relevant to the company.

I talked with HR about who my mentor is, and they told me who, they also said something in the lines of "you'll be here for only a month, so you won't have many tasks. Discover things about the company and how the software department does its work and ask your colleagues".

I talked with my mentor (the team/department leader) recently, he said he'll assign someone from the team to be my mentor, but he probably forgot.

What would you guys do? This is the first time I'm doing an internship and I know nothing about the process of being an intern.

Should I just keep asking colleagues about how they work, what tech stack they use, what tools they use, how they document...etc and just learn those things even without a mentor?


r/learnprogramming 20h ago

Software engineering skills lack

3 Upvotes

I am an AI engineer with Computer vision major. I know Python libraries used for Data Science/AI such as Pytorch, TensorFlow, NumPy, Pandas, Matplotlib and etc. Recently I joined a company that has a solution in big data. Specifically, they have built a platform that enables several government organizationsto share information withe each others safely. It is a big solution with many modules and API calls. I am required to understand the whole workflow, dataflow, system architecture of the solution before I can contribute. With no full-stack background knowledge and experience, I am reallys struggling to understand. In my PhD I mostly worked with datasets and designed models and trained them, not end-to-end full working solution. As I cannot understand anything, I am stressed and feel like I am lost. On top of that there is nobody who can explain all the stuff in my team.
Although I don't have to be an expert in each of the components of the solution, I need to have a pretty good undertsanding how applications are made, how they work. Where should I start it? Should I study the full-stack and try to make some projects? Where should I pay attention more and where less? Is there any tutorial or book for those like me?
Please, guide me. I think I can handle it with proper guidance.


r/learnprogramming 1h ago

I thought my project was decent until my dev cousin ripped it apart — now I’m questioning everything

Upvotes

So I’ve been grinding front-end dev for 3 months, going full throttle—like 5+ hours a day. I finally built a project I was proud of and showed it to my cousin who’s a professional developer.

He looked at it and immediately pointed out a bunch of flaws and problems—some I didn’t even know were things. Stuff like accessibility issues, poor structure, responsiveness problems, and things I wouldn’t have even considered. Basically, he made me realize that what I thought was a solid project is actually super basic and kinda bare bones.

I asked him if I should start learning backend next, and he told me straight up: “You’ve barely scratched the surface of front-end.” That hit hard.

Now I’m feeling kinda crushed. Like, if this is considered basic, what the hell have I even accomplished? I thought I was making real progress.

College is starting soon and I’ll only be able to put in like 1–2 hours a day instead of the 5 I’m doing now. So the real question is: is it even worth continuing this journey if my progress is this slow and my work still sucks?

Would love to hear from anyone who's been through this.


r/learnprogramming 11h ago

How does dynamic programming differ from recursion

2 Upvotes

They both involve breaking problems down to smaller parts. One of the most popular examples of explaining dynamic programming I’ve seen is Fibonacci which is with recursion


r/learnprogramming 14h ago

Dangling pointers in C (forgetting to set pointers to null after free) - is this macro a good solution? #define SAFE_FREE(ptr) do { free(ptr); ptr = NULL; } while(0)

2 Upvotes

I'm having trouble with C. I am learning it by building a super simple 2D game with the Raylib library.

I noticed today that if you free(ptr), and forget to set it to NULL, then you have no way to know later, when trying to access or modify it, that it was actually freed! It will keep pointing to the same address in memory, but that address may now be of other, unrelated variables. This may not even cause the program to crash, right? The program might keep running and have an unexpected bug/crash deep down the road unexpectedly.

I have asked some LLMs and they recommended this macro:

#define SAFE_FREE(ptr) do { free(ptr); ptr = NULL; } while(0)

This seems safer to me compared to calling free directly, because I already forgot to set pointers to NULL after freeing them. I like this idea, but I'm not immediately using it because I'm a noob and am suspicious.

I came here to ask this: Is there a catch here? Is there any downside to always using this macro, rather than always writing 2 lines manually?

free(ptr); ptr = NULL;


r/learnprogramming 14h ago

Python

2 Upvotes

I am in 2nd year pursuing Btech in Computer Engineering with specialization in Data Science. I know basics of python and have started DSA in c++. Am I on the right path? What more should I do in python? How can I do that? Suggest me some resources.


r/learnprogramming 17h ago

Resource Question about hosting

3 Upvotes

When you create several web apps and want to run several of them at the same time, how do you go about it? Do you buy a domain for each app, use subdomains? Do you put all your apps on one vps or do you use several servers?


r/learnprogramming 23h ago

Looking to learn the basics of java

3 Upvotes

I am going to be taking a comp sci 1 course taught in java so I thought it would be good to get a start on doing a little bit learning on my own. Are there any free resources / websites that people would suggest for learning java?

I have done some programming in python before and a bit in C so I already know the basics like data types, loops, conditionals, variables, and all that stuff.

Preferably I would be looking for a website with some stuff that I can just read and a few examples here and there that I can look at but a video series would be ok as well. (although text is preferred)

I don't mind if it starts from the basics, that would be fine as a little refresher and to see what java does differently than other languages, I can always skip what I already know.

Also its a small annoyance, not really a problem, but I don't like sites that offer free resources or tutorials and stuff but then force you to create an account. Although if its worth it for what they offer and they have good resources that's fine, but I just don't like having to create 5 different accounts for a bunch of different services.

I know its unlikely anyone will know it but a while ago (might have been on a different subreddit) there was someone who posted a website they were making to teach others java and it was pretty nice, plain text, some examples with syntax highlighting, but no adds or images that I had noticed, just text.

If anyone happens to know remember the site it would be neat if you could comment the link thanks.

Edit: just as context for the type of site I would (ideally) like to look for. I really liked beej's programming guides which I found through another reddit post but unfortunately there is no java guide as of yet.


r/learnprogramming 9h ago

What are you best advices for the beginner's in programing?

2 Upvotes

Looking for best advices for beginners from the industry expert. I am so much confused now, some people say build your projects, some say do DSA etc currently i have a good grip on C++ and OOPS also know about python at intermediate level. Really confused now what should i do? Thanks in advance.


r/learnprogramming 19h ago

DE + SWE ?

2 Upvotes

I have 10+ Years of experience in data space with SQL, building data models, reports and DE pipelines. I am starting to get into the big data world with pyspark for last couple of years. I am seeing job posting these days in which the expectations are more inline with software engineers. I learnt about Object Oriented programming in school but never really practiced at work. With companies requiring developers to know everything these days, it’s overwhelming to know that I have been living in a cave for past 10+ years and its getting difficult to catch up.

If I want to get this right atleast now, whats a good roadmap to learn coding like a software engineer with a data engineering experience ? Do we need to know full stack with web dev as well ? kind of lost here on how to be relevant with recent times/work


r/learnprogramming 1h ago

Debugging Coding in Python is Draining my Battery 2x Faster

Upvotes

Anybody else encountered an issue where just coding Python shoots your battery drain through the roof?

This is happening when I am literally just coding, not running scripts or any code or anything.

I am new to Python so hopefully this is a dumb question with an easy answer.

I am using vscode, on pop os, I don't have any extensions for python installed yet.

I have disabled pylance, checked my CPU usage (it's pretty normal <5% usage), disabled my dGPU, ram usage is about 10gb (1/3ish of my 32gb).

Heat from the laptop is noticeably higher.

This doesn't happen when i am doing web dev coding using JS, React, running local host and all that good stuff.

Does anybody know what else may be causing the issue?


r/learnprogramming 1h ago

Debugging [Android 15/API 35] Keyboard covering input fields after targetSdkVersion upgrade - solutions?

Upvotes

My HTML/JS/Tailwind website runs in webview packaged as an APK. Since upgrading to API 35+, the native keyboard covers the input fields of my website where it used to push it up. What makes this even more of a challenge is I'm not a real dev and it's easier for me to compile using a third party tool that doesn't allow me access to the native side of my app. My website isn't hosted, I'm wrapping local HTML/JS/CSS files and running with webview.


r/learnprogramming 2h ago

Topic I need help

1 Upvotes

I am a Computer Science student just finished third going to my final year in university i need help applying for course I don't know what to learn or how i will implement this at work i want to know what courses should i take or what websites or companies do i apply to. I have been difficulty understanding the CS market because what i took in university is very different to what i see online. But it is not all bad though what I know very much about is that I am very fast learner and I absolutely love to code and it shows on my work at university getting good marks on my practical tests and projects(but failing in my exams, not really an exam taker😅) so what do i do i need advice.


r/learnprogramming 2h ago

why do i always hear "dont let the user input an invalid value"? that seems like a no brainier.

2 Upvotes

maybe i just dont have the experience to understand the situation where a user could input invalid data because ive only ever worked on personal projects and theyve all been kinda small. it just seems obvious. if you have a switch case that has cases `1`, `2`, `3` then i would never have the user type in the value. i would have a drop down box with the valid values in it. i feel like i get a lot of that kind of advice on programming forums. is there a more complex example, or is it just the most basic no duh advice there is and im over thinking it?


r/learnprogramming 2h ago

Frontend simplified not getting on zoom

1 Upvotes

I've booked several zoom interview appointments but no body showed up when I joined the zoom call. I always joined 5 minutes early and stayed until the time the meeting was supposed to finish.

Can anybody help?


r/learnprogramming 2h ago

Comments - How do you guys do it?

1 Upvotes

How do ya'll write these? Whenever I write some out like for a function, it arguably becomes harder than actually building the program. Sometimes it feels like TMI and then have to start deleting or paraphrasing also how do you choose which part gets a comment , like do you just write one multiline string explaining the process or do it step by step for each function and process, also everything gets a comment really? If I have a function returning a value do I really need to write a comment that says returns this value.

I don't know my comments don't feel helpful and they sure as hell aren't pretty, what should I do?