Giter Club home page Giter Club logo

hardwire's Introduction

The Encyclopedia of Me ๐Ÿ‘‹

Iโ€™m a developer with a colourful background in arts and technology, and a lot of experience to boot. This gives me some unique input on both sides of the creative/technical equation.

At my core, I am an engineering obsessive and I love learning how things work.

I love writing little dumb tools and exploring programming meta through new languages.

Facts

[
    "A camel can shut its nostrils in a sand storm.",
    "Flamingos produce milk.",
    "Human thigh bones are stronger than concrete.",
    "A Polar Bear can eat up to 86 penguins in one sitting."
]

hardwire's People

Contributors

rwnx avatar

Stargazers

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

Watchers

 avatar  avatar

Forkers

littocats

hardwire's Issues

Improve Docs

Now that we're publishing docs over at https://rwnx.github.io/hardwire/ I think we should reformat and document with this in mind.

Suggestions/Improvements:

  • The top level modules don't make it clear what the Root namespace is for (it's for documentation!)
  • Some of the methods don't give clear examples or expected usage
  • Some of the internal workings should be hidden (e.g. REGISTRATIONS should probably be considered private)

Improve Error feedback

Currently the feedback for compile errors is limited to looking at a missing/undefined Type(Tag) or not understanding why something isn't allowed to return a type.

Ideally, I want hardwire to tell you exactly what's wrong as early as possible

Add Complex Tag Logic

Cataloging my thoughts here as a feature request.

Currently Tags are all required to resolve. They're not really that different from a long delimited string.
It would be really cool if we could have more complex Tag combinations, like optionals or OR logic

Ideally we can look at move advanced parsing, brackets, grouping, etc. (primary&red)|(secondary).

There two types I can see:

resolving a union/optional

Resolving X or Y from a container is probably the one that's more useful - I think that could be accomplished by defining a type that includes both signatures. This is probably only possible with macros:

class Tags::Dependency::THISORTHAT
  include Tags::Dependency::THIS
  include Tags::Dependency::THAT
end

# then resolve with the union tag
self.resolve Dependency, Tags::Dependency::THISORTHAT

# This should work in signatures:
# Dependency, "this"
# Dependency, "that"

Registering as optional types

This should be possible with type unions, since tags resolve to actual types.
e.g.

# registering to two different tags -----
register Dependency, "this|that"
# I'm not sure
# output to:

self.resolve(type: Dependency, tag1: Tags::Dependency::THIS | Tags::Dependency::THAT)
end

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.