Jump to content

Coding Quality


The Little Guy

Recommended Posts

I found this quote about one of my sites...

 

this code is ass. i'm far from a PHP pro and i can finger paint better code than this. i don't mind PHP newbies, we've all got to start somewhere, but sites like this spread junk code which only adds fuel to the "PHP sucks" fire.

 

Would anyone agree or disagree about any of this? I have never really gotten any feedback about my coding abilities, or the coding on my site. Does anyone have an feedback for me?

 

url: http://phpsnips.com

Link to comment
Share on other sites

Lol I dislike your style of coding:

 

if(foo()) {
bar();
}

 

I find this much easier to read:

if(foo())
{
bar();
}

 

But it's entirely personal preference. Apart from that I don't really see any problem with it. I mean, everyone has their own styles of coding.

Link to comment
Share on other sites

No, I think your code is pretty good. I do have a concern though - it might be just me, but I really don't find how some of those code snippets are really worthwhile looking over or just "useful."

 

Instead of aiming for "quality" of the code. why don't you focus writing scripts that people are most prone to use/need.

 

For example -> Simple session script, simple mysql login, mysql add new table, validating name/email, etc.

 

Higher demand > high quality of rarely used scripts

Link to comment
Share on other sites

For example -> Simple session script, simple mysql login, mysql add new table, validating name/email, etc.

 

haha, I have a few of those :) they just don't seem to get the good ratings though...

 

For some reason, people like the useless ones that do cool things, such as my "jpeg to ascii converter", it has the highest score (probably mostly bots), and the most views.

 

But I do like the new ones you pointed out, I'll add some of those, Thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.