r/unity • • 19h ago

Newbie Question How did you learn to code?

9 Upvotes

30 comments sorted by

4

u/kmiecis 19h ago

Pick most interesting topic for you from existing tutorials and try to implement it following said tutorial.

My first one was cave and terrain procedural generations by Sebastian Lague on YT, because it was the most interesting to me - mostly code and math.

You can also try Catlike Coding page, where his tutorials are only written. I enjoyed following his Hex Map tutorial.

3

u/StinkingDylan 16h ago

I learned to code on a ZX Spectrum using BASIC by just experimenting and writing simple games. Moved onto 16 bit architecture with an Amiga where I started learning C and assembly. Published some games and then migrated away from games development.

Picked up Unity this year. Coding was not an issue. I've never used C# but being familiar with C, C++ and Java makes it a simple transition (it's usually just a matter of syntax differences and the different collections).

1

u/AbmisTheLion 9h ago

I also started with a ZX Spectrum but I did do some Z80 assembly language programming before buying my first IBM compatible PC.

1

u/NaiveStorm5435 19h ago

Trial and error and YT tutorials. I also occasionally use this website called CoddyTech, but it's aimed towards kids

1

u/flow_guy2 19h ago

But figuring out problem after problem.

1

u/ausdoug 18h ago

Had an idea, wanted to make it, so had to figure out how to do it.

1

u/Used-Snow-9934 18h ago

I learned it, like actually learned it, from making tools for Maya in Python. I think the visual thing was the thing that made it click. Creating buttons that hooked up and did something. Then I made more and more advanced things, like dynamic lists that could be populated add/remove/sort etc. Then step by step it got more and more abstract. Unlocking new insights etc. Then I started looking into C# and later other languages.

1

u/Ragnarok91 18h ago

Computer Science course at university

1

u/Crafty_Collection298 18h ago

turned my actual hobby/interest idea into game and learned while making it.

1

u/UpstairsImpossible 18h ago

Started with Night Run Studio's tutorials after having a go with a few of the Unity built-in ones and deciding it wasn't impossible 😂 I only started learning when I started making mistakes though. Learning how to do an inventory system with SO's and starting to understand how computers "talk" (ie, they're really dumb and need everything explained to them lol) was a real turning point.

After a while I stopped needing to follow tutorials one keyboard press at a time and started working out how to implement my own systems using logic I had already learned - but I still learn new things every day and various quirks of the engine will suddenly "click" and I'll be kicking myself for not working it out earlier 😂

1

u/wendten 18h ago

Brackeys

1

u/aquadolphitler 18h ago

Like the other guy, Sebastian Lague but with an introduction to game development set of videos that went through the basics of using the unity editor and OOP concepts then eases you into simple games by the end.

Some of it may not hold up today, its 10 years old after all, but it was a damn good job of setting me up for more ambitious projects.

Today, I would recommend unity learn more, after following the tutorials, try editing the project code to make modifications to the game and see what works and what breaks. Try to mix up ideas.

1

u/MusicOfTheApes 17h ago

Udemy courses at first and various Youtube channels then

1

u/bIeese_anoni 17h ago

University

1

u/BillyMcDev 17h ago

Definitely not all at once.

1

u/Myavatargotsnowedon 17h ago

By copy pasting bunny83 and likes code in for about 3-4 years, some things click eventually.

1

u/National_Yellow_8872 16h ago

my first computer was a commodore64 and i took a superbasic summer camp in 1984

1

u/ReySpacefighter 16h ago

Library textbooks.

1

u/Spite_Gold 15h ago

In univercity, and my first employer established programming classes for students

1

u/Plastic-Jicama-5167 15h ago

Try pPayers guide to C# - started with that before I went on to study cs

1

u/emopreben 15h ago

Learning by doing, trial and error - and these days getting specific explanations from copilot on different ways to approach the stuff I want to code instead of trying to get it to code it for me. :)

1

u/ProfessionalPut3203 15h ago

First in school and it turned into hobby and finally a job. It's all about passion and the desire to make things out of thin air.

1

u/FoaRyan 14h ago

I started playing around with code in the 1990s or around 2000 as a kid. BASIC, Visual Basic, HTML, tiny bit of JavaScript. mIRC script.

As an adult, I stayed mostly away from coding except HTML/PHP for my own website, an may have picked up a contract or three doing other websites. Had no real practical use for anything else coding until my next employer started wanting us to turn everything into PowerShell scripts.

After that I learned C# watching a boring, unalgorithmic C# engineer recreate a classic arcade game, then went line by line and made sure I understood the concepts being taught.

I did NOT start with ez-pz how-to in Unity videos that barely scratch the surface of code, most of them just telling you what to write.

I've found it much easier to learn when I have a purpose already in mind. On the other hand I've probably "started learning Python" 3x in my life, and never got out of the early tutorials, bc personally I have no use case for it. Having something to build (like a game) turns on the light bulbs in my head and I can start grasping & retaining concepts a lot better.

1

u/CremeEasy7180 14h ago

At University..

As for Unity, some books and tutorials.

and of course doing games, at first they were pretty convoluted and messy.

I managed to create my own platformer, it's short and I didn't draw the art myself, but ... it can be called a game and that's important.

It gets better, things that used to look hard are ok now, although there still are things that are hard to me, just more advanced.

1

u/veyr_ni 13h ago

I've been a PHP developer for a long time and dabbled in some C#, then when covid hit I decided to do the Unity (official - e.g. the certified junior developer) courses after a few aborted attempts in older Unity versions using JavaScript and haven't looked back.

1

u/inaruslynx2 11h ago

I started in Engineering Intro to programming. It taught basic C. Took C++ and data structures later and then taught myself python. Now I've taught myself C# and typescript. I've dabbled in Rust, but don't have much use for it.

I pretty much use C# and typescript exclusively now.

1

u/julsmgmt 11h ago

Okay I’ve got a good one. I downloaded a mod for Minecraft in high school that added programmable computers to the game. Then I watched a series of YouTube tutorials on how to use the mod which was basically a programming tutorial. Everything was in Lua but I enjoyed the mod so much I started taking classes at school for programming.

1

u/DaedalusRaistlin 10h ago

Great big books on coding, and early internet sites about qbasic/quick basic, at the library. Lots of saving stuff to floppy to play around with it offline at home. That was primary school.

In high school I was programming games on my Ti83+ calculator.

Later got into C and assembly - I used to own a physical set of the Intel reference books, something they'd mail anyone for free back in the day. Had a working but primitive 32bit OS before I finished high school.

I tried doing the Aussie version of community college but they only taught Java, so I taught myself C++ to stop falling asleep. Failed half a class and dropped out, one on something about design or network layers.

I got a job as a programmer, being almost entirely self taught. Only one in the office without a university degree. There honestly were only a few programmers better than me there, I ended up joining the elite dev team after about a year. I learned a lot from them, probably mostly the functional programming and how to handle huge code bases. The main app I worked on was over 100k lines of code, and the new product was already around 90k lines.

We also started using this cool new language, Node.js. I was recruited to that team mainly for my Javascript knowledge, because they thought it could prove to be a useful new thing. It wasn't even version 1.0 when we started with it, now look at it. I still do a lot of stuff in Node.js backends.

1

u/rio_sk 8h ago

On a Commodore64, the computer manual had some basic programming examples, including a sprite example, never stopped coding

1

u/OldTwoToes 4h ago

Freecodecamp