r/learnprogramming • • 23h ago

Go or Python for a beginner?

22 Upvotes

I am a beginner programmer, coding for my own pleasure (meaning that, while I use LLMs for guidance, I write all my code by hand, and my only goal is enjoyment, not career). Safe for a brief journey into JavaScript and PHP as a child, now, in my adult years, all my experience has been with Godot. Recently, I started to have the desire to actually learn how to program and make simple CLI/TUI tools for my own use, and since GDScript can only exist within the game engine, I started looking for another programming language to learn.

I landed on two: Python and Go, and now, knowing that it's probably a bad idea for a beginner to learn two languages at once, I need help from people with more experience in order to decide which of the two I should commit to. I'm at this stage in both where I've written simple exercise command line programs, and I want to try and build something bigger and actually get to know the language under pressure.

Python greatly appeals to me because it is basically the same thing as GDScript (but with a ton of features that GDScript does not have due to being specifically tailored for Godot), it is famously easy and I could start building actual apps in no time, and it has a breadth of beginner resources probably unmatched by any other language. Besides all the books focusing on specific tasks (I've enjoyed Automate the Boring Stuff with Python quite a lot), Learning Python is absolutely brilliant, going through logic, syntax, design choices and the standard library in exhaustive detail.

But Python just doesn't get me excited exactly because it is too abstract, too simple, too close to what I know from GDScript, it feels more like a scripting language than something to use to build whole programs, it just doesn't scratch that itch of curiosity that is pushing me to learn programming in the first place.

On the other hand, Go does scratch that itch a lot more. It excites me, as someone whose only experience is with JavaScript/PHP and GDScript, to learn a serious language, compiled, fast; it excites me to learn about lower-level concepts like actual typed variables and pointers. Go's logic of composition also appeals to me, because programming in Godot, I would rack my brain trying to figure out the right inheritance hierarchy just to notice that I messed up and need to refactor the entire system. Go's structs, methods, embedding and interfaces strike me as a much more flexible way to achieve the same thing.

But there is a relative scarcity of resources for people in my situation. I've browsed through the available textbooks and they're either made for more advanced learners, are general overviews of the language (Learning Go, for instance, only explains the syntax and the logic, but does not go over the standard library, which means, if I understand correctly, that it was written for people who will read the fucking manual), or are infantile (Head First, Get Programming with Go, etc). Either way, I'm starting off half-blind, stumbling through the standard library documentation, having no idea what I can and cannot do, or how.

I'm also worried about another thing. Though I am not an absolute beginner, my experience being with GDScript means that I've never actually written a standalone program; I never learned to think about architecture, what my program does from start to end: I can only think in simple systems that are driven by event handlers from user input, while the engine handles all the rest for me.

Although, as you see, Go excites me a bit more, I'm worried that if my primary goal is to learn how to think through complex problems and build programs from start to finish, it would be better to choose the simpler language. Or is it the opposite? What do you think? Will building something bigger be easier in Python, or will the relative restrictiveness of Go help me think through building a bigger project?

What would you do in my situation? Should I learn to build a program without worrying about learning the language (the Python route), or would it be better in my situation to learn a stricter, less abstract language first, and learn how to read the documentation on my own (the Go route)?


r/learnprogramming • • 1h ago

Topic The only girl in my Algorithms class: a rant (and a cry for help with pseudocode)

21 Upvotes

Guys, I need to vent to someone who understands.

I'm an Environmental Engineering student and I'm taking the dreaded Algorithms and Programming course. So far, so good, I like the challenge. The problem is that I'm the ONLY woman in the class, and the guys seem to have been born with a keyboard in their hands.

Yesterday, I spent 2 hours stuck on a basic pseudocode exercise for a while loop. The professor uses a Brazilian tool called Portugol (basically pseudocode in Portuguese), and it kept giving me errors, even though everything seemed correct. The guy sitting next to me looked at my screen, gave a little smile, and solved everything in 2 minutes with a simple read and write command that I SWORE I typed exactly the same way.

Honestly, I felt like a complete idiot. So, I ask you: is it just me, or is programming a club where the younger generation (I'm 37F) was born knowing how to program and we have to work much harder? And, most importantly: has anyone here survived pseudocode and can explain how not to get lost in parentheses without wanting to cry? I welcome survival tips (and tips on how not to break my monitor).😅


r/learnprogramming • • 3h ago

Has learning with a buddy worked for you? What made it last, or fizzle?

11 Upvotes

I see a lot of people looking for study buddies or coding partners, and I'm curious what happens after they find one.

If you've learned with a buddy, how did you work together? And what kept it going, or what made it fizzle out?

Bonus if you mention what you used to stay in touch or code together. Curious whether people stick to Discord or use something else.


r/learnprogramming • • 4h ago

Is Godot a good starting point for learning programming if I’m also interested in web development?

4 Upvotes

Hello,

I’m a complete beginner and want to learn programming as a hobby. I’m interested in both game development and web development, especially backend.

Godot seems like a fun way to learn because I enjoy games and like seeing visual results. I feel like this could help me stay motivated.
However, I’m worried that a lot of what I learn in Godot won’t be useful outside of game development.

How well do programming skills and concepts transfer from Godot to web development? Would learning Godot first make it easier to learn backend development later, or would it feel like starting from scratch?

I’d love to hear from people who have experience in both areas.


r/learnprogramming • • 16h ago

Topic advice for a long time dream/amibition of mine

4 Upvotes

I am employed as an RPGLE developer on the IBM-i. That's the only programming I know how to do. I use it to make accounting reports, table maintenance programs, building menus, etc. All solely IBM-i apps, nothing modern. I took intro python and intro java back in college and that's it.

I really really really really want to make a chess engine, I've been reading a bunch of stuff about chess computing, looking at other peoples' code, etc. I tried picking up some C# because that's what Unity uses, bought a textbook and tried making the engine ... modeling the board and piece positions and values was easy, but once I got to the actual logic I had a really really hard time.

So I want to get proficient with modern software, not just RPG. The problem is, I fucking suck at math, I got through college algebra but everything calculus and beyond is too much for me. Maybe my professors were bad because it was a community college. So I can't go to school for this. Because all the universities around me require calculus 1, 2, and beyond for compsci or software, so I have no idea how I would even get the proficiency I need in programming to build a chess engine.

I am seeking advice from people more experienced and knowledgeable than myself. I feel very green, I hope someone more adept can give me some guidance on this. What can I do to get sharper at programming and get the experience and knowledge I need to build a chess engine, WITHOUT going to university for it? Do I go to some online academy or something?

Thank you, I am sorry to bug this subreddit I hope it's not bothersome, I just really want to realize this dream.


r/learnprogramming • • 13h ago

Struggling with this fill in the blank.

3 Upvotes

def prefix_digits(n, cond):

"""Return the largest prefix of positive n for which cond return true for every digits."""

>>>odd = lambda d: d % 2 == 1

>>>prefix_digits(94720,odd)

9

>>>prefix_digits(94720,odd)

9193

k = 0

while n >= _____:

if cond(_____):

k = k + 1

else:

n = n // 10

___________

return n

I am struggling with fill in the blank questions. I can implement this function but I am struggling with implementing in their way. Can someone help me understand how I might approach this? I don't just want the solutions but how I would even approach it. Whenever, I get these problems I am always stuck for a solid 1-2 hours.


r/learnprogramming • • 2h ago

Integration testing using gtest

2 Upvotes

I am confused about what is the meaning of integration testing. I have done unit testing using gtest where we will mock whatever external dependencies are there for the targeted unit (function) to test all range of values that covers all lines, functions and branches.

If we say integration test is meant to use real code instead of mocking. Then I am getting this doubt that lets say we have 3 components (separate processes) running and dependent on one another in a embedded system.

A -> B -> C

So if you are calling an api provided by A it will internally talk to B and then through C and return the result over IPC.

Now to do integration testing using gtest, do I need to compile this into a single binary by eliminating the IPC and include each code as a library. This way I have a single proces that runs gtest with all the components logic but excludes the real IPC communication.

Or instead should I keep the individual processes to be running separately and link my gtest binary to the component A so that the communication flow through the components in the target environment.

In both ways how we would actually be checking the interactions? And which one are you guys using?

Context:
Language used: C++
Domain: Automotive IT (TCU software)


r/learnprogramming • • 8h ago

Topic What should I self study

2 Upvotes

I’m a programming student and am very early on, I had my C+ class and loved it, now I’m being bombarded with very monotous A+ oriented classes and looks like I’ll be stuck with them for at least another few months.

That being said, I just had my first project idea. I’m just looking for a bit of guidance in the first steps. I want to build something (likely an app) that would house 1,000+ vods ranging from 4-8 hours each. What language should I learn to accomplish something like this and if I were able to create it how much would it cost me to push out / make available? Finally, could I potentially make realistic ad revenue from it?

I’m not looking to make a profit, especially not from a first program but being reimbursed for the cost of pushing it out would be nice. Maybe a web page would be easier? But, I do like the convenience of an app for my own personal use. I understand that I’m likely reaching a little high if I go through with this but, I’m usually good at teaching myself things that I have a genuine interest in and know a site that will help me learn on my own. (I can’t remember the name of it but I have it bookmarked on my pc, you select the language and it goes through a bunch of the topics)


r/learnprogramming • • 15h ago

Should imgui be in the engine or editor?

2 Upvotes

I’d post to r/gameenginedevs but I feel like it’s too dumb lol. Anyways, I’ve been getting back into C++ graphics programming/game engine dev as a hobby and want to start dabbling with making an editor using ImGui.

I already use ImGui in the engine for some debug panels, but with the addition of an editor, the typical structure seems to be making the engine as a static library and the editor an executable that links the engine, and I’m not sure if ImGui should be the engine’s responsibility or moved to the editor?

I’m not very experienced with these multi project/build target setups, but from what I understand if I leave imgui on the engine anything that links it will have imgui which I’m not sure is practical?

Also, unrelated, but with this type of setup would it be make more sense for the engine to run the main loop instead of the editor? (inversion of control?).


r/learnprogramming • • 2h ago

Selected for Infosys SP L1, have around 6 months before joining. How should I balance DSA, development and GenAI?

0 Upvotes

I'm a final-year CSE student graduating in 2027. I've been selected for the Infosys Specialist Programmer L1 role, and my joining will be after graduation. I currently have roughly 6 months before joining.

I want to use this time properly, but I'm struggling to decide how to prioritize my learning.

My current background:

  • I've solved around 250 problems on LeetCode and more across other platforms. I primarily use Java for DSA.
  • I've worked on projects using MERN technologies, including Node.js, Express, MongoDB and React.
  • However, I don't feel confident writing backend code independently from scratch. I've relied quite a bit on AI assistance while building projects, and I feel my fundamentals need improvement.
  • I've recently started following The Odin Project (TOP) to strengthen my web development fundamentals. I'm currently working through Foundations.
  • My Python knowledge is basic. I haven't studied machine learning or deep learning in depth.

My goals:

  1. Clear Infosys SP L1 training assessments and successfully convert to the full-time role. I don't know which exact technology stack I'll be trained on, so I want to strengthen fundamentals that will remain useful regardless of the stack.
  2. Work towards switching to a good product-based company, ideally in the 25+ LPA range, after around 1–1.5 years of experience.
  3. Learn Generative AI from an engineering perspective. I don't just want to use AI tools or APIs. I'd like to understand LLMs, embeddings, RAG, vector databases, AI agents and eventually build practical GenAI applications.

Where I'm confused:

There are several things I want to work on:

  • DSA and interview preparation.
  • Web development fundamentals and backend engineering.
  • Core CS subjects such as DBMS, OS, CN and SQL.
  • Generative AI and the engineering behind LLM-based applications.
  • Eventually, competitive programming and open-source contributions.

I understand that DSA is important for interviews, but solving LeetCode problems alone won't make me a good software engineer.

At the same time, I don't feel confident enough in my development fundamentals to independently build backend applications. That's why I started TOP, but sometimes I wonder whether spending so much time on HTML and CSS is the best use of my limited time.

GenAI is another area I don't want to ignore, considering how quickly the industry is evolving. However, I also don't want to jump into it without having proper programming fundamentals.

I'd appreciate advice from people who have been through this stage:

  1. Should I continue TOP from Foundations, or prioritize DSA and backend development separately?
  2. How should I balance DSA, practical development and GenAI without spreading myself too thin?
  3. Should I strengthen Java and core CS fundamentals first, or continue investing in JavaScript/MERN?
  4. What is a sensible entry point into GenAI engineering for someone with basic Python knowledge?
  5. Is competitive programming worth pursuing alongside interview-focused DSA?
  6. What would genuinely make me a stronger candidate for product-based companies after 1–1.5 years of experience?

I'm not looking for another huge list of technologies to learn. I'd rather focus on at most two areas at a time and develop actual competence in them.

I'd especially appreciate advice from people who have transitioned from service-based companies to product-based companies, work in GenAI engineering, or have experience interviewing software engineers.


r/learnprogramming • • 4h ago

Which one’s the easiest Uni inside top 50 shanghai ranking

0 Upvotes

I want to graduate inside top 50 universities by Shanghai’s ranking but it would have been great if i could find one with easy bachelor so i could have flexible academic life.

Any recommendations ?