r/learnprogramming • • Sep 21 '26

Looking to get back into programming

2 Upvotes

Context is a little difficult to provide, but here goes. I graduated from university with a computer science major, focusing on game development. Despite this, I have basically no experience to my name, and my portfolio is completely empty. I want to try making stuff, if only for the hell of it, but I have no idea where to start or what to do. All the programming I've ever done before was for a project someone else assigned to me, and creativity isn't exactly a strong suit of mine. I've learned, at least in theory, most of the major general purpose languages (except Javascript, I suck at that), though I'm particularly interested in the less common languages, like Lisp, Odin, and Haskell. Where should I go from here?


r/learnprogramming • • Sep 21 '26

Tutorial Is there a good guideline on single liners in code?

4 Upvotes

I'm learning Go as my first language, and there's one issue I keep bumping into all the time: in textbooks, on Exercism, online, etc — it's one-liners vs verbose step-by-step code. So I was wondering if there's a good style guide/article/rule of thumb for these things.

Let's say I want to get a random element from a slice/array. I'd do it like this:

func pickRandomFrom (items []string) string {
  length := len(items)
  index := rand.Intn(length)
  return items[index]
}

As opposed to just doing item := items[rand.Intn(len(items))] without creating any helper function at all.

Exercism and Codewars problems are also full of solutions with one-line helper functions where everything is wrapped into the return statement.

To me, my example is more readable — you don't have to parse through all the parenthesis, determine order of operation and do the whole thing in your head. I also get a function with a clear name that makes my main code read a bit more like prose.

But I suppose it's wrong because I create two throwaway variables to do this and I've seen people call similar implementations less readable than one-liners.

Programming guides all say "clear is better than clever", but then they're also like "unless it's idiomatic" which isn't really a useful distinction when I try to build a good habit.

So I wonder — is there a good rule of thumb on these things? Maybe some style guide or a chapter in some book.

Hope it makes sense, English is not my native language.


r/learnprogramming • • Sep 20 '26

Need your advice Best resources to learn Git as a complete beginner?

222 Upvotes

I'm currently starting to learn programming, but I’m completely new to Git and version control.

I understand that Git has its own commands and that it’s used to track changes in projects, but I’m not sure where I should start learning it.

For someone with zero Git experience, what resources would you recommend? Books, YouTube courses, interactive tutorials, websites, etc.

Would appreciate any recommendations! Thanks.


r/learnprogramming • • Sep 21 '26

Topic 2 years of automation testing: I want to learn how to build proper projects in my free time

5 Upvotes

A little bit about my background. I've been in QA for about 7 years, 5 of those as a manual tester and the last 2 in automation, writing mainly Playwright tests in TypeScript and a little bit with C#. Lately Ive been really curious in building apps or tools that would be useful for me personally and maybe monetize something later if it actually goes anywhere.I'm not trying to move into a SWE role.

With AI increasingly handling a lot of the actual code, I'm trying to figure out where my time is best spent: going deep on DSA, system design, database design/indexing, and design patterns, or continuing to sharpen TypeScript/React (and other frameworks) first and circling back to those concepts once I'm further along?


r/learnprogramming • • Sep 21 '26

Code Review Made my first project in C#!

1 Upvotes

I have been learning on and off for a week or two now, and I decided to create Rock, Paper, Scissors without any tutorials, using only web search.

I think my code can be less convoluted, so if you have any advice please let me know.

//program start

string[] weaponOpponent = {"rock", "paper", "scissors"};

Random rnd = new Random();

int arraySelectionRandomNumber = rnd.Next(0, 3);

Console.WriteLine("Rock, Paper, Scissors, Shoot!");

Console.WriteLine("Choose Between: Rock, Paper, Scissors");

string playerChoice = Console.ReadLine();

if (weaponOpponent[arraySelectionRandomNumber] == "rock" && playerChoice == "Rock")

{

Console.WriteLine("You draw!");

}

else if (weaponOpponent[arraySelectionRandomNumber] == "paper" && playerChoice == "Paper")

{

Console.WriteLine("You Draw!");

}

else if (weaponOpponent [arraySelectionRandomNumber] == "scissors" && playerChoice == "Scissors")

{

Console.WriteLine("You Draw!");

}

else if (weaponOpponent [arraySelectionRandomNumber] == "rock" && playerChoice == "Paper")

{

Console.WriteLine("You Win!");

}

else if (weaponOpponent [arraySelectionRandomNumber] == "rock" && playerChoice == "Scissors")

{

Console.WriteLine("You Lose!");

}

else if (weaponOpponent [arraySelectionRandomNumber] == "paper" && playerChoice == "Scissors")

{

Console.WriteLine("You Win!");

}

else if (weaponOpponent [arraySelectionRandomNumber] == "paper" && playerChoice == "Rock")

{

Console.WriteLine("You Lose!");

}

else if (weaponOpponent [arraySelectionRandomNumber] == "scissors" && playerChoice == "Rock")

{

Console.WriteLine("You Win!");

}

else if (weaponOpponent [arraySelectionRandomNumber] == "scissors" && playerChoice == "Paper")

{

Console.WriteLine("You Lose!");

}

else {

Console.WriteLine("Invalid Input!");

}

//program end


r/learnprogramming • • Sep 21 '26

Solved newbie writing sorting algorithms

0 Upvotes

hey guys, I've been learning c in my free time and I've been implementing some sorting algorithms with as little help as possible. My comp sci class (Java) went over Insertion sort, selection sort, and bubble sort. I can write bubble sort half asleep, but I can't work out this bug in my selection sort algorithm. I can't figure out why the largest value is at the start, but the rest of the array becomes sorted.

void IntSwap(int Array[], int idx1, int idx2) {

`int swap;`

`swap = Array[idx2];`

`Array[idx2] = Array[idx1];`

`Array[idx1] = swap;`

}

void IntSelectionSort(int Array[], int length) {

`for (int i = 0; i < length; i++) {`

	`int swapidx = 0;`

	`for (int j = i; j < length; j++) {`

		`if (Array[j] < Array[swapidx]) {`

swapidx = j;

		`}`

	`}`

	`IntSwap(Array, swapidx, i);`

`}`

}

int main() {

`int startingArray[32];`

`for (int i = 0; i < 32; i++) {`

	`startingArray[i] = rand();`

`}`

`for (int i = 0; i < 32; i++) {`

	`printf("%d\n", startingArray[i]);`

`}`

`puts("");`

`IntSelectionSort(startingArray, 32);`

`for (int i=0; i < 32; i++) {`

	`printf("%d\n", startingArray[i]);`

`}`

`return 0;`

}

this first print loops prints:

1804289383

846930886

1681692777

1714636915

1957747793

424238335

719885386

1649760492

596516649

1189641421

1025202362

1350490027

783368690

1102520059

2044897763

1967513926

1365180540

1540383426

304089172

1303455736

35005211

521595368

294702567

1726956429

336465782

861021530

278722862

233665123

2145174067

468703135

1101513929

1801979802

the second print loop prints:

2145174067

35005211

233665123

278722862

294702567

304089172

336465782

424238335

468703135

521595368

596516649

719885386

783368690

846930886

861021530

1025202362

1101513929

1102520059

1189641421

1303455736

1350490027

1365180540

1540383426

1649760492

1681692777

1714636915

1726956429

1801979802

1804289383

1957747793

1967513926

2044897763


r/learnprogramming • • Sep 21 '26

How do I become an AI Engineer? Looking for a roadmap

0 Upvotes

Hi everyone,

I want to become an AI Engineer and currently have basic knowledge of ML. I’m confused about what to learn next and in what order.

Could someone please share a clear roadmap from beginner to industry-ready AI Engineer, including:

- What topics to learn and in what order

- Good resources/courses for each topic

- Projects I should build

- What to learn about Deep Learning, LLMs, RAG, AI Agents, MLOps, and deployment

- Which tools/frameworks I should focus on

I’d really appreciate advice from people already working in AI Engineering. Thanks!


r/learnprogramming • • Sep 21 '26

Looking for advice on what I should learn next as a frontend developer

0 Upvotes

I'm trying to become a frontend web developer, and right now I know HTML, CSS, and JavaScript. I'm also comfortable using GitHub and VS Code.

I know that's probably just the starting point, but I'm not really sure what I should learn next to actually become employable as a frontend developer.

I can build websites from scratch, and I know how to get them online using services like GoDaddy. But I have a feeling there's a lot more I should be learning that I don't even know about yet.

Should I learn another programming language? A framework like React? TypeScript? Databases? Testing? Something completely different?

For those of you who work in frontend development, what skills would you recommend I focus on next to become job-ready?


r/learnprogramming • • Sep 21 '26

How do you actually divide the project in a team?

1 Upvotes

If there are multiple members working on a same project, how do we ensure that our project integrates in the end? I read define APIs first what else we need to keep in mind so everyone is doing there own work and it all integrates in the end.


r/learnprogramming • • Sep 21 '26

JAVA jumpstart ideas?

10 Upvotes

I have been trying to get back into java and add some soft skills to my resume, so do you have any project ideas or resources that can help me get started?


r/learnprogramming • • Sep 21 '26

Aiming for Full Stack: Is The Odin Project enough to get hired? JS or Rails?

0 Upvotes

Hey everyone, I’m about to dive into web development and The Odin Project looks like the most solid free path out there.

I'm wondering if finishing the curriculum actually gets you to an employable level for a junior role, or if there's a big gap between the course and what companies are asking for right now. I know a lot depends on the portfolio you build, but is the technical foundation TOP provides realistic tools for the current market?

Also, I'd love to hear some thoughts on which track to choose later on. Would you recommend going the Full Stack JavaScript, or is Ruby on Rails a better bet for entry-level?

Any reality checks or insights on how the market is looking for self-taught devs right now would be super helpful. Thanks!


r/learnprogramming • • Sep 20 '26

Completely confused about which tech domain to choose for my career

20 Upvotes

Hey everyone,

I’m a computer application student and I’m currently at the very beginning of my coding journey. Right now, I’m learning C, but I’m completely unsure about which domain I should eventually choose.

There are so many options like Web Development, Software Development, Cybersecurity, Data Science, AI/ML, Cloud/DevOps, Mobile Development, etc., and honestly, I don’t know enough about these fields to understand which one would suit me.

I’m not looking for someone to simply tell me which domain pays the most. I want to understand how I can figure out which field is actually suitable for me based on my interests, abilities, and the kind of work I might enjoy.

At the same time, I do want to build a career that has good opportunities and earning potential over the next 3–4 years.

For people who are already working in tech or have gone through a similar stage:

  • How did you decide which domain to pursue?
  • What should I learn or try before choosing a specialization?
  • Which domains do you think a BCA student should seriously explore?
  • What skills are likely to remain valuable over the next 3–4 years?
  • Should I focus on programming fundamentals first and decide later?

I’m completely open to learning from scratch. I’d especially appreciate advice from people who have already gone through this process.

Thanks.


r/learnprogramming • • Sep 21 '26

Rising 9th grader in Vietnam starting C++ for specialized high school entrance exams (Chuyên Tin) — looking for advice on roadmap, balancing core subjects, and LeetCode!

1 Upvotes

Hi everyone! 👋

I'm a rising 9th-grade student in Vietnam. I've just started learning C++ from scratch, writing my code using VS Code (and following the Bro Code course on YouTube for basics) with the ultimate goal of passing the entrance exam for a specialized high school in Computer Science (Chuyên Tin) next year.

Since 9th grade is a high-stakes exam year in Vietnam, I have a few specific concerns and would love to get advice from the community:

  1. Is Bro Code enough for the basics? It's great for C++ syntax, but what should I focus on next specifically for algorithmic problem-solving required in specialized exams (like arrays, recursion, standard data structures)?
  2. Balancing time with core subjects: As a 9th grader, I also have to study hard for Math, Literature, and English (the mandatory subjects for public high school entrance). How can I effectively manage my daily schedule between core subjects and coding?
  3. LeetCode outside of class: I want to practice on LeetCode during my free time to sharpen my logic. Are LeetCode "Easy" problems good for a beginner like me, and is it a good platform to build up my problem-solving skills for these exams?
  4. Any study tips for a 1-year timeline? How should I structure my weekly routine to make steady progress without burning out?

Any advice, roadmaps, or recommended resources would mean the world to me. Thank you so much! 🚀


r/learnprogramming • • Sep 20 '26

i want to do a site for a friends birthday

16 Upvotes

Hi !

EDIT : not looking to hire anyone, just looking for advices.

I need help figuring out how to create a website for a gift. I have until February to finish it, but I have no programming experience, so I don’t really know where to start !

The website should include:

  1. A birthday-themed home page, with a cake, candles, cute illustrations, confetti, etc.
  2. A math problems page where she’ll have to solve an inequality (this page should also include a notebook to help her brainstorming).
  3. A password-protected page, where the answer to the inequality will be the password; she’ll have to solve the inequality to access it.
  4. A home page with a wall of Polaroid photos of all her friends. Each photo would be clickable and would open a short video of that friend talking about her.

There would be about 23 friends, each with a video of at least 20 seconds.

I’d mainly like some advice on what I should learn/use to complete this project, which tools would be easiest for a complete beginner, and whether this project is realistic to complete by February.

Thanks in advance !!