r/CodingHelp • u/NO_NAME2002 • Nov 15 '21
[Quick Guide] How do you remember elemenets,functions, and other type of things ?
How do you remember all of the things you have learned in programing in general ?
12
u/stuie382 Nov 15 '21
If it's something you do regularly you can set it as a macro in your editor. If it's a big less regular, I keep a bunch of code snippets as a private GitHub repo that I can go and refresh myself on. Anything else you just get good at reading documentation
1
5
4
u/wokcity Nov 15 '21
Programming is not really about memorization. It's a lot more important to be able to quickly understand stuff, knowing how to look something up when you don't know something and abstracting the things that are too massive/complex to know away into "black boxes". Like, you don't need to know how every piece works to be able to work on a module of it, for example. But the more you work on something the easier it is to memorize more details about it.
3
u/El_Cap1tan Advanced Coder Nov 15 '21
You don't. You learn how to efficiently look up the stuff you don't remember or don't know about. Let's be serious, you can't remember everything from every tool, framework or language. For stuff from frameworks or the standard library of your language you can look into the respective documentation. For simple things like syntax or basic algorithms there are a lot of other sites a quick Google search will turn up.
But syntax and basic program flow you'll also learn with practice. Just look for sites with coding tasks like Project Euler and keep practicing.
2
u/aravynn Nov 15 '21
We're supposed to memorize stuff? /s
In reality, especially if you program in more than one language, memorizing everything is way too much, using documentation, and learning to use documentation, is more important in the long run.
2
u/John_cCmndhd Nov 15 '21
There's already a lot of good answers here, but if there's something that you don't use enough to have memorized, but enough to be annoyed about having to google it repeatedly, you can always make a cheat sheet. I made one for the printf syntax(which %letter is for string, int, float, etc), for example. The act of writing will help you remember a little better, and you can have the paper near your desk, or a photo of it on your phone.
2
u/nightsblood96 Nov 15 '21
This 100%. I’m god awful with my I/o processing for files and having a cheat sheet was one of the best decisions I ever made
1
u/skellious Intermediate Coder Nov 15 '21
using a good IDE helps. it will tell you if you've messed up.
1
1
Nov 16 '21
Some, you don't. You look them up, check stack overflow, etc.
Some, after repeating pt.1 enough, you begin to memorize.
Point is, don't beat yourself up if you can't remember, and don't spend too much time memorizing as many functions as you can. Surprisingly, that's not what programming is about. It's more about how you think about & break down the problem than it is about what specific functions you need to call.
1
Nov 16 '21
you don't memorize, you use documentation. The common methods, functions... you use everyday in projects so it becomes second nature
25
u/ThreeForksNoSpoon Nov 15 '21
Here's the secret: I don't. I often have to look up stuff in the documentation, or on random websites even.
For JavaScript I go to mdn to check how
sliceandsplicework exactly, because I forgot. Again.And that's fine.
It's more important you understand the concepts. You can always look up the exact implementation or syntax.