To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
Code CritiqueHaving someone critique your code is always a great way to hone the skills. Stop in and post your code to see what your peers may have done differently.
Yeah, that looks like a custom function planetsim. Really needs some comments
Here's one I wrote to get around my proxy a while ago when pulling the slashdot RSS feed. It was a quick and dirty script, so i'm sure someone can make it better. Any ideas?
__________________
"A proof is a proof. What kind of a proof? It's a proof. A proof is a proof. And when you have a good proof, it's because it's proven." -- Jean Chrétien
__________________
"A proof is a proof. What kind of a proof? It's a proof. A proof is a proof. And when you have a good proof, it's because it's proven." -- Jean Chrétien
Man, just found my post. Thought jstarkey deleted it
So, that one just get's around the proxy. I got a class that parses the RDF file for me if anyone wants to see that also, I can post it tomorrow. I tried getting phpbuilder's feed, but didnt have much luck. Might need to try again sometime.
BTW....sorry for the lack of comments in the code, but I just never comment my code. Drawback from being the only coder at work I guess.
I'm sure I'd be commenting if I was selling my work, but I work for one company, doing internal apps. If I go, that means I'm fired. And screw em in that case
Lord, I understand your point but what about when they want a revision to something you wrote two years ago. When that happens, you'll probably start commenting.
Most of my stuff is pretty straight forward. Pull the info from the database. Display it. Not too much deviation. But yeah, I've been thinking for a while now that I need to adopt some sort of commenting standard. I just don;t find a need for it a lot. But you're right. No rebuttal needed. I know it
hmm.. i only tend to comment on complicated scripts.. which i will be modifying. If i know its not going to be modified i probably wouldnt waste my time but i guess its always a good idea..
Yeah, I'd better comment and indent and improve and use better functions and shorten and add to my old calculator script. It's the second one I ever made. (First was MadLib, second was calculator, third was send me a message and that needs improving)
damn I need to improve all my scripts!
__________________
"A proof is a proof. What kind of a proof? It's a proof. A proof is a proof. And when you have a good proof, it's because it's proven." -- Jean Chrétien