Code Monkey home page Code Monkey logo

androidsharedpreferencedelegate's Introduction

Hi there ๐Ÿ‘‹

Anurag's GitHub stats

Top Langs

๐Ÿ“ฑ I'm an Android software engineer @square

๐Ÿค– My side projects are focused on automation and containerization (Home Assistant, Docker, etc)

๐ŸŒฑ Iโ€™m currently learning Swift and Python

androidsharedpreferencedelegate's People

Contributors

simonsickle avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

androidsharedpreferencedelegate's Issues

Improve the API so that verbose configuration is not needed unless desired

Right now a property must have configuration. Helpful extensions with reasonable defaults should be considered.

Right now, I'm thinking the best option is to make a pattern such as

var someTrackableStat by preferences.stringDelegate()

In this extension function, a key and default value can be set.

Add with Travis CI

Every push to mainline and PR should trigger a build with GitHub actions to verify compile.

Connected tests should run as well as coverage reporting.

reevaluate the idea of using the property name for a preference key

There are major drawbacks to using a preference key derived from a variable name.

For example, you can not rename your variable without the data being stored getting "lost". You could easily set the default key to the old variable name.

One option I've thought about is making the key required as part of the extension method setting it up.

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.