RSSAmplifier

Blog

All Dressed Programming

All Dressed Programming

all-dressed-programming.comRSS feed ↗10 posts

Latest posts

Nushell and DuckDB

Nushell 1 is an amazing shell that brings structure to terminal. Nevertheless, sometime it would be usefull to have the raw power of SQL directly into the terminal. To acheive this, the below scripts allows use duckdb 2 as query engine on nushell tables. # Query Nushell data using DuckDB SQL # # Parameters: # query: string - A DuckDB SQL query that operates on the 'data' table # # Input: Any…

Java Streams

Java streams have been around since Java 8 1 . Java streams have been extensively covered by tutorials, and documentations 2 3 4 and are heavily used in the wild 5 . This blog post exposes why java streams are so important for the java ecosystem. The main point developed is that, compared to imperative for and if , Java streams produce “better” code at very little cost. Streams…

L'enseignement est difficile

J’ai eu la chance d’enseigner 1 la programmation lors de la session d’automne 2024 au cégep Ahuntsic . L’expérience a été extraordinaire et je souhaite continuer. Comme souvent dans la vie, j’ai été surpris à bien des égards et j’aimerais partager mon expérience. Mon curriculum vitae D’abord, un peu de contexte à propos de moi. Bien que ça fait à peu près…

Using Java Records In Real Codebase

In recent years, Java has introduced an impressive number of features. The development of Java has historically been relatively slow; it took about 2.5 years to go from Java 7 to Java 8, then 3.5 years to reach Java 9. But since Java 11, there has been a new Java release every 6 months, and these days LTS 1 versions are released every two years. Some features attract a lot of eyeballs. One feature…

Personal Introduction To C#

Background I have never learned C# for two main reasons. First, as C# is a direct competitor to java , I have always favoured to use a technology I already master over a new technology. Second, I am a member of the Microsoft Haters Social Club; for almost theological reasons, I avoid anything that is remotly close to the MS world. Consequently, C# was label “I know it exists” by my…

Finally a Solid LaTeX Alternative: Typst

Introduction In recent years, we have seen several game-changing software such as duckdb , web assembly and unison just to name a few. To this list, we can now add typst . Typst is a modern, markdown-inspired, typesetting system that aims to be as powerful as LaTeX. Typst takes as input source code to output a pdf. This blog does not pretend to be a tutorial, but instead tries to shed some light…

Composition of Nix Flakes

Nix flakes allow to include system dependencies from software that are not published on the nix packages repository but that are themselves flakes. This post will explain how to achieve this. Context We would like to create a document using the new markup language named typst . Typst presents itself as a markdown like language that produces pdf; moreover, typst promise to be as powerful as latex .

Building a Yarn Project With Nix Flake

Nix is the weirdest software I have worked with. After about a year of playing with it, I am still unsure if I should continue with my experimentations. Nonetheless, if you are interested to build a yarn project with nix, I will explain my solution. To improve the readability of this post, there is an example project ( yarn-nix-example ) that demonstrates the idea. yarn-nix-example is a basic…

Create CLIs For 2023 Using Deno

Introduction We are in 2023 and my world still evolves around CLIs 1 . I enjoy looking at my terminal and piping commands together. Knowing how to do stuff with CLIs is empowering and gives the impression of really understanding how things are built under the hood. At work, I like to create a CLI where I put all my utilities bundled in a single executable. Usually, the CLI starts as a bunch of…

Returning Lists Of Items In JSON APIs

It happens often that we need to implement an endpoint that returns a list of items with a “canonical” id. A typical example is a /users endpoint that returns a list of users. In this post, I will advocate for returning a list of objects each of which contains an id key and not a single object where id s are associated with their canonical values. // Good [ { id : 1 , name : 'Emelia' ,…