Giter Site home page Giter Site logo

Comments (7)

kytrinyx avatar kytrinyx commented on July 24, 2024

I've started playing around with aruba for making acceptance tests that make no choices about the design/classes/methods. I don't really want to introduce a new dependency, but we could definitely write fewer tests and not specify the steps along the way.

from ruby.

markijbema avatar markijbema commented on July 24, 2024

I think it's mostly the tests should require more functionality each time, but through the one tested final method. But by having a trivial first example, and keep on adding bordercases, this can be done most of the time. I don't think the testing framework itself matters too much.

from ruby.

kotp avatar kotp commented on July 24, 2024

Related information:

Listed here for my convenience.

from ruby.

kotp avatar kotp commented on July 24, 2024

@markijbema and @kytrinyx hopefully this is what you had in mind.

from ruby.

kotp avatar kotp commented on July 24, 2024

BTW: in the spirit of "Look to exercism for awesome code" I took the following measurements:

Flogging your code!
    44.7: flog total
     5.6: flog/method average

    11.9: Series#separate                  example.rb:30
     7.1: Series#largest_product           example.rb:9
     6.7: Series#collection_of_digits      example.rb:36
     6.4: Series#analyzer                  example.rb:17
Your code reeks this much!
example.rb -- 2 warnings:
  [19]:Series#analyzer contains iterators nested 2 deep (NestedIterators)
  [26]:Series#reduce_to_product doesn't depend on instance state (UtilityFunction)

from ruby.

kotp avatar kotp commented on July 24, 2024
   42.6: flog total                                     
    4.3: flog/method average                            

    6.7: Series#collection_of_digits      example.rb:45 
    6.5: Series#analyzer                  example.rb:22 
    6.4: Series#validate_length           example.rb:17 
    6.1: Series#separate                  example.rb:39 

from ruby.

kytrinyx avatar kytrinyx commented on July 24, 2024

That's a much nicer result.

from ruby.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.