Posts

  • TalisORM

    An ORM for “ORMless” persistance of DDD-inspired domain models

    A good design starts with some limitations. You can start simple and keep building until you have a large ORM like Doctrine. Or you can choose not to support a mapping configuration, table inheritance, combined write/read models, navigable object graphs, lazy-loading, etc. That’s what I’m looking for with TalisOrm. The rules are:

    • You model a persistable domain object as an Aggregate: one (root) Entity, and optionally some Child entities.
    • The child entities themselves have no children.
    • You use the ORM for your write model only. That is, you don’t need to fetch hundreds of these aggregates to show them to the user.
    • Your aggregate internally records domain events, which will automatically be released and dispatched after saving changes to the aggregate.

    Furthermore:

    • You’re going to write your own mapping code, which converts your values or Value objects to and from column values.

    I explain more about the motivation for doing this in “ORMless; a Memento-like pattern for object persistence”.

    You can find some examples of how to use this library in test/TalisOrm/AggregateRepositoryTest/.

    Tags: #php

  • use-react-router

    React Hook for pub-sub behavior using React Router.

    useReactRouter is a React Hook that provides pub-sub behavior for react-router. Unlike the withRouter Higher-Order Component, useReactRouter will re-render your component when the location changes!

    useReactRouter() returns an object that contains the history, location, and match properties that would be passed as props by the HOC.

    A tutorial covering the design and development of this package can be found on Medium: How to Convert withRouter to a React Hook.

    Tags: #typescript • npm • npmjs

  • laravel-api-to-postman

    Generate a Postman collection automatically from your Laravel API

    This package allows you to automatically generate a Postman collection based on your API routes. It also provides basic configuration and support for bearer auth tokens and basic auth for routes behind an auth middleware.

    For POST and PUT requests that utilizes a FormRequest, you can optionally scaffold the request, and publish rules in raw or human readable format.

    Tags: #php • postman • collection

  • react-native-web-image

    An image component for react-native with persistent disk and memory caching.

    An image component for react-native with persistent disk and memory caching.

    It is mostly a wrapper around native libraries which actually do the hard work. On Android it uses Glide, on iOS – SDWebImage.

    :warning: The package is currently in alpha stage of development. If you find a bug or missing functionality, please feel free to report, but better fix or implement what you want and send a pull request to GitHub repository.

    Tags: #java

  • quickfixj

    QuickFIX/J is a full featured messaging engine for the FIX protocol (FIX versions 4.0 - 5.0SP2/FIXT1.1). It is a 100% Java open source implementation of the popular C++ QuickFIX engine.

    The Financial Information eXchange (FIX) protocol is a messaging standard developed specifically for the real-time electronic exchange of securities transactions. FIX is a public-domain specification owned and maintained by FIX Protocol, Ltd (FPL).

    For more information see the project website at http://www.quickfixj.org.

    Tags: #java • quickfix • quickfixj

  • hookstate

    The simple but very powerful and incredibly fast state management for React that is based on hooks

    Hookstate is a modern alternative to Redux, Mobx, Recoil, etc. It is simple to learn, easy to use, extendable, very flexible and capable to address all state management needs of large scalable applications. It has got impressive performance and predictable behavior.

    Any questions? Just ask by raising a github ticket.

    Tags: #typescript • react • use-state

  • ISO-3166-Countries-with-Regional-Codes

    ISO 3166-1 country lists merged with their UN Geoscheme regional codes in ready-to-use JSON, XML, CSV data sets

    These lists are the result of merging data from two sources, the Wikipedia ISO 3166-1 article for alpha and numeric country codes, and the UN Statistics site for countries’ regional, and sub-regional codes. In addition to countries, it includes dependent territories.

    The International Organization for Standardization (ISO) site provides partial data (capitalised and sometimes stripped of non-latin ornamentation), but sells the complete data set as a Microsoft Access 2003 database. Other sites give you the numeric and character codes, but there appeared to be no sites that included the associated UN-maintained regional codes in their data sets. I scraped data from the above two websites that is all publicly available already to produce some ready-to-use complete data sets that will hopefully save someone some time who had similar needs.

    Tags: #ruby • region-codes • countries

  • react-native-aes-gcm-crypto

    AES-GCM encryption/decryption for React Native

    AES-GCM encryption/decryption for React Native

    Tags: #java • react-native • cryptography

  • coinmon

    đź’° The cryptocurrency price tool on CLI. đź–Ą

    • As coinmarketcap API is only free with API keys, we moved to use coincap API and disabled some features.

    Tags: #javascript • bitcoin • cryptocurrency

  • DeBERTa

    The implementation of DeBERTa

    This repository is the official implementation of DeBERTa: Decoding-enhanced BERT with Disentangled Attention and DeBERTa V3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing

    Tags: #python • bert • deeplearning

subscribe via RSS