All of your stupid embarrassing coding mistakes!
#4

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
What other advice for remembering things have you guys got? I'm pretty forgetful in many things, especially coding (forgetting ;, function names, parameters, variables, stupid things etc)
Commenting whatever you create? If you think you might forget what a function does or if a function needs explanation then comment it. For each function you make, leave a comment to describe the arguments and what it returns/does and once you update your code, update your comments too. Also this:

Quote:

Orignially Written by WikiHow

Use consistent naming conventions for variables. It will help you keep track of each type of variable, and also what that variable's purpose is. This means more typing than simply x = a + b * c, but it will make your code much easier to debug and maintain. One popular convention is Hungarian notation, where the variable name is prefixed with its type. For example, for integer variables you might use intRowCounter; strings might use strUserName. It doesn't matter what your naming convention is, but be sure that it is consistent and that your variable names are descriptive. (See Warnings below).

That way you will never have a problem to know what a code is written for.

Quote:
Originally Posted by [HLF]Southclaw
Посмотреть сообщение
I bet all of you (even the really good ones!) have made some stupid mistakes!
Not really, pawn is not the first programming language for some of the people here, some of them have known (I mean studied) other greater programming languages such as c, c++ or c# before pawn which makes it kind of easy to understand the pawn language when you have a good knowledge in those languages. But, yea that's true in the very very beginning of learning a programming language (Atleast for me) .
Reply


Messages In This Thread
All of your stupid embarrassing coding mistakes! - by [HLF]Southclaw - 04.08.2012, 18:06
Re: All of your stupid embarrassing coding mistakes! - by Arca - 04.08.2012, 18:43
Re: All of your stupid embarrassing coding mistakes! - by Vince - 04.08.2012, 19:07
Re: All of your stupid embarrassing coding mistakes! - by [KHK]Khalid - 04.08.2012, 19:11
Re: All of your stupid embarrassing coding mistakes! - by [HLF]Southclaw - 04.08.2012, 19:21
Re: All of your stupid embarrassing coding mistakes! - by Vince - 04.08.2012, 20:27
Re: All of your stupid embarrassing coding mistakes! - by Bakr - 05.08.2012, 04:04
Re: All of your stupid embarrassing coding mistakes! - by leonardo1434 - 05.08.2012, 04:31
Re: All of your stupid embarrassing coding mistakes! - by Misiur - 05.08.2012, 06:56
Re: All of your stupid embarrassing coding mistakes! - by Joe Staff - 05.08.2012, 11:23
Re: All of your stupid embarrassing coding mistakes! - by Universal - 05.08.2012, 11:29
Re: All of your stupid embarrassing coding mistakes! - by Basssiiie - 05.08.2012, 11:57
Re: All of your stupid embarrassing coding mistakes! - by Jikesh - 05.08.2012, 11:59
Re: All of your stupid embarrassing coding mistakes! - by playbox12 - 05.08.2012, 12:14
Re: All of your stupid embarrassing coding mistakes! - by [HLF]Southclaw - 05.08.2012, 22:30
Re: All of your stupid embarrassing coding mistakes! - by Joe Staff - 05.08.2012, 22:48
Re: All of your stupid embarrassing coding mistakes! - by Jstylezzz - 06.08.2012, 00:27
Re: All of your stupid embarrassing coding mistakes! - by admantis - 06.08.2012, 00:31
Re: All of your stupid embarrassing coding mistakes! - by NinjaChicken - 13.08.2012, 03:24
Re: All of your stupid embarrassing coding mistakes! - by Steven82 - 14.08.2012, 15:22
Re: All of your stupid embarrassing coding mistakes! - by Calgon - 14.08.2012, 17:59
Re: All of your stupid embarrassing coding mistakes! - by Roperr - 14.08.2012, 19:12
Re: All of your stupid embarrassing coding mistakes! - by ReneG - 18.08.2012, 11:31
Re: All of your stupid embarrassing coding mistakes! - by HuSs3n - 20.08.2012, 23:55
Re : All of your stupid embarrassing coding mistakes! - by ricardo178 - 20.08.2012, 23:57
Re: All of your stupid embarrassing coding mistakes! - by Sinner - 21.08.2012, 11:06
Re: All of your stupid embarrassing coding mistakes! - by JaKe Elite - 21.08.2012, 12:06
Re: All of your stupid embarrassing coding mistakes! - by FireCat - 22.08.2012, 13:26
Re: All of your stupid embarrassing coding mistakes! - by Kar - 22.08.2012, 14:46
Re: All of your stupid embarrassing coding mistakes! - by [HLF]Southclaw - 22.08.2012, 15:24
Re: All of your stupid embarrassing coding mistakes! - by Patrik356b - 22.08.2012, 15:32
Re: All of your stupid embarrassing coding mistakes! - by milanosie - 22.08.2012, 18:07
Re: All of your stupid embarrassing coding mistakes! - by 2KY - 22.08.2012, 19:36
Re: All of your stupid embarrassing coding mistakes! - by =WoR=G4M3Ov3r - 22.08.2012, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)