Raised This Month: $32 Target: $400
 8% 

View Poll Results: Which naming convention would you prefer?
1. zp_core_is_user_zombie( index ) 39 46.43%
2. zp_core_isUserZombie( index ) 5 5.95%
3. ZP_Core_IsUserZombie( index ) 1 1.19%
4. is_user_zombie( index ) 35 41.67%
5. IsUserZombie( index ) 4 4.76%
Voters: 84. You may not vote on this poll

ZP 5.0 API: Naming Conventions


Post New Thread Closed Thread   
 
Thread Tools Display Modes
is kla.
Junior Member
Join Date: Jul 2011
Old 08-11-2011 , 05:43   Re: ZP 5.0 API: Naming Conventions
#11

4, it's easy, simple and small, btw if I may ask when are you planning to release the new version?
is kla. is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 08-11-2011 , 06:44   Re: ZP 5.0 API: Naming Conventions
#12

Quote:
Originally Posted by 9evill View Post
Leave it as is now, as in case of name chage all plugins will have to be rewrited.
Well, old plugins wont work on the new zp because there are alot of things which have been changed (not just this native only) so no need to think about that
Quote:
Originally Posted by is kla. View Post
4, it's easy, simple and small, btw if I may ask when are you planning to release the new version?
The new version will take time, you have to wait.
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
bibu
Veteran Member
Join Date: Sep 2010
Old 08-11-2011 , 07:27   Re: ZP 5.0 API: Naming Conventions
#13

How about "zp_is_user_zombie(index)" ?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
papyrus_kn
Senior Member
Join Date: Feb 2009
Location: Bulgaria
Old 08-11-2011 , 07:50   Re: ZP 5.0 API: Naming Conventions
#14

is_user_zombie( index )
__________________
papyrus_kn is offline
Send a message via Skype™ to papyrus_kn
Se7ven
Senior Member
Join Date: Feb 2011
Location: Romania
Old 08-11-2011 , 08:09   Re: ZP 5.0 API: Naming Conventions
#15

Quote:
Originally Posted by bibu View Post
How about "zp_is_user_zombie(index)" ?
__________________
WwW.HighCS.Ro From Romania For You
Se7ven is offline
Send a message via AIM to Se7ven Send a message via Yahoo to Se7ven
musicbg91
Member
Join Date: Jan 2011
Location: Bulgaria
Old 08-11-2011 , 10:24   Re: ZP 5.0 API: Naming Conventions
#16

don't think, this is the right answer - is_user_zombie( index )
musicbg91 is offline
Send a message via Skype™ to musicbg91
zeus
Senior Member
Join Date: Jul 2008
Old 08-11-2011 , 11:03   Re: ZP 5.0 API: Naming Conventions
#17

zp_is_user_zombie(index) FTW
zeus is offline
XINLEI
me too
Join Date: Jun 2011
Location: Colombian Coffee storage
Old 08-11-2011 , 11:37   Re: ZP 5.0 API: Naming Conventions
#18

Quote:
Originally Posted by bibu View Post
How about "zp_is_user_zombie(index)" ?
XINLEI is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 08-11-2011 , 13:14   Re: ZP 5.0 API: Naming Conventions
#19

Mercylezz wants to make it so that coders know from which plugin that natives are coming from.

So zp_is_user_zombie would not work, it would have to be like in the poll

zp_CORE_is_user_zombie.

Also in the first post

zp_{Module}_{Function}

@Tirant, I have the auto-complete for regular CS Functions and for all the default modules and natives, however, I'm not sure how to get notepad++ to work with custom includes, so that it automatically detects new natives and forwards to use in its auto-complete.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
bibu
Veteran Member
Join Date: Sep 2010
Old 08-11-2011 , 13:56   Re: ZP 5.0 API: Naming Conventions
#20

Quote:
Originally Posted by nikhilgupta345 View Post
Mercylezz wants to make it so that coders know from which plugin that natives are coming from.
That's why there is the "zp_" prefix. The core would just make all functions pretty long.

But if it is really needed then for sure choice 1.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Closed Thread



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:08.


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