Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Obsessive compulsive programmers..

Name: Anonymous 2009-09-01 1:02

Is there anyone else on /prog/ that tends to get a little obsessive compulsive about how their code is written? I do, and I think this will be my downfall. I am going to use PHP, and Perl as an example because they have similar syntax.

I absolutely hate the $ before scalars. They look incredibly ugly to me. A lot of people tell me "Well, it's better than not having it there, I guess." I don't think so.

You could just as easy write:

int a = 1234;
int b = ' this is a string';

print a+b # Or a.b


I am sometimes forced to use PHP by my employer, and I hate it's syntax.

inb4 (*)

Name: Anonymous 2009-09-01 1:06

(*)

Name: Anonymous 2009-09-01 1:08

You could always write something that compiles to valid PHP code.

Name: Anonymous 2009-09-01 1:09

>>2

You're a comedian, aren't you?

Name: Anonymous 2009-09-01 1:13

>>3
Oh god. If you think PHP is bad, wait until PHP++... Phepples?

Name: Anonymous 2009-09-01 1:18

Name: Anonymous 2009-09-01 1:19

>>5
No need. PHP5 already has OOP capabilities.  But it's not necessary to code in OOP style or using objects for most things.

Name: Anonymous 2009-09-01 2:32

>>7
My point was that Bjarne created something that compiled to valid C code. Look where it got us.

Name: Anonymous 2009-09-01 2:39

>>8
Compiling high level languages to C for portability has been a fairly cheap compilation technique. You can compile Haskell and CL to C and you can compile a subset of CL to javascript or even run under the JVM if you want.
He could just code in whatever language he likes (for example Lisp) and compile that to PHP. I find it somewhat ugly, but if his job requires he use PHP...

Name: Anonymous 2009-09-01 3:18

Name: Anonymous 2009-09-01 3:24

I'm surprised no one has mentioned this, but how is "I don't like this language's syntax" obsessive-compulsive behavior?

Name: Anonymous 2009-09-01 3:36

>>11
I'm surprised you didn't realize nobody else mentioned it because they don't give a shit.

Name: Anonymous 2009-09-01 4:28

>>int b = ' this is a string';
>>int
>>' this is a string'

OH U, PHP

Name: Anonymous 2009-09-01 5:20

B J A R N E

Name: Anonymous 2009-09-01 8:42

>>13
5 == '5cocks'

Name: Anonymous 2009-09-01 12:58

>>1
Dude, don't even get me started:

- I've once spent two days changing the font and the syntax highlighting color scheme on my editor back and forth until I felt somewhat satisfied with what I ended up with.

- I sometimes choose to write a piece of code a certain way solely because it'll have a better layout. Also, if I make a change to some code I've written and I feel it "ruined the layout", I'll rewrite the whole thing so it looks pretty.

- I hate naming stuff. I'm never satisfied with the names I come up with. Most of the times I find the names are either too long or not descriptive enough, and I have to change it like ten times before I give up. In fact, being able to write in point-free style is one of the major reasons why I like Haskell.

Name: Anonymous 2009-09-01 13:02

That just means you're OCD.

Name: Anonymous 2009-09-01 13:18

>>16
I've once spent two days changing the font and the syntax highlighting color scheme on my editor
I sometimes choose to write a piece of code a certain way solely because it'll have a better layout.
I hate naming stuff. I'm never satisfied with the names I come up with.

Man, you suck.

Name: Anonymous 2009-09-01 13:24

>>16
All of these apply to me. Well, there's a bigger problem with the third part, because I am unable to come up with variable names.

Name: Anonymous 2009-09-01 13:25

>>18
Hey. Fuck you.

Name: Anonymous 2009-09-01 16:57

>>16
There's never a reason to use Haskell.

Name: Anonymous 2009-09-01 17:00

>>1
You are a fucking queer, not having $ before scalars looks fucking disgusting. It looks naked and ambiguous, definitely not best practice.

Name: Anonymous 2009-09-01 17:04

>>22
This is what Perl ``programmers'' actually believe!

Name: Anonymous 2009-09-01 17:10

>>1
Nobody cares about scalars.

Name: Anonymous 2009-09-01 17:11

>>23
This is what Python ``programmers'' would actually reply!

Name: Anonymous 2010-11-15 9:12

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List