vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin.org Site Feedback (https://vborg.vbsupport.ru/forumdisplay.php?f=7)
-   -   To enforce a valid coding style in the community! (https://vborg.vbsupport.ru/showthread.php?t=93400)

akanevsky 08-01-2005 10:05 PM

To enforce a valid coding style in the community!
 
I have noticed that most of the coders @ vBulletin.org do not follow vBulletin coding standards and / or make a code unnecessarily long with extra queries and other unnecessary stuff like creating code / variables that are already present on a certain vBulletin page... There are only about 4 or 5 coders who follow those standards..

While most of the hacks themselves are great, these coding faults pose security and stability errors, making server load higher than it could be if the code would be optimized. Plus, poorly written code might take more space than an optimized version of the same code.

What I suggest is making a system where we would help people perfect their hacks after which it would be marke as PHP Valid.

It should be no problem for the forum administrators to add a field "QA Verified", editable only by the QA team and the administrators. Once the field is created, allow users to choose from displaying all hacks or only the ones marked as "Containing an optimized PHP".

This way, while the coding style will not be enforced, vB hackers will be encouraged to code properly in order to rate higher and display their hacks better. The best part is, this system is easy to implement (I could help making it), and it would not require immediate validation, which is a plus from the QA team's point of view.


What do ya'll think?

If this works out, I could help creating that system and later be a member of the verification team.

Brad 08-01-2005 10:14 PM

We already tried this (in a way) with the QA team and it failed. There just aren't enough experanced people with the time to do something like this.

BTW we can't enforce people to code to standard anyway. Take a look at some of the 'experanced' coder's early hacks and you'll see what I mean, everyones ability to code develops over time with the help of others. Enforcing people to code to standard would deny people that option.

Revan 08-01-2005 10:24 PM

I offer my services as a member of the verification team as well. You remember from the Hack Manual Gen thread that I'm a perfectionist, so I would be one of those 4 or 5 ;) I strive to achieve the standards in terms of coding style, but also actual coding (such as escaping DB values the vB way), templates, phrasing, etc :)
[/advertising to blag his way into the team]

I would applaud such a change, phpBB does it and it works for them, so why shouldn't it work for us?
Coupled with the Hack Database, this would IMO definetely be a huge step towards a better vBulletin coding community as a whole.

The sceptics might say "we can't force people to code a certain way", and while this is true, I fail to see why us hack installers should be forced to either clean up the code, or slowly watch our vBulletin installation buckle from poorly written hacks just because we desire/require the functionality it provides.
The vBulletin Coding Standards not only produce clean, easy to read/customise coding, it makes debugging easier. Imagine a script where an entire foreach() iteration is written on a single line, cramped together, then a parse error occurs. The line # would be the same, yet users (without syntax highlighting editors) would have to break up the line in order to pinpoint the error.
I fail to see a single good reason why these coding standards should continue being as undervalued as they are.

EDIT:
Quote:

Originally Posted by Brad
BTW we can't enforce people to code to standard anyway. Take a look at some of the 'experanced' coder's early hacks and you'll see what I mean, everyones ability to code develops over time with the help of others. Enforcing people to code to standard would deny people that option.

I disagree.
First of all, the vBulletin Coding Standards are mainly about code formatting. The ability to proper indent code, writing clean code, etc has nothing to do with someone's ability to code. I'm not saying we should get a bunch of Coding Nazis to fine coam each hack making sure they spaced their function arguments properly OR ELSE!!!, but there's a difference between that and some of the manure that Ive seen when looking at hacks.

Oh and just because you tried it before, doesn't mean you don't have new talent to help carry this out NOW. The hack database, as I understand it, was present before. Why not bring back this QA team, at least for a trial run?
The worst thing that can happen is the team being so totally backlogged that they have to give up, at which point the admins can simply disband the team and disable the Moderation (or whatever youll use to delay hack releases), and all is well :)

Chris M 08-01-2005 10:39 PM

It's not just a case of having the people willing to do it - If I want to code something that doesn't conform to standards, I will - Whether you choose to use it, or modify it to your own standards is up to you :)

Enforcing anything regarding code standards etc is wrong and shouldn't become part of vB.org :)

Satan

Erwin 08-01-2005 10:41 PM

It's a good idea in theory, but in practice, the problems I foresee are:

1. Discourages beginner hackers from releasing hacks.

2. Delays the release of hacks as presumably hacks won't show up until they are approved.

3. Also, what happens if a hack does not pass? Do you remove it, recode it for them, force the author to recode it? What if the author refuses to recode it and wants to have his own style? Do you basically then disallow the release of the hack?

These are things to consider.

Adrian Schneider 08-01-2005 10:47 PM

Step 1) Rate the Thread

Step 2) Don't install modifications with low ratings.

Andreas 08-01-2005 10:50 PM

I see valid points on both sides.
IMHO we can't enforce ppl to stick to certain coding styles, but we can try to encourage them.
Experience seens to be one important thing, so we should try to give newbies as much knowledge as possible.

Maybe smth. like a "quality lable" issued after a Hack has been reviewed would be nice.
This does not have to be mandatory, and thus would not slow down releases etc.
But I think it would encourage ppl. to write well-coded Hacks.

Thread Rating is anonymous and doesn't mean much.
There are Hacks with high ratings which are IMHO terrible (code wise).

Dream 08-01-2005 11:25 PM

dark visor, you could start with my code, id love to hear some feedback, or with a style guide.

Chris M 08-01-2005 11:55 PM

But then a Quality Label can be seen as saying that some hacks are better than others, not that their code style is just more in-line with what a group of people think it should be...

Honestly - If a hack is that important to me as it is so good, and the code is poorly done, I re-code it myself - The only people I can see complaining about coding standards are standard fanatics... I'd say over half the people who visit vBulletin.org and install hacks from here rarely care if the code is sloppy - As long as it doesn't bring their site to a halt and does the job they want, they're happy...

It brings into mind the whole catering to the masses arguement - Not many people will care, and those that do take it too far...

While it is good that you are concerned about how code standards drift, merely advising people that their code is sloppy and showing/guiding them how to make it not sloppy will help them become better coders - Slapping a sticker saying "Poor" will defeat the purpose - It will discourage newbies from posting hacks as their coding standards 9 times out of 10 will not be how you fanatics think it should be, and it will also not help them learn - Being told your code sucks and not being told how to make it better is worse than moaning about the code not being up to your standards...

Honestly, all I can see this doing is creating bad feeling, a "division" between coders and eventually tearing a rift in the community...

A few "How-to" guides, helpful suggestions in hack threads and generally aiding the newer (and older) coders (as not everyone is perfect :p) on how to make their code better would be the only sensible course of action...

Satan

akanevsky 08-01-2005 11:59 PM

What does "QA" stand for? Quality Assurance?.. I dislike the abbreviation.

Quote:

It discourages beginner hackers from releasing hacks.
I disagree:
  • The vBulletin coding standards are publically available through the official vBulletin manual and are easy to learn. These standards are basically about proper indentation and proper line breaks. Therefore, they take very little time to learn - to me, it took about 10 minutes to read through the standards section and memorize it.
  • Beginner hackers do not generally release long hacks. The QA Team, therefore, could easily fix the first few releases of that beginner, but not allow any more releases after a stated amount if the hacker refuses to comply with the standard.
  • Usually, people hack because they like doing it. If they like doing it, they should be happy to learn how to do what they like more efficiently. If they don't want to learn it - they are not serious about coding and they should not be releasing hacks.

However, this is not likely to work out for the following reasons:
  • Beginner-level hackers would probably pay no attention to the edits made by the QA team, making the QA's efforts pointless.
  • Mass fixing of hacks by the QA Team would take too much time, which most of us don't really have.

Quote:

It delays the release of hacks as presumably hacks won't show up until they are approved.
You are right - they won't show up until they are approved. However, this doesn't really matter. The time coders and end-users waste to solve installation problems that are occuring to unexperienced installation performers will be much longer than the time required to write a valid hack once and for all as well as the time required to install a valid hack without later problems.

Based on above + plus KirbyDE's post, I am rethinking the effectiveness of the above method... However, I'd like to propose another plan, which I am sure can act as a compromisse between the two sides:

On vBulletin.org, hacks have many custom fields ("Installer Included", "Support Provided", etc). It should be no problem for the forum administrators to add a field "QA Verified", editable only by the QA team and the administrators. Once the field is created, make the board display only the Verified hacks by default, with an option to display a complete list of hacks (both verified and non-verified). The option should be visualized as a link in every forum, and it should create a session variable (not a cookie), that would keep the setting as is until the user leaves the forum. Once he\she comes back, it will once again set to only display Verified hacks.

This way, it will feel like that the Verified hacks are positioned above non-verified hacks. While the coding style will not be enforced, vB hackers will be encouraged to code properly in order to rate higher and display their hacks better. The best part is, this system is easy to implement (I could help making it), and it would not require immediate validation, which is a plus from the QA team's point of view.

Let's have a trial run of this sytem!

Boofo 08-02-2005 12:01 AM

Maybe a forum where experienced coders can help answer coding standard questions for others? Thay way no one would fell slighted or small or discouraged for not knowing the standard and having it pointed out to then in public (ie, label/rating system).

Just an idea. ;)

Chris M 08-02-2005 12:05 AM

Quote:

Originally Posted by Dark Visor
What does "QA" stand for? Quality Assurance?.. I dislike the abbreviation.


I disagree:
  • The vBulletin coding standards are publically available through the official vBulletin manual and are easy to learn. These standards are basically about proper indentation and proper line breaks. Therefore, they take very little time to learn - to me, it took about 10 minutes to read through the standards section and memorize it.
  • Beginner hackers do not generally release long hacks. The QA Team, therefore, could easily fix the first few releases of that beginner, but not allow any more releases after a stated amount if the hacker refuses to comply with the standard.
  • Usually, people hack because they like doing it. If they like doing it, they should be happy to learn how to do what they like more efficiently. If they don't want to learn it - they are not serious about coding and they should not be releasing hacks.

However, this is not likely to work out for the following reasons:
  • Beginner-level hackers would probably pay no attention to the edits made by the QA team, making the QA's efforts pointless.
  • Mass fixing of hacks by the QA Team would take too much time, which most of us don't really have.


You are right - they won't show up until they are approved. However, this doesn't really matter. The time coders and end-users waste to solve installation problems that are occuring to unexperienced installation performers will be much longer than the time required to write a valid hack once and for all as well as the time required to install a valid hack without later problems.

Based on above + plus KirbyDE's post, I am rethinking the effectiveness of the above method... However, I'd like to propose another plan, which I am sure can act as a compromisse between the two sides:

On vBulletin.org, hacks have many custom fields ("Installer Included", "Support Provided", etc). It should be no problem for the forum administrators to add a field "QA Verified", editable only by the QA team and the administrators. Once the field is created, make the board display only the Verified hacks by default, with an option to display a complete list of hacks (both verified and non-verified). The option should be visualized as a link in every forum, and it should create a session variable (not a cookie), that would keep the setting as is until the user leaves the forum. Once he\she comes back, it will once again set to only display Verified hacks.

This way, it will feel like that the Verified hacks are positioned above non-verified hacks. While the coding style will not be enforced, vB hackers will be encouraged to code properly in order to rate higher and display their hacks better. The best part is, this system is easy to implement (I could help making it), and it would not require immediate validation, which is a plus from the QA team's point of view.

Let's have a trial run of this sytem!

As with my previous post, it creates a rift - Such a system would effectively be the same as slapping a 2nd-rate sticker onto non-QA approved hacks...

Satan

amykhar 08-02-2005 12:05 AM

One thing to note is that different styles are not always wrong. For example Dark, you went around to many of my mods today making code change suggestions. In many cases, it was a matter of personal style.

My style, except for when I get lazy, was ingrained in me while working at software companies where maintainable, understandable code takes precedence over optimized code. So, while your one-line replacements for my code blocks are appropriate style, they aren't what I'm going for.

My goal is to write code so readable that I stop getting silly requests for minor tweaks. I am working toward instructional and idiot-proof when I post here.

The way I see it, the people who need highly optimized one-liners are people who know how to do it themselves or who aren't trolling around for free code mods here ;)

Also, mods posted here generally tend to be refined over time. Right now, we are in pre-release stages of Vbulletin. Everybody is upgrading over and over again. The emphasis right now is to get the functionality we had before the upgrade and get it fast and bug-free. THEN, we can add features and code refinements.

Chris M 08-02-2005 12:07 AM

Quote:

Originally Posted by amykhar
One thing to note is that different styles are not always wrong. For example Dark, you went around to many of my mods today making code change suggestions. In many cases, it was a matter of personal style.

My style, except for when I get lazy, was ingrained in me while working at software companies where maintainable, understandable code takes precedence over optimized code. So, while your one-line replacements for my code blocks are appropriate style, they aren't what I'm going for.

My goal is to write code so readable that I stop getting silly requests for minor tweaks. I am working toward instructional and idiot-proof when I post here.

The way I see it, the people who need highly optimized one-liners are people who know how to do it themselves or who aren't trolling around for free code mods here ;)

Also, mods posted here generally tend to be refined over time. Right now, we are in pre-release stages of Vbulletin. Everybody is upgrading over and over again. The emphasis right now is to get the functionality we had before the upgrade and get it fast and bug-free. THEN, we can add features and code refinements.

Exactly what I was trying to say amy - The people that are crying out for the valid coding style are perfectly capable of altering the code that others create to their own level of perfection, without forcing others to be subject to your QA perfectionist view on how things should be done...

Satan

akanevsky 08-02-2005 12:18 AM

Quote:

But then a Quality Label can be seen as saying that some hacks are better than others, not that their code style is just more in-line with what a group of people think it should be...
If labels are important to you, then we can explicitly state "Validated Code", while having a link at an article explaining what this is all about.

Quote:

Honestly - If a hack is that important to me as it is so good, and the code is poorly done, I re-code it myself - The only people I can see complaining about coding standards are standard fanatics... I'd say over half the people who visit vBulletin.org and install hacks from here rarely care if the code is sloppy - As long as it doesn't bring their site to a halt and does the job they want, they're happy...
It does bring sites to halt (due to a high server load that results in parsing of an unoptimized code), and I can give you some examples. I just don't think it is necessary. "A buck is made up of cents".

Quote:

Honestly, all I can see this doing is creating bad feeling, a "division" between coders and eventually tearing a rift in the community...
Quote:

Thay way no one would fell slighted or small or discouraged for not knowing the standard and having it pointed out
You are missing one: there is already a division: "Coder"/"Adv. Coder"/"Master Coder". And yet - there is no tearing of the community. There are, instead, coders who are struggling to get a higher status by making more useful hacks that will be installed by a larger amount of people.

Quote:

As with my previous post, it creates a rift - Such a system would effectively be the same as slapping a 2nd-rate sticker onto non-QA approved hacks...
Ah.. I see. And the "Coder" and "Adv.Coder" are like slapping a 2nd-rate and 3rd-rate sticker on coders themselves (according to your point of view)?

Quote:

My style, except for when I get lazy, was ingrained in me while working at software companies where maintainable, understandable code takes precedence over optimized code. So, while your one-line replacements for my code blocks are appropriate style, they aren't what I'm going for.
What I suggested in those posts was my personal preference, rather than a standard. From your perspective, one liners are harder to read, and I agree with you. This easiness-to-read, is, though, exactly what the vBulletin code standard intended for. No need for worries.

However, I'd like to point out that in one of those three posts I pointed out how to remove three (!!) unnecessary queries from the hack. These unnecessary queries are exactly what I'd like to try to avoid.

Quote:

THEN, we can add features and code refinements.
There is no such thing as "THEN". "THEN" the hacks will be already installed by everyone, and there will be not point in refining the code. Besides, you usually lose interest in older hacks and do not feel like returning to those later on. Esspecially if they are large hacks. It will be just physically impossible to revise them.

--
P.S. Hellsatan, please do not quote whole posts, ok? You are making the thread cluttered and hard to read. Please edit your posts and remove the quotes. Thanks.

Adrian Schneider 08-02-2005 12:25 AM

Quote:

Originally Posted by Dark Visor
You are missing one: there is already a division: "Coder"/"Adv. Coder"/"Master Coder".

# of installs vs people rating your work on quality is very different.

akanevsky 08-02-2005 12:27 AM

Quote:

# of installs vs people rating your work on quality is very different.
Not quality. Validity of the code. And you know what? Quality will come with the validity.

Chris M 08-02-2005 12:28 AM

Quote:

Originally Posted by Dark Visor
If labels are important to you, then we can explicitly state "Validated Code", while having a link at an article explaining what this is all about.



It does bring sites to halt (due to a high server load that results in parsing of an unoptimized code), and I can give you some examples. I just don't think it is necessary. "A buck is made up of cents".





You are missing one: there is already a division: "Coder"/"Adv. Coder"/"Master Coder". And yet - there is no tearing of the community. There are, instead, coders who are struggling to get a higher status by making more useful hacks that will be installed by a larger amount of people.



Ah.. I see. And the "Coder" and "Adv.Coder" are like slapping a 2nd-rate and 3rd-rate sticker on coders themselves (according to your point of view)?



What I suggested in those posts was my personal preference, rather than a standard. From your perspective, one liners are harder to read, and I agree with you. This easiness-to-read, is, though, exactly what the vBulletin code standard intended for. No need for worries.

However, I'd like to point out that in one of those three posts I pointed out how to remove three (!!) unnecessary queries from the hack. These unnecessary queries are exactly what I'd like to try to avoid.


There is no such thing as "THEN". "THEN" the hacks will be already installed by everyone, and there will be not point in refining the code. Besides, you usually lose interest in older hacks and do not feel like returning to those later on. Esspecially if they are large hacks. It will be just physically impossible to revise them.

--
P.S. Hellsatan, please do not quote whole posts, ok? You are making the thread cluttered and hard to read. Please edit your posts and remove the quotes. Thanks.

I will quote what I like thank you - Please do not try and control my own Posting style now...

Labels are wrong, no matter how they are worded...

It brings large sites to a halt - Small sites remain unaffected - Owners of Large sites would usually have the common sense to check the code and optimise it themselves - Assuming they don't, they can usually afford to have someone do that for them - Either way, your arguement is based on a minority of forums having issues with sloppy code...

That is not a division - It is a status - It is like Moderator and Admin - Your user title depicts how many hacks you have released and how many installs they have recieved - If someone were to release the same amount of hacks as me which had a similar number of installs, that would gain them my user title...

The difference between my title and forcing coding standards is that my way the person doesn't have the pressure of fighting against the stigma of it not being optimised to your liking...

If I release a sloppy coded hack, I don't want to have to justify that my hack may be great, but the majority of users will ignore it because they interpret the code as "Invalid" or "Poor" or "It Sucks" or any other way you want to flower it about...

As for everyone installing: That is what the "send update" feature is for - To alert users to new and/or improved versions of hacks...

Satan

Adrian Schneider 08-02-2005 12:28 AM

Quote:

Originally Posted by Dark Visor
Not quality. Validity of the code.

Yes, quality.

Chris M 08-02-2005 12:29 AM

Quote:

Originally Posted by Dark Visor
Not quality. Validity of the code. And you know what? Quality will come with the validity.

Code does not become invalid because you don't like the way it has been coded...

Satan

akanevsky 08-02-2005 01:40 AM

Quote:

I will quote what I like thank you - Please do not try and control my own Posting style now...
hellsatan, can I ask you a question: How old are you? It is notable that you simply keep repeating over and over what you have already said. Would you please either participate in the discussion by addressing my points with valid arguments or not say anything at all? Thanks.

A majority of sites do not conform with XHTML1.1/CSS. Therefore, they do not validate to be "Valid XHTML" or "Valid CSS". Presence or absence of those labels on a certain site does not mark the content of that site as being of a "1st or 2nd sort". It just identifies the site as being or not being standards-compliant. There are plenty of sites with a cool content but with a poor code. Same here: "PHP Valid" would identify a hack as being standards-compliant (for those who are interested), while saying nothing about the usefullness of the hack and/or about the author himself.

What it would say, however, is that time has been taken to create a neat code. It would also allow the interested end-users to see the list of PHP Valid hacks.

Quote:

Code does not become invalid because you don't like the way it has been coded...
This statement is impertinent to the discussion. You are correct, "code does not become invalid because you don't like the way it has been coded". We are, nevertheless, talking about PHP coding. I'd like to point out that there is a charter entitled "vBulletin PHP Coding Standards". The code that "I don't like how it's coded" does become invalid according to those standards. Although these are not commonly accepted PHP standards, they will doubtlessly get there over time. For now, I'd like to express my gratitude to Jelsoft for taking the first step of publicly outlining these standards, and I'd like to encourage everyone to follow that charter. And to help with the encouragement, I'd like the QA team be resurrected. Admins, or whoever is in charge around here, come on and do it!

amykhar 08-02-2005 01:50 AM

I would much rather see peer support and friendly help than a standards committee. When you drop by my threads and make an improvement suggestion, I consider that team-work and community spirit.

If you form a committee that slaps labels on stuff, it would have a negative connotation to me.

Let's look at WHY people release code here. I release code for three primary reasons.
1. I've done the work anyway, might as well share.
2. I'm giving back because others have helped me
3. I am looking for others to contribute and improve upon my original concept. People use the code in different ways or dream up different features. Sometimes, that makes the code more robust and I benefit from the ideas of others.

BUT there are huge downsides to releasing here as well. We get a lot of people who don't read even the very first post of the thread and then ask the same question over and over. We get people who don't follow install instructions and then yell "bug!". We get people who get ticked off when we don't make all kinds of goofy changes to the code that would benefit nobody but the person who is getting ticked off.

This place needs to be fun and sociable if anybody is going to stick around. Yes, let's improve the code. We can all learn from each other. But, lets do it in a less judgemental way.

Amy

Chris M 08-02-2005 01:53 AM

Quote:

Originally Posted by Dark Visor
hellsatan, can I ask you a question: How old are you? It is notable that you simply keep repeating over and over what you have already said. Would you please either participate in the discussion by addressing my points with valid arguments or not say anything at all? Thanks.

A majority of sites do not conform with XHTML1.1/CSS. Therefore, they do not validate to be "Valid XHTML" or "Valid CSS". Presence or absence of those labels on a certain site does not mark the content of that site as being of a "1st or 2nd sort". It just identifies the site as being or not being standards-compliant. There are plenty of sites with a cool content but with a poor code. Same here: "PHP Valid" would identify a hack as being standards-compliant (for those who are interested), while saying nothing about the usefullness of the hack and/or about the author himself.

What it would say, however, is that time has been taken to create a neat code. It would also allow the interested end-users to see the list of PHP Valid hacks.



This statement is impertinent to the discussion. You are correct, "code does not become invalid because you don't like the way it has been coded". We are, nevertheless, talking about PHP coding. I'd like to point out that there is a charter entitled "vBulletin PHP Coding Standards". The code that "I don't like how it's coded" does become invalid according to those standards. Although these are not commonly accepted PHP standards, they will doubtlessly get there over time. For now, I'd like to express my gratitude to Jelsoft for taking the first step of publicly outlining these standards, and I'd like to encourage everyone to follow that charter. And to help with the encouragement, I'd like the QA team be resurrected. Admins, or whoever is in charge around here, come on and do it!

My age is irrelevant - However, should you care to look at my profile, you will find my birth date...

I am addressing your points, you are merely not looking correctly - Perhaps if you respected me as someone who might have a valid arguement, then you might find those miraculous responses that so far have eluded you... However, since this is a response to you similar to my previous ones, I doubt you will register this either:rolleyes:

There is a difference between XHTML/CSS standards and PHP standards - PHP code being sloppy or invalid does not create rendering issues (unless you use HTML within PHP which is on most counts evil and stupid) in different browsers - You are also talking as if the World Wide Web Consortium and Jelsoft are equal in status - They are not...

Jelsoft are great, but compared to the W3C they are mere specks on the map...

By stating "PHP Valid" as a tag for a QA approved hack, you are therefore implying that the others are not valid - Therefore it is not impertinent to this discussion...

"QA Approved" would imply that the others hacks are bad, incorrect or buggy...

Whatever your status/label/ideal you put to it, there will always be the misconception that those without the status are wrong, bad or not worth looking at, three big and important misconceptions...

This charter is a load of rubbish - They are guidelines - A charter implies law, as in you must code to this standard...

Jelsoft are not PHP - PHP is far bigger than Jelsoft, and you going around tooting Jelsoft's horn and proclaiming they are this, that and the other doesn't make their coding guidelines law, nor does it mean that we have to abide by them...

If you create this QA team, you are going to lose members, and you are going to looe hacks - People will not want to make the hacks to these standards because they are being forced to, and they do not want to have a label stuck on it because someone else is fanatical enough to want a certain standard of code...

And in a final response to your first statement - I will reply to this thread until it is closed voicing my opinions - You cannot and will not silence me, nor will you try and control what I post, where I post or how I post - Do not annoy me with your arrogance and mightier-than-thou attitude - This isn't a highschool playground, so you don't have to big yourself up and act all like you own me...

Satan

akanevsky 08-02-2005 02:06 AM

amikhar, you are basically correct.

However, I cannot recall - when did I say that the "comittee" is not willing to give others to suggestions? Once the hack is published, we will give people suggestions on how to imporve their codes. Once the codes are perfected, they will be marked as "PHP Valid". This is still a team effort, isn't it?

People do not read instructions only because those instructions are poorly formatted and/or badly organized. Sometimes it takes a lot of energy just to read one post of instructions, because it is all messed up. Hack Manual Generator, by the way, was an attempt to solve this. I'd like to note that it was a successful attempt. Because of a good first post organization, my hack threads rarely contain "bug!" exclamations and/or questions about something that was already explicitly stated in the first post. Which is also true about threads of other coders, who took their time to write a neatly organized instructions post.

Now, about the more social way: nobody is going to learn unless they have a motivation to do so. In this case, the motivation would be the QA Team and its "PHP Valid" label. Which shouldn't necessarily stick out, it could be just a small label... For those who are interested.

Chris M 08-02-2005 02:09 AM

Quote:

Originally Posted by Dark Visor
amikhar, you are basically correct.

However, I cannot recall - when did I say that the "comittee" is not willing to give others to suggestions? Once the hack is published, we will give people suggestions on how to imporve their codes. Once the codes are perfected, they will be marked as "PHP Valid". This is still a team effort, isn't it?

People do not read instructions only because those instructions are poorly formatted and/or badly organized. Sometimes it takes a lot of energy just to read one post of instructions, because it is all messed up. Hack Manual Generator, by the way, was an attempt to solve this. I'd like to note that it was a successful attempt. Because of a good first post organization, my hack threads rarely contain "bug!" exclamations and/or questions about something that was already explicitly stated in the first post. Which is also true about threads of other coders, who took their time to write a neatly organized instructions post.

Now, about the more social way: nobody is going to learn unless they have a motivation to do so. In this case, the motivation would be the QA Team and its "PHP Valid" label. Which shouldn't necessarily stick out, it could be just a small label... For those who are interested.

What is your obsession with PHP Valid -.-

People will learn if you guide them - People will learn to get HOTM - People will learn to get a popular hack - People will learn to get a name for themselves...

People here are learning all the time - All you are attempting to do is stop them doing so by removing their choice in how to learn, by forcing them to do it one way...

Satan

Boofo 08-02-2005 02:09 AM

But I own you! You are mine to do with as I wish! ;)

Chris M 08-02-2005 02:11 AM

Quote:

Originally Posted by Boofo
But I own you! You are mine to do with as I wish! ;)

Ssh Bob - That's only in private ;)

Satan

Boofo 08-02-2005 02:14 AM

Quote:

Originally Posted by Dark Visor
Now, about the more social way: nobody is going to learn unless they have a motivation to do so. In this case, the motivation would be the QA Team and its "PHP Valid" label. Which shouldn't necessarily stick out, it could be just a small label... For those who are interested.

Bit it is STILL a label and anytime you label something that changes it's place in the scheme of things. Being you supposedly know the PHP standard, then all of your mods would get the highest approval while someone like me would never get a mod released, because I know nothing about the standards. And, no matter what anyone else says, the wanting to help others with the standards would wane after a while due to frustration because some poor newbie doesn't catch on as fast as you think they should. No one seems to rememeber the time when they asked stupid questions over and over and just couldn't understand what you were trying to tell them. I rememeber those times dearly, I still do it. ;)

Chris M 08-02-2005 02:18 AM

Quote:

Originally Posted by Boofo
Bit it is STILL a label and anytime you label something that changes it's place in the scheme of things. Being you supposedly know the PHP standard, then all of your mods would get the highest approval while someone like me would never get a mod released, because I know nothing about the standards. And, no matter what anyone else says, the wanting to help others with the standards would wane after a while due to frustration because some poor newbie doesn't catch on as fast as you think they should. No one seems to rememeber the time when they asked stupid questions over and over and just couldn't understand what you were trying to tell them. I rememeber those times dearly, I still do it. ;)

Yes yes Bob - I totally agree :)

At the end of the day we are best off leaving them to their own devices - If they ask for help, you try and give it - Give them How-tos to read, sources to look at, but at the end of the day leave it there :)

Re-code sloppy code you don't like to suit your own needs, and be done with it :)

Satan

akanevsky 08-02-2005 02:40 AM

Quote:

if you respected me as someone who might have a valid arguement
Are there any reasons for me not respecting you?
Of course, if you suspect me of not respecting you, there are probably some reasons which I don't know about. And you know better ;)

Quote:

PHP code being sloppy or invalid does not create rendering issues
It creates higher server load, and this only fact is enough to try and make it less sloppy. Esspecially in those cases when you run three large queries instead of getting data from a variable that was already created.

Quote:

You are also talking as if the World Wide Web Consortium and Jelsoft are equal in status - They are not...
I am not saying that. I am saying that Jelsoft's guidelines should be on the same level as W3C, with some minor fixes and additions, of course. There should be some standards for every language. There are standards for HTML/CSS/RSS, and I don't see why not standartize rules for PHP?

Quote:

Bit it is STILL a label and anytime you label something that changes it's place in the scheme of things. Being you supposedly know the PHP standard, then all of your mods would get the highest approval while someone like me would never get a mod released, because I know nothing about the standards. And, no matter what anyone else says, the wanting to help others with the standards would wane after a while due to frustration because some poor newbie doesn't catch on as fast as you think they should. No one seems to rememeber the time when they asked stupid questions over and over and just couldn't understand what you were trying to tell them. I rememeber those times dearly, I still do it.
You are right... But, I am sure there is an expression that would not create any misconception... For example, there would be an icon instead the text. The icon would be wrappen into an URL that would lead to a detailed explanation, describing concisely what the icon means. With an extended explanation like that, it is possible to make sure that there are no misconceptions.

I already said that there would be no enforcement:

"Based on above + plus KirbyDE's post, I am rethinking the effectiveness of the above method... However, I'd like to propose another plan, which I am sure can act as a compromisse between the two sides:

On vBulletin.org, hacks have many custom fields ("Installer Included", "Support Provided", etc). It should be no problem for the forum administrators to add a field "QA Verified", editable only by the QA team and the administrators. Once the field is created, make the board display only the Verified hacks by default, with an option to display a complete list of hacks (both verified and non-verified). The option should be visualized as a link in every forum, and it should create a session variable (not a cookie), that would keep the setting as is until the user leaves the forum. Once he\she comes back, it will once again set to only display Verified hacks.

This way, it will feel like that the Verified hacks are positioned above non-verified hacks. While the coding style will not be enforced, vB hackers will be encouraged to code properly in order to rate higher and display their hacks better. The best part is, this system is easy to implement (I could help making it), and it would not require immediate validation, which is a plus from the QA team's point of view."


In other words, the QA guys would help the coder to perfect the code, after which the hack would be marked as "validated"...

Quote:

Re-code sloppy code you don't like to suit your own needs, and be done with it
You are still missing one: I'd rather not install your hack than to waste time for recoding it...

Chris M 08-02-2005 02:53 AM

Quote:

Originally Posted by Dark Visor
Are there any reasons for me not respecting you?
Of course, if you suspect me of not respecting you, there are probably some reasons which I don't know about. And you know better ;)


It creates higher server load, and this only fact is enough to try and make it less sloppy. Esspecially in those cases when you run three large queries instead of getting data from a variable that was already created.



I am not saying that. I am saying that Jelsoft's guidelines should be on the same level as W3C, with some minor fixes and additions, of course. There should be some standards for every language. There are standards for HTML/CSS/RSS, and I don't see why not standartize rules for PHP?



You are right... But, I am sure there is an expression that would not create any misconception... For example, there would be an icon instead the text. The icon would be wrappen into an URL that would lead to a detailed explanation, describing concisely what the icon means. With an extended explanation like that, it is possible to make sure that there are no misconceptions.

I already said that there would be no enforcement:

"Based on above + plus KirbyDE's post, I am rethinking the effectiveness of the above method... However, I'd like to propose another plan, which I am sure can act as a compromisse between the two sides:

On vBulletin.org, hacks have many custom fields ("Installer Included", "Support Provided", etc). It should be no problem for the forum administrators to add a field "QA Verified", editable only by the QA team and the administrators. Once the field is created, make the board display only the Verified hacks by default, with an option to display a complete list of hacks (both verified and non-verified). The option should be visualized as a link in every forum, and it should create a session variable (not a cookie), that would keep the setting as is until the user leaves the forum. Once he\she comes back, it will once again set to only display Verified hacks.

This way, it will feel like that the Verified hacks are positioned above non-verified hacks. While the coding style will not be enforced, vB hackers will be encouraged to code properly in order to rate higher and display their hacks better. The best part is, this system is easy to implement (I could help making it), and it would not require immediate validation, which is a plus from the QA team's point of view."


In other words, the QA guys would help the coder to perfect the code, after which the hack would be marked as "validated"...



You are still missing one: I'd rather not install your hack than to waste time for recoding it...

Then quite simply do not install the hack and shut up about standards then ;)

What you are muttering about respect, I'm unsure - The message I am getting disrespects me - It disrespects my standpoint which is shared by others and it is at some points almost offensive...

It does not always create high server load - With multiple queries its not a case of a standard - Simply tell the user the information is already loaded and that their queries are not needed...

Jelsoft's guidelines should not be - PHP is not exclusive for Jelsoft - You are treating it as if it is or should be...

Whatever happens, it will cause more problems than it's worth - The only ones who are going to moan about standards are those who can already sort the problem out themselves, but cannot be bothered, but expect others to do it for them when they may not know how...

Satan

Logikos 08-02-2005 05:21 AM

Quote:

Originally Posted by Brad
We already tried this (in a way) with the QA team and it failed. There just aren't enough experanced people with the time to do something like this.

BTW we can't enforce people to code to standard anyway. Take a look at some of the 'experanced' coder's early hacks and you'll see what I mean, everyones ability to code develops over time with the help of others. Enforcing people to code to standard would deny people that option.

I have to agree with Brad 110%.

Erwin 08-02-2005 05:22 AM

Let's get one thing straight - there's a huge difference between:

1. Badly written code

AND

2. Well-written code that looks bad

In case 1, the code is badly written so that there are more queries, it is inefficient etc.

In case 2, the code works well, but just looks bad - ie. it's not formatted nicely in separate lines with comments.

If we are talking about case 1, I say, go for it, try to optimize badly written code.

If we are talking about case 2, then I would say that is up to individual preference - for example, if and when I release a hack, it's because I've usually written it for my own site, so I'm not going to waste too much time formatting it "to look nice".

So let's decide - are we talking about function or about "looks". :)

Boofo 08-02-2005 05:24 AM

But even functionally bad code shouldn't be a hinderance to a newbie. Teaching him how to do it right is altogether different than chastising him in public with some sort of label. That will turn some otherwise good coders off from trying to learn and make it better.

Marco van Herwaarden 08-02-2005 06:17 AM

You are forgetting possibility 3 (or 1b): Badly written code that cause either security holes or make your board disfunction to some degree.

sketch42 08-02-2005 06:22 AM

Quote:

Originally Posted by Boofo
But even functionally bad code shouldn't be a hinderance to a newbie. Teaching him how to do it right is altogether different than chastising him in public with some sort of label. That will turn some otherwise good coders off from trying to learn and make it better.

interesting discussion... now i know that i Cant code my way ot of a paper bag.. and if i release a hack (not a template mod :lick: ) i would never expect to pass QA or any other standard... as im not even a begginer , im just struggling to learn enough to understand a quarter of this stuff ... and i dont think that anyone who releases one or two small hacks in their lifetime here would ever think that they would pass QA either... but say by some oddball chance i made a hack and it passed QA.. illtell you that i most likely still cant code my way out of a paper bag.. my point being... who does this benefit.. the coder? the community?

i honestly dont see it benefiting either... as someone who is just beggining to learn all this doesnt really care about neat code.. they want to learn how to code.. and so with time theyll learn, hopefully.

i cant see it benefitting the community because like Satan, Amy and Boofo have previously stated this will more likely create a rift in the community between coders.


so i say No to QA

just my 1/2 a cent

Andrew111888 08-02-2005 06:36 AM

As a member who's only released a couple of hacks and is still a "beginner" in terms of coding for the uses of others, I know that if someone were to come along and either label my hack "inefficient", "poorly written", or "not quality assured" I probably wouldn't bother to even consider releasing hacks later down the line.

If you come across a hack that is so poor that it would harm the function of the forum, I think you should simply try and help the user who released it. Instead of "This hack is not quality assured and therefore is garbage", say "Well, around [this block], you could minimize the number of queries by doing [this]..." and the response you would receieve would most likely a thank-you.

This idea comes across as egotistical and sounds to me like a way to rub skill in the face of somebody who's still learning.

Boofo 08-02-2005 06:44 AM

Quote:

Originally Posted by sketch42
i cant see it benefitting the community because like Satan, Amy and Boofo have previously stated this will more likely create a rift in the community between coders.

2 things ... first, you are one of the first to spell my name right. LOL

Second, grouping me with Satan defiantely makes me never want to release another hack/mod. ;)

Marco van Herwaarden 08-02-2005 06:48 AM

Quote:

Originally Posted by Boofo
2 things ... first, you are one of the first to spell my name right. LOL

Common Beefy, don't make a fuzz about that.

Boofo 08-02-2005 06:54 AM

See what I mean, sketch42? LOL


All times are GMT. The time now is 02:14 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01706 seconds
  • Memory Usage 1,995KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (34)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete