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

Arrays with N Dimensions


Post New Thread Reply   
 
Thread Tools Display Modes
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-23-2010 , 12:16   Re: Arrays with N Dimensions
Reply With Quote #21

Quote:
Originally Posted by 01101101 View Post
Oh lol examples weren't intended to be rude, just random names.

You are saying you already noticed how it works, but at the same time you say it is still better to include part of the core. Why? The only difference I see is that AMXX STUDIO or whatever you use will take shorter in function shortcutting.

The only difference I found from including something and not, is this

#pragma reqlib
#pragma library
#pragma loadlib

Which will add a really few bytes to the header.

So, I ask you, which is the benefit obtained from including just what you need?

[sarcasm]Oh, and by the way, if you are running amxmodx on a 64kb memory machine and you want to save those bytes you can remove that from all module includes, since the only thing it does is autoenabling modules.[/sarcasm]

And by the way, even if you used just 1 function from fakemeta you should keep that stuff for autoloading modules.
I actually expected you to reason your opinion and how it's wiser to include the whole core rather than providing me information how it's better to not.

As of you can say that the compiling time and those couple of bytes don't matter, I could for example compare this to readability. Including something more specific tells attentively what the plugin requires. It for example tells to sa-mp people that my float system can be used in their pawn enviroment as well and doesn't need amxx.
SnoW is offline
Send a message via MSN to SnoW
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-23-2010 , 14:37   Re: Arrays with N Dimensions
Reply With Quote #22

Including the whole core is much more readable than going through the core and finding which includes you would need based on what your plugin uses.
My reasoning is that by including the core include, people will easily know what modules are loaded from looking at the code.
Then there are some includes that don't require modules, and they ask "what is the <xs> module?" and everyone tells them it is just an include file and has no module.

If there were to be any drastic update to AMXX that caused include files to be changed except for the core, the plugins would be broken.
Just because updates to AMXX are almost never going to happen anymore, doesn't overrule my previous statement.

As for your "float" code that would look amxmodx-dependent, you can easily convert any code snippets to any other language.
The natives/functions/defines you use from the amxmodx package are all documented with descriptions/values.

If you include something just like <float> or <string>, some people may be confused because I have yet to see a scripter here include a subsection of the amxmodx include.
So if they already have amxmodx included, it would be redundant and unnecessary to add float or string includes.

Including more individual sub-core includes is much less readable than including the whole core.
That's comparing 4 basic module includes to 12 sub-core includes.
The only situation where I have found your reasoning to be useful is when I needed the hlsdk_const include but did not need engine or fakemeta in my plugin.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-23-2010 , 15:45   Re: Arrays with N Dimensions
Reply With Quote #23

Quote:
Originally Posted by Exolent[jNr] View Post
Including the whole core is much more readable than going through the core and finding which includes you would need based on what your plugin uses.
If you are referring that it takes more work for a plugin creator to look into core and see what he includes instead of including whole either. You can't compare the work of the people who don't know about "cellarray" to the information it provides, since it's all extra core, that isn't the case. Obviously you should include the whole core if you don't right up know that you need only one specific sub include. You naturally do it only if it doesn't take extra work.

If you are referring that a reader of a ready plugin doesn't regonize an include part of the core for example "cellarray", there's no logic when including amxmodx provides no information.

Quote:
Originally Posted by Exolent[jNr] View Post
My reasoning is that by including the core include, people will easily know what modules are loaded from looking at the code.
Then there are some includes that don't require modules, and they ask "what is the <xs> module?" and everyone tells them it is just an include file and has no module.
That is like using an old and slow native just because it's better known than the new faster one. Making the code readable is different thing than not coding with an efficient way to provide information to people they should know.
Quote:
Originally Posted by Exolent[jNr] View Post
If there were to be any drastic update to AMXX that caused include files to be changed except for the core, the plugins would be broken.
Just because updates to AMXX are almost never going to happen anymore, doesn't overrule my previous statement.
I believe you can overwrite the word "almost". But you are right generally even how unlikely it is generally as well.

Quote:
Originally Posted by Exolent[jNr] View Post
As for your "float" code that would look amxmodx-dependent, you can easily convert any code snippets to any other language.
The natives/functions/defines you use from the amxmodx package are all documented with descriptions value
I actually meant that it can be used just like that as sa-mp uses pawn and likely float as well. Converting is easy but it doesn't overrule the readability and usability in other environment.

Quote:
Originally Posted by Exolent[jNr] View Post
If you include something just like <float> or <string>, some people may be confused because I have yet to see a scripter here include a subsection of the amxmodx include.
So if they already have amxmodx included, it would be redundant and unnecessary to add float or string includes.
We are talking about an include file which code is unlikely modified. Like that they can't be overlapped.

Quote:
Originally Posted by Exolent[jNr] View Post
Including more individual sub-core includes is much less readable than including the whole core.
That's comparing 4 basic module includes to 12 sub-core includes.
The only situation where I have found your reasoning to be useful is when I needed the hlsdk_const include but did not need engine or fakemeta in my plugin.
I never said that even including two sub core includes would be better than including the whole core.

Last edited by SnoW; 01-23-2010 at 15:48.
SnoW is offline
Send a message via MSN to SnoW
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-23-2010 , 17:33   Re: Arrays with N Dimensions
Reply With Quote #24

Oh I won't read allll that. So I will give a simple opinion.

What is easier/more readable/nicer/logical
do
PHP Code:
#include <amxmodx> 
that has no perfonmance cost, and you have everything "out of the box"
or

PHP Code:
#include <core>
#include <float>
#include <amxconst>
#include <string>
#include <file>
#include <vault>
#include <lang>
#include <messages>
#include <vector>
#include <sorting>
#include <cellarray>
#include <celltrie>
#include <newmenus> 
01101101 is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-24-2010 , 05:02   Re: Arrays with N Dimensions
Reply With Quote #25

Quote:
Originally Posted by 01101101 View Post
Oh I won't read allll that. So I will give a simple opinion.
You can't debate if you don't comment everything other says. Not commenting a single thing in that big post makes your opinion and reasoning pointless. Like that I have already won this debate against you. I will wait Exolent to comment though.

Quote:
Originally Posted by 01101101 View Post
What is easier/more readable/nicer/logical
do
PHP Code:
#include <amxmodx> 
that has no perfonmance cost, and you have everything "out of the box"
or

PHP Code:
#include <core>
#include <float>
#include <amxconst>
#include <string>
#include <file>
#include <vault>
#include <lang>
#include <messages>
#include <vector>
#include <sorting>
#include <cellarray>
#include <celltrie>
#include <newmenus> 
My last sentence in the post you didn't read totally destroys that whole opinion, so I need to say nothing here.
SnoW is offline
Send a message via MSN to SnoW
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-24-2010 , 06:06   Re: Arrays with N Dimensions
Reply With Quote #26

Oh yes. First of all, this is about the true, not about an imaginary score that your mind creates to feel better (ohh my ePenis is now larger). So you don't won this discussion. Ok, if what you want is to close the discussion from your part, that must be because you are running out of arguments.

Here you said that any decent plugin uses amxmodx.

Quote:
Originally Posted by SnoW View Post
In this issue amxmodx is included anyway in anything decent doing plugin. Somehow it doesn't change the fact that it wouldn't be better to include only what you need.
As well, any decent plugins will use amxmodx itself, amxconst, probably float, core, string, lang, newmenus and messages. That just from amxmodx sub-includes. Then will use probably modules includes like fakemeta, engine, etc.

So, as you stated before, any decent plugin will use much more than 1 include.
But then, you say "Somehow it doesn't change the fact..." OK, here you are saying that it is in all cases better to do the time-eating-slow-useless-include way.
Oh, somehow, Why? God somehow exist, oh really? Somehow.

We are talking about not exceptions, but general cases since this change you say would be applied to all plugins. And in general cases, plugins uses a lot of includes, look at my zombie mod

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>
#include <hamsandwich>
#include <engine>
#include <xs>
#include <csstats>
#include <sqlx>
#include <geoipse>
#include <unixtime> 
With your way it would be sooo long that I don't even feel like opening all those includes to check.

I even think that amxmisc should be added into amxmodx include, and as exolent said, do 1 include per module.
01101101 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-24-2010 , 06:32   Re: Arrays with N Dimensions
Reply With Quote #27

Quote:
Originally Posted by SnoW View Post
You can't debate if you don't comment everything other says. Not commenting a single thing in that big post makes your opinion and reasoning pointless. Like that I have already won this debate against you. I will wait Exolent to comment though.

My last sentence in the post you didn't read totally destroys that whole opinion, so I need to say nothing here.
What a childish answer and pointless debate...

@01101101 : You better ignore him, you know. Not worth to waste your time.
__________________

Last edited by Arkshine; 01-24-2010 at 06:34.
Arkshine is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-24-2010 , 07:01   Re: Arrays with N Dimensions
Reply With Quote #28

Quote:
Originally Posted by 01101101 View Post
Oh yes. First of all, this is about the true, not about an imaginary score that your mind creates to feel better (ohh my ePenis is now larger). So you don't won this discussion. Ok, if what you want is to close the discussion from your part, that must be because you are running out of arguments.
It's unbelievable how you claim that I would like to close the discussion and would be out of arguments, when I just provided a bunch of facts you to comment, but you totally ignored them twice.

Basically what it seems to be you are doing is that after I say how the thing is providing facts you can't deny, you start to blame me and my way of handling the situation and not commenting the thing we are debating about.

As of my ePenis, I don't really get any satisfaction for "beating you". If it isn't obvious my debate thing is just funny joke you don't seem to understand.

Quote:
Originally Posted by 01101101 View Post
Here you said that any decent plugin uses amxmodx.



As well, any decent plugins will use amxmodx itself, amxconst, probably float, core, string, lang, newmenus and messages. That just from amxmodx sub-includes. Then will use probably modules includes like fakemeta, engine, etc.

So, as you stated before, any decent plugin will use much more than 1 include.
But then, you say "Somehow it doesn't change the fact..." OK, here you are saying that it is in all cases better to do the time-eating-slow-useless-include way.
Oh, somehow, Why? God somehow exist, oh really? Somehow.

We are talking about not exceptions, but general cases since this change you say would be applied to all plugins. And in general cases, plugins uses a lot of includes, look at my zombie mod

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <cstrike>
#include <hamsandwich>
#include <engine>
#include <xs>
#include <csstats>
#include <sqlx>
#include <geoipse>
#include <unixtime> 
With your way it would be sooo long that I don't even feel like opening all those includes to check.

I even think that amxmisc should be added into amxmodx include, and as exolent said, do 1 include per module.
You provide a lot of information that doesn't matter because you are claiming a fact I've already clearly stated here false:
Quote:
Originally Posted by SnoW View Post
I never said that even including two sub core includes would be better than including the whole core.
I've also said this should be only used with for example in the thread we are now, a simple include file that needs only one part of core. Like that Emp includes only "cellarray".

Quote:
Originally Posted by Arkshine View Post
What a childish answer and pointless debate...

@01101101 : You better ignore him, you know. Not worth to waste your time.
I don't see anything childish in my answer. The debate itself isn't pointless, but this seems pointless as the side who's against me doesn't seem to provide any new proof but seems more to spent time insulting me.

Starting to ignore me now would look bad as not been able to prove you right.

Last edited by SnoW; 01-24-2010 at 07:10.
SnoW is offline
Send a message via MSN to SnoW
01101101
BANNED
Join Date: Nov 2009
Location: 9`su 09`n0n7e`r0f76a
Old 01-24-2010 , 07:18   Re: Arrays with N Dimensions
Reply With Quote #29

Ok you win your ePenis is now larger.
01101101 is offline
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-24-2010 , 08:39   Re: Arrays with N Dimensions
Reply With Quote #30

Quote:
Originally Posted by 01101101 View Post
Ok you win your ePenis is now larger.
I'm not questioning you but I do hope that the purpose of your sentence is sincere instead of what I'd guess from the ePenis.
SnoW is offline
Send a message via MSN to SnoW
Reply



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 11:09.


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