Displaying 1 to 9 from 9 results

phobos - The standard library of the D programming language

  •    D

Phobos is the standard library that comes with the D Programming Language Compiler. Phobos is packaged together with the compiler. You should download the whole precompiled package.

light-traits - Light traits in javascript with some syntax sugar

  •    Javascript

Traits are a flexible language feature to factor out and recombine reusable pieces of code. They are a more robust alternative to multiple inheritance or mixins. They are more robust because name clashes must be resolved explicitly by composers, and because trait composition is order-independent (hence more declarative). To put it simply: if you combine two traits that define a method with the same name, your program will fail. Traits won't automatically give precedence to either one. This is a big statement and maybe not entirely correct but, few API differences makes working with traits less verbose and there for more pleasant. See examples section to find a difference.

pyface - pyface: traits-capable windowing framework

  •    Python

The pyface project contains a toolkit-independent GUI abstraction layer, which is used to support the "visualization" features of the Traits package. Thus, you can write code in terms of the Traits API (views, items, editors, etc.), and let pyface and your selected toolkit and back-end take care of the details of displaying them.

barman - Barman is a small library to brew JavaScript objects

  •    Javascript

Barman is a small library to brew JavaScript objects. It simplifies the definition of objects using single-inheritance and traits like composition.




cop - Context-oriented programming with traits in Javascript

  •    Javascript

Context-oriented programming with traits in Javascript. Cop.js gives better maintainability and evolution to web applications by providing contexts and traits. Cop.js is based on the context-oriented programming paradigm where objects are adapted at runtime with different behavior depending on active contexts.

protocols - Multi-type protocol-based polymorphism

  •    Javascript

@zkat/protocols is a JavaScript library is a library for making groups of methods, called "protocols", that work together to provide some abstract functionality that other things can then rely on. If you're familiar with the concept of "duck typing", then it might make sense to think of protocols as things that explicitly define what methods you need in order to "clearly be a duck". On top of providing a nice, clear interface for defining these protocols, this module clear, useful errors when implementations are missing something or doing something wrong.

protoduck - Duck typing for the most serious of ducks.

  •    Javascript

protoduck is a JavaScript library is a library for making groups of methods, called "protocols". If you're familiar with the concept of "duck typing", then it might make sense to think of protocols as things that explicitly define what methods you need in order to "clearly be a duck".

SimpleTraits.jl - Simple Traits for Julia

  •    Julia

This package provides a macro-based implementation of traits, using Tim Holy's trait trick. The main idea behind traits is to group types outside the type-hierarchy and to make dispatch work with that grouping. The difference to Union-types is that types can be added to a trait after the creation of the trait, whereas Union types are fixed after creation. The cool thing about Tim's trick is that there is no performance impact compared to using ordinary dispatch. For a bit of background and a quick introduction to traits watch my 10min JuliaCon 2015 talk. One good example of the use of traits is the abstract array interface in Julia-Base. An abstract array either belongs to the Base.IndexLinear or Base.IndexCartesian trait, depending on how its internal indexing works. The advantage to use a trait there is that one is free to create a type hierarchy independent of this particular "trait" of the array(s).


useless - Use Less. Do More. JavaScript on steroids.

  •    Javascript

In near future, it will be split into several loosely coupled, clean and maintainable NPM modules, for everyone's convenience. Stay tuned. You can override config with command line args, e.g. node example webpack.offline=false, using server/config.js trait.