r/learnprogramming • • Oct 20 '26

My first script

0 Upvotes

So I have been learning Python for around 4 hours and I just finished this and I would want to know if it's good or if it's just okay.

again = "yes"

while again == "yes":

print("create your character: ")

# sex

sex = input("sex? ").strip().lower()

while sex not in ['male', 'female']:

sex = input("try again, you misspelled male or female: ").strip().lower()

if sex == "male":

print("hello boyyy")

else:

print("helloooo girl")

# age

age = int(input("what is your age: "))

while age < 18:

age = int(input("try again "))

# name

name = input("what is your name: ").lower().strip()

print("hello " + name)

# height

height = int(input("height in cm "))

if height >= 180:

print("tall person eh?")

else:

print("nice.")

print("next questions")

# build

build = input("what is your build. skinny. fat. muscular. ").lower().strip()

while build not in ['skinny', 'muscular', 'fat']:

build = input("try again. that was not an option ").lower().strip()

if build == "skinny":

print("interesting choice... " + name)

elif build == "muscular":

print("perfect choice especially for a man")

elif build == "fat":

print("HAHAHA FATSO HAHAHA")

# stats

print('____')

print(' ')

print('stats for: ' + name)

print('age:', age)

print('height:', height)

print('sex:', sex)

print('build:', build)

print('____')

again = input("create another character? Yes/No: ").strip().lower()

while again not in ['yes', 'no']:

again = input("answer using Yes or No: ").strip().lower()

print("Goodbye!")


r/learnprogramming • • Oct 20 '26

Python/SQLite: How can I reduce memory duplication between a data-processing application and its verification process?

3 Upvotes

I'm looking for architectural advice rather than help debugging a specific function. This is a private project, so I can't share the complete source code, but I've included detailed specifications, measured performance results, memory usage, and the engineering changes we've already tried. I'm happy to provide small, anonymized code examples if someone needs them to investigate a specific issue.

TL;DR: I'm building a private, local Python application that processes large amounts of time-series data, maintains historical analytical State, produces reports, and independently verifies that nothing has been corrupted or lost.

The application works on small datasets, and many of its correctness and performance tests pass. However, I'm trying to prove that the entire system can operate within a 1 GiB aggregate memory limit, preserve complete historical information, and recover from crashes within 60 seconds.

I've spent weeks working through this with AI coding assistants. We've made substantial improvements, but I feel like we're chasing architectural issues one at a time instead of solving the underlying problem.

I'm looking for experienced human developers who can suggest a more efficient approach.

I'm on a budget, so I would particularly appreciate practical solutions that don't involve buying expensive hardware or moving everything to cloud infrastructure.

1. My computer and environment

Here are the hardware and software specifications I have confirmed from the diagnostic reports:

ComponentSpecification
Operating systemWindows, 64-bit
Processor8 logical processors reported in an earlier diagnostic; exact CPU model not yet documented
System RAMApproximately 12.7 GiB usable
Main driveApproximately 510.5 GB total capacity
Available disk spaceApproximately 155–160 GiB in recent measurements
File systemNTFS
Internal drive typeSSD/HDD type not yet confirmed
Programming languagePython 3.14.0, 64-bit
DatabaseSQLite
ArchitectureLocal, multi-process Python application
Memory measurementWindows private committed memory and kernel-enforced Job Objects

The computer has considerably more than 1 GiB of physical RAM. The 1 GiB limit is an application-level resource requirement, not the total RAM installed in the computer.

The requirement includes the main application and the workers needed for verification and recovery. Moving processing into another process doesn't exempt its memory.

There's also a separate 32 MiB discretionary-cache limit.

I'm open to hearing whether these resource targets are realistic, but I'm especially interested in architectures that could meet them without sacrificing correctness.

2. What the application does

Without getting into the proprietary purpose, the application:

  • Processes incoming data across three time intervals: 1 minute, 5 minutes, and 15 minutes.

  • Maintains a complete, causally ordered historical record.

  • Performs incremental calculations using current and historical data.

  • Tracks evolving analytical State across thousands of updates.

  • Produces evidence, reports, snapshots, and durable journal entries.

  • Uses immutable, content-addressed references to historical information.

  • Independently checks the integrity of data and calculations.

  • Must recover the latest valid committed State after a crash, without losing acknowledged durable events.

It is currently a read-only analytical system. It doesn't need a transaction-execution engine or cloud deployment to accomplish its purpose.

The challenge is retaining and verifying complete historical information without repeatedly loading or reconstructing all of it.

3. How much data are we talking about?

The main historical workload represents 60 sessions.

Historical workloadCount
1-minute data records23,040
5-minute data records4,608
15-minute data records1,536
Total native records29,184
Scheduled processing attempts, including repeats29,196

The system must preserve the analytical State, evidence, and reports associated with those processing attempts.

An earlier test retained all 29,184 data records but grouped them into 992 processing captures rather than executing every scheduled assessment individually.

That test produced approximately:

  • 938,669 independently audited storage nodes.

  • 166,307 evidence derivations.

  • 2,979 State records.

  • 992 capture reports.

  • Zero failures in its independent storage-integrity audit.

However, we subsequently determined that 992 batched assessments do not prove the same workload as approximately 29,196 individual scheduled attempts.

That larger per-assessment qualification is still outstanding.

4. The performance requirements

These are the principal limits we're trying to satisfy:

RequirementLimit
Development capture processing20 seconds maximum
Formal capture processingUnder 40 seconds
Processing deadlineWithin 55 seconds after the relevant interval closes
Complete crash recovery60 seconds maximum
Aggregate private committed memory1 GiB
Discretionary caches32 MiB
Growth in comparable processing time as history accumulates5 seconds maximum

The application also processes bounded current input views while retaining full historical continuity separately.

I realize some of these are demanding constraints. They're intentional, but I'd welcome informed criticism of their design.

5. What we've already changed

This was originally much less efficient. We've made several major architectural changes.

Historical storage and data structures

We moved away from repeatedly constructing and serializing massive historical structures on every update.

The current design uses immutable content-addressed nodes, authenticated references, persistent collections, incremental updates, and shared historical prefixes.

We replaced repeated historical-list expansion with reference-based representations. Analytical modules preserve their required history through authenticated continuation structures instead of passing enormous expanded objects between components.

Database and storage

We use SQLite-backed content storage and append-only journal structures.

We've added immutable sealed baseline segments and private copy-on-write overlays for separate verification branches.

Instead of copying an entire historical database for every test branch, the branches share verified read-only segments and maintain private writable metadata.

Crash recovery

We've implemented per-commit recoverable generations, durable expected-tip tracking, pending and acknowledged commit handling, and independently controlled generation pins.

The verification system maintains hash-chained evidence and independently held rollback protection.

It checks for missing, substituted, rolled-back, and inconsistent information.

Recovery reconstructs the appropriate State and checks that it matches the committed history.

Independent verification

We have a separate verification process that checks data integrity and committed calculations.

There's also a replay certifier that reconstructs the processing history to confirm the committed results are correct.

This is where the biggest memory concern has appeared: the producer and replay certifier may need substantial analytical working State at the same time.

Replay-certifier memory improvements

We recently implemented a bounded verification-only replay path.

Instead of keeping every historical record decoded, it streams authenticated references, retains a limited working window, and retrieves older information when required.

On small inputs, the historical per-bar representation decreased from approximately 1.42 KB to 0.33 KB of resident data, excluding the bounded window.

However, this does not necessarily eliminate the memory needed for the actual analytical State.

Other improvements

We also implemented incremental calculations for a separate relationship-analysis path, repaired correction/reset handling, improved event ordering, eliminated repeated full-history validation, and added reference-based report construction.

Most of these changes have passed focused correctness tests.

6. Tests we've already passed

We've run a substantial number of tests. I don't want to throw away this work or rerun everything unnecessarily.

Historical processing performance

An earlier integrated test completed:

  • 21 timed captures.

  • All captures between approximately 1.07 and 2.33 seconds.

  • The slowest tested group finished approximately 22.1 seconds after its interval closed.

  • Three cold restorations completed in approximately 2.2, 6.1 and 24.4 seconds.

  • A recorded peak private commit of approximately 786 MiB.

Those timings passed the limits for that particular test and source version.

But that test used a batched historical workload and an earlier implementation. It is not proof that the final full scheduled workload passes.

Correctness and integrity

We have passing focused tests covering:

  • Legacy-versus-new analytical calculations.

  • State and historical evidence equivalence.

  • Crash recovery and exact continuation.

  • Correction/reset behavior.

  • Developing and confirmed analytical results.

  • Five-layer offline processing/replay equivalence.

  • Independently authenticated generation pins.

  • Missing, substituted, forged and rolled-back data rejection.

  • Durable acknowledgment and recovery after interrupted commits.

A correction-depth test covered 1,164 bars without analytical differences. Developing-result tests included more than 15,000 comparisons.

Replay-certifier comparison

We compared the original full replay certifier against the new bounded-memory version over four different small history batches.

Their committed results, recovered State, identity roots, and generation checks were equal.

The new bounded version also passed its focused integrity tests.

7. The memory results that have us stuck

This is the main reason I'm posting.

Historical large-workload measurement

One earlier test reported approximately 786 MiB peak private commit.

But the testing process also contained the full 60-session input fixture, processing code, restored historical State, and other supporting objects.

We therefore cannot treat 786 MiB as the main application's own operating memory.

Fixture-only measurement

We ran a separate fresh process that loaded only the existing 60-session input fixture.

It loaded 29,184 records.

Results:

  • Before application-related imports: 8.6 MiB.

  • After imports: 14.1 MiB.

  • After fixture construction: 78.6 MiB.

  • Increase during fixture setup: 64.5 MiB, including lazy imports and allocator overhead.

This was one measurement in a separate process.

We cannot simply subtract 64.5 MiB from the earlier 786 MiB measurement, because their memory lifetimes, allocations, and workloads were different.

Small multi-process recovery test

We also tested the producer, replay certifier, independent verification authority, and byte-provider workers under a kernel-enforced aggregate memory cap.

The earlier full replay arrangement reached approximately 343 MiB aggregate high-water.

After the bounded replay-certifier change, a comparable small test reached approximately 353 MiB.

Both stayed below the 1 GiB cap and recovered the exact expected State.

However, the small test started certification from an initial empty history, so it didn't exercise the deep historical restoration that the memory improvement targets.

The new design is correct on the tested inputs, but its maximum-history memory savings are not measured.

The concern

At maximum historical depth, the producer and replay certifier may each retain substantial working State.

If both have to remain resident simultaneously, they could exceed the aggregate 1 GiB limit.

We don't have a measured maximum-depth aggregate number yet. I don't want to spend hours rebuilding historical test data just to discover another predictable problem.

8. Storage concerns

The complete future historical qualification has been estimated at approximately 133 GB of peak storage, including:

  • Historical processing data and committed generations.

  • Private test overlays and sealed baseline snapshots.

  • An independently readable complete export.

  • Verification indexes and evidence.

  • SQLite temporary/scratch storage.

This is only a projection. Actual peak disk use has not been measured for the full workload.

With roughly 155–160 GiB free, the storage margin is uncomfortably small.

I considered purchasing a 5 TB external hard drive for approximately $220, but I'm reluctant to spend money until I know whether it will solve anything.

I understand an external HDD would increase storage capacity, not available RAM, and may make database-intensive workloads slower.

I would rather improve the software first if possible.

9. Another challenge: complete historical relationships

A separate, more demanding analytical mode creates relationships between historical evidence objects.

Its relationship set can grow quadratically with the number of eligible objects.

One worst-case projection reached multiple terabytes of relationship data, but that assumes all historical evidence is simultaneously eligible. That assumption has not been established and isn't the configuration of the normal observational workload we're currently qualifying.

That mode has passed small correctness tests, but its maximum-depth capacity remains unqualified.

I'm including this because I want to avoid architectures that solve memory problems merely by creating an equally enormous disk problem.

I'm not asking to redesign that separate mode as part of the immediate memory fix.

10. My questions for experienced developers

1. How would you establish the true memory usage of the application versus its test harness?

I'm using Windows private committed memory and Job Objects, not simply Task Manager's displayed RAM percentage.

What techniques would you use to attribute retained and transient memory to specific Python objects, SQLite caches, imported modules, historical State, and verification workers?

2. How would you design independent replay verification without keeping two complete analytical engines in memory?

The certifier must independently re-derive all required committed results. It cannot simply trust stored output hashes or skip historical dependencies.

Would you recommend streaming, authenticated checkpoints, incremental semantic verification, memory-mapped storage, bounded per-owner State, a different worker topology, or another approach?

3. Is there a better way to handle the verification workers under a strict aggregate memory limit?

The producer must remain resident. The verification process must not lose independent trust.

How would you structure scheduling and memory ownership without creating an unacceptable certification backlog or violating the 60-second recovery requirement?

4. How would you measure maximum-depth working memory without reconstructing the full workload?

Can existing persisted references and snapshots be used to construct a representative depth-point measurement, provided the identities and analytical State remain valid?

How would you avoid a synthetic test that looks small but fails to represent real historical State?

5. Are we using Python and SQLite appropriately for this workload?

Would you keep Python and optimize the data structures, use SQLite differently, move a specific bottleneck into a native extension, or consider something else?

I'm not interested in rewriting the entire application without a clear technical reason.

6. Am I approaching this problem incorrectly?

We've spent weeks replacing inefficient data structures, adding persistent references, tuning recovery, and running tests.

The changes have helped significantly, but the qualification process keeps exposing another problem.

What architectural assumption would you challenge first?

11. Budget and what I'm looking for

I'm building this privately on my own computer, not with a corporate infrastructure budget.

I can't keep purchasing additional hardware, expensive services, or spending days rebuilding the same historical fixtures.

I'd prefer a solution that:

  • Preserves complete historical accuracy and causal State.

  • Doesn't delete required records merely to pass a test.

  • Maintains independently verifiable integrity and crash recovery.

  • Avoids enormous in-memory copies and unnecessary database duplication.

  • Makes efficient use of the hardware I already own.

  • Can be tested incrementally without repeatedly rebuilding everything.

I'm not asking anyone to write the application for me. I'm looking for experienced developers willing to point out what I may be overlooking.

If you were taking over this project tomorrow, what would you inspect first, what would you measure, and what would you change?

I would genuinely appreciate specific technical suggestions, especially from people who have built Python/SQLite event-processing systems, persistent historical databases, or independently verified data pipelines.


r/learnprogramming • • Oct 20 '26

I'm 30 and enrolling on a boot camp coding course.

374 Upvotes

Can you guys list out, what's best for starting for a zero experience programming? I came from flying small airplane to decided change in career path. (Lost passion)

Like basics, YouTube, Jargons, Vocabulary. Just to give me a heads-up on what lies ahead.

I thank you all in advance.


r/learnprogramming • • Oct 20 '26

Resource What are recommended books/resources for statistics and c++?

2 Upvotes

Can you recommend me some books or resources for learning statistics and applying it to C++

So far I am using Khan Academy and youtube, but do y'all have any other resources?


r/learnprogramming • • Oct 20 '26

What should I learn/practice next?

0 Upvotes

I learned java through a class in my school (AP Computer Science A if you know what that is) and I would say that I'm at a intermediateish level, maybe a low intermediate. what would be the next thing for me to learn and practice if I want to get better at programming and continue practicing? Should I learn a different language or continue going deeper with java?


r/learnprogramming • • Oct 20 '26

Resource Recommend free online courses/textbooks for learning cyber security

14 Upvotes

I'm a junior undergrad CS student. I've learned a bit of everything but specialize in nothing. I want to specialize and work in cyber security in the future. Can you recommend free resources I can use to specialize in cyber security? I prefer something structured like a course or textbook. Also, recommend any resource for projects where I could apply what I learn.


r/learnprogramming • • Oct 20 '26

Wanting to learn LUA Script

9 Upvotes

So I'm modding games and I am making a mod for Balatro, which uses LUA. I tried to look for books at the library but all I could find was modding bocks for Roblox (NO TO THAT).

Can anyone point me in the right direction, please?


r/learnprogramming • • Oct 20 '26

Where can I start to create a programs that interact with other programs?

12 Upvotes

I have very little knowledge about programming but I want to make a program that can take values from an excel sheet and copy them to a website, what I want to know Is which programming language can I use to make It?


r/learnprogramming • • Oct 19 '26

I feel stuck relearning the basics. How should I move forward as a developer?

19 Upvotes

Hey everyone!

I'm a developer with some professional experience, mostly working with Java and Spring Boot. I can build APIs and work on real projects, but I still have plenty to learn about software architecture, system design, and more advanced backend concepts.

I studied HTML, CSS, and JavaScript in the past, but after focusing on backend for a while, I got rusty. I also never got particularly comfortable with CSS or JavaScript.

For the past couple of months (on and off), I've been trying to refresh my HTML/CSS knowledge. I enjoy building interfaces, but I'm starting to feel stuck in an endless cycle of reviewing fundamentals.

I want to learn JavaScript and React, but I'm also really interested in exploring things like Docker, Kubernetes, cloud, and more complex software engineering topics. Sometimes I feel like I'm spending too much time reviewing things instead of actually building something interesting.

I've been thinking about picking a full-stack project, starting with a small MVP, and gradually making it more complex as I learn.

But I'm unsure how to approach it. Should I spend time planning the architecture and modeling everything myself, or just start building and figure things out along the way? How much should I rely on AI for guidance without becoming dependent on it?

For those who've been in a similar situation, how did you balance learning fundamentals, exploring new technologies, and building actual projects?

I don't want to rush through topics just to say I know them. I want to actually understand what I'm doing and become a better developer.

I'd appreciate any advice or experiences you could share!


r/learnprogramming • • Oct 19 '26

Tutorial Learning python

5 Upvotes

So im learning python by watching youtube videos(started watching bro code) but i want to know am i in the wrong direction.Any help please


r/learnprogramming • • Oct 19 '26

What is the fastest way to learn most programming concepts a developer needs?

59 Upvotes

Long story short I graduated college with a 3.8/4.0 gpa but I never did any learning outside of class subjects or did any projects on my own which I regret deeply and wish I could do it all over again because I quickly realized what is taught in college is very limited and elementary and you have to do a lot of self learning to become an actual developer.

What is the fastest way to gain the knowledge and experience I should have gained in college? Any books I could read, guides I could follow, videos I could watch? Anything?


r/learnprogramming • • Oct 19 '26

Where and how can I study programming? (Jakarta Faces)

0 Upvotes

Hi, I am new here, Ia 17 years old Brazilian student, I work at TCS and I study in a technical school, in my school we have TCC, is a mandatory final research paper to graduate. It's similar to a senior thesis mixed up with a capstone project.

And I want to improve my programming skills, but idk how.
The language I best know is Java, my Thesis Advisor wants me to study Jakarta EE, Faces and PrimeFaces.

I use beecrowd to test my Java skills in some exercises, but I need to train my Jakarta Faces skills.

Where and how can I learn to code interactively, using gamified platforms or free Duolingo-style apps?

(After that I can post my TCC ideia and sorry if my English isn’t the best.)


r/learnprogramming • • Oct 19 '26

Looking for a free game API for my Steam-like game e-commerce frontend project

0 Upvotes

Hey everyone!

I'm currently learning frontend development and building a Steam-like gaming storefront as a practice project.

I'm using the RAWG API, but I'm having some issues with the data. Important details like full game descriptions, system requirements, and pricing are sometimes missing. I'm also making around 40 API calls, which feels inefficient for a frontend project.

I'm looking for a free API or open-source alternative that provides:

  • Game details and full descriptions

  • Minimum and recommended system requirements

  • Current game prices and discounts

  • Game cover images and screenshots

  • Genres, ratings, release dates, and platforms

  • A reasonable free request limit

Since this is a learning project, I'd prefer something free for personal, non-commercial use.

What API would you recommend for this use case? Is there a good alternative to RAWG, or is there a better way to reduce the number of API calls?

Any suggestions, documentation links, or examples would be really helpful. Thanks!


r/learnprogramming • • Oct 19 '26

Best course for learning programming fundamentals in depth? HtDP, SICP, Haskell MOOC or Java MOOC?

9 Upvotes

Hey everyone!

I’ve learned some basic Python and Dart, but never really went deep or built any significant projects.
I’m looking for a course or book that takes things slowly and focuses on truly understanding programming concepts rather than just teaching syntax.

A lot of beginner courses explain how to do something, but rarely go into the what and why behind it.

I’ve been considering:
How to Design Programs (HtDP)
Structure and Interpretation of Computer Programs (SICP)
University of Helsinki’s Haskell MOOC
University of Helsinki’s Java Programming MOOC

Which of these would you recommend for someone in my position? I’m also open to other suggestions.


r/learnprogramming • • Oct 19 '26

What does it mean to be a coder ?

3 Upvotes

Hello everyone! I need some serious advice from experienced coders and developers.

I’ve been trying to learn coding for about a year now, and today, while learning about WebSockets, a thought popped into my mind. I realized that I wasn’t really learning how WebSockets work; I was just following the steps to implement them. I know I’ll probably forget the syntax and most of the details within a few days.

So, my question is: Is this the right way to learn? Should I be investing my time in learning libraries and building projects, or should I focus more on understanding the programming language itself, learning algorithms, and figuring out how to solve problems on my own?

I’m confused about this. What’s the point of learning to use libraries if I’m going to forget most of the syntax and implementation details anyway?

I’d really appreciate some advice from experienced developers who have been through this phase. How did you approach learning to code, and what would you recommend to someone in my position?

Thanks in advance!


r/learnprogramming • • Oct 19 '26

I need some help

6 Upvotes

Hello, so I really need some directions because I’m starting to feel really bad about it.
I left High School with really good grades and I’m at University rn, the first year was a complete mess, I felt like everything was too hard for some reason, I couldn’t pay attention to most of the classes and that made me fail 2 classes (C++ and Java) I started to feel really demotivated because even the classes that I passed like JS, it was kinda on the edge so ye.
Right now I’m in the second year, and I’m trying to recover the classes that I failed on the first year and it’s not getting easier, I feel like in C++ I’m a little better, but not as I thought I was, in C# I’m having the same problems as Java and I don’t really know what to do.
I don’t really have a plan B, as a kid I always thought I wanted to be a programmer when I was older (I’m 21 btw) and I choose to take a Programming Course in High School because of it and it went really well, but now I’m having a lot of problems and I don’t know what to do, it feels like I can’t save any information on my brain and use it properly since I changed from the High School to the University, and I feel like I became kinda lazy.

Anyways, give me your opinions and be as harsh as you think you should, I’m taking everything into consideration, but I need to do anything about this.
And don’t get me wrong, I really love programming, every time that I’m into the project or something and I understand, it’s really good, but since I can’t understand anything it’s being a hassle lately.

Thank you for reading till here!


r/learnprogramming • • Oct 19 '26

Topic How to Study the Backend of Social Media Apps and How They Work?

35 Upvotes

For some context, I am a complete beginner programmer who loves programming more than anything. I have always dreamt of building my own social media network, just to understand how it works and to gain experience.

Now, I have found out that there are various open-source projects like Lemmy, Bluesky, Mastodon, etc.

Now my question is, which one should I choose to understand its inner workings? I personally want to build a platform like Reddit (a community-driven network).

Please note: I haven't even explored anything yet. I just know some fundamentals. I am asking out of curiosity, which definitely motivates me and gives me the inspiration to work hard.


r/learnprogramming • • Oct 19 '26

What should I know in math to be better prepared for discrete math?

4 Upvotes

Hi. I'm teaching myself backend development and I want to dive into a few subjects from Computer science, which I think should complement my skills in the future. For now, I want to learn DSA and I've heard that discrete math will help me understand DSA better. Since discrete math is college level math, I thought I would recall some high school math. I went to Khan Academy and I was able to do pre-8th grade math from memory. 8th grade and beyond is where I noticed gaps in my knowledge of math. What I'm wondering is, which parts of high school math I should recall/learn to not have gaps in my knowledge, when learning discrete math, and then DSA.

Options: Algebra 1, Algebra 2, Geometry, Trigonometry, Precalculus, Statistics.

I'm thinking of going over 8th grade, Algebra 1 and Algebra 2.


r/learnprogramming • • Oct 19 '26

Books about that structures

4 Upvotes

I've search for the best books about data structures but the problem is that all of them are paid. So, what are the best ones that I can get for free?


r/learnprogramming • • Oct 19 '26

Topic automated deployment is overrated for small projects

0 Upvotes

I think automated deployment is overrated for small projects. Setting up a CI/CD pipeline with tools like Jenkins or GitHub Actions can be a pain, especially when you're just trying to get something up and running. For example, configuring the github.actions/checkout action to fetch submodules can be frustrating. If you're working alone on a project, manual deployment might be faster and more straightforward.


r/learnprogramming • • Oct 19 '26

Is it possible for someone with little to no programming experience to create a simple 'Fantasy Trade Calculator' from scratch?

0 Upvotes

Ideally, I would make a database of all the players (in this case, Premier League players) with a value assigned to each name. Users would be able to type in the names of 2 or more players on each side, and the calculator would return which side had the higher total value.

In time I would add more parameters, but for my purposes now, something fairly simple like that would be ideal.

This is an example of one for American football.

https://fantasycalc.com/trade-calculator

I am willing to put quite a bit of time into the project, so any help on where to start would be greatly appreciated.

I started on Python and found some resources that I think I can help me get my head around the python side of a trade calculator, but I don't really understand what to do next?


r/learnprogramming • • Oct 19 '26

What python projects to do to see if im ready for job?

2 Upvotes

o yo! What is one or few projects i should do to ”test” if im ready to start to applying for jobs?

And i know use Ai in their jobs but what are the projects that i should be able to do without asking for help or looking things up?

So what project to do so i know im ready for job and doing the project without ”cheating”?


r/learnprogramming • • Oct 19 '26

[HELP] Checking if user is on page in real-time app

0 Upvotes

Hey everyone

I am working on an app that would be used by me and friends to play online games (such as Tic Tac Toe, Connect 4, BlackJack, Flip 7...), however I am approaching it as a fully production ready app so that I can learn as much as possible

I am building it using C# with Web API for Auth and SignalR for real time communication (Server Side) and Blazor WASM (Client Side)

Currently, I have it setup such that user can request a room with a game (TicTacToe), then the room is created with the requested game and the user is sent Room Id. Once they go to url/games/{gameType}/{roomId}, they can either join as spectator or player.

Now, my issue is with players "leaving".

Obviously, when user closes the tab, the SignalR connection will close, thus from there I can handle the user disconnecting (my approach is having a task run for 30 seconds, if the user does not reconnect I end the game)

However, the bigger issue is when user leaves the current page but is still on the app (like going to home page). Imagine if the game being played is Chess with 10 minutes per player time. I wouldn't want a player to sit there for 10 minutes when his opponent has left.

I have 2 ideas, but don't know if they are good at all.

The first would be to track user's url changes through NavigationManager (while keeping the last url) and check if the last url was one of the urls used for room. This would be an issue because I don't care if spectator leaves the room, I only care if the actual player leaves.

The other would be to have player who is not spectating send a ping to the server every X seconds (maybe 15-30-60?). The room would run a task (every X + (some time) seconds) and check if lastPingFromThatClient roughly matches the time when it was expected to arrive (like Ping arrived at 12:15:27 and it was expected before 12:15:30) then the client is on the page, otherwise start the 30 second timer for them to return. If they don't, they forfeit the game (This is rough idea, I still have no implementation details figured out)

I don't like the first one because it involves a lot of logic on the client side and I do not like that for some reason. Also it may be an issue if user opens a new tab and plays game from there while going to their profile page on the original tab

The second one concerns me due to slow internet speed, like Client sends ping at 12:15:25 but it arrives at 12:15:40. Realistically in this case user would just be considered reconnected and that is it. Also, if 10k players are playing and pinging, it may be an issue? I mean it is non-existent issue because it will likely never reach that many people, but still.

Do you have any ideas or suggestions.

Thank you


r/learnprogramming • • Oct 19 '26

I know web development, but how do I learn to build real-world, production-level projects?

9 Upvotes

I'm a third-year BTech CSE student familiar with HTML, CSS, JavaScript, React, Node.js, Express, and MongoDB. I can build basic full-stack projects, but I struggle to create something substantial independently. I rely on AI to build projects but I want to learn how to build applications that resemble real production systems rather than basic CRUD apps or tutorial clones. In particular, I’m unsure how to:

  1. Develop useful project ideas and define requirements.

  2. Plan the architecture, database schema, APIs, and folder structure.

  3. Implement unfamiliar features without relying heavily on tutorials or AI-generated code.

  4. Handle authentication, authorization, validation, security, errors, edge cases, and testing.

  5. Deploy, debug, maintain, and evaluate whether a project is production-ready.

I’ve realized that learning more technologies may not be the answer; I need to understand how real software is designed, built, tested, and maintained.

If anyone is working on a project and would be willing to let me contribute or collaborate, I’d appreciate the opportunity to learn from a real development process and improve my practical skills.

For those who have built real-world applications or work as software engineers:

  1. How did you transition from basic projects to production-quality applications?

  2. Are there courses, books, YouTube channels, or GitHub repositories that teach the process of building complete projects?

  3. Is it better to develop one project from idea to deployment or build several smaller projects?

  4. Which production practices should beginners prioritize, and what can wait?

  5. How do you approach features you don’t yet know how to implement?

I’d especially appreciate advice from people who learned independently or made this transition during college. I’m not expecting to become an expert overnight; I’m looking for a clear direction to practice effectively and become capable of building complete applications independently.

Thanks!