DISQUS

Oracle AppsLab: Mix Rake Stats

  • Raimonds · 1 year ago
    Rails mantra is "fat models and skinny controllers" :) In your case controllers seem to be more fat than models. Why is it so?
  • Rich Manalang · 1 year ago
    We're familiar with the credo. Don't let the numbers fool you. Our controllers are actually pretty skinny (and our models are pretty fat). We just have lots of controller actions. And... to by honest, there's quite a bit of refactoring to be done.

    If we ever open source the code, you'll see.
  • bex · 1 year ago
    That rule might not apply for JRuby... Or should I say, "all benchmarks lie"?

    In JRuby, one line in the 'model' might represent an invocation of one hundred lines of Java.

    Unless rake stats are smart enough to follow invoked Java code, count lines, and add that to the report... in which case, I'm impressed ;-)
  • Jake · 1 year ago
    If you want the Mix code to be opened, vote for this idea:
    https://mix.oracle.com/ideas/open-source-mix-code
  • Rich Manalang · 1 year ago
    bex, rake stats just counts the pure ruby code, irregardless of what it's running under (MRI or JRuby). It's a count of how much code we actually wrote.
  • Artem Vasiliev · 1 year ago
    Thank you, this was interesting!
    I thought the Mix is smaller.. and impressed by the code/test ratio )