Giter Club home page Giter Club logo

darwinsys-api's Introduction

DarwinSys-API

badge license BSD2 green

This is a collection of Java classes that I’ve found useful, classes which implement some useful operations that one would normally have to re-implement many times over. In most cases "found useful" means used more than once, but not always. Some people would call it a "dumping ground", a charge I would not defend too strenuously.

Notes:

  • In late 2019, the 'testing' package graduated to its own project, darwinsys-testing, to aid in modularizing this. A general-purpose library probably has no business dragging in a run-time dependency on a testing library.

  • In 2017 the servlet and JSP packages graduated from darwinsys-api to darwinsys-ee; which you now may need!

See the Author’s Book Site and the O’Reilly Site for more information on the book which accompanies this source code.

The codebase has been together for years, and has somewhat grown like topsy, so Flopsy may be lopping off some of its leaves as time goes by. He will try to avoid breaking any of the projects that uses it; if he does so, please get in touch in the usual way(s). The following have been lopped off recently:

  • calendar.Person - every app needs its own specific set of fields here (there is a ghost of it in one of the Test classes)

  • model.MiniPerson and model.MiniRecipe - as for Person above

  • util.Debug - please use a real logging package

  • util.PhoneNumberUtil - overlapped with tel.DialWords, so merged into it.

Java 17 (JDK 1.17) is now the minimum to build and use this API. For older releases, either stay on checkout 1.5.x, or just upgrade your JDK.

Build

license BSD2 green badge

Testing

N.B. You MUST have a minimal $HOME/.db.properties to run the tests under Maven. This needs to be automated, but for now, there it is. Rather, here it is. Create the file, or, if you have the file, add these entries once. If using SQLRunner or any of the SQL Connection Utilities, you will have to add an actual description of your database to this file, with a name other than "test" afront each line.

# This totally fake .db.properties should be copied to your home directory.
# Values here are just for running the JUnit tests on the ConnectionUtils
test.DBDriver=com.darwinsys.sql.MockJDBCDriver
test.DBURL=jdbc:mock:it_is_a_mock_after_all
test.DBUser=testName
test.DBPassword=testPassword

TODO

CalendarEvent:

  • get tests working

  • finish two newCalendarEvent methods

JPMS-ify (i.e., modularize) everything. Good luck.

Cheers

Ian Darwin

darwinsys-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

darwinsys-api's Issues

Regex Need to be modified

CSVRE.java has issue

*""([^\"]+?)",?|([^,]+),?|," * reg-ex can not match occurrence where if any column of csv has no value.

Like ,,,,,"0",,"0","0",,,"12/13/2015 12:10:00 AM","2.94","12/13/2015 12:10:00 AM","13.69"

so it should be ""([^\"]?)",?|([^,]),?|,"

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.