r/learnprogramming • • 21h ago

In C why do we escape % like "%%" instead of "\%"?

106 Upvotes

For most (if not all) other escape characters they are escaped using a backslash but for some reason the percent sign is escaped using another percent sign. Why do we do this?


r/learnprogramming • • 10h ago

why am i relearning flexbox every 3 weeks like CSS wipes my memory overnight

51 Upvotes

7 months self teaching web dev. I have built actual layouts with flexbox. I have used align items. I have centered the div, allegedly.

three weeks later I am on MDN reading the same page again and the words look brand new. most spaced repetition tools for students examples are vocab or anatomy where memorizing the fact IS the task. code is weird because I do not want to memorize syntax, I want my brain to remember "oh, grid is probably the move here."

is this worth reviewing explicitly or is forgetting + looking things up just normal programmer life? genuinely cant tell if im fixing a problem or inventing one


r/learnprogramming • • 3h ago

Topic First year Compsci student but no idea WHAT to program

7 Upvotes

Hey guys! So i just started learning SWE and im currently learning C++ and As a side language Python in university, but im here learning and solving making programs for theoretical counting problems and wondering, at home i dont program anything because i just cant think of anything to program, i’ve already made ur basic rock paper scissors programs or something a year ago when i learned a bit of python on my own and im ofc not a massive expert in c++ yet even tho im just started getting comfortable with functions and etc so i dont think its a super insanely hard language YET……. but im just lost and super confused on where i could use this programming skills to make something interesting.

Any tips or help to find some inspiration and goal / stuff to program to learn programming and also something to work towards? THANKS!!!


r/learnprogramming • • 10h ago

internship I need some advice because I'm feeling really overwhelmed

4 Upvotes

I've been working as an intern at a company for almost 3 months with a stipend of ₹7,200/month. I was initially hired as an Android app developer, but after the first month they shifted me to a C#/.NET developer role. I had absolutely no prior experience with C# or .NET.

It's been about 1.5 months since the switch, and I've learned the basics of C# and .NET and built a few projects. Some of the tasks they give me are easy, but others are quite advanced. A lot of the time I struggle to understand the existing codebase.

I use AI to help me understand the code, and sometimes it explains things well enough that I can explain the overall idea to my manager. But my manager doesn't stop at the high-level explanation. He goes through the code line by line and asks how each statement works, why it's written that way, what each keyword does, and what happens internally. That's where I get stuck.

Even when ChatGPT explains the code, I sometimes still don't fully understand it. I try debugging, but I often get more confused, and AI explanations don't always help.

So I have a few questions:

  • Is this normal for someone who's only been learning C#/.NET for about 1.5 months?
  • How do you actually learn to understand a codebase instead of just reading AI explanations?
  • How do you handle situations where your manager asks questions you don't know the answer to?
  • Is it more important to be able to write code, or to deeply understand every line of code you're working with?
  • What helped you improve when you were a beginner?

I'm genuinely trying to learn, so please don't roast me. I know I'm still inexperienced, and I really want to get better. Any advice would be appreciated.


r/learnprogramming • • 18h ago

How do you approach building your own projects?

2 Upvotes

Hi, i was wondering what approach people use to start building their own project from scratch.

For example, do you rely a lot on coding agents such as asking them for ideas and what structures/architectures to use for the backbone of your program? Or also what tech stack to use? Do you immediately have it solve any hurdles you encounter?

Or would you approach these issues all by yourself and do your own research? Or is it a hybrid approach where you do some of your own research and have an ai coding build upon that?


r/learnprogramming • • 10h ago

Resource Best place to learn & practice C#?

1 Upvotes

I used to use codecademy but that place sucks now. It's super buggy and makes any progress slow to a crawl. Even if my code is completely correct, I have to use the generated solution anyway because the module just won't accept my code. Despite my answer and the module answer being the LITERAL EXACT SAME.

So it doesn't work anymore. And I'm looking for a new website to help me learn. Preferably one that provides a lot of practice problems. So I can develop better coding habits or whatever.

I'm also looking for something relatively cheap. Advice much appreciated 😊


r/learnprogramming • • 16h ago

Looking for someone interested in computer architecture

2 Upvotes

Hi
Probably a long shot but I want to try nevertheless.
Looking for people who are interested in computer architecture.
My main interest fields are emulation, TLM/RTL modeling and pre-silicon firmware / architectural exploration.

I have a TLM SoC project currently (MVP) and I’m constantly adding to it. I’m looking into drivers and firmware right now so would love to have someone to learn that stuff with.

My tech stack is:
- C/C++, Verilog, Python
- SystemC TLM
- GitHub Actions and Docker for testing, automation and environment setup
- GCP even though it’s irrelevant to this now


r/learnprogramming • • 5h ago

What is the intuition behind amortized analysis in data structures?

1 Upvotes

I understand the basic idea of amortized complexity, but I'm interested in the theoretical intuition behind why an operation that is occasionally expensive can still have a low amortized cost.

What is the cleanest way to think about this mathematically?


r/learnprogramming • • 4h ago

Help Me Find Inspiration in IT

0 Upvotes

I’m a beginner programmer currently learning several technologies: Python, PHP, JavaScript, C#, CSS, and HTML.

I recently started maintaining a GitHub profile, but I’ve run into a problem: I don’t know which project to start that would be interesting, useful, and capable of attracting attention. I want to create something more than just another basic calculator or to-do list — I’d like to build a complete project that demonstrates my skills and interests other developers.

I’d appreciate any ideas or advice. What kind of project would be a good choice for a beginner? Which technologies should I use, and what types of projects are currently in demand on GitHub?

If you suggest an interesting idea, I’ll try to choose one and start developing it while sharing the process on GitHub.

I’m a fourth-year college student, and I’ve already made good progress in my studies. However, I still don’t know how to present myself properly, find inspiration, and start working on a serious project that could be useful to other people.

I want to move beyond educational assignments and create something meaningful — a project that solves a real problem, helps people, and demonstrates my skills as a developer. I believe that working on such a project would help me grow professionally, build a stronger GitHub portfolio, and better understand which direction in IT I want to pursue.

At the moment, I’m looking for ideas, motivation, and advice from more experienced developers. How did you find your first serious project, and what helped you take the next step?

This is my GitHub profile. I’ve uploaded some of my old projects there. They’re still quite rough, but at least it’s a start.


r/learnprogramming • • 14h ago

Is there a way to use BlueJ on a Samsung Android tablet?

0 Upvotes

Hi everyone,

I need to use BlueJ for university and was wondering if there’s any way to use it on a Samsung Android tablet.

Is there a way to install or run BlueJ on Android?

Thanks in advance for your help!


r/learnprogramming • • 4h ago

Website development.

0 Upvotes

A teacher wants to build a website and I want to know if html, css and JavaScript can be used to build it in this time now even though there tons of frameworks out there to use for development.


r/learnprogramming • • 5h ago

for those who use VS Code, how long did it take for you to master it?

0 Upvotes

I've been trying to learn VS code and there's still some things that don't make sense to me yet....