Live data from Hacker News

Show HN: A tool that transforms your whole list with just one example

transformy.io

51–60 of 151 posts

Re: Show HN: A tool that transforms your whole list with just one example

#53

On a similar note: anyone know of a tool for generating SQL queries by example?

Both SQL queries and Regex expressions by example would be amazing.

Regex by example seems to be what this tool is doing. Maybe OP/author could add an option to view the constructed expressions?

Re: Show HN: A tool that transforms your whole list with just one example

#57
post #43

One can achieve the same in sublime text using the multiple cursors and edit feature. This is great for non tech people. For those of you who are wondering what sublime text can do, do give a visit to a sublime text video series on tutsplus, its awesome and teaches you the power of sublime text

This same example done in Sublime: https://www.youtube.com/watch?v=90uUdHyAACY

Re: Show HN: A tool that transforms your whole list with just one example

#58
post #30
post #26

Earlier quoted context omitted.

My brain doesn't understand what you're trying to do either. Why is Roberto/Carlos on every line?

I formatted their examples to appear like some real data I have that appears like this, obviously not names but descriptions of some projects. I was curious how this would handle it. In any case, get rid of the "/" and its closer to real. Some people have more than two names in their full name. And on a set a little larger you could very well have something close to my second example.

Currently it matches word by word, so for example if someone has a family name in two parts like "Van Buyten", it wont work. I think it's the same problem in your example: that the first "column" contains multiple words in some cases? We'll be fixing this in a future release!

Re: Show HN: A tool that transforms your whole list with just one example

#59
post #54

This area of research is called "program sketching", which creates programs by example. http://www.eecs.berkeley.edu/Pubs/TechRpts/2008/EECS-2008-17... edit: see below

It's more accurate to call it "programming by example", which is a much older term, in common use, and actually means "creating programs by example".

http://en.wikipedia.org/wiki/Programming_by_example

Sketching means to provide a partial specification, of which details are filled in by the system. But in this case, the user is providing a full description of a single concrete example. These are different concepts.

Re: Show HN: A tool that transforms your whole list with just one example

#60
For some reason it won't handle certain characters...

    Input:
    Feature: 37, threshold: 4386, +
    Feature: 11, threshold: 1, +
    Feature: 10, threshold: 13, +
    Feature: 0, threshold: 34, +
    Feature: 39, threshold: 44, +

    Example:
    x[37] >= 4386

    Output:
    x[37]  4386
    x[11]  1
    x[10]  13
    x[0]  34
    x[39]  44
Post reply on HN