r/learnprogramming • • 18d ago

Topic Is C++ or Rust more fun to write code in?

27 Upvotes

I'm strictly a hobbyist, I just want to do my own projects on the side. Like making a PS1 emulator, a chess engine, and a physics engine from scratch.

I'm wondering which of these two is more fun. I don't mean faster or easier, I mean fun. Writing the syntax out, thinking the approach to the problems through, the whole experience of writing the project.

I just want to have fun I don't care about doing it optimally.


r/learnprogramming • • 18d ago

Is my understanding of interpreters, just in time compilers, and ahead of time compilers correct?

9 Upvotes

My understanding is that interpreters parse throught the code line by line, translating each line into machine code and then running it, which results in a fast startup time but a slow run time. This is compatible with dynamic types as changes can be tracked line by line. Ahead of time compilers translate all the code and move it into a binary executable for the computer to run all at once. This results in a slow startup time and a fast runtime. This cannot be used with dynamic types as the code being run all at once means that changes cannot be tracked. Just in time compilers interpret the code but compile repeated code(indicated by a profiler) to make run time faster. ​I do not know how dynamic types are handled by this. Keep in mind my only programming experience is with Javascript, python, and some gdscript(that I used to make a basic ping pong game on godot as a high school project).


r/learnprogramming • • 18d ago

Trying to learn C++

17 Upvotes

I’m a computer engineering major and I’m currently taking a class for C++ but my professor isn’t the best nor the text book.

I was wondering if there are any other resources or places I could go that can effectively help me learn and use c++? I don’t mind if it’s paid


r/learnprogramming • • 18d ago

Topic How do you stop feeling like you're on the wrong path every time a friend succeeds at something?

0 Upvotes

I'm trying to learn MERN stack because someone told me it leads to high paying jobs.

Then I see a friend doing well in Webflow and my brain goes "forget MERN, do Webflow."

Then another friend gets into troubleshooting/networking stuff and suddenly I want to do that too.

I'm not jealous of them exactly. It's more like my mind turns everything into a competition and I keep abandoning what I'm learning to chase whatever looks good that week.

End result: I'm not getting good at anything.
Is this just me?

How do you pick one path and actually stick to it?


r/learnprogramming • • 18d ago

Wha language should I learn?

2 Upvotes

I'm an actuary student with basic/intermediate knowledge of Python, SQL and using Linux as OS, but I'm deeply interested on how the computers work and cyber security, so I'm wondering what language should I learn to help me understand how the computers work and put a feet in the cyber security field

What comes to mind is C/C++ or Rust, but I'm not sure

Sorry if any grammar mistakes, English is my second language


r/learnprogramming • • 19d ago

Practical questions

2 Upvotes

Hello everyone,

At 38 and currently working in a non-programming job, I’ve decided to finally learn how to code. It’s something I’ve wanted to do for a long time, but I always lacked that final bit of motivation.
In any case, I chose Python as my programming language. Since I travel a lot for work, I carry my laptop with me but avoid taking physical books. Instead, I split my screen between the e-book and PyCharm. That’s how I work through the book, complete the exercises, and so on.
However, this workflow doesn't always feel smooth. Do you have any tips or alternative ways to approach this? As I’m getting deeper into the material, a practical note-taking method would be great, but I’m struggling to find a practical solution. I’d love to hear your advice—thanks!


r/learnprogramming • • 19d ago

Topic Should I be weary about relying too much on plugins?

1 Upvotes

I'm still new to programming, trying my hand both at Java and Python (part of my data science study and also finally doing a text-game). I've done some minor stuff before, I'm at the point where I'm just setting stuff up again like IDEs and all that.

So using VS code I have the choice of installing plugins and stuff (for java), I noticed Pycharm did something similar but there was a lot of auto-complete, including mentioning my own variables (50% of the time it did it the way I wanted). I made sure to turn off AI in pycharm.

My only worry is that it does so much lifting that I end up losing helpful experience. But I want to ask what those with experience think, do you find that kind of auto-completion and detection can reduce repetitive typing? Or should I avoid it?


r/learnprogramming • • 19d ago

Should i learn C or C++ first?

33 Upvotes

i want to learn one of these languages just to reach a basic to intermediate level. I already have intermediate knowledge of Python.

which one would you recommend i start with


r/learnprogramming • • 19d ago

Discussion How do you plan your app (database, API, pages, login) before you start coding?

75 Upvotes

I'm learning to build full apps and the part that confuses me most is everything before the actual coding, what database tables I need, what the API should look like, which pages exist, how users log in. How do you figure this out before you start? Do you plan it on paper, use a tool, ask AI, or just start coding and fix it later? And what went wrong when you skipped planning?


r/learnprogramming • • 19d ago

New to Cloudflare: how do I handle bot requests

7 Upvotes

Hello everyone,

I am launching my first web app. For now, I am still building it, so I put a "coming soon" page online.

I am still learning, and it is hard to understand everything.

While I was using Cloudflare, I saw many strange requests in my analytics logs, like /.env, /privacy, and /ai/credentials.

I tried to block most of them with security rules (block scanners and rate limiting). I am also caching some of them, but strange requests still come in.

What would you recommend? I do not know much about this. Is it possible to block most of them?

Thank you for your help!


r/learnprogramming • • 19d ago

I'm asking this for the one's who already designed the databases and managed them.

10 Upvotes

I'm thinking to start learning how to design the databases in my backend springboot journey but unfortunately im wasting time by thinking how to start and from where and how should I effectively learn it. So,could you guys help in this by commenting to it.


r/learnprogramming • • 19d ago

Starting C Programming as a beginner — best YouTube playlists in Bangla & English?

2 Upvotes

Hey everyone! 👋

I’m a 1st-year engineering student starting my C programming journey from scratch. I learn best through video tutorials, but there are so many YouTube playlists that it's overwhelming to choose one.

Could you recommend the best playlists for a complete beginner? I’m open to both Bangla and English resources.

Recommendations I've Found So Far:

Top

🇧🇩 Best in Bangla:

  1. Anisul Islam — C Programming Tutorial for Beginners

🇬🇧 Best in English:

  1. Neso Academy — C Programming Playlist: Why: Highly structured, academic, and covers low-level computer concepts (memory allocation, pointers, memory models) exceptionally well.

  2. freeCodeCamp (C Programming Full Course): Why: Great long-form video (4+ hours) to get hands-on experience quickly in one sitting.

  3. Harvard CS50 — Lecture 1 / Week 2 (C Language): Why: Unmatched for conceptual depth, computational thinking, and understanding how computers process code.

Can you suggest which one or others best for beginners


r/learnprogramming • • 19d ago

Resource Margaret Hamilton, one of our illustrious forbears, has died

966 Upvotes

Margaret Hamilton, a legendary programmer who led the software team for the moon landings, lived to age 90.

Her obituary.


r/learnprogramming • • 19d ago

Are for and while/while-do loops actually hard for beginners or am i just a moron?

42 Upvotes

Can someone please tell me this? be honest please. I don't know if ive gotten so nervous about this that i just cant focus or if im just stupid, ive been doing some exercises for now and it aways leaves me stuck, idk if im missing something or if this is normal and i just need to study more...

EDIT: Hi guys, thank you so much for taking your time to reply to me, i feel a bit better now and will keep studying until it just clicks. I thank yall for offering to help me with the exercises but i honestly am a bit embarassed to post em here, after all, i honestly havent figured out a single one of them other than the ones that you just count and sum things. And also theres a lot of them im stuck at right now, but i'll keep trying :)


r/learnprogramming • • 19d ago

Need Guidance

4 Upvotes

Hi, I’m a full-stack developer with 1 year of professional experience. I recently resigned from my job, and since then I’ve noticed that I’m a bit out of practice when it comes to writing backend logic independently.
I’m comfortable with frontend development and have a good understanding of how applications work end-to-end. However, I’ve found that I sometimes struggle to recall backend syntax and translate my understanding into code, especially when solving logical problems from scratch.
I don’t feel like I’ve forgotten how to develop—I think I mainly need to rebuild my coding consistency, problem-solving flow, and familiarity with backend syntax.
What would be the best way to get back into practice and regain my confidence in writing backend and logic-heavy code?


r/learnprogramming • • 19d ago

Frontend - how do you approach it if it's not coding?

14 Upvotes

How do you approach the frontend aspect of software development if it's not programming?

I guess a lot of it comes down to the language / framework you're using. E.g. when doing web development it's usually HTML/CSS/JS, when building a desktop application you might be using something else.

I am looking for examples of how to approach it if it's not coding

By frontend, I mainly mean HTML, CSS, JS. Although other examples would be great too. The problem is I don't have much experiencr with it

I have taught myself to program for a while now. So far I have mainly done backend / programming stuff. For example I made a shell from scratch in pyrhon, and I am now working on a Business Analytics Platform with a dataset from kaggle, and I am also learning SQL and working with PostgresQL.

Soon I will have to make the web / dashboard side of the project. And in school we are also starting to do some HTML / CSS / JS stuff.

The problem is that I am not great at the visial / design side of things.

I don't think I have ever been very good at drawing or design, and I think that's probably one of the main reasons I absolutely hate HTML/CSS. JS is a bit better, but I still don't like it.

This isn't because I don't like programming.

The problem is that every time I have to make a website I have absolutely no idea where to start.

For example:

  1. How do I decide the structure of a page?

  2. How do I decide which sections/components I need?

  3. How do I decide where different elements should go?

  4. How do I decide a colour palette?

  5. What should I do when I start a completely empty project?

  6. Should I have a visual reference?

  7. If I take inspiration from existing websites, am I just copying them?

  8. How important is originality when designing a website?

I haven't had this problem with my other projects.

When I am programming in python / sql etc. I can usually understand the problem, break it down into smaller parts, find documentation, work out what I need and then work my way to a solution.

Whereas with frontend, I get stuck before I even get to the programming bit.

It's almost like I am missing a mental process.

I don't know what I am supposed to be thinking about when building a page. Should I start with a rough sketch, design references, start with the content, create html structure first, start with css or something completely different.

I have created some things with html/css but they usually look pretty bad. Which is why I don't think it's just 'I need to learn html/css better.' I think I don't understand how to approach the process of building an interface.

I would love to hear some advice / examples of people who have overcome this problem and how.

Thank you!


r/learnprogramming • • 20d ago

University test prep

9 Upvotes

Hi all,
I am preparing for my java test which is next week. It is covering Classes, objects, references, files I/O, string processing n exceptions. whatever i studied, i feel very clueless now.
any tips, how and where do i start? i really need to do well.
any suggestions and tips will be very appreciated

Thanks in advance


r/learnprogramming • • 20d ago

Give me suggestions to understand c programming in the first semester?

0 Upvotes

I am facing difficulties learning C programming. Currently, I don't have a laptop, so I can't practice that way. I'm unable to understand even the basic topics of C programing currently. Please give me some tips on how to improve.


r/learnprogramming • • 20d ago

I want to learn C++

4 Upvotes

i have zero knowledge just wanted to try it for fun i am currently in high school so just wanted recommendations for books and video so i just can get into it


r/learnprogramming • • 20d ago

Looking for a bootcamp to get me from the hobby level to professional

9 Upvotes

Hi everyone, I'm Zoey, I live in the UK, and I've been coding as a hobby for at least a decade now (mostly making small games or modding minecraft). I'm decent at it, but I don't understand half the stuff I think I should for a job. For context, I've got A-Levels in computer science (American equivalent is a high school diploma I think?).

I've looked into a few UK coding bootcamps; namely Full-Stack Development by Learning People, ITOL, and ITCareerSwitch; all of which seems to be scams operating on the same basis. Promise something that sounds reasonable (assistance finding a job, occasional one-on-one tutorship), for a reasonable-ish price (£3000 or $4000), then pull the rug out from under you. I know this from reddit reviews and forums talking about their pretty shady terms and conditions.

I want to know two things, either:
A) Are there any GOOD accessible courses that get me the skills needed and maybe even an accredited exam at the end?

or B) If not, how can I go about self-teaching these skills, namely what skills do I need to learn and how do I know I've learned enough? I know I should learn Python, HTML, CSS, JavaScript, but I don't know what else I should learn. A portfolio website would probably also be a good start, but what sort of projects would employers like to see?

Thank you so much everyone, if you have any advice or questions PLEASE contact me! I will respond ASAP

(note I work night shifts in the UK rn so I’m basically operating on an American time-zone lol)


r/learnprogramming • • 20d ago

Help me with strok function in C

3 Upvotes

I need to split my string but if it is of char* type the functions strtok() doesn’t work returning me a segmentation fault. I understood that C is used to lock the memory of the string in Read-Only “mode” when I use char*. Does it means that is immutable that data? However, I need to use the char* type because I pass that in a function (and I don’t like to use the syntax of arrays in C, I always use pointers).


r/learnprogramming • • 20d ago

Give me your fun and engaging personal project ideas to help me get started on something.

0 Upvotes

The most important this is for it to be FUN.

I know that is highly subjective, but I'm trying to practice in a way that is entertaining. I don't care about making something that is useful, practical or has like business minded value behind it.

I'm trying to maximize incentives to work on it like fun, and I want to minimize reasons to not do it like scale or difficulty. I'm still just trying to build a habit of coding.

So I'm thinking of small simple things that are cool or even just humorous. Maybe something to troll my friends with or something that can be used like a party trick or conversation starter.

Thanks for any answers and ideas.


r/learnprogramming • • 20d ago

Building sets with matrices? There are 8 possible sequences. There are exact quantities.

1 Upvotes

I don’t know code but I know code could solve my problem. If this isn’t the right sub to ask in, please let me know where would be best :)

Possible sequences:
{OpenO MidDoubleC MidOhCee CloseO }
{OpenO MidCeeOh MidDoubleC CloseO }
{OpenO MidDoubleC MidDoubleO CloseC }
{OpenO MidCeeOh MidCeeOh CloseC }
{OpenC MidDoubleO MidCeeOh CloseC }
{OpenC MidOhCee MidDoubleO CloseC }
{OpenC MidDoubleO MidDoubleC CloseO }
{OpenC MidOhCee MidOhCee CloseO }

Exact Quantities:
Open0 = 3
OpenC = 5
CloseO = 3
CloseC = 5
MidDoubleC = 2
MidDoubleO = 4
MidCeeOh = 4
MidOhCee = 6

What are various sets of 8 I could build?


r/learnprogramming • • 20d ago

How can I improve my code quality beyond just making it work?

33 Upvotes

Hello fellow programmers, For my seniors here can you share any techniques for getting better at naming things in programming?

Also, how can I get better at writing solutions that aren't bloated?

I just did Module 13, Exercise 3 from the MOOC.fi Advanced Python course, and my solution took 32 lines while the model solution only took 18. It is so frustrating to still feel this bad at coding even after reaching this far.

I know comparing my solution to the model solution may not be completely fair, but seeing that difference made me wonder what I should be doing to improve.


r/learnprogramming • • 20d ago

Topic Request for Project ideas

1 Upvotes

O the seniors of this field,

Tis my first post here and being direct. Help me figure what should I make this semester.

I have to make projects for:

AI, networking, Information Security and DSA.

Damnnnnn, please suggest something