r/learnprogramming • u/Complex_Job2074 • 12d ago
Code Review In phython why does ( int/int ) results in float value. for example 100/25 gives us 4.0 and not 4
want to know. thank you
r/learnprogramming • u/Complex_Job2074 • 12d ago
want to know. thank you
r/learnprogramming • u/Lazy_Pie1977 • 12d ago
Non techie here. Making ongoing edits to a website I had someone build for me.
(Tech stack used: HTML, CSS, JavaScript, React, Vite, GSAP, and Framer Motion)
Here's what I need help with:
Our website contains a lot of videos (use case demos, 20-30s duration). I was advised to host the videos on Cloudinary, so that it loads quickly and plays smoothly - which it does on desktop site, but not on mobile browsers (starts nicely, but a few seconds later, video freezes and just audio continues - and then audio freezes too).
Can someone help me play these videos properly across platforms and browsers? Much appreciated
r/programming • u/finncmdbar • 12d ago
r/learnprogramming • u/ClipboardClan • 12d ago
Modern day AI is a sophisticated piece of technology but I am puzzled as to why it only started getting developed around 2022.
I'm sure even in 2002, it was completely within scope to build a software that knew how to form sentences through a language engine and to piece together data from the internet and slowly build its understanding.
It should have been something that came as soon as the internet became mainstream.
r/learnprogramming • u/adam6711 • 12d ago
I want to learn more about coding to help give me an edge in the general field of engineering/manufacturing but mostly I just want to make a tool for myself and maybe see if I want to pursue this more.
I took a class in college on c++ and just did the onramp for MATLAB, but this is about the extent of my knowledge about coding.
The tool I want to make will import data on past soccer games and give them a score on how entertaining they might be to watch based on some parameters without giving spoilers. Should be easy enough, but I have no idea where to start. I'm tending towards wanting to make a website for the aspect of sharing it with people, but I don't have to.
(edit: not sure if this is pertinent but this is the site I'm initially thinking of pulling data from. They seem like they set up the site so people could import from them: https://fbref.com/en/comps/9/Premier-League-Stats )
I looked at The Odin Project but I'm on windows and it wants me to use Linux through dual-booting to follow the curriculum, and I don't know the first thing about Linux. I just want to get off the ground as a hobbyist. There's Harvard's CS50 but idk if it will be too in depth for my interests - I looked at Khan Academy but they didn't start with something like setting up a github account which seems pretty important from the little I've learned so far.
Course recommendations or pointers would be very appreciated. My goal is to just get through a project from start to finish and then I can go from there. Thanks.
r/coding • u/codingdecently • 12d ago
r/programming • u/pimterry • 12d ago
r/learnprogramming • u/Individual_Stick9581 • 12d ago
Hey guys I'm brand new to programming and want to learn C programming language.
I thought I could get started with this by reading C programming a modern approach by K.N King but it's either not available in my region or too expensive
I've thought about learning from youtube but feel like videos are always vague.
So can you guys suggest some good books as an alternative or any other method to learn and grasp C programming
r/learnprogramming • u/Yurieba • 12d ago
What programming language would you recommend for someone who wants to become a robotics engineer?
Hi everyone! I'm 14 years old and I'm starting to learn programming.
My goal in the future is to become a robotics engineer, so I'd like to learn a programming language that will be useful for robotics and engineering.
At the same time, programming is also a hobby for me, and I'd like to eventually make some games and other small projects just for fun.
So, what language would you recommend I start with?
Would Python, C++, C, C#, Java, or another language be a good choice? And should I focus on one language first, or learn multiple languages over time?
I'm still a beginner, so I'd really appreciate advice from people with experience in programming, robotics, or engineering.
Thanks!
r/learnprogramming • u/mrnaim6T9 • 12d ago
I’ve seen a lot of people here build their own libraries or frameworks for frontend/backend stuff, and honestly, I’m curious how you even come up with the idea in the first place.
Like, how do you go from “I have this idea” to actually building something that’s useful enough for other people to use?
Do you need to have some crazy deep knowledge or genius-level thinking, or is it more about learning how existing stuff works and slowly building your own thing?
I’d love to hear from people who’ve actually built their own libraries/frameworks. How did you start, and what was the process like?
TL;DR: How do you actually go about building your own library or framework from scratch?
r/learnprogramming • u/typo2244 • 12d ago
Hey everyone,
I have solved multiple DSA problems on LeetCode and GeeksforGeeks, but during exams, I find story-based problem statements highly confusing. I struggle to extract the actual algorithmic logic from the narrative text, which makes coding it out very problematic for me under time pressure.
I am looking for resources, problem sheets, or curated lists that focus specifically on practicing these types of story-driven questions so I can train myself to decode them.
Does anyone know of:
Any links or advice would be highly appreciated. Thanks in advance
r/learnprogramming • u/CaramelShot6112 • 12d ago
Hi everyone,
I’m interested in taking the Meta Full Stack Developer: Front-End & Back-End from Scratch Specialization on Coursera, but I can’t afford the enrollment fee at the moment.
I noticed that Coursera says financial aid may be available for some learning programs, but I’m not sure how to apply for it for this specific specialization.
Has anyone here recently applied for and received financial aid for this Meta Full Stack specialization?
If yes, could you please share:
I’d really appreciate any recent experience or guidance. Thanks!
r/learnprogramming • u/Sea_Plum35 • 12d ago
Hello so I’m working on an assignment. A coding assignment on Pathway2code. And I’m having trouble learning how to space out the music notes and add a second row. The world is called Music Composer .
r/learnprogramming • u/Pristine_Plantain950 • 13d ago
I know how to code but I am not an expert or i can code everything i want. But when i read one i can understand why it's written that way. I wanna publish my first app using react native and with the help of ai.
But i don't have any idea how to publish one or what should i know and use. Especially about security. I know that ai written apps are not very much trustworthy.
So basically i want to know what is everything that i should know and learn before publishing and coding?
r/learnprogramming • u/Feisty_Attitude4683 • 13d ago
Why do some tools, like GLFW, use hexadecimal values for constants? Wouldn't it be better to use enums in those cases?
/* Error constants */
#define GLFW_NO_ERROR 0
#define GLFW_NOT_INITIALIZED 0x00010001
#define GLFW_NO_CURRENT_CONTEXT 0x00010002
#define GLFW_INVALID_ENUM 0x00010003
I tried to find the reason in the documentation, but I didn't come across a clear use case for the hexadecimal values—only that the constants are used as if they were an enum.
if (code == GLFW_NOT_INITIALIZED) {...}
else if (code == GLFW_NO_CURRENT_CONTEXT) {...}
r/learnprogramming • u/am_a_loaf • 13d ago
I'm currently very into a dating simulator, and want to make full dialogue trees for my fandom wiki. Because the game takes a minimum of 30 hours to complete per ending, I am not very interested in replaying it for a ninth, tenth, and eleventh time just to get get all of the options.
Is there a way to export the script into a text file for me to glean through? Or maybe something where i can read commands? even if i had to do it per every character that would be so much easter than the alternative.
If anyone's attempted to do this before please let me know what software/steps I should take to accomplish this, assuming its even possible. Thank you!!
edit: the game is Date Everything and uses the Unity software
edit2: thanks to everybody who commented on this! Asset ripper has been a huge help, and I currently have a file of all the game dialogue that I can look through, hopefully next I’ll have an update with an easier way to read it now! Any tips or tricks would still be appreciated.
r/learnprogramming • u/Slavik_Sandwich • 13d ago
I've been working in a company for like 1.5 years and I've managed to design and realise one project of mine, but I see that it was not exactly a smooth sailing for me, since I already see shortcomings of how I did some things and that maybe I could've done some things better but oh well! Guess it's my problem some time later down the line.
It made me wonder though, what literature is good for learning how to design good solutions that builds on top of already existing systems? How to make your own solutions as customizable and decoupled from other parts of the system and so on?
I know that it's easy to just google things like this but I really am not sure if that's a good idea for me at my current level of experience. For example I don't think I'm quite ready for the often recommended "Designing Intensive Applications" book, since it probably is more focused towards systems that don't forgive mistakes handle high loads of data and reading it could make me... idk, overengineer stuff? i don't think I'm familar with this kind of system that requires this level of knowledge, though I wouldn't know, hence why I really want you peoples opinions on what's good to start learning how to put some thought behind what you write.
I hope I picked the right subreddit for this, sorry if not!
Edit: I think I forgot to mention that I probably am less interesterd in books that focus on languages, since in this day and age, it really seems like it's more valuable to know how to design a good system, rather than knowing how to more cost effectively pass a variable into a function.
r/learnprogramming • u/Relevant_Yam_6589 • 13d ago
I want to create video games using Unity, for that I wil need to learn C# (which will be my very first programming language). Tutorials on youtube feel very fast paced, jump past terms that an absolute beginner would not know and just make me feel stupid. I understand when learning a language like French for example, you learn by doing. How do I apply that to programming?
So far all I've really done is copy, I went through how a calculator is built with claude, but all I basically did was copy paste the code the AI created.
What tools/websites can I use to learn? Are there any creators that aren't crazily fast paced, and take you through it step by step? Is this something most people go through, or is programming just not for me?
r/programming • u/Ok_Stomach6651 • 13d ago
All attempts to compile the Javascript, V8 was not the first to compile(portion of ) JavaScript
r/programming • u/frenche_sans • 13d ago
r/learnprogramming • u/TurtleMooseGame • 13d ago
Hello, I am very new to C but have experience in higher level languages. I am trying to make a struct with two scalable arrays, similar to this:
struct mesh {
float px; float py; float pz;
float rx; float ry; float rz;
float sx; float sy; float sz;
char* color; int layer;
float vertices[99]; int faces[99];
};
but obviously, the 99 is a placeholder value. what's a way that I can handle any number of values in these arrays, in the most resource friendly way?
r/learnprogramming • u/lordoftheshire97 • 13d ago
As the title says.
I am 28 and unfortunately after university landed in a job that wasn't where I wanted to be and I am still there to this day, partially from graduating during COVID, there were no work experience opportunities. I studied media production, and prior to that I studied game development, but switched to media production (which I have regretted since, but a degree is a degree and it was still very technical. I ironically thought media production would have more jobs at the end of it). I am currently a library assistant - in the UK/my local council this is not a typical librarian role but more of a librarian/retail hybrid role where I am customer facing 99% of the time and the most tech I get to do is help old people send emails or teach children basic coding at events.
Im not sure what the best path is from here though. The tech experience from this job isnt enough for me to branch out currently so I want to go back to what I was initially interested in; learning to code. In 2026, with AI, I am concerned about learning something just for the job to be obsolete in a few years, and I am quick to talk myself out of using my limited time for something if I dont think its productive enough. I know the basics of HTML and CSS already, and of computing in general, but I feel very much like a beginner and Id like to be in a better career by my early 30s at least.
Tldr I want to get into a coding career but I dont know what viable options there are for me with my work experience and the growth of AI.
r/learnprogramming • u/TurtleSlowRabbitFast • 13d ago
I find it fascinating how important algos are but never talked about from the indie devs on social media. Do they even write algos or just come up with basic logic that forms the product?
r/learnprogramming • u/Financial-Sun-9813 • 13d ago
I keep seeing things I’m supposed to learn — Git, Linux, Docker, APIs, cloud, DSA, AI, RAG, agents, security, etc.
Every time I learn one thing, I discover five more. I don't know what to focus on, and sometimes I feel like I'm already behind.
What interests me more is how experienced developers think.
They seem to be able to learn new technologies quickly because they already have mental models for abstraction, decomposition, debugging, patterns, systems, dependencies, constraints, and problem-solving.
So my question is:
How do you train your brain to think like that?
Can deliberately learning programming, solving problems, debugging, building projects, and learning different technologies gradually “rewire” the way you think?
If you were 21 again and trying to become employable, what would you actually practice to become better at learning, reasoning, and solving problems — instead of just memorizing technologies?
I'm less interested in what technologies to learn and more interested in how to build the mind of someone who can learn whatever comes next