Coder Profile - Show off your skills, get a coder profile.
 
 
 
  
Posted: 4.55 Years Ago 

elbekko
Leuven, Belgium
Contrib Level: 5
Total Posts: 163
Can be any language, and about anything.

I'll start off:

This only applies to PHP, and I'm unfortunately seeing this more and more.
People doing idiotic crap like
CODE: Copy / Restore  ::  Remove Scroll Bars
  1. $var = "$anothervar";
Every time I see something like that, I feel like rampaging with a rusty spoon.

So, what ticks you off when you're looking at other people's code (or your old code   )?
Posted: 4.55 Years Ago 

Darkvengance
United States
Contrib Level: 8
Total Posts: 549
Variables pointing to other variables:

$var=$anothervariable;

Missing Semicolon:

$var=1

Unneeded echos:

echo "Hello";
echo $name;
echo "!";

(Could just be echo "Hello".$name."!"; )
Posted: 4.55 Years Ago 

VBAssassin
United Kingdom
Contrib Level: 17
Total Posts: 5,730
Spaghetti Code!!!   
Posted: 4.55 Years Ago 

korol_andrew
Toronto, ON, CA.
Contrib Level: 4
Total Posts: 124
im, not sure bout a variable pointing to another variable... (i do that by accident some times when im programing quickly)

but logic errors... and debbuging them,
(when im bored, i like looking for syntax errors)

however, when i program something and it doesnt do what i want it to do, so i trace it like a billion times and still cant find the error.
Posted: 4.55 Years Ago 

VBAssassin
United Kingdom
Contrib Level: 17
Total Posts: 5,730
QUOTE:  Remove Scroll Bars
[(when im bored, i like looking for syntax errors)
But normally they are picked up by the interpreter / compiler?

Kind regards,
Scott
Posted: 4.55 Years Ago 

Craige
Canada
Contrib Level: 9
Total Posts: 855
The fact that the error suppression operator in PHP (@), when used on an include, suppresses ALL errors from that included file.

As for the variable pointing to a variable...it's reasonable in certain cases. Sometimes you just need to make a copy to modify, instead of modifying the origonal.
Posted: 4.55 Years Ago 

VBAssassin
United Kingdom
Contrib Level: 17
Total Posts: 5,730
QUOTE:  Remove Scroll Bars
The fact that the error suppression operator in PHP (@), when used on an include, suppresses ALL errors from that included file.
Wew... i would never do that... bad for debugging! Instead to suppress such errors just turn off display of errors and instead log them to a file.

Another thing that really annoys me is when people insist there way of programming or method is correct... when really there is no "correct" way since programmer prefers to program in different ways. Every way has its advantages and disadvantages.

Kind regards,
Scott
Posted: 4.55 Years Ago 

Coding_Guy
Canada
Contrib Level: 11
Total Posts: 1,400
as a beginner in PHP i want to make the damn thing work. also don't like wnen people use a too simple version and a longer version of what could have been done with a shorter and more complicated version.   At the same time hate to look at the code where i don't understant a thing, but that just gives me an opportunity to learn something new  
Posted: 4.55 Years Ago 

Cinjection
Canada
Contrib Level: 11
Total Posts: 1,587
What's the problem with pointers?
Posted: 4.54 Years Ago 

Craige
Canada
Contrib Level: 9
Total Posts: 855
Post Quote - Direct Reference
Yeah, it's HORRIBLE for debugging. I went through months of debugging code that wouldn't display errors before I found out why it was acting that way. It's hell.
Posted: 4.54 Years Ago 

Darkvengance
United States
Contrib Level: 8
Total Posts: 549
I never really use the suppressor, I just turn off error reporting (once I'm done debugging).

When I'm programming in the database file I have error_reporting(E_ALL) and when I'm done I change it to error_reporting(0)

Helps me out a lot in the long run.
Page of 6 :: Next Page >>
 
 
Latest News About Coder Profile
Coder Profile Poll
Why do you get bored with programming?

Not enough time to do something productive
I run out of ideas
Too hard to show people my creations
Everything i do has too many errors, and it's too hard
I don't get bored!!!


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
3.49 Years Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright © 2007 - 2012, Scott Thompson, All Rights Reserved