I find myself repeating some mistakes over and over again. Some language-dependent, some not. Here are some of mine I could think of right away.
PHP:
Inside a class method, forgetting that I have to say "$self->some_method()" or "$self->some_attribute" instead of "some_method()" or "$some_attribute" to refer to my instance.
Having a deservedly global object like $db or $facebook, then trying to call it from inside a function and wondering why that doesn't work. Oh yeah, "global $facebook".
Trying to return multiple values from a function by saying "return list($a, $b)" instead of "return array($a, $b)".
Python:
- Getting wrong argument count errors because forgetting that "self" has to be first arg.
Actionscript:
- Creating a MovieClip object, wondering why it doesn't appear at all. Oh yeah, forgot to do "addChild(obj)".
Objective-C:
- After switching back after coding a while in some other language, I find myself trying to call methods using dot notation "object.method", instead of "[object method]".
Javascript:
- Manipulating DOM styles but forgetting to say "style". For example "document.getElementById('thing').opacity = 0.5;"
Perl:
- echo "hello world". Huh, what's wrong? ;)
Any language:
Adding a new argument to a method, but forgetting to add that to the place(s) calling it.
Creating a method, but forgetting to call it at all.
I could go on and on, but I would rather be reading about what your common little mistakes are :)