Always try to surround yourself with people that are smarter than you. Feeling like you’re the dumbest one in the group might be a bit of a self-esteem killer, but you will notice that you’ll become more critical towards yourself in a positive way, and you’ll be more motivated to improve your skills! Being critical is definitely a big plus to have if you’re a programmer (rather than just thinking that your way is always the right way, like some people on StackOverflow like to think…) and you will develop really healthy habits this way.
Try to focus on writing good code, not fancy code. A lot of developers focus on learning how to write ‘fancy’ code rather than clear code that’s understandable for everyone, which will eventually only lead to bugs and confused co-developers! It’s completely normal if your code is not the cleanest or fanciest in the beginning. Along the way, you’ll notice that you get too lazy to write code a certain way, and you’ll find your own ways to write it a bit cleaner! Focus on learning how to write good quality code that’s understandable for everyone, rather than the ‘fanciest’ ways.