GithubHelp home page GithubHelp logo

flitbit / fbwireup Goto Github PK

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

FlitBit Wireup - tools for declaring and coordinating boostrap activities in dotNet applications.

License: MIT License

C# 76.01% Puppet 0.72% Shell 9.60% PowerShell 13.67%

fbwireup's Introduction

fbwireup - FlitBit Wireup

Tools for declaring and coordinating bootstrap activities in dotNet applications.

Summary

FlitBit Wireup formalizes bootstrap processes by providing the ability to declare dependencies among assemblies and coordinate the tasks that bring an assembly to a ready-state.

It deals with the dependency among libraries, not dependency injection or inversion of control. Those concerns are covered by many libraries in the open-source community, including FlitBit IoC which scaffolds on top of this library.

Visit the Core library's repository to learn more about FlitBit Frameworks.

Background

It may appear that we use the term wireup and bootstrap interchangeably, but it is not so. Bootstrap refers to the period between when the program is launched and when it becomes ready. We use the term wireup to refer to the more abstract phase that repeats throughout the life of a modern application as different modules are loaded just-in-time and must be made ready.

Too often, applications either devise custom bootstrap processes and end up with hard-coded dependency logic; yet others rely on a mix of cusotm logic parts and inversion of control to achieve a ready-state. In the latter case, relying on an IoC container is a good move, but this library's purpose is to introduce a reusable convention for the other part; logic and tasks required to bring a module to its initial ready-state.

As an illustration of the coupling FlitBit Wireup intends to modularize, take most ASP.net applications. They tend to centralize too much logic in the HttpApplication's Application_Start method, essentially creating a know-it-all bootstrapper. We have learned through much tribulation to prefer a modular, decentralized approach for our applications.

The approach we take leads to modularity not only in packaging capability, but also in configuring it.

  1. Each module should declare its own dependencies.
  • In this way, a coordinator can ensure that all dependencies are met before each module is wired into an application.
  1. If a module has logic that must be performed in order to bring itself to a ready-state, it must declare one or more wireup tasks that perform the required logic.
  • In this way, when the coordinator wires a module into an application, it can ensure that the tasks are performed in the proper, declared order, and thereby reach certainty that the module has reached a ready-state without ever having to know the module's purpose.

In contrast to the know-it-all model, modules can be easily wired into a running application on demand, reducing the start-up time and eliminating the wireup logic for areas of the application that are unused.

\\ TODO: Copious examples

fbwireup's People

Contributors

elimumford avatar

Watchers

James Cloos avatar  avatar

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.