|
Optimizing code is mostly a learned skill. Some people have inate abilities to write code more efficiently.
I don't think I have ever seen a tutorial optimizing code. But if you start looking around at source code and such, you will be able to see that recalling the same thing multiple times is better than using copies of it. Such as using classes in CSS or functions in Javascript or any of the server side languages.
Most likely there are tutorials about writing better code, but I have not come across anything like this that is exceptional (although I haven't looked around much).
If you look at gamefaqs.com you can see they use a lot of CSS.
On google.com I have no idea how the engine is programmed, or in what language.
|