Search found 11 matches

by _peterb
Thu Dec 06, 2007 11:55 pm UTC
Forum: Religious Wars
Topic: Underscores vs CamelCase
Replies: 104
Views: 55867

Re: Underscores vs CamelCase

Wrong wrong and wrong.

Follow the code conventions of the language you are using rather than imposing your deluded style on other people who have to read your code.
by _peterb
Tue Dec 04, 2007 12:03 am UTC
Forum: Religious Wars
Topic: Comments
Replies: 48
Views: 10790

Re: Comments

Comments are necessary - they should augment code where necessary however most code should self document. Comments are designed to be read by people reading the code - therefore they should not require any form of preprocessing (no image tags) ie Javadoc is bad. If people want to combine documentati...
by _peterb
Tue Dec 04, 2007 12:01 am UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 119757

Re: Tabs vs Spaces

Ok - theres a comments thread here: http://forums.xkcd.com/viewtopic.php?f=40&t=15522
by _peterb
Mon Dec 03, 2007 11:59 pm UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 119757

Re: Tabs vs Spaces

I suggest a fork of this thread to one that discusses comments. I'll make one. Having struggled around with spaces and tabs, I'm beginning to believe that whitespace should not be considered as syntactically important -only aesthetically, sorry python. There's just too many problems with a standard ...
by _peterb
Mon Dec 03, 2007 11:50 pm UTC
Forum: Computer Science
Topic: A* and Dijkstra's Complexity
Replies: 2
Views: 3320

Re: A* and Dijkstra's Complexity

Dijkstra is a special case of A*.
by _peterb
Fri Nov 23, 2007 8:18 pm UTC
Forum: Religious Wars
Topic: The 1 true style
Replies: 198
Views: 140494

Re: The 1 true style

I cant stand single bracket lines. Eww.
by _peterb
Fri Nov 23, 2007 8:16 pm UTC
Forum: Religious Wars
Topic: Tabs vs Spaces
Replies: 209
Views: 119757

Tabs vs Spaces

IMHO tabs are more correct because the length of a tab is non defined.

Discuss.
by _peterb
Fri Nov 23, 2007 8:13 pm UTC
Forum: Coding
Topic: Learning SWING
Replies: 2
Views: 1440

Re: Learning SWING

Bookmark the visual index to swing components. You'll need it.
by _peterb
Fri Nov 23, 2007 8:11 pm UTC
Forum: Coding
Topic: java project question: method arguments
Replies: 5
Views: 1654

Re: java project question: method arguments

If you have a super interface with getHeading() then just use that, otherwise vcreate an interface: interface IAimable{ public double getHeading(); } Then let IShip and IBullet extend IAimable. Then its as simple as private double getAngleTo(IAimable objectOne, IObject objectTwo){ return objectOne.g...
by _peterb
Fri Nov 16, 2007 12:15 pm UTC
Forum: Computer Science
Topic: Minesweeper P=NP
Replies: 3
Views: 2852

Re: Minesweeper P=NP

Sorry bout not reading the rules, Just thought people might be interested - it's the first article I've read that clearly explains the P=NP problem without maths.
by _peterb
Fri Nov 16, 2007 2:00 am UTC
Forum: Computer Science
Topic: Minesweeper P=NP
Replies: 3
Views: 2852

Minesweeper P=NP


Go to advanced search