Raised This Month: $12 Target: $400
 3% 

Showing results 1 to 9 of 9
Search took 0.00 seconds.
Search: Posts Made By: Seta00
Forum: Code Snippets/Tutorials 01-18-2010, 13:37
Replies: 88
Views: 151,018
Posted By Seta00
Re: [TUT] Code Styling & Good Programming Habits

I see your point, and I do apply these recommendations on general code, but my motivation here is mainly because optimization is one topic highly discussed in AMXx, since gaming is real-time; and...
Forum: Code Snippets/Tutorials 01-18-2010, 12:23
Replies: 88
Views: 151,018
Posted By Seta00
Re: [TUT] Code Styling & Good Programming Habits

People still don't understand what I mean. The space I save using K&R indentation is filled with COMMENTS. No matter how good your code is indented, no matter how many lines you put between the...
Forum: Code Snippets/Tutorials 01-16-2010, 22:32
Replies: 88
Views: 151,018
Posted By Seta00
Re: [TUT] Code Styling & Good Programming Habits

This post (http://ubuntuforums.org/showpost.php?p=4740522&postcount=7) is one of the best formulated answers I've ever seen on styling guidelines.
Forum: Code Snippets/Tutorials 01-16-2010, 22:29
Replies: 88
Views: 151,018
Posted By Seta00
Re: [TUT] Code Styling & Good Programming Habits

Yeah, lets start replying posts without using our brains first.



Is not the number of lines, is more to fit a function, logical block, atom, piece-of-code-that-does-one-delimited-action,...
Forum: Code Snippets/Tutorials 01-16-2010, 14:47
Replies: 88
Views: 151,018
Posted By Seta00
Re: [TUT] Code Styling & Good Programming Habits

I know this discussion wont end, I'm just exposing my opinion over the tutorial. I think styling guidelines shouldn't be recommended, you just post links to all of them and let the programmer decide...
Forum: Code Snippets/Tutorials 01-16-2010, 13:47
Replies: 88
Views: 151,018
Posted By Seta00
Re: [TUT] Code Styling & Good Programming Habits

Readability before consistency.
Forum: Code Snippets/Tutorials 01-16-2010, 13:01
Replies: 88
Views: 151,018
Posted By Seta00
Re: [TUT] Code Styling & Good Programming Habits

Yes, I do, here's a sample:

main() {
new bar, baz = 29;

for (new i = 0; i < baz; i++) {
bar *= baz - i;
}

new arr[32];
Forum: Code Snippets/Tutorials 01-16-2010, 12:27
Replies: 88
Views: 151,018
Posted By Seta00
Re: [TUT] Code Styling & Good Programming Habits

You didn't understand what I mean, I don't want 1-line code.



Having the opening bracket in the same line of the "code block starter" statement doesn't interfer with readability. Think of you...
Forum: Code Snippets/Tutorials 01-15-2010, 10:06
Replies: 88
Views: 151,018
Posted By Seta00
Re: [TUT] Code Styling & Good Programming Habits

Nice tut, only thing I disagree is with the new line before opening bracket.
If you're a programmer, you can easily recognize identifiers that imply a code block, and the new lines before every...
Showing results 1 to 9 of 9

 
Forum Jump

All times are GMT -4. The time now is 14:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode