Results 1 to 5 of 5
Thread: A question of aesthetics
- 06-03-2011, 11:15 PM #1
A question of aesthetics
In general conversation, like on these forums, when you write the name of a method that requires arguments without specifying the arguments, do you put parentheses after it? Because to me that looks like you're talking about a no-argument version of the method. On the other hand, leaving off the parenthesis obscures the fact that it's a method.
I write it both ways, inconsistently.Get in the habit of using standard Java naming conventions!
- 06-03-2011, 11:54 PM #2
I try to use () for generic kinds of words like method or update or print if they are methods and there might be confusion.
No consideration on what args they can take.
- 06-04-2011, 02:33 AM #3
I use an ellipsis e.g. paintComponent(...)
db
- 06-04-2011, 08:21 AM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,385
- Blog Entries
- 7
- Rep Power
- 17
- 06-04-2011, 08:25 AM #5
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,540
- Rep Power
- 11
Similar Threads
-
Question concerning question marks and colons
By jim01 in forum New To JavaReplies: 17Last Post: 01-14-2011, 12:05 AM -
Question mark colon operator question
By orchid in forum Advanced JavaReplies: 9Last Post: 12-19-2010, 08:49 AM -
Question about ++x and x++
By makeawish in forum New To JavaReplies: 2Last Post: 10-18-2010, 10:50 AM -
Question
By vittoire in forum New To JavaReplies: 3Last Post: 02-02-2010, 12:54 PM -
Need help on this question
By Deon in forum New To JavaReplies: 3Last Post: 01-27-2008, 03:58 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks