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

Half Life 1 Events: Registering, Using, and Reading them


Post New Thread Reply   
 
Thread Tools Display Modes
Zenith77
Veteran Member
Join Date: Aug 2005
Old 10-17-2006 , 22:40   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #21

It doesn't matter what your style is, but in my opinion it's better to use the
{
}
style and not the K&R style simply because it's more widely used and is more readable when posting public code.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 10-17-2006 , 23:01   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #22

Quote:
Originally Posted by Zenith77 View Post
It doesn't matter what your style is, but in my opinion it's better to use the
{
}
style and not the K&R style simply because it's more widely used and is more readable when posting public code.
agreed
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 10-18-2006 , 00:02   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #23

Quote:
Originally Posted by Lord_Destros View Post
agreed
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-16-2010 , 19:40   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #24

Bump - To save the new scripters loads of confusion.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-17-2010 , 14:57   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #25

Funny to see that noone knows the name of the space-eater style.
Code:
lol() 
{
    // this is ANSI style
}

lol() {
   // this is K&R style (my choice)
}

Last edited by Seta00; 02-17-2010 at 15:13. Reason: *sigh*
Seta00 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-17-2010 , 15:07   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #26

Code:
test()
{
}
is so much more readable...
__________________
hleV is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 02-17-2010 , 15:12   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #27

Quote:
Originally Posted by hleV View Post
Code:
test()
{
}
is so much more readable...
It's personal preference, while I honestly prefer ANSI style, it's based on the person doing it. Some people have trouble reading it if the brackets are right after the function initialization, but it really isn't that big a deal.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-17-2010 , 15:30   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #28

Considering that something like 98% of users there are beginner on this forum, it would be more appropriate to keep a style which is simple and readable (clarity). So the AINSI style should be used as default style here. Giving the preference to the beginner should be more important than the personal preference.
__________________

Last edited by Arkshine; 02-17-2010 at 15:37.
Arkshine is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 02-17-2010 , 19:48   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #29

I completely disagree with that. By using the style we like, we help the beginner to get used to other styles, and learn to read the logic, not the syntax.
Seta00 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 02-17-2010 , 20:36   Re: Half Life 1 Events: Registering, Using, and Reading them
Reply With Quote #30

I understand but it's because a code is readable and with clarity the beginner can learn more easily/fastly. The first thing to do should be learning the very basics of the language with one and only one default style ( AINSI ). When you learn new thing, I'm not sure that telling him you can write such code like this or that is necessary when he doesn't know about coding at all. What you say is only for users who have already some global knowledge. But for the beginners it's very very difficult. If you start with a solid knowledge with a default style, reading another style becomes easy. If all plugins were using the same style and with consistent coding, there would be more users enjoying the coding.
__________________

Last edited by Arkshine; 02-17-2010 at 20:39.
Arkshine is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:23.


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