I have to pair program at work. It sucks. I was writing PHP and using print inside of if statements to print HTML and then my partner gets all mad at me and says use the template. WHY. It is too complex to write the same stuff twice if I write templates the code is bound to the templates.
Even worse, he breaks up my one liners.
He says it is easier to read. But I've done it a jillion times if they hadn't seen it before now then they weren't reading the code!
Name:
Anonymous2006-03-24 20:10
Your partner should be complaining about you, and not the other way round. Obviously you suck at coding if you,
1) Think that templates are too complex.
2) Write codes that are hard to read.
Templates are meant to seperate design from code. So whoever is in charge of the design can change it without caring how the code is going to work.
>I've done it a jillion times if they hadn't seen it before now then they weren't reading the code!
Not everyone bothers to read and hard memorise each and every single line of code. Breaking it into smaller readable pieces ensures that whoever is tasked with the shit job of debugging your obviously shitty code has less shit to wade through.
Name:
Anonymous2006-03-25 6:10
EXXXXXXTREME PRRRRROGRAMMING!
Name:
Anonymous2006-03-25 8:51
PROOOOOOGGGRAAAAAAMMMMIMIINNNG!
Name:
Anonymous2006-03-25 13:08
Computer programming.
Name:
Anonymous2006-03-25 14:39
>>2
If you can't read and understand one liners, you don't deserve to use a keyboard.
You aren't being paid to be a primadonna. You're being paid to write working maintainable code. It's easy to write one-liners that take a few seconds to figure out (lol Perl, but also most languages out there), and that quickly adds up for whoever has to read your wankery.
I understand where >>2 is coming from, because my main job is interfacing several pieces of software. I fucking hate people with attitudes like >>6, and wish only people like >>2 wrote code.
Name:
Anonymous2006-03-25 19:34 (sage)
>I was writing PHP and using print inside of if statements to print HTML
Typical shitty PHP programmer
Name:
Anonymous2006-03-26 10:58
>>7
What a fucking noob! Writing one-liners does not mean writing unmanageable code, it means write intelligent code when you can. And what's a serious language anyway? I write stuff in ML, Java, Perl, Ruby, C, C++, Lisp, JavaScript, every fucking language I need for my job, you don't really know what you're talking about, sorry.
Name:
Anonymous2006-03-26 17:44
Wow. Just wow. Way to prove you're full of shit, >>9.
Go back to playing with PHP and complaining that your mentor thinks you suck.
Because of people like >>9, PHP has such a bad name.
Name:
Anonymous2006-03-27 14:42
If people list javascript as a language they program in and they also list ML, it means they might be paid as a web programmer and are learning ML in their programming languages course.