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

How do you call your functions?

Name: Anonymous 2005-12-07 16:31

A) poststupidshit
B) post_stupid_shit
C) PostStupidShit
D) postStupidShit
E) pss lol
etc

I call them like PostStupidShit or XXX_PostStupidShit where XXX is a module's short name.

Name: Anonymous 2005-12-10 18:13

>>15
I agree.  Java methods are always camel case, C# methods are always Pascal case, etc..  Even when writing on your own there is still a good chance you'll be using libraries and frameworks and they will all be using the proper casing.  So you'd end up mixing within the same code otherwise.

One neat thing I've encountered in naming, though, is that you can have ? and ! in Ruby method names.  ? is usually used when returning a boolean while ! is used when modifying an object.


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