r/learnprogramming 39m ago

Is '||' the same as 'or' & is '<>' the same as '!='?

Upvotes

I'm learning PHP and I've come across '||' & 'or' but they seem to do the same thing? Again with '<>' & '!='. Do they mean the same thing? When I search online, google gets confused and doesn't give me any relevant information.


r/learnprogramming 1h ago

Debugging Help wanted: Multi-pipe Dijkstra routing and lane ordering

Upvotes

Setup: (Pyhon)
I am routing pipes from one manifold to multiple rooms through a 2D floorplan (vertices at corners/doorways, edges along walls). Each pipe's route found via edge-based Dijkstra. Vector-based, float coordinates, not grid-based.

Constraint: pipes sharing an edge run parallel at fixed center-to-center spacing `d`, must never cross, anywhere.

Problem 1: lane ordering: When n pipes share an edge, each needs a lane index (or?)(offset from wall). Furthest (Dijkstra)->Closest to wall fails because of doorways, resulting in shorter pipes crossing over over the longer pipes to enter their room /door. How do I ensure these pipes are ordered (automatically) in a order in which they do not cross each other.

Problem 2: building on problem one: How do I ensure this parallel lane offset is aslo enforced in corners and accounted for in the calculation of the total length of the pipe?

Any experience or suggestions on the subject are appreciated !!


r/learnprogramming 2h ago

What can i do to use my code

Upvotes

I know how to code in JavaScript and Python, and I’m willing to learn more, but I honestly don’t know what to code or where to code.

I learned programming in school, but I was never really taught how to take the code I write and actually turn it into something useful. We made one website and mostly used Code.org, but that was about it. Now I want to start programming again, but I have no idea what programs, websites, or tools I should use to actually write and run my code outside of Code.org.

I also don’t really know what projects I should start with. I love video games, and I’d really like to learn how to make my own games, but I have no idea what I need to learn, what software I should use, or what my first game should even be.

I really want to get back into coding and start building things instead of just doing school assignments, but I’m not sure where to begin. I’d like to know what I should download, where I should code, what I should learn first, and some beginner-friendly projects I can work on — especially if I want to eventually make games.


r/learnprogramming 2h ago

What is the best way to study "Interview Questions" ?

Upvotes

Hello, in interviews there are some specific questions about the languages, frameworks, technologies and I want to learn the answers for them but the problem is most of these questions doesnt really one shot answer so I find myself rely on someone elses article or asking ai (which returns butchered answers). So what will be the best way to learn them?


r/learnprogramming 4h ago

How to deeply understand Assembly language

Upvotes

Give me some advice if it works for you.


r/learnprogramming 5h ago

For people learning programming for ML/AI: what's the hardest part?

Upvotes

What are you currently stuck on, confused about, or frustrated by?

Would genuinely love to hear what you're struggling with.


r/learnprogramming 6h ago

What could help me get more excited and improve at learning programming?

Upvotes

Hey, I’ve got a question, what’s better for learning: working on really small projects like coding Snake, Pac-Man, Tic Tac Toe, etc? Or focusing on small games too, but with mechanics that actually interest me?

The thing is, when I make those tiny games I feel like I’m not progressing much, and I’m always checking tutorials. (And something that happens when I try to focus on coding those small games is that I get kind of lazy, and I end up sabotaging myself by doing other things instead of programming. It’s like I keep putting off those little projects because I feel I won’t be able to pull them off completely on my own, and then I have to face my own lack of knowledge.)

And I get the feeling that if I were to focus on games I actually want to create, just scaled down to a much smaller version, I might be able to learn with more motivation, though I don’t really know if that’s true. (I feel like it doesn’t bother me as much to watch tutorials on specific parts instead of how to build the whole game, because I know I’ll be able to apply that knowledge again later. Not sure if that makes sense.)

I’d love to hear your experiences on how you got better at programming over time.


r/learnprogramming 11h ago

4th-year CSE (AIML) student, with almost no practical programming skills, requesting mentorship and guidance

Upvotes

I'm a 4th year B.Tech CSE (AIML) student, and I'm honestly feeling pretty lost right now

The problem is that I'm reaching out to people who don't have a proper understanding of what I'm going through

Right now, I'm in a situation where I have no idea how to proceed with my studies and career

I think the best way to introduce myself here is to say that I'm currently in my 4th year of studying B.Tech CSE (AIML) and I have almost no practical skills in programming and computer science

I've learned a lot of the core concepts like Python, Java, SQL, DBMS, OOP, DSA, Web development, AI/ML, etc and I've had my share of attending classes, watching lecture videos, learning by myself, taking online courses

There is a huge difference between knowing theoretical concepts and being able to apply them to practice

A person can come up to me and ask me something like

«Do you know Python?»

and I would say yes, because I studied it for 2 years in college

But when they give me a blank file and a task to accomplish, I find it extremely hard to do so

Sometimes I can understand existing code with others explanations, recognize concepts and terms, but when it comes to actually writing something myself, I'm clueless about what to do

What should I do? How should I break the problem into smaller parts? What concepts should I apply here? What should I write/debug/test? And so on and so forth

And this list of problems is only a fraction of what I have to deal with

I've tried multiple times to tackle this problem by starting over

I've taken up courses

I've tried to learn by doing projects

I've tried to learn programming from scratch again

I've tried using roadmaps

I've tried to do projects by following tutorials

But there's always that initial excitement, then the impatience sets in, and eventually I reach a point where I just can't proceed anymore and I have to abandon the project/course

My problem here is not that there are no resources

It's that I don't know what to do first

I don't know how to proceed, what to learn, and what to ignore

I don't know the depth of knowledge I should gain for each topic

I don't know what projects to make

I don't know how to measure understanding of a concept or topic

And I'm not even sure how to prioritize between these factors

Right now, I'm in my 4th year and I don't have that luxury of time to randomly try out different stacks and technologies

I'm genuinely motivated to improve, but I need help figuring out how

I'm not looking for anyone to spoon feed me the answers

I'm willing to put in the hard work, even if it takes me a while

I'm just looking for someone who has the experience to look at my case and tell me something like

"These are the problems you're facing. This is where you are in your journey. Forget about these things for now. First, do this → then do this → then do this. Don't worry about X before you reach Y."

I'm looking for experienced seniors, freshers, developers, and mentors who can recognize my case and help me somehow

If you were in my situation, with almost no practical programming skills, what will you do?

- What will you learn first?

- What language/stack will you choose?

- How will you re-learn programming fundamentals?

- How will you learn DSA?

- What projects will you make?

- How will you divide your time between placements, DSA, development, and fundamentals?

- What things will you avoid learning for now?

I'm not looking for a generic answer like "learn DSA + dev + make projects"

I'm looking for someone to give a realistic vision of how someone with almost no practical skills can reach the level of being eligible for placements, and if possible, how to practically implement that vision without getting stuck in a loop again

Any realistic opinion is welcome, even if it's a brutal one

And if you're someone who can give me mentorship and guidance every once in a while, I'm open to that too


r/learnprogramming 11h ago

Meaning Maps Build - How Good Possible?

Upvotes

Hi, I have a bunch of text, that I need to analyse to build a tree map of concepts. The concepts need to be sorted from higher lvls of abstraction to more detailed. For example, the program needs to understand that the idea "I want to create beauty outside of factory-based presets" mentioned in the text is the highest lvl and includes ideas like "I was inspired by Kabuki theater" in itself.

Note: Ideas themselves sometimes aren't presented in the source material bluntly, i.e. the idea of "I want to create beauty outside of factory-based presets" can be mentioned in fragments only that the program also needs to understand and put together.

Are there any available programs or basic frameworks to approach this?


r/learnprogramming 13h ago

Code Review how can i be a coder who can build a jarvis in computer

Upvotes

whats the proper pathway to create it?


r/learnprogramming 15h ago

Microsoft Visual Studio

Upvotes

whenever i type
std::getline

i get red line under getline and i cant run my code
Even though its working on VS code for my friend
any idea what can i do or is there any alt to write?

" using getline for this: "

#include <iostream>

int main() {

std::string name;

std::cout << " Enter your name: ";
std::getline(std::cin, name);

if (name.length() > 15) {
std::cout << " Your name can't be over 15 charectars ";
}
else {
std::cout << " Welcome " << name;
}

return 0;
}

r/learnprogramming 16h ago

Is it possible to make your own Oura Ring?

Upvotes

Sorry if this is the wrong subreddit, I wasn’t sure which category this fits into. I want an Oura ring or something similar, but I’m not crazy about my data going out to other people more than it already does, and I want to avoid subscription fees.

I want to figure out if there is a way to take a base device and get it to a point where it only goes to my phone. I am not a programmer, but I have talented friends who enjoy side projects. My main question is if there is a simple/open source software that we could use, or if it’s too complicated for beginners.


r/learnprogramming 16h ago

Resource How to learn coding?

Upvotes

I started learning coding recently and i have knowledge of basic python and lua, tho since my goal is to make addons for gmod, i started learning glua, tho my only source is AI, and half of the things it tells me are bs

If anyone could tell me how did you learn scripting quickly without needing AI or specific tutorials ill appreciate it


r/learnprogramming 16h ago

I am creating a manual note taking tool for understanding large codebases

Upvotes

Hello everyone, I am using Godot engine to create a note taking program for uderstanding and referencing codebases, possibly also for documentation.

Basically it has different pages that support markdown you can define different types of pages (classes, functions, macros, headers, libraries, enums, structs etc.) and when you take notes you link them together. When you start to write notes for a new class you write a dependency, lets say it is a static function for some system, it automatically highlights it and when you hover it you get a little card that shows the input outpu return type and description you wrote. So you don't need to open the definition again or search for the documentation online. Also there will be a little graph view to link pages. And see classes based on inhertiance and interfaces. I am also planning to add pages for how systems work, rendering pipeline or asset management for example for a game engine.

I do this because I am struggling to understand large code bases. As a game developer I want to understand complex systems more deeply. For instance I study the godot code but many times I turn back to look at same classes and functions to see what they do. Would you also use a tool like this? Are there any tool that achieves this that I am unaware of? What do you think?


r/learnprogramming 16h ago

What do I do as a backend dev now that I need a frontend for my project?

Upvotes

I have started working on an open source project 3 months ago and now I need some sort of frontend to interact with the backend. And even if I could call APIs via curl or postman or whatever for now, at some point, I still will need a frontend website for my project.

I haven't done websites before and have done exactly 0 frontend work. Should I learn frontend dev? If yes, how should I begin?


r/learnprogramming 16h ago

Any good resources to learn practical SWE?

Upvotes

Looking for a good structured course to learn industry standard software engineering that:

  1. Video based, not text - don't like reading pages of text
  2. Videos are not too long - max like 10 minutes per video (easy to digest topic by topic)
  3. Covers everything you need to know to be able to understand and work on industry standard projects

I ask this as an alternative to internships to build my skills.


r/learnprogramming 17h ago

If functions can have other functions in them, why not use them instead of classes?

Upvotes

I´m a beginner in programming, and I´ve been wondering now why classes are so much more useful than functions. I know classes are good, but I don´t see why they are better than just having multiple small functions in a bigger function.


r/learnprogramming 17h ago

Would it make sense to learn programming at 30?

Upvotes

Hi. I just want to know if it would make sense to learn coding at this age from freecodecamp or the Odin Project and hopefully get a job as a software developer? Thank you!


r/learnprogramming 17h ago

Tutorial How do you even start to build consumer app ideas?

Upvotes

Got a pretty simple idea for a consumer app, basically a way for people to track group expenses without needing to sign up for anything complicated. Sounds easy but every time I look into how to actually build it I go down a rabbit hole and end up more confused than before.

Do most people just hire a dev? Learn to code themselves? Use some kind of builder? Curious what path others have actually taken when they had an idea but no real technical background.


r/learnprogramming 17h ago

Is it normal to forget syntax over time?

Upvotes

I've been learning PHP for a little while now, around 2 months. Before PHP I was learning JavaScript but now I seem to be so bad at writing JS. I can read it perfectly fine and I understand it but when I come to actually writing it myself, I end up forgetting the most simple things.


r/learnprogramming 19h ago

Topic Does learning programming in traditional way still consider a good professional career

Upvotes

I'm a generalist software engineer with a lot of professional experience in front-end engineering.

Learning programming started as a hobby for me, and I'm still learning every day about different concepts in software engineering and related topics.

Recently, I started building an app for my wife to help her manage her diet in my free time. I got the idea from thinking, "Instead of doomscrolling, why not build this app from my phone?"

So I created a VM on GCP, installed gcloud on my PC, initialized an Expo app locally, pushed the repo to GitHub, and gave Cursor's remote agent access to the repo. Then I prompted Cursor to run the app on the GCP VM, use a Cloudflare Tunnel with a custom domain, and deliver the live changes from the VM to Expo Go.

Now I'm basically prompting Cursor to build every feature and using Supabase as the backend. I'm having a great time building a native app with Expo/UI. The only challenge is UX, but that's a different topic.

What's interesting is that, despite being in this field for years, I intentionally didn't want to look at the code, do code reviews, or enforce any particular architecture or design patterns on the AI agents. That would basically be me technically building the app while pretending I'm not.

Instead, I'm approaching it almost like someone who only knows English: I describe what I want, the agents build it, and I tested whether the result actually works for the person I'm building it for.

How maintainable the code is? I don't know.

Whether it's going to scale? I don't know.

It's a small app, but it has a real and beneficial use case for a specific person. And that makes me wonder: what actually matters now about learning TypeScript, or another programming language?

In my work, I'm in touch with business people. Even before the AI era, most of them didn't really care about things like accessibility, contrast, code maintainability, or architecture. They want the product delivered, the client to wire the money, and that's it.

And honestly, I understand that from a business perspective. Get the money from your client's pocket into your pocket 😂. That's basically the business.

So how traditional software engineering is going to work for small-to-medium companies over the next few years, especially companies working with clients at roughly the same level. Is traditional software engineering still going to be enough to put food on the table?

LLMs and agents are also software at the end of the day.

So does someone who wants to stay relevant need to take their current technical knowledge and transfer it into AI/ML? Not necessarily by becoming an ML researcher, but by learning how to build custom agents, maintain them for an organization, and continuously improve them.

Instead of building a custom software solution for Client A, maybe we build an agent for Client A that can actually handle parts of their business because we already have the domain knowledge that the client provides.

Maybe the value shifts from "I can write the code" to "I understand the problem, I understand the business domain, and I know how to build and maintain AI systems that can solve that problem."

That's the part I'm really trying to figure out: what does being a software engineer actually mean when writing the code itself becomes increasingly automated?


r/learnprogramming 20h ago

Where can I find an apprenticeship in larger projects to help build experience?

Upvotes

Now that I wish to enter the professional realm in earnest, where can I start in terms of first helping with bigger projects first? What places or sites are recommended for this?


r/learnprogramming 20h ago

Where do I go from here to actually become a good programmer?

Upvotes

I’m a 3rd year CS student and I’m a bit stuck on where to go from here.

I feel like I can do algorithms and LeetCode reasonably well. I’ve learned a decent amount of DSA through college and I’ve built a few projects in different languages, so I don’t feel like I’m starting from scratch.

But I don’t feel like I’m a good programmer yet.
What I really want to get better at is being given a problem I’ve never seen before and actually being able to figure out how to solve it. Not just recognising a LeetCode pattern I’ve practised, but being able to approach something completely new and work it out.

I also feel like there’s just an insane amount of information to know. There are so many languages, libraries, frameworks, algorithms, tools, concepts, etc. that I don’t really know what I’m supposed to focus on anymore.

So for people who are experienced programmers, where do I go from here?

What did you actually do after you had learned the basic algorithms/data structures and could solve LeetCode problems that helped you become actually good at programming?

Should I focus on building bigger projects? Pick one language and get really good at it? Read other people’s code? Learn more about how computers actually work? Spend more time solving things without looking up the answer? Just start building things and learn whatever I need along the way?

And specifically, how do you get better at the problem-solving side of programming when you encounter something you’ve never done before?
I’m not looking for a LeetCode roadmap. I feel like I already know how to study algorithms. I’m more interested in what the next stage actually looks like and how to stop feeling overwhelmed by everything there is to learn.


r/learnprogramming 20h ago

Help I am a beginner

Upvotes

Hi everyone I am from a non tech background and I am looking to get a tech job. What are the courses I can take?

Where should I learn from?

What should I do? What resources should I use?

Please provide a roadmap.


r/learnprogramming 22h ago

Topic How to learn to do things the "right" way ?

Upvotes

I've been using AI a lot for coding, and I feel like I'm not getting better at making things and not learning how to do them properly.

For example, If I have complex db changes, cascading events, propagated properties that depends on hierarchy etc... I can get something that works but idk if it's actually production grade or is there a better approach.

I hope I formulated my problem clearly.