User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » Dear Bad Coders: Page [1] 2, Next  
philihp
All American
8349 Posts
user info
edit post

I would appreciate it if you would comment at the top of all files you touch, "I do not know what I am doing, I apologise for anyone who has to maintain this". It might make it a little less painful, knowing you acknowledge that the work you do is only yours to do because you are the lowest bidder.

Please stop padding your code (such as the following) in order to boost your line-count and make what you do look intimidating. No one with a computer science degree would ever think to write

print "<tr>\n";
print "<td>\n";
print $ssep;
print "</td>\n";

print "<td>\n";
print $sseq;
print "</td>\n";

print "<td>\n";
...

2/8/2006 6:32:55 AM

smoothcrim
Universal Magnetic!
18966 Posts
user info
edit post

cout<<"l\n";
cout<<"o\n";
cout<<"l\n";

2/8/2006 6:59:11 AM

DirtyGreek
All American
29309 Posts
user info
edit post

why would you want to boost line count?

2/8/2006 7:21:34 AM

agentlion
All American
13936 Posts
user info
edit post

some (bad) consultants charge per lines of code.
or some (bad) managers rate productivity in lines of code/hour

2/8/2006 7:23:06 AM

Excoriator
Suspended
10214 Posts
user info
edit post

I would think that the fee charged should be inversely proportional to the lines of code written to solve the problem.

also, I frequely put multiple print statements if I'm printing out multiple lines. It makes it easier to read. (which is what you were concerned about right)

2/8/2006 8:33:25 AM

Quinn
All American
16417 Posts
user info
edit post

^

You will end up with some very inefficient shit

2/8/2006 8:39:57 AM

Excoriator
Suspended
10214 Posts
user info
edit post

ya probably but i just write little scripts and shit anyway

if i were trying to be efficient, i'd use one call to the print function, but breakup the lines of code


print("bla bla bla\n
bla bla bla bla\n")


[Edited on February 8, 2006 at 8:43 AM. Reason : s]

[Edited on February 8, 2006 at 8:43 AM. Reason : s]

2/8/2006 8:43:11 AM

State409c
Suspended
19558 Posts
user info
edit post

He's just trolling Quinn. Learn to assume he is an idiot, and we'll all be happy here.

2/8/2006 8:44:20 AM

State409b
Suspended
490 Posts
user info
edit post

Quote :
"No one with a computer science degree would ever think to write"


unless they happened to be writing Perl CGI that they didn't have to maintain

actually you realize NCSU is ranked like 2.47e32 for CSC right? I think the average NCSU CSC grad is doing well to be employed and writing code, whatever it may look like

[Edited on February 8, 2006 at 8:51 AM. Reason : *]

2/8/2006 8:45:27 AM

State409c
Suspended
19558 Posts
user info
edit post

Go away alias.

2/8/2006 8:53:34 AM

State409b
Suspended
490 Posts
user info
edit post

cry me a river

2/8/2006 8:57:20 AM

State409c
Suspended
19558 Posts
user info
edit post

Kill your pathetic existence and I promise to shed a tear.

2/8/2006 9:01:33 AM

Default
All American
998 Posts
user info
edit post

I know this is a little off topic, but do you think that this result of bad coders, or bad coders?

Quote :
"Further to our previous press note, the Ajedrez21 (Chess21, Echecs21, Shamat21) portal was recently a victim of a violent sabotage that forced the indefinite suspension of the services.

Firstly, we apologize to our clients, especially for not communicating directly with them before: the situation was so serious that only now we are in conditions to do so.

The Ajedrez21 server was left out of order and the software proved to be suspiciously vulnerable. We would like to point out that the company that created the software, and which guaranteed the technical support, refused to offer us any help, and under these circumstances it has been impossible to attain a stable solution.

For these reasons, Ajedrez21 must close its playing zone definitely.

In the interest of our clients, we have reached an agreement, in a record time, with the world’s most prestigious online club, the Internet Chess Club (ICC), to welcome the Ajedrez21 community. ICC offers excellent conditions to our members, guaranteeing the fulfilment of Ajedrez21’s obligations with the highest quality.

We will be sending soon personalized information to each and every one of Ajedrez21’s members, with precise instructions to benefit from the special conditions of this agreement. Some of the details are advanced in the following link: Agreement ICC – Ajedrez21

Lastly, we sincerely appreciate all the support that we have received. You can be sure that we have done everything possible to be able to meet the challenge and find the most convenient solution. We will carrying on working with the same illusion as always in the common project of Ajedrez21, which will be integrated in ICC to continue serving to link the Spanish chess community. Very soon you will be able to key the link http://www.ajedrez21.com on your computers to meet your friends on ICC as always.

Respectfully,

Miguel Illescas Córdoba
CET General Director
Chess21"


I miss this place.

[Edited on February 8, 2006 at 9:38 AM. Reason : blah]

2/8/2006 9:38:30 AM

MiniMe_877
All American
4414 Posts
user info
edit post

http://www.thedailywtf.com

2/8/2006 9:52:03 AM

GraniteBalls
Aging fast
12262 Posts
user info
edit post

^ Funny stuff.

2/8/2006 10:03:46 AM

DirtyGreek
All American
29309 Posts
user info
edit post

Quote :
"I would think that the fee charged should be inversely proportional to the lines of code written to solve the problem."

no shit. I can't imagine why the hell you'd charge per line of code. that's stupid as hell

2/8/2006 10:57:59 AM

jbtilley
All American
12797 Posts
user info
edit post

Quote :
"I can't imagine why the hell you'd charge per line of code."


I could. I can think of a very good reason. Now I can't imagine why anyone would pay per line of code.

2/8/2006 12:10:54 PM

DirtyGreek
All American
29309 Posts
user info
edit post

sorry, that's what i meant to say

2/8/2006 12:22:28 PM

Charybdisjim
All American
5486 Posts
user info
edit post

Yeah, paying per line of code implies alot of trust and naivitee on the part of the firm comissioning the code. That only works if you trust they're programming the code to be as efficient as possible.

2/8/2006 1:02:38 PM

MiniMe_877
All American
4414 Posts
user info
edit post

^ and code reviews should be a must, so people cant get away with the bullshit like in the first post.

2/8/2006 1:08:44 PM

wolftrap
All American
1260 Posts
user info
edit post

i would rather deal with simple, inefficient code than clever-ass uncommented code

2/8/2006 5:35:42 PM

LimpyNuts
All American
16859 Posts
user info
edit post

Many times efficient code can be than inefficient code. Mainly what matters is: does the code do what it's intended and does it perform that task within desired performance limits?

2/8/2006 5:47:26 PM

qntmfred
retired
40726 Posts
user info
edit post

^^ i tend to agree. ease of development is often a lot more valuable than the performance hit from this kind of thing. especially in this example, where the php code mimics how you might write actual HTML.

[Edited on February 8, 2006 at 5:51 PM. Reason : regex, otoh, is an unavoidable maintenance nightmare]

2/8/2006 5:49:37 PM

Excoriator
Suspended
10214 Posts
user info
edit post

regex aren't hard once you're used to them.

2/8/2006 5:58:32 PM

Stein
All American
19842 Posts
user info
edit post

Quote :
"regex aren't hard once you're used to them."


They're blissfully simple, since they tell you exactly what they do right there in the code.

2/8/2006 6:38:06 PM

skokiaan
All American
26447 Posts
user info
edit post

if you don't want to run up against crappy programmers, stop doing web programming.


All the dregs get into web programming before anything else.

2/8/2006 6:45:35 PM

Excoriator
Suspended
10214 Posts
user info
edit post

I'm surprised that americans are still doing web programming

2/8/2006 7:23:41 PM

wolftrap
All American
1260 Posts
user info
edit post

if you don't want to run up against crappy programmers, stop doing web programming.


All the dregs get into web programming before anything else.

2/8/2006 7:29:46 PM

qntmfred
retired
40726 Posts
user info
edit post

Quote :
"regex aren't hard once you're used to them."

Quote :
"They're blissfully simple, since they tell you exactly what they do right there in the code."


gimme a break. sure, they're easy, if you don't mind spending a few minutes figuring out what it means. comparing maintaining something like

preg_match("|^[a-zA-Z][\w\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\w\.-]*[a-zA-Z0-9]\.[a-zA-Z][a-zA-Z\.]*[a-zA-Z]$|", $string);
to
print "<td>\n";
print $ssep;
print "</td>\n";


and tell me you'd rather have the regex. we're talking about ease of development here

[Edited on February 8, 2006 at 11:50 PM. Reason : .]

2/8/2006 11:48:54 PM

philihp
All American
8349 Posts
user info
edit post

to


print "<td>$ssep</td>\n";


[Edited on February 9, 2006 at 2:36 PM. Reason : .]

2/9/2006 2:28:50 PM

30thAnnZ
Suspended
31803 Posts
user info
edit post

good job

2/9/2006 2:30:19 PM

wheelmanca19
All American
3735 Posts
user info
edit post

outsourcing to india is great

Quote :
"When only discovered devices is selected and put under deploy action
,during this process if any of the discovered device fails to get
deployed then the process should in no way indicate fail in Task bar
and when clicked Error log window from task bar it shows device
discovery error, which is totally mismatch process errors
"

2/10/2006 12:34:01 AM

skokiaan
All American
26447 Posts
user info
edit post

whats that from

2/10/2006 12:40:42 AM

philihp
All American
8349 Posts
user info
edit post

just want to pay half the price for a programmer? be prepared to only half understand what he says.

2/10/2006 12:53:55 AM

Stein
All American
19842 Posts
user info
edit post

Quote :
"comparing maintaining something like"


That's a poorly written regular expression though.

I also learned today that


echo '<tr>',
'<td>',
($value) ? 'yes' : 'no',
'</td>',
'</tr>';


works. Don't know why I didn't think the conditional statement wouldn't work, but it turns out it did.

I've gotten into the odd habit of breaking tables up line by line in code (to move through the code quickly), but never adding the newlines to make it more readable when viewing the source. It probably comes from the fact that for a while I had to add some kind of logic after every line in a table.

[Edited on February 10, 2006 at 1:38 AM. Reason : .]

2/10/2006 1:21:10 AM

wheelmanca19
All American
3735 Posts
user info
edit post

^^^issue in AccuRev from a tester in India

^^He's just a tester

2/10/2006 9:32:33 AM

SandSanta
All American
22435 Posts
user info
edit post

I wouldn't consider most web development Software Development at all.

2/10/2006 10:04:58 AM

MiniMe_877
All American
4414 Posts
user info
edit post

^^ I deal with that same shit all to often

2/10/2006 10:21:16 AM

wolftrap
All American
1260 Posts
user info
edit post

I've never seen an actual useful, working, compiled application come from any NCSU undergrad except for that kid who got sued by Apple.

Until I see your name on the Photoshop/Firefox/MSWord credits STFU about who is this or that.

2/10/2006 10:49:55 AM

Excoriator
Suspended
10214 Posts
user info
edit post

hello SAS

2/10/2006 11:57:10 AM

appamali
All American
4479 Posts
user info
edit post

I new some of you would blame it on India...

2/10/2006 12:25:12 PM

SandSanta
All American
22435 Posts
user info
edit post

Wolftrap, ever use an SE phone?

A Cisco router?

MS application suites?

Make a phone call over a Nortel Switch?

etc.

NC State grads have done a fuckton of usefull stuff. Just because you haven't heard of it doesn't mean it doesn't exist.

My senior design group alone has 3 members that could probably hold their own with 20 year+ experienced engineers and software developers and there are at least 4 other groups that could boast that.

State graduates some very smart people.

2/10/2006 1:35:14 PM

wolftrap
All American
1260 Posts
user info
edit post

undergrad

2/10/2006 2:04:35 PM

Excoriator
Suspended
10214 Posts
user info
edit post

OMFG name a freshman in his first semester who has single-handedly programmed enterprise-level server software for fortune 500 companies

EHEHE NCSU IS SO DUM STFU EHEHE

[Edited on February 10, 2006 at 3:09 PM. Reason : *hiccup*]

2/10/2006 3:08:51 PM

MiniMe_877
All American
4414 Posts
user info
edit post

^ I wrote software for RedHat as an undergrad [/brag]

2/10/2006 3:25:24 PM

Excoriator
Suspended
10214 Posts
user info
edit post

single-handedly

/wolftrap

2/10/2006 3:30:52 PM

philihp
All American
8349 Posts
user info
edit post

Quote :
"Until I see your name on the Photoshop/Firefox/MSWord credits STFU about who is this or that."


i don't see your name on photoshop or firefox. i don't have word installed, but i'll just assume you're on that one.

2/10/2006 7:29:17 PM

Stein
All American
19842 Posts
user info
edit post

I run/wrote a ridiculously large website and have since my junior/senior year of high school.

It's not compiled, but I think it should count.

[Edited on February 10, 2006 at 9:09 PM. Reason : .]

2/10/2006 9:07:32 PM

quagmire02
All American
44225 Posts
user info
edit post

i fully admit that i quit paying attention to good code long ago.

this is why my crap won't show up correctly in firefox.

there, i've said it.

the first step to recovery is admitting that you have a problem.

2/10/2006 10:03:15 PM

State409b
Suspended
490 Posts
user info
edit post

I agree with Stein, all web developers should fall into the category "bad coders".

2/10/2006 10:55:20 PM

 Message Boards » Tech Talk » Dear Bad Coders: Page [1] 2, Next  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.