Proudly debugging the system since 1981

Tag: programmazione (Pagina 2 di 4)

B4J – Modern “VB6 like” development tool for cross platform desktop, server and IoT solutions

Non sò se quello che segue è più genio o follia. Ma qualcuno ha pensato che il basic non meritasse la fine che gli ha fatto fare Microsoft e ha ricostruito un ecosistema intero.

B4J is a 100% free development tool for desktop, server and IoT solutions. With B4J you can easily create desktop applications (UI), console programs (non-UI) and server solutions. The compiled apps can run on Windows, Mac, Linux and ARM boards (such as Raspberry Pi).

Sorgente: B4J – Modern “VB6 like” development tool for cross platform desktop, server and IoT solutions

ABMaterial is a modern framework combining a tuned Materialize CSS with the free programming tool Basic4Java (B4J).

It allows creating WebApps that not only look great thanks to Googles Material Design, but can be programmed in an Object-Oriented way with the powerful free tool from Anywhere Software without any knowledge of HTML, JavaScript or CSS!

Sorgente: alwaysbusycorner

Impara RxJs

Clear examples, explanations, and resources for RxJS.

Introduction

RxJS is one of the hottest libraries in web development today. Offering a powerful, functional approach for dealing with events and with integration points into a growing number of frameworks, libraries, and utilities, the case for learning Rx has never been more appealing. Couple this with the ability to utilize your knowledge across nearly any language, having a solid grasp on reactive programming and what it can offer seems like a no-brainer.

But…

Learning RxJS and reactive programming is hard […]

Impara RxJs

ReactiveX – Operators

The Operators of ReactiveXThis page first lists what could be considered the “core” operators in ReactiveX, and links to pages that have more in-depth information on how these operators work and how particular language-specific ReactiveX versions have implemented these operators.Next is a “decision tree” that may help you choose the operator that is most appropriate to your use case.

ReactiveX – Operators

Fold

Mi ci è voluta più di qualche imprecazione per arrivare a questa implementazione :

fun Shop.getSetOfProductsOrderedByEveryCustomer(): Set<Product> {
    return customers.fold(allOrderedProducts, {
        orderedByAll, customer -> 
orderedByAll.minus( orderedByAll.filter { !customer.orderedProducts.contains(it) }) })
}

Salvo poi scoprire nelle soluzioni che esisteva il magico intersect

fun Shop.getSetOfProductsOrderedByEveryCustomer(): Set<Product> {
    // Return the set of products ordered by every customer
    return customers.fold(allOrderedProducts, {
        orderedByAll, customer ->
        orderedByAll.intersect(customer.orderedProducts)
    })
}

L’esercizio era questo : https://github.com/Kotlin/kotlin-koans/blob/master/src/ii_collections/_22_Fold_.kt

Comunque Kotlin è bellissimo.

« Articoli meno recenti Articoli più recenti »

© 2025 b0sh.net

Tema di Anders NorenSu ↑