r/code • u/derpy68 • Jan 03 '20
Halp pls! Why is learning code by your self so hard
I wanna make art i can look up vids and get great tutorials on how to do so I wanna make music i can do the same thing but code on the other hand if you look up anything all you get is click baity how one weird trick made my coding cock grow 10 inches and its either the click bait shit or pay a lot of money neither of which i wanna do so i guess really wheres a place to actually learn something or should i just cough up the money
3
u/dustractor Jan 03 '20
Generally speaking, no matter what programming language you have, there *should* be a reference manual that goes along with the language. Bookmark number one.
Finding the actual authoritative definitive up-to-date reference can be difficult in some cases (e.g.: tkinter) but you would be expected to read it or at least get an overview.
Open-source projects on github are there for the reading as well.
It takes time to soak it all in. IT ALSO TAKES CONDUCTING THE RIGHT GOOGLE SEARCHES. If you're asking 'how to do X' you might get crap. If you're asking 'how to do X with [language Y]' you might get more specific crap, but what would a programmer AT THAT STEP be asking? Probably a lot more specific terms like 'XblahFactoryDodoInterpreter Y compile win32' or somesuch nonsense that is much more likely to get google to lead you to exactly where 17 thousand other devs clicked after searching said term.
1
u/derpy68 Jan 03 '20
Now that i think about it i probably have been searching some pretty shit searches but generally speaking im a beginner that understands mostly nothing so owning a language is fucking out the window but im looking to start though
2
u/dustractor Jan 03 '20
One thing, starting out with the wrong language can be confusing. I Javascript in it's current state of affairs is pretty much hostile to outsiders, with the 9000 extra things that get added onto it just to get the environment set up . C is a nice language to learn first except for the fact that you have to compile it so that can slow you down at first. Python has an interpreter so you can just type things and see results right there so that makes for an easier introduction to the basic concepts.
0
u/derpy68 Jan 03 '20
As basic and unoriginal of a response this is i know almost nothinf about coding and looking to start i hate to say this but i wanna make a very small like 2d side scroller by myself with no game maker bullshit in your opinion what would be best for learning all that
1
u/dustractor Jan 03 '20
I've heard good things about python's pygame project. Never tried it. I started to, but that was during the beginning of python's transition from 2 to 3 so all the documentation was wrong at the time. Python 2 is officially dead now so if pygame still exists, go with that. I did tinker with a library call pyglet that does opengl with python and it was easier for me to get started with than the other one I tried called kivy. There's more than pygame, kivy, and pyglet but any of those should have enough to make a game. The hard part is getting started, like it might take a few weeks of failed attempts just to get to a blank screen you can draw on, if you're starting from zero knowledge. You'll have to learn what an event loop is if you're making a game, and how to deal with keyboard and mouse can be tricky at first, for examples of sub-topics you are probably going to have to deal with. Remember to keep things simple and break the big goals down into smaller goals.
1
u/derpy68 Jan 03 '20
Alright thanks this is really helpful and ill start learning this stuff right away i think i got everything i wanna know
2
1
u/angryrancor Boss Jan 04 '20
Check the resource links and stickied topics in the sub. Most of that stuff will keep you busy for days, and don't cost anything.
2
0
4
u/malicart Jan 03 '20
Writing code is something you love, or not. It is something that fills you with a desire to learn and figure out more, or not. It's everything you want it to be, even when its hard, or not. Beyond all this, it takes time and patience like anything else. Put in the time, or don't.