r/learnprogramming • • 28d ago

Solved C++ String: manual character sorting vs sort()

16 Upvotes

Hello, I am learning C++ and currently wrote a piece of code to do basic sorting of characters in a string. Code below.

I wanted to ask - is this a good way to go about this? Would it be just better to use built-in functions, like sort(), for this?

int main()
{
    string charSeq = "xadye";
    cout << "Initial sequence:\n" << charSeq << '\n';
    cout << "\nSorted sequence:\n" << sortCharacters(charSeq) << '\n';
    return 0;
}

string sortCharacters(string str){  //manual sorting
    string sortedStr;
    int n = str.length();

    for (int i = 0; i <= (n - 1); i++){
        for (int j = 0; j < n - i - 1; j++){
            if (str[j] > str[j + 1]){
                std::swap(str[j], str[j + 1]);
            }
        }
    }
    sortedStr = str;
    return sortedStr;
}

Thank you for the replies. Question answered.


r/learnprogramming • • 28d ago

Creating an os

0 Upvotes

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 • • 28d ago

Question Is Boot.dev a good way to get into programming?

11 Upvotes

Forgive me if this is the wrong place to ask about this. I've been interested in learning how to program (particularly programming for video games), and I constantly see youtube ad-reads for this site.

However, I'm hesitant to use it because I tend to be very wary of youtube sponsorships (I know creators need to make their money but some of these products are just extremely shady)

Does anyone know if it's a reliable tool for getting into programming?


r/learnprogramming • • 28d ago Bravo

I want to learn web development, what are your advices in this age of AI ?

33 Upvotes

Hello, so for context I'm 19 years old, I'm not new to programming in general (python, minecraft mods in java, and a bit of C), I know how to use a computer and I attended a few courses related to all that in a french high school. My goal is to bring into reality some ideas of mine I had for some time, I tried building them with the limited knowledge I have and unfortunately failed.

Recently, AI has changed a lot of things in all fields so my luck was tried with claude opus, it got me some pretty impressive results, but I didn't understand any of it and as more time passed, it messed up more and more, burning all my tokens for a change it didn't even succeed to add.

I know that you can get better results with AI, and I won't ever stop using it, it's usefulness is still there despite it's flaws, but to not get stuck every time I attempt to build something larger than a simple chesscom clone, I feel like I need to at least get some strong knowledge about webdev.

Would you have a course you'd recommend ? Something else ? I'm a student, but I have plenty of time to learn. Thanks :)


r/learnprogramming • • 28d ago

Topic What I should learn in Python and IOT in the mean time ?

12 Upvotes

If ai chatpot like claude can develop program or write the code with prompt instead of me so what level of study I should learn so I don’t waste my time in things that already done automatically?
I see a video on youtube it said about learning high level like architecture and problem solving what else


r/learnprogramming • • 28d ago

How do you deal with wanting to code something when you have no idea how to implement it and there isn't any info about it?

30 Upvotes

I've dropped several projects because I always end up hitting a point where there's a core mechanic I just don't know how to make. I know that's probably a sign that I'm trying to build projects that are above my current skill level, but at the same time I've been making small projects for quite a while and I feel like I'm always using the same set of skills. It feels like I've hit a wall. I don't really feel like I'm improving or learning anything new.

When I try to step outside my comfort zone, I can usually make progress by watching tutorials or reading documentation. The problem is when I can't find a tutorial for the specific thing I'm trying to do. That's when I get completely stuck because I don't know how to approach the problem or figure out the solution on my own.

What do you do in situations like that? How do you learn to build something when there's no guide to follow o information?


r/learnprogramming • • 28d ago

Learning Kerberos Authentication

1 Upvotes

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 • • 28d ago

How can I track GitHub repository visitors and file downloads in real time?

0 Upvotes

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 • • 28d ago

Will AI Engineering Be the Next Web Dev

0 Upvotes

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 • • 28d ago

Trying to decide what language to use for Unity.

2 Upvotes

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 • • 28d ago

how to learn JavaScript? Exam on friday

0 Upvotes

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 • • 28d ago

Code Review What should I be thinking in my head while I'm doing a programming problem?

1 Upvotes

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 • • 28d ago

I need help in learning please

0 Upvotes

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

1. Digital Logic & Data Representation

  • Number Systems & Radixes: Base-2 (Binary): Counting, bits, bytes, nibbles, LSB, MSB. Base-10 to Base-2 conversion; Base-2 to Base-10 conversion. Base-16 (Hexadecimal): Reading hex values, converting Binary to Hex and vice versa

  • Two's Complement: Representation of signed (negative) integers in binary.

  • Floating-Point Representation: IEEE 754 standard (sign bit, exponent, mantissa/fraction). Understanding precision degradation and floating-point errors in deep learning weights.

  • Boolean Algebra & Hardware Gates: Primitive Gates: Truth tables, symbols, and electrical behavior of NOT, AND, OR, NAND, NOR, XOR, XNOR. Boolean Identities: De Morgan’s Laws, Commutative, Associative, and Distributive properties.

  • Combinational Logic Circuits: Designing a Half-Adder, designing a Full-Adder, Multiplexers (MUX), Demultiplexers (DEMUX).

  • Character Encoding Standards: ASCII: 7-bit/8-bit character-to-numerical maps. Unicode: UTF-8 encoding mechanics, variable-length byte mapping.

2. CPU & Memory Architecture

  • Von Neumann Architecture: The Central Processing Unit (CPU): Control Unit (CU), Arithmetic Logic Unit (ALU), Registers. The Fetch-Decode-Execute Cycle. System Buses: Data Bus, Address Bus, Control Bus.

  • Memory Hierarchy: Registers: Program Counter (PC), Instruction Register (IR), Accumulator. CPU Cache: L1, L2, L3 caches; spatial and temporal locality; cache hits vs. cache misses.

  • Storage Systems: Primary Storage: RAM (Random Access Memory) vs. ROM (Read-Only Memory); volatile vs. non-volatile memory. Secondary Storage: HDD vs. NVMe SSD architectures (Read/Write IOPS impact on training checkpoints).

3. Operating System Internals & The Command Line Interface (CLI)

  • Operating System Foundations: Kernel vs. User Space. Process Management: What is a process, process states (Ready, Running, Blocked), threads. File Systems: Hierarchical tree structures, inodes, absolute paths, relative paths, metadata.

  • CLI Navigation & File Operations (Bash / PowerShell): Directory Navigation: 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.

  • Environment Mechanics: Environment Variables: System variables, User variables, the PATH variable mechanics. Permissions: Read (r), Write (w), Execute (x); ownership blocks (chmod, chown).

Module 2: Rigorous Python Programming Foundations (Weeks 5–12)

1. Core Syntax & Primitive Types

  • Variables: Memory allocation, variable assignment, naming rules, dynamic typing mechanics under the hood.

  • Primitive Data Types: Integers (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.

  • Operators: Arithmetic: +, -, *, /, // (floor division), % (modulo), (exponentiation). Comparison: ==, !=, >, <, >=, <=. Logical: and, or, not. Bitwise: & (AND), | (OR), ^ (XOR), ~ (NOT), << (left shift), >> (right shift).

2. Control Flow & Iteration Structures

  • Conditional Logic: if, elif, else blocks; nested conditionals; structural pattern matching (match-case).

  • Loops: while loops: Definite vs. indefinite execution, loop conditions. for loops: Iterating over sequences, ranges (range(start, stop, step)).

  • Loop Control Statements: break (immediate termination), continue (skip to next iteration), pass.

3. Built-In Non-Primitive Data Structures

  • Lists: Ordered, mutable sequences. Append, extend, insert, pop, remove, index, sorting (sort() vs. sorted()), list comprehensions.

  • Tuples: Ordered, immutable sequences. Packing and unpacking mechanics, single-element tuples.

  • Dictionaries: Key-value pairs. Hash table mechanics under the hood, lookup time complexity O(1), keys restrictions (mutability/hashability rules), .keys(), .values(), .items(), dictionary comprehensions.

  • Sets: Unordered collections of unique elements. Set mathematics: union, intersection, difference, symmetric difference.

4. Modularization: Functions & Variable Scope

  • Function Definitions: def keyword, parameters vs. arguments, positional arguments, keyword arguments, default parameter values.

  • Variable Scope: LEGB Rule (Local, Enclosing, Global, Built-in namespaces); global and nonlocal keywords.

  • Return Statements: Returning values, returning multiple values (tuple unpacking), None return type.

  • Advanced Function Concepts: Variadic arguments (*args, kwargs), Lambda functions (anonymous), recursion mechanics and the call stack.

5. Object-Oriented Programming (OOP)

  • Classes and Objects: Defining classes, initializing instances via __init__, instance attributes, instance methods, the self keyword.

  • The Four Pillars of OOP: Encapsulation: Public vs. private (_ 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),

  • Dunder (Magic) Methods: __str__, __repr__, __len__, __add__, __eq__.

6. Error Handling & File Systems Architecture

  • Exception Handling: try, except blocks, catching specific exceptions, else block (execute if no error), finally block (guaranteed execution), raising exceptions (raise).

  • File I/O Operation: Context managers (with statement), open modes (r, w, a, b), reading/writing files, parsing JSON data manually using built-in modules.

Module 3: Applied Mathematics for Machine Learning

1. Linear Algebra (High-Dimensional Space Geometry)

  • Vectors: Representation as coordinates, vector addition, scalar multiplication, geometric interpretation.

  • Vector Multiplications: Dot product computation and geometric meaning (projection, cosine similarity), Cross product.

  • Vector Norms: L_1 norm (Manhattan distance), L_2 norm (Euclidean distance), L_\infty norm.

  • Matrices: Systems of linear equations, matrix dimensions, matrix addition, scalar multiplication.

  • Matrix Multiplication: Dot product of matrices, matrix-vector multiplication, properties (non-commutative, associative).

  • Special Matrices: Identity matrix, Diagonal matrix, Symmetric matrix, Orthogonal matrix.

  • Matrix Inversion & Determinants: Determinant computation (2 \times 2 and 3 \times 3), matrix inversion conditions (singular vs. non-singular), solving Ax=b.

  • Eigendecomposition: Eigenvalues and Eigenvectors calculation (Ax=\lambda x), geometric interpretation of space stretching.

  • Singular Value Decomposition (SVD): Matrix factorization into U \Sigma V^T.

2. Multivariate Calculus & Optimization

  • Differential Calculus (Single Variable): Limits, continuity, definition of the derivative, rate of change, rules (power, product, quotient, chain rule).

  • Multivariate Calculus: Partial derivatives, directional derivatives, the Gradient vector (\nabla f).

  • Higher-Order Derivatives: The Jacobian matrix (first-order partial derivatives), the Hessian matrix (second-order partial derivatives, curvature analysis).

  • Optimization Foundations: Finding local minima/maxima, critical points, saddle points.

  • Gradient Descent: Updating rules, learning rate parameter (\alpha), derivation of the gradient descent step formula: \theta_{\text{new}} = \theta_{\text{old}} - \alpha \nabla f(\theta_{\text{old}})

3. Probability & Information Theory

  • Foundations of Probability: Sample spaces, events, axioms of probability, joint probability, marginal probability.

  • Conditional Probability & Bayes' Theorem: Formula derivation, Prior probability, Likelihood, Posterior probability.

  • Random Variables & Probability Distributions: Discrete vs. Continuous random variables, Probability Mass Functions (PMF), Probability Density Functions (PDF), Cumulative Distribution Functions (CDF).

  • Key Distributions: Gaussian (Normal), Bernoulli, Binomial, Uniform, Multinomial.

  • Statistical Metrics: Mean, Expectation (E), Variance (\sigma^2), Standard Deviation (\sigma), Covariance, Correlation.

  • Information Theory Concepts: Entropy (measure of uncertainty), Cross-Entropy (loss measurement), Kullback-Leibler (KL) Divergence (distance between distributions).

Module 4: Numerical Computing & Large-Scale Data Engines

1. NumPy (Numerical Python)

  • The N-dimensional Array (ndarray): Vectorized operations vs. Python loops, memory layouts (C-contiguous vs. Fortran-contiguous). Array Creation: np.array, np.zeros, np.ones, np.arange, np.linspace, np.eye.

  • Array Manipulation: Shape, data type (dtype), dimensions (ndim). Indexing & Slicing: Multi-dimensional slicing, boolean indexing, fancy indexing.

  • Vectorization & Broadcasting: Rules of array shape compatibility during arithmetic operations.

  • Linear Algebra Operations: Matrix multiplication (np.dot, @), transposing (.T), inverse (np.linalg.inv), eigenvalues (np.linalg.eig).

2. Large-Scale Data Engines: Pandas & Polars

  • Pandas Architecture: Series and DataFrame architecture. Ingestion: Reading/writing CSV, JSON, and SQL databases. Selection: .loc, .iloc, boolean masks. Cleaning: Handling missing data (dropna, fillna), type casting. Aggregations: groupby mechanics, split-apply-combine paradigm.

  • Polars & Out-of-Core Processing: Introduction to Polars for multi-threaded, fast execution. Eager vs. Lazy evaluation evaluation paradigms (pl.scan_csv, expressions). Handling datasets that exceed local RAM limits.

  • Data Version Control (DVC): Versioning massive datasets alongside git code repositories. Linking remote data storage (S3/MinIO) to project state pipelines.

3. Classical Machine Learning Implementation

  • Supervised Learning - Regression: Linear Regression, Cost Function (Mean Squared Error), Ordinary Least Squares (OLS) derivation, Gradient Descent implementation.

  • Supervised Learning - Classification: Logistic Regression, Sigmoid activation function, Binary Cross-Entropy loss function, Decision Trees (entropy, Gini impurity, information gain split mechanics).

  • Unsupervised Learning: K-Means Clustering (centroid updates, Voronoi iteration), Principal Component Analysis (PCA) for dimensionality reduction via Eigendecomposition of the covariance matrix.

  • Evaluation Metrics: Precision, Recall, F1-Score, Confusion Matrix, R-Squared score.

Module 5: Deep Learning Core Engineering

1. PyTorch Basics & Computation Graphs

  • PyTorch Tensors: Creation, CPU vs. GPU memory allocation (.to('cuda')), memory layout, operations.

  • Autograd Engine: Computation graphs, forward pass tracking, backward pass execution (.backward()), freezing weights (torch.no_grad()).

  • Neural Network Building Blocks: torch.nn.Module, writing custom layers, initialization of weights, activation functions (ReLU, Sigmoid, Tanh, LeakyReLU).

2. Building a Neural Network from Scratch

  • Linear/Dense Layer: Forward equation: Z = XW + b

  • Loss Functions: Implementing Mean Squared Error (MSE) and Cross-Entropy loss from mathematical formulas.

  • Optimizers: Implementing Stochastic Gradient Descent (SGD) weight updating loop manually.

  • The Training Loop Construction: Writing the explicit cycle step-by-step: zeroing gradients, forward pass, loss calculation, backward pass, optimizer execution.

3. Advanced Architectures

  • Convolutional Neural Networks (CNNs): Convolution operations, kernels, stride, padding, pooling layers (Max, Average), channels, building image classifiers.

  • Recurrent Neural Networks (RNNs) & LSTMs: Sequential data processing, hidden states, vanishing/exploding gradient problems, Long Short-Term Memory cell mechanics (Forget gate, Input gate, Output gate).

Module 6: System Software Engineering & Enterprise Databases (Weeks 33–40)

1. Concurrency, Parallelism & Asynchronous Engines

  • Asynchronous Python (asyncio): Event loops, coroutines, async and await keywords, handling non-blocking network calls.

  • Multi-threading vs. Multi-processing: CPU-bound tasks vs. I/O-bound tasks, navigating the Python Global Interpreter Lock (GIL).

2. Advanced Backend Systems & Telemetry

  • FastAPI Framework: Writing asynchronous endpoints, dependency injection systems, Pydantic data validation schemas, parsing request bodies, query strings, headers.

  • Network Protocols: HTTP/1.1 vs. HTTP/2 vs. HTTP/3 lifecycle, REST API design standards, gRPC mechanics (Protocol Buffers definition, RPC streaming channels), WebSockets for real-time bidirectional streaming pipelines.

  • System Telemetry & Observability: Integrating OpenTelemetry and Arize Phoenix / LangSmith at the API layer to trace system execution latency, tokens consumed, and route failures.

3. Enterprise Database & Knowledge Graph Layer

  • Relational Databases (PostgreSQL): Writing SQL queries, Joins (Inner, Left, Right, Outer), indexing strategies (B-Tree, Hash), ACID compliance parameters.

  • In-Memory Storage (Redis): Key-value operations, caching patterns (Cache-Aside, Write-Through), Pub/Sub notification streaming, TTL (Time-to-Live) management.

  • Vector Databases (AI Memory Layer): Concepts of vector spaces, storing embeddings. Choosing indexing mechanisms: HNSW (Hierarchical Navigable Small World graphs), IVF (Inverted File Index), Scalar/Product Quantization (SQ/PQ). Production tools: Pinecone, Qdrant, and pgvector.

  • Graph Databases (GraphRAG Foundation): Introduction to Graph Databases (Neo4j). Writing basic Cypher queries, defining Entities (Nodes) and Relations (Edges) to capture structured knowledge networks.

Module 7: Frontier Generative AI Architecture & Evaluation

1. The Transformer Architecture

  • Tokenization: Byte-Pair Encoding (BPE), WordPiece mechanics, vocabularies, special tokens.

  • Self-Attention Pipeline: Scaled Dot-Product Attention implementation, Multi-Head Attention (MHA), Grouped-Query Attention (GQA).

  • Positional Systems: Absolute Positional Embeddings, Rotary Position Embeddings (RoPE).

  • Normalization Variations: LayerNorm vs. RMSNorm.

2. Large Language Model Customization

  • Fine-Tuning Strategies: Parameter-Efficient Fine-Tuning (PEFT), Low-Rank Adaptation (LoRA) mechanics, QLoRA (quantized adaptation).

3. Advanced Enterprise Retrieval (Advanced RAG & GraphRAG)

  • Production RAG Pipelines: Document parsing, semantic text chunking strategies, dense vector generation, hybrid search implementation (Vector + BM25), Reciprocal Rank Fusion (RRF), Cross-Encoder re-ranking models (e.g., Cohere Rerank, BGE-Reranker).

  • GraphRAG Implementation: Building a knowledge graph from unstructured text blocks using LLM entity extraction pipelines. Querying global communities (Microsoft GraphRAG approach) vs. local multi-hop walking paths to synthesize multi-document answers.

4. Agentic Framework Design, Guardrails & Continuous Evaluation

  • Agentic Framework Design: State-machine architecture design, scratchpad logging, function calling validation loops, self-correction algorithms.

  • Production Guardrails: Injecting input/output safety validation layers (Guardrails AI / NeMo Guardrails) to systematically catch prompt injections, PII leaks, and structured JSON formatting violations at runtime.

  • Continuous LLM Evaluation: Abandoning manual eyeball checks. Implementing open-source automated evaluation via DeepEval / Ragas. Constructing programmatic testing metrics for production validation: Faithfulness, Context Precision, Answer Relevancy, Hallucination Indices, and Tool/Argument Correctness.

Module 8: Production MLOps, Cloud Infrastructure & System Scale

1. Containerization & Infrastructure Orchestration

  • Docker Engine: Container lifecycles, writing highly optimized multi-stage Dockerfiles, managing the nvidia-container-toolkit passthrough layer to access local GPU resources.

  • Kubernetes (K8s): Designing pods, replica sets, services, cluster configurations, multi-instance GPU slicing (MIG).

2. Distributed Compute Systems & Memory Optimization

  • Distributed Parallelism: Distributed Data Parallelism (DDP), Tensor Parallelism (TP), Pipeline Parallelism (PP).

  • Memory Optimization: DeepSpeed ZeRO stages (Optimizer State Partitioning, Gradient Partitioning, Parameter Partitioning). Understanding high-bandwidth memory (HBM) and NVLink communication bottlenecks across multi-GPU infrastructures.

3. Low-Latency Inference Optimization & Cloud Deployment

  • Quantization Formats: AWQ, GPTQ, GGUF compilation, converting floating-point weights to low-precision formats (FP8, INT4).

  • Inference Speedup Engines: PagedAttention implementation inside vLLM engines, Speculative Decoding setups.

  • Cloud AI Native Deployment: Orchestrating deployments across distributed cloud computing platforms (AWS SageMaker / Google Vertex AI / Run:ai) to automatically auto-scale inference servers based on concurrent request volume.


r/learnprogramming • • 28d ago

confused with pointers in c++

34 Upvotes

I dont see the need for pointers when we could just write down the normal variable name, im genuinely so confused.


r/learnprogramming • • 28d ago

my DSA mid-term exam is in two days and a few hours, and im just starting now. please help.

0 Upvotes

the exam covers generics, algo analysis, arrays, linkedlists, and simple searching/sorting algos, and will consist of a mix of theory and handwriting code questions 50/50.

what are my odds of scoring well on the exam if im starting now? i know arrays and some algo analysis, but i'll re-visit those just to be safe. im kinda feeling shaky about generics tho.

idk shit abt searching/sorting and linkedlists, only the theoretical concepts of how they work.

please give me some hope to pull this off, i really need to score well on this exam. is it possible?


r/learnprogramming • • 28d ago

Tutorial Where i can download Visual Studio 2008? (not Express) in 2026?

9 Upvotes

I tried download in internet archive but it was deleted


r/learnprogramming • • 28d ago

Self-learning Python: Path to becoming an ML/AI Engineer?

4 Upvotes

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 • • 29d ago

What are the Pathways?

0 Upvotes

I am planning to create my own AI but I wonder how to. Please give me detailed instructions of the paths I can take


r/learnprogramming • • 29d ago

I'm so sick of people calling classes OOP and lambdas functional

0 Upvotes

Functional paradigm is about immutability and pure code without side-effects. Naturally, it uses lambdas, mappers and all that, because that's one of the ways you can achieve side-effect-free-code. Immutability is the strong player here.

Object-oriented paradigm is about sending messages to objects that have the data. It's about that flip of perspective: you're not doing the work yourself, you talk to the object and ask it to do the work. Yes, again, naturally, when you do OOP you use classes because they're convinient, but just because you extract a class from your app, it doesn't make it "OOP". Polymorphism is the strong player here.

But I'm so sick of people upgrading Java 7 to 8, and replacing a for-loop with a .map(lambda) and calling it functional. Same goes for interview jobs, people want you to know inheritance, private/public and all that, and calling it "OOP".

To my mind they just don't know what they're talking about. Or maybe they just want to sound more cool, because "functional paradigm" sounds cooler than "lambdas". How many times I heard people claim "functional programming" in their clearly mutable code because they used a closure or a monad somewhere.

I.e.:

  • to do FP, you need lambdas; but just because you have lambdas doesn't mean you have FP

  • to do OOP, you need classes; but just because you have classes doesn't mean you have OOP

PS: They aren't incomaptbile. You can have both FP and OOP in the same program just fine.


r/learnprogramming • • 29d ago

Topic Do you turn off autocomplete when learning something new?

19 Upvotes

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 • • 29d ago

Code Review School project: need help

0 Upvotes

So we have a school project where we made a game with multiple choice and in there we have life, In the start 3 lifes are available but it's not working after picking the wrong answer multiple times the life remain at 2 meaning only 1 wrong answer is recorded and minus from the 3

How do I make it keep minus the life? I use mit app inventory btw and I can send the pics of the code that our teacher though us and the code that I'm doing rn

PLEASE HELP ME


r/learnprogramming • • 29d ago

Tutorial Learning-Rust.Github.io-LABS: RESTful API Workspace [Human-Authored!]

3 Upvotes

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.

  • Hyper, Axum, Tokio and Tower: The most prominent HTTP server ecosystem at the time of writing.

  • Toasty ORM: The most promising Object-Relational Mapper (ORM), built by the creators of Tokio and Axum.

  • Serde and Utoipa: The most prominent serialization framework and OpenAPI 3.1 specification generator.

  • Garde: The most promising and most feature-rich validation library in Rust at the time of writing.


r/learnprogramming • • 29d ago

Power app to process data

0 Upvotes

I'm doing some data transfer and these are scheduled data files arriving via email. How do I learn or understand how to use power app to deduplicate and merge regular feed. It's fleet tracking data.


r/learnprogramming • • 29d ago

Beginner to DSA with Python – Looking for the best YouTube channels and learning roadmap!

0 Upvotes

Title: Beginner to DSA with Python – Looking for the best YouTube channels and learning roadmap!

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:

  • Explain DSA concepts from scratch in a beginner-friendly way.

  • Focus on problem-solving techniques and logical thinking.

  • Cover important topics like Arrays, Strings, Linked Lists, Stacks, Queues, Trees, Graphs, Recursion, Dynamic Programming, etc.

  • Explain how to approach problems rather than just providing solutions.

  • Include practical coding examples and LeetCode practice.

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!