2054 posts
  • Affiliate Level 3
  • Author Level 11
  • Collector Level 2
  • Elite Author
+11 more
bitfade
says

me trying to find meaningful variable/methods names

689 posts
  • Affiliate Level 3
  • Author Level 6
  • Beta Tester
  • Collector Level 4
+5 more
UBLThemes
says

This post was not mention to be just about the variables it was also about commenting lol

5492 posts
  • 5 Years of Membership
  • Affiliate Level 1
  • Australia
  • Author Level 3
+5 more
Australia
says

This post was not mention to be just about the variables it was also about commenting lol

We know ;) and yup u have a point, but var naming isnt standardised.

P.s. wasnt trying to be professional, but $i count within array is normal

689 posts
  • Affiliate Level 3
  • Author Level 6
  • Beta Tester
  • Collector Level 4
+5 more
UBLThemes
says
About a week back I did a Wordpress theme from here and all the functions and variables were like:
function xxxxx(){
global $xcv;
 $xyz = $xcv + 3;
}

And with no commenting at all

780 posts
  • Trendsetter
  • 3 Years of Membership
  • Author Level 5
  • Exclusive Author
+2 more
Typps
says

Perhaps clients that purchased an item, in this case a WordPress plugin need to contact the original author and request the extra feature desired. This provides extra revenue to the author and allows the client easy future upgrade paths, in case an update is available.

IMHO , apart from using standard coding practices, in case of plugins, one is not required to document the code nor the API as this is not what we’re ultimately selling, but rather a product to be used by the end user, where customization’s through code defeats the purpose of the plugin.

The example you’ve made of obfuscated variable names is not a standard coding practice and is likely going to bite the author in the rear sooner than later. But until they learn at their own expense there is not much you can do about it, i suppose ^^

2280 posts
  • Top Monthly Author
  • Weekly Top Seller
  • Community Superstar
  • Industrious API Inventor
+15 more
revaxarts
says

About a week back I did a Wordpress theme from here and all the functions and variables were like:
function xxxxx(){
global $xcv;
 $xyz = $xcv + 3;
}
And with no commenting at all
function xxxxxx() is bad and should get prefixed if someone else use that generic name function mycoolplugin_xxxxxx()
1633 posts fueledweb.com
  • Affiliate Level 2
  • Author Level 8
  • Collector Level 2
  • Top Monthly Author
+8 more
RimmonTrieu
says

You are talking about Coding Standard and I agree there must be some sort of regulation about that. Careless variable naming just shows how amateur the coders are.

Also I believe code commenting is a must for every file uploaded to marketplace, at least at AD we have done that for years.

141 posts
  • Weekly Top Seller
  • Exclusive Author
  • Author Level 3
  • 7 Years of Membership
+7 more
ram64
says

Well I think that if we speak of JavaScript it’s all about file size and that’s why there are short, irrelevant function or variable names and no comments. But this should be a compressed version of the file. IMO every JavaScript file should be in two versions: compressed and uncompressed, where the uncompressed version would be abundent in details (at least for codecanyon). But when it comes to other programming languages where the code size does not matter then I agree that all functions/methods/variables need to have meaningful names and apropriate comments.

689 posts
  • Affiliate Level 3
  • Author Level 6
  • Beta Tester
  • Collector Level 4
+5 more
UBLThemes
says

Perhaps clients that purchased an item, in this case a WordPress plugin need to contact the original author and request the extra feature desired. This provides extra revenue to the author and allows the client easy future upgrade paths, in case an update is available.

IMHO , apart from using standard coding practices, in case of plugins, one is not required to document the code nor the API as this is not what we’re ultimately selling, but rather a product to be used by the end user, where customization’s through code defeats the purpose of the plugin.

The example you’ve made of obfuscated variable names is not a standard coding practice and is likely going to bite the author in the rear sooner than later. But until they learn at their own expense there is not much you can do about it, i suppose ^^

I agree it’s not required and it should be.

I was always told to always code in mind that another developer needs to read your code so make it neat and meaningful.

In my opinion coding this way neither benefitting the person coding it or the poor developer who has to read it in the future.

689 posts
  • Affiliate Level 3
  • Author Level 6
  • Beta Tester
  • Collector Level 4
+5 more
UBLThemes
says

You are talking about Coding Standard and I agree there must be some sort of regulation about that. Careless variable naming just shows how amateur the coders are. Also I believe code commenting is a must for every file uploaded to marketplace, at least at AD we have done that for years.

+1

by
by
by
by
by
by