Recess Developer Forums: Method names - Recess Developer Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Method names shouldn't those be verbs?

#1 User is offline   Daniel Icon

  • Group: Members
  • Posts: 11
  • Joined: 08-March 10

Posted 08 March 2010 - 08:22 AM

Disclaimer: I'm currently building my first Recess site, so i though why not provide feedback along the way.

Layout::input() seems like a bad choice for the method's name. Shouldn't methods use verbs in general (best practices)? Like Part::draw does for example? It confused me a little at first. I thought: "input, mmhmm, and where has that been defined? Oh, it turns out, right here in the same place!".

In chapter 10 of the Recess book it also says: "...the master layout specifies its inputs." So there's your verb: 'specify' or 'def' (short for define) or 'summon' (i like that one a lot :D ) or something else. :)

I know, changes like that are hard to make because of all the required refactoring. But since you're still at v0.2 i thought why not give it a shot.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users