You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Package should be simplified to give a module back that is a singleton or a factory. This will make the package much smaller, but provide the same functionality as the original carbon that I planned.
Reasons for change:
Since all modules where stored in the exports object (node global or window global), it doesn't make any storage difference and naming conventions can still contain '.', e.g. 'Util.Logger'. The injection process will appear the same to the developer.
Too hard to explain what service and factories are in this project and the difference between carbon and other libs/frameworks. Angular messed up the meaning of a factory in programming, at least as far as I'm concerned. Angular's factory returns the same singleton and is not a factory in my opinion, it's just a wrapper to do some pre-conditioning to the service about to be created. Also, Angular has providers, factories and services, which are all providers, but are also listed as services. To clarify, carbon's 'factory' modules are new instances each time, where the singletons are the exact same instance each time the developer uses/injects it.
Carbon file size was too large. Seeing that the system provides DI for testing and code maintainability, I was wondering why the minified version was nearly 2K. Trimming the fat from modules containing services and factories to returning just modules that are singletons or factories (carbon's version) shrunk the file size down to ~600 bytes. We are just the beginning tool that binds the rest of the code together, hence, then carbon name... that and Atom was taken by github.
The text was updated successfully, but these errors were encountered:
Package should be simplified to give a module back that is a singleton or a factory. This will make the package much smaller, but provide the same functionality as the original carbon that I planned.
Reasons for change:
The text was updated successfully, but these errors were encountered: