Giter Site home page Giter Site logo

Comments (3)

RobinL avatar RobinL commented on September 26, 2024 1

I agree with both points (avoiding super(), and there maybe should be an intermediate class)

As @ThomasHepworth has just pointed out, there are potential additions to InputColumn such as to_date, regex extract, lower, that make it even more complex (and hence harder to use for end user).

from splink.

ADBond avatar ADBond commented on September 26, 2024

I think this makes sense - not sure I was too convinced at any point that we needed col_name + input_column in general, especially as it only really fits for one-column levels.

As you say I think the fact is that users need to know (at least a little) about how InputColumn works anyway to form the SQL string, so why not just get them to use this.

There is also maybe something conceptually nice about not having to keep any data in the base class - each subclass ca just define what it needs, and not have to worry about passing things to super()__init__().

from splink.

ADBond avatar ADBond commented on September 26, 2024

However maybe there is an argument that we should have people use an intermediate class instead? InputColumn has a lot of stuff that goes with it (which is needed by the Linker), but which people writing comparison levels almost certainly shouldn't be directly messing around with - I worry that people might get a bit lost in all the methods when they basically only need name_l + name_r.

It would also mean we are more free to mess around with InputColumn without worrying so much about user-impact - in the same way that we are aiming to do with Comparison and ComparisonLevel

from splink.

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.