Giter Site home page Giter Site logo

myw / sehrvy Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 988 KB

Tutorial Perl project to familiarize ourselves with servers and databases in Perl, and visualization in JavaScript. Create a series of visualizations of electronic health record software usage, based on data from data.gov.

Home Page: http://explore.data.gov/d/8pfj-qf8a

Perl 100.00%

sehrvy's People

Contributors

ezimanyi avatar myw avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

sehrvy's Issues

Pick a testing framework

It seems like, for our simple purposes, Test::Simple and Test::More will do the trick. I propose making t/Foo.t files for every module we need, and maybe the scripts, too. They can then be run with the prove command from the directory with the module files. An individual .t file can use whichever testing module it needs to.

Although this structure is not explicitly enforced by the testing framework, we should try to make tests not too interdependent. And we should comment what every test is doing at the start of the testing block, for example:

# Check equality of exponentiation
my $foo = 3*3;
my $bar = 3**2;
ok($foo == $bar, 'exponentiation works');

Thoughts?

Modelines/Local variables and consistent spacing throughout files

Files should be indented with spaces, with a tab-stop size of 2 spaces. All Perl, JavaScript, and HTML files should have appropriate vi-style and emacs-style modelines/local variable lines, commented-out, at the very end

The vi-style line is: vi:sw=2 ts=2 sts=2 et:. The emacs-style line is (should be?) : -*- indent-tabs-mode: nil; tab-width: 4; indent-line-function 'insert-tab; -*-

API for queries through the `/query` URI

Queries will be of the form: query/query category/query type?q=query string . For example, to query all products from vendor Foo, which has hug foo, the URI would be query/vendor/products?q=foo. Or, to see the prevalence of that vendor by state, the query would be query/state/vendor?q=foo.

The API will return JSON, formatted to work with Google Chart Tables API.

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.