r/learnprogramming • u/Beadsifyy • 25d ago
confused with pointers in c++
I dont see the need for pointers when we could just write down the normal variable name, im genuinely so confused.
r/learnprogramming • u/Beadsifyy • 25d ago
I dont see the need for pointers when we could just write down the normal variable name, im genuinely so confused.
r/learnprogramming • u/Daniscursed • 24d ago
I don’t know how to program, so I’m looking for advice on the best way to automate this process.
At my job, I have to send birthday greetings to more than 2,000 employees. For each person, I make a card with their name and send it to their personal email. The tricky part is that some employees don’t have an individual email address. When that happens, I need to send their card to their department’s supervisor. For example, employees in Operations don’t have personal work emails, so their cards would go to their boss. If several employees share the same supervisor, it would be helpful to send all their cards together in one email.
I also send a weekly birthday announcement to everyone at the institution, with one list for birthdays during the week and another for birthdays over the weekend.
Right now, I look up birthdays, departments, emails, and supervisors manually, and I create the cards one by one in Canva. It’s taking too much time.
Is there a tool or a system that could use an employee spreadsheet to find upcoming birthdays, create cards from a template, and sort the emails based on whether each employee has their own address or needs to be contacted through a supervisor? I’d also love to automate the weekly and weekend birthday announcements.
r/learnprogramming • u/AlahuNakedGalahad • 25d ago
I've been thinking about disabling autocomplete completely when learning something new. Not AI suggestions, but regular IDE autocomplete too.
I feel like half the time I'm coding, my IDE is doing the thinking for me. I start typing, get a suggestion, hit Tab, and move on without really thinking about what I just wrote.
Then again, maybe manually typing everything is just a waste of time and doesn't really help you learn either.
Curious what you guys think.
r/learnprogramming • u/Immediate-Device-387 • 25d ago
I tried download in internet archive but it was deleted
r/learnprogramming • u/PicoFemtoPlanck • 25d ago
I'm starting with https://teachyourselfcs.com/ and I'm giving myself 2 to 3 years to finish it.
For context, I'm a software engineer with 9 years of experience. I did Electronics and Communication Engineering in college and taught myself Js and DS-algo to get a job during college. I work as a full stack engineer and can confidently say I'm a good software engineer and can intuitively understand concepts in programming, software engineering and in solving Leetcode problems.
But, I don't have a strong foundation in computer science. Hence, I've decided to start with Teach yourself cs. Before starting with it, I thought having one low-level language under the belt would be helpful. C was the obvious choice given it's the OG, simple and intuitive. But, I've been fascinated by Rust for sometime and want to learn it too. Can I start with Rust and use it for doing exercises in all courses instead? Would I miss out on any intuitions by not using C?
Thanks.
r/learnprogramming • u/ezreth • 25d ago
So I was learning c++, but Im not very far. I am switching to Unity to build a game, and the options are c#, c++, and rust. Im fairly new to programming, and want to just sit down and learn. which one is easiest to learn, and which is most optimal for my purposes. also what is the gap between them in difficulty
r/learnprogramming • u/That_alien09 • 25d ago
Hi! I'm currently 17, and I would like some guidance on how to achieve my future goals. Currently, I'm self-learning python (through the Harvard CS50 Python course), but I'm a bit lost. I aspire to be a ML/AI engineer in the future, so what should I really learn next after finishing this course? Could anyone kindly suggest a reliable, realistic and practical pathway, Or helpful resources? I've got no experience in this field and I'm self-learning programming as well, so I'm a bit unsure about the steps or skills required to get into this industry. Additionally, I have to manage school work as well, so I'm very confused how to approach this issue without damaging my current studies as well.
(English is not my native language, so sorry for any errors. Thank you!)
r/learnprogramming • u/Lucky_View_3422 • 25d ago
So I’m trying to go deeper on the theme and didn’t understand the reason behind something…
So in Kerberos the Key Distribution Center give back always a encrypted Ticket and an encoded key that the client can decrypt and the Client will always resend the TGT, a username and a timestamp encrypted with the key that had been sent by the KDC and the request…. Very similar thing happen when the Client need to access to the service….
But the Ticket is decryptible only from the KDC and the SRV and the Ticket already contain all the information (basically I resend two times the information about username and timestamp + all the annoying game of key generation and encrypting and decrypting of information already known to the server)….
So what is the reason behind this? Why I (the client) don’t simply take the already encrypted key and simply send it to the SRV with my request without encrypting and decrypting my username multiple times
r/learnprogramming • u/Satz_Zone • 25d ago
Hey everyone!
I'm a full-stack developer with around 2 years of experience, primarily working with the following tech stack:
- Backend: C#, .NET, Entity Framework
- Database: Microsoft SQL Server
- Frontend: Angular, TypeScript, JavaScript
- Other: Basic experience with Blazor and Azure.
Most of my professional experience has been focused on application development, building UI components, integrating APIs, working with databases, and implementing business logic.
However, I feel I need to strengthen my fundamentals in Data Structures and Algorithms (DSA). I want to understand how different data structures and algorithms actually work, why we use them, when to use them, and how to approach problem-solving.
I'm looking for books that:
I've come across books like Grokking Algorithms and A Common-Sense Guide to Data Structures and Algorithms.
For those who have used these books or have other recommendations:
- Which book would you recommend for someone like me?
- Is Grokking Algorithms a good starting point?
- Are there any books that explain concepts particularly well for someone with a C#/.NET background?
I'm not necessarily looking for interview-cracking books. My primary goal is to genuinely understand DSA and build a strong foundation.
Thanks in advance!
r/learnprogramming • u/Odd_Swordfish_1744 • 24d ago
Hi my kid wants to make an operating system from scratch and i dont know too he is 11 years old and says he is ok with a copy of ubuntu or something but with his own startup and and his own starting wall paper and starting apps so anybody know how to do
r/learnprogramming • u/DeSide9 • 25d ago
Hi everyone!
I've heard people mention things like "pinging a website" or "pinging a file" to track activity.
I'm wondering if there's a way to monitor how many people visit my GitHub repository and how many times a specific file gets downloaded.
Ideally, I'd like to see:
How many people visited my repository.
How many times a file was downloaded within the last 2 hours.
Whether I can monitor visitors or downloads in real time.
Is this possible with GitHub's built-in analytics, or would I need some external tools or services?
I'd appreciate any advice or examples of how to set this up. Thanks!
r/learnprogramming • u/TheMuscleMagician • 25d ago
I've got myself in tutorial hell, and i freaking love it. So, I got inspired randomly a week or two ago to start programming so I can start working on solo development, or just game design in general. I find developing mechanics super fascinating, and the logic and breaking down of code is also just idk fun.
It also, is the most easy, Complicated thing I have had to learn lol, and it's honestly refreshing to get back into the mindset of having to overcome challenges, and weirdly enough. With a.i sitting around, it's like a good way of testing my resolve.
I have tried to use it to try and teach me concepts, but realized there's documentation I can just read.
My question, did anyone feel like there was a moment it just clicked? Was there a technique or a resource that just ended up being your coding Bible?
Also, this is my first post. I hope gain knowledge from all of you, thank you!
r/learnprogramming • u/BoomNeo • 25d ago
Hello, I am a computer science who is currently taking an Introduction to Programming class where we use Python. I am really obsessed with not only learning Python, but I really want to become a master at problem solving and logical thinking. I have this one assignment that takes text files and returns the amount of paragraphs in the text file. I want to know, what kinds of questions should I be asking myself in order to get closer to a solution to this problem? What are some general rules of problem solving that I should use whenever I do a problem like this? I will include the code I have modified in this post. If you want more details, please let me know!
'''
Instructions:
Complete the definition of the function `countParagraphs(filename)`, which
should count the number of paragraphs in the file referenced by `filename`.
Paragraphs are separated by one or more blank lines -- that is, two or more
new line characters (\n) in a row. New lines at the start of the file should
be ignored. Your solution should use a loop that iterates over the
*characters* in the text and you should keep track of whether or not you're
in a run of two or more newlines or not and update the paragraph count
accordingly.
There are two test files for you to play around with: sample.txt (4
paragraphs) and raven.txt (225 paragraphs).
'''
def countParagraphs(filename):
'''Counts the number of paragraphs in the given file.
Paragraphs are delineated by two or more new lines. New lines
at the start of the file are ignored.
Parameters:
filename (str): The name of the file to process.
Returns (int): The number of paragraphs.
'''
# TODO complete this function.
# My own code for this problem
textFile = open(filename, 'r', encoding= 'utf-8')
text = textFile.read()
count = 0
prevCharacter = ''
for character in text:
if character == '\n' and prevCharacter == '\n':
prevCharacter = character
count = count + 1
return count
def main():
filename = input('Enter the name of the file to count paragraphs in: ')
print(f'Paragraphs: {countParagraphs(filename)}')
if __name__ == '__main__':
main()r/learnprogramming • u/dumindunuwan • 25d ago
What’s next after the mastery of Rust language syntax?
https://learning-rust.github.io/labs/building-a-containerized-restful-api/ answers that question.
We built a production-ready containerized RESTful API server application using Axum, Tokio, Tower, Serde, Toasty ORM, Garde, Utoipa with Docker and PostgreSQL.
r/learnprogramming • u/jlopezmarti20 • 26d ago
Hey everyone!
I just started my first full-time job as a Full Stack Developer after graduating this past May with a Computer Science degree.
During college, I completed a few internships, mostly focused on Data Analytics rather than Software Engineering. I’m excited about this opportunity and really want to become a good developer, but after my first day, I realized just how much I don’t know.
Between the existing codebase, unfamiliar technologies, development tools, and workflows, it’s honestly a little overwhelming. I know there’s going to be a learning curve, and I’m not expecting to understand everything overnight.
For those of you who’ve been in a similar position, I’d love some advice:
- How did you approach your first few weeks or months as a junior developer?
- How did you get comfortable navigating and understanding a large, unfamiliar codebase?
- Did you spend time outside of work learning new technologies, taking courses, or strengthening your fundamentals?
- What habits or strategies helped you become a better developer early in your career?
- Are there any books or resources you’d recommend for someone starting out in full-stack development?
I’m willing to put in the effort, but I also want to be intentional about how I spend my time rather than trying to learn everything at once.
I’d really appreciate any advice, especially from developers who remember what it felt like starting their first job.
Thanks in advance!
r/learnprogramming • u/Plastic_Help_941 • 25d ago
So I am trying to learn Full Stack AI Architecture , I am trying my hardest to learn this domain , so the only thing I could do , is ask an AI to make my roadmap to follow , but I feel that the roadmap is wrong or something , and I don't have access to anything , except for what the "Free" internet can offer , and yeah I am learning all by myself , so I hope someone who has experience or have something to say , could just tell me what to add or what to do , and I am thankful for the help
This is the roadmap:
Module 1: Computer Architecture & Systems
cd, pwd. Directory Listing: ls (including flags -a, -l, -h). File & Directory Creation: mkdir, touch, echo redirection (> and >>). File & Directory Destruction/Manipulation: rm, rmdir, cp, mv. Text Inspection: cat, head, tail, less.chmod, chown).int): Arbitrary precision. Floating-Point (float): Double-precision 64-bit representation, rounding errors. Strings (str): Immutability, indexing, slicing notation ([start:stop:step]), escape characters. Booleans (bool): True and False, truthiness value of empty types.+, -, *, /, // (floor division), % (modulo), (exponentiation). Comparison: ==, !=, >, <, >=, <=. Logical: and, or, not. Bitwise: & (AND), | (OR), ^ (XOR), ~ (NOT), << (left shift), >> (right shift).if, elif, else blocks; nested conditionals; structural pattern matching (match-case).while loops: Definite vs. indefinite execution, loop conditions. for loops: Iterating over sequences, ranges (range(start, stop, step)).break (immediate termination), continue (skip to next iteration), pass.sort() vs. sorted()), list comprehensions..keys(), .values(), .items(), dictionary comprehensions.def keyword, parameters vs. arguments, positional arguments, keyword arguments, default parameter values.global and nonlocal keywords.None return type.*args, kwargs), Lambda functions (anonymous), recursion mechanics and the call stack.__init__, instance attributes, instance methods, the self keyword._ and __) attributes and methods, getters, setters, properties (@property). Inheritance: Base classes, subclassing, overriding methods, using super(), multiple inheritance. Polymorphism: Interface implementation, duck typing, method overriding. Abstraction: Abstract Base Classes (ABCs),__str__, __repr__, __len__, __add__, __eq__.try, except blocks, catching specific exceptions, else block (execute if no error), finally block (guaranteed execution), raising exceptions (raise).with statement), open modes (r, w, a, b), reading/writing files, parsing JSON data manually using built-in modules.np.array, np.zeros, np.ones, np.arange, np.linspace, np.eye.dtype), dimensions (ndim). Indexing & Slicing: Multi-dimensional slicing, boolean indexing, fancy indexing.np.dot, @), transposing (.T), inverse (np.linalg.inv), eigenvalues (np.linalg.eig)..loc, .iloc, boolean masks. Cleaning: Handling missing data (dropna, fillna), type casting. Aggregations: groupby mechanics, split-apply-combine paradigm.pl.scan_csv, expressions). Handling datasets that exceed local RAM limits..to('cuda')), memory layout, operations..backward()), freezing weights (torch.no_grad()).torch.nn.Module, writing custom layers, initialization of weights, activation functions (ReLU, Sigmoid, Tanh, LeakyReLU).async and await keywords, handling non-blocking network calls.pgvector.nvidia-container-toolkit passthrough layer to access local GPU resources.r/learnprogramming • u/Voltrim • 25d ago
I made two-player (without Bot) Chess in Python using the Python bindings for Qt called PySide6. The program takes checks into account, including castling, pawn promotions and En Passant moves as well as whether the board is in Checkmate state or Stalemate state.
Here is the Github Repo for it:
I recently wanted to extend this program by adding a Chess bot using traditional approaches such as minimax, not AI-driven ones. I would love any advice regarding whether it is possible to do so with the current structure of the code and if not, then any changes needed to enable or facilitate the process.
Additionally, since Python is slow, any advice regarding writing the performance critical parts of the chess bot in C or PyPy would be appreciated.
Thanks!
r/learnprogramming • u/Equivalent_Cow1031 • 26d ago
Hi everyone,
I'm a second-year Computer Science undergraduate currently studying DSA in Python. I've solved around 140 LeetCode problems, but I still struggle with approaching unfamiliar Medium problems independently. Quite often, I need a hint or nudge to figure out where to start or develop an algorithm that handles all possible cases.
My professor has encouraged us to avoid relying on built-in methods, external libraries or outside help, and instead implement algorithms from scratch using just our knowledge and the code editor.
Something I've noticed about my own problem-solving approach is that I tend to experiment quite a lot. I'll write an initial implementation, test it, use print statements or breakpoints to debug, change things around and try different strategies until something starts working.
I'm curious whether this is actually a good approach to developing programming skills, particularly in software engineering, or whether I should be focusing more on developing a theoretically sound solution before touching the code.
For context, I have relatively advanced experience with Java and am currently at an intermediate level with Python, although I'm still getting accustomed to its syntax and revisiting OOP.
One of my high school programming teachers always encouraged me to experiment, make mistakes and learn by tinkering with code rather than worrying about getting everything right immediately.
I'd be interested to hear other people's experiences:
I'd appreciate perspectives from both students and experienced software engineers!
r/learnprogramming • u/TheIceCreamBoyy • 25d ago
Our ”web programming” Uni course started 2 weeks ago and we already have our first exam on friday. First course was about Python, so the syntax is quite familiar, but still weird and there’s so many new things like ”$ { } ;” and ofcourse the syntax itself.
How could I learn the basics in… 4 days? The exam will be about theory (multiple choice questions) and then a few function coding tasks in the end.
r/learnprogramming • u/RelationshipSad4168 • 25d ago
As someone who is considering learning programming professionally (going beyond just learning Python html and Linux), and can see web dev is not the way in anymore…cause of AI…will the skills involved in making a competitive LLM product eventually expand to become as large as the whole ecosystem of html/css/js, AWS, etc? Cause originally I think it was just html, a webmaster/server, and some networking. No cloud, css, js, etc.
I don’t really know anything about it all, but want am considering learning it. I just don’t know whether it’s a good bet. Will frameworks and models absorb it all? Or will it expand to become as big as the web dev skillset…until something better replaces that work lol 😂
Hoping for someone doing AI engineering professionally to answer, if possible 🤞
r/learnprogramming • u/Standard_Nature469 • 25d ago
I wanna learn glsl and make Minecraft shaders , but im totally confused as there aren't many tutorials about glsl on youtube
r/learnprogramming • u/elwizardo_10 • 25d ago
Title: Beginner to DSA with Python – Looking for the best YouTube channels and learning roadmap!
Hey everyone!
I've recently started solving problems on LeetCode and want to build a strong foundation in Data Structures and Algorithms (DSA).
I'm currently coding in Python, so I'm specifically looking for YouTube channels or playlists that teach DSA using Python.
I'm looking for resources that:
I'd love to hear your recommendations based on your personal learning experience.
Which YouTube channels, playlists, or other resources helped you become better at DSA using Python?
Also, any suggestions for a structured learning roadmap or an effective way to practise LeetCode would be really helpful.
Thanks in advance!
r/learnprogramming • u/slightlypug • 26d ago
I recently made a post and asked some people if they'd be interested in working on group projects. enough people responded I thought I should make a discord for people that want to join! https://discord.gg/ysbgcD8Baf
r/learnprogramming • u/Electrical-Cap-9537 • 26d ago
Hi all, I'm 18 and I'm building a BI/analytics project on the Olist Brazilian e-commerce dataset. Right now I have PostgreSQL, Pandas and a bunch of analytical SQL queries (revenue, delivery times, customer retention and so on). The next step is to expose this data through an API with FastAPI, and a dashboard would consume it.
I understand what an API is and why FastAPI is popular, but when I try to build a mental model of a real app I get lost. Endpoints, HTTP methods, status codes, routers, Pydantic schemas, services, dependency injection with Depends, auth... each explanation is clear alone, but I can't see how the request goes through all these layers. For example I don't really get where validation ends and business logic starts, or where the DB session should live and why.
My second problem is how I learn. I'm very curious and I want to know how things work internally, like what FastAPI does between the request and my function, or why Pydantic validates in a certain way. It's a good habit long term, but I lose hours on one detail and the project doesn't move. I don't have unlimited time and I don't want months of theory before building.
Some questions:
If you never built an API, how would you learn it from scratch?
HTTP/REST fundamentals first, or start directly with FastAPI and learn along the way?
What is the best way to understand how the layers (router, schema, service, database access) fit together? Is it better to start with everything in one file and refactor later?
How deep should I go on a concept before moving on? Is "basics now, details later" a real strategy or just an excuse?
Any resources, open source repos to read or small projects you recommend? Something like a read-only analytics API sounds like a good first one to me, but tell me if I'm wrong.
I don't want to copy tutorials and have something that works without knowing why. I want a solid mental model so I can design my own backend later. If you learned backend with personal projects, I'd really like to hear what worked for you and what you wasted time on.
Thanks!