Page 5 of 127 (2521 total posts)

September 2024

14-09-2024
B-trees and database indexes — PlanetScale

B-trees and database indexes — PlanetScale

Source: planetscale.com

B-trees are used by many modern DBMSs. Learn how they work, how databases use them, and how your choice of primary key can affect index performance.

Notes:

Linked is a neat article explaining a lot about b-trees. Especially notable are the excellent visualization and animations which gave me a new way to understand these incredibly important data structures.

Tags: database performance indexes btree database design data-visualization data-structure
12-09-2024
1 dataset, 100 matplotlib visualizations – Curbal

1 dataset, 100 matplotlib visualizations – Curbal

Source: curbal.com

The 1 dataset, 100 matplotlib visualizations, displays 100charts made with matplotlib. Just click on a thumbnail to get to the full code.

Notes:

If you've used Matplotlib, you may have seen their galleries and various other galleries. Attached is what looks to me like a MEGA gallery by someone who has really good aesthetic sense. (Joke: "Almost as good as ChatGPT")

Tags: python matplotlib chart programming data-visualization data-science desigh

August 2024

31-08-2024
The Thread API : Concurrent, colorless Ruby

The Thread API : Concurrent, colorless Ruby

Source: jpcamara.com

👋🏼 This is part of series on concurrency, parallelism and asynchronous programming in Ruby. It’s a deep dive, so it’s divided into 12 main parts:
Your Ruby programs are always multi-threaded: Part 1 Your Ruby programs are always multi-threaded: Part 2 Consistent, request-local state Ruby methods are colorless The Thread API: Concurrent, colorless Ruby Interrupting Threads: Concurrent, colorless Ruby Thread and its MaNy friends: Concurrent, colorless Ruby Fibers: Concurrent, colorless Ruby Processes, Ractors and alternative runtimes: Parallel Ruby Scaling concurrency: Streaming Ruby Abstracted, concurrent Ruby Closing thoughts, kicking the tires and tangents How I dive into CRuby concurrency You’re reading “The Thread API: Concurrent, colorless Ruby”.

Notes:

Linked is a really excellent, comprehensive tour of the Thread class and feature of Ruby. If you're a ruby person, then this is as good as anything you will find.

Tags: ruby concurrency threads performance software-engineering
30-08-2024
Dokku: my favorite personal serverless platform – Hamel’s Blog

Dokku: my favorite personal serverless platform – Hamel’s Blog

Source: hamel.dev

Like Heroku, but you own it.

Notes:

Linked is an article about #dokku which is software that lets you run the equivalent (more or less) of #heroku on your own server, including a server instance from a service like #digitalocean. Very nice. Good offering to remember!dokku

Tags: how-to heroku cloud deploy dokku
25-08-2024
Visual Data Structures Cheat-Sheet

Visual Data Structures Cheat-Sheet

Source: photonlines.substack.com

A visual overview of some of the key data-structures used in the real world.

Notes:

Linked is a very comprehensive collection of brief explanations of numerous computer science-y data structures. I put it that way because when I think of a data structure and designing a data structure it is to represent some domain data in a way that is most convenient for the algorithm or requirements.

The linked article gets into advanced data structures seem mostly about efficiently storing, accessing, searching and updating very large collections of information. I say very large because the structures and associated algorithms are nuanced and ingenious in order to achieve efficiency when subjected to very large collections. When you need one, you really need it and it can save your application. But you won’t need most of them every day. IMHO of course.

Tags: data-structure performance big-o design data scale
21-08-2024
GitHub - sinaatalay/rendercv: A LaTeX CV/Resume Framework

GitHub - sinaatalay/rendercv: A LaTeX CV/Resume Framework

Source: github.com

A LaTeX CV/Resume Framework. Contribute to sinaatalay/rendercv development by creating an account on GitHub.

Notes:

Kinda cool. Linked is a simple tool which formats a cv in one of several styles. But the trick is that the input is a yaml file which contains all the content as a structured text file that you can edit with vscode and version track with GitHub. Nice!

Tags: cv resume beautiful formatting json automation
19-08-2024
Leaving Neovim for Zed

Leaving Neovim for Zed

Source: stevedylan.dev

A journey through text editors and how I landed on Zed after years of Neovim

Notes:

Linked is an article about Zed, a new programmers editor, trying to take the place of vscode. I love articles like this because they follow the kind of crazed thought process that I often have: is there something better than what I am using now?

Tags: zed vscode programming programmers-editor vim comparison
17-08-2024
Sonic Pi: Ruby as a Composition Tool

Sonic Pi: Ruby as a Composition Tool

Source: bhmt.dev

Sonic Pi: Ruby as a Composition Tool URL: https://bhmt.dev/blog/sonic_pi/ Type: article Domain: bhmt.dev Notes: Linked is a neat article about sonic pi, a less known music synthesizer software. It is so cool and interesting even if you’re not a musician or composer. It builds a world of musical abstractions allowing you to make very interesting music. What is news from this article is that the whole thing is built on top of Ruby, as a DSL!

Notes:

Linked is a neat article about sonic pi, a less known music synthesizer software. It is so cool and interesting even if you’re not a musician or composer. It builds a world of musical abstractions allowing you to make very interesting music. What is news from this article is that the whole thing is built on top of Ruby, as a DSL!

Tags: Ruby sonic_pi music composing synthesizer
17-08-2024

What About Static Typing in Ruby? – Noel Rappin Writes Here

Source: noelrappin.com

I just write here

Notes:

Linked is a subtle and really interesting article about static vs dynamic typing. I’ve been a fan of python type hints and annoyed with how Ruby, so far has approached the political pressure to have an answer. For the first time for me, this article articulates how type hints may be great for sample code or fairly simple real code, but can become a burden for “real” code. I’ve experienced this myself but did not realize what was going on. He also builds an interesting distinction between type checking and data validation. Maybe Ruby needs an equivalent to pedantic?

Tags: ruby type-checking type-hints duck-typing
11-08-2024
WireViz: Easily document cables and wiring harnesses.

WireViz: Easily document cables and wiring harnesses.

Source: github.com

Easily document cables and wiring harnesses. Contribute to wireviz/WireViz development by creating an account on GitHub.

Notes:

For you hardware hackers and builders out there.. linked is a very cool tool to docutment wiring in your robots and other devices as well as generate pretty pictures and even a BOM!

Tags: hardware graphviz diy maker diagram visualization
07-08-2024
An Introduction to Nix for Ruby Developers

An Introduction to Nix for Ruby Developers

Source: blog.appsignal.com

Learn how to build and share reproducible Rails development environments.

Notes:

Wow, I've heard about Nix from time to time. I still don't understand it. But the linked article is the first fairly comprehensive one with a detailed tutorial. Of course I am still too scared to try typing in the commands. They seem to claim that it will be totally isolated but still. Mainly I am not sure what benefit I will get in trying it. You can see though, that someone's have put a ton of effort into getting it to this point.

Tags: nix docker howto explainer
03-08-2024
LearnDjango | LearnDjango.com

LearnDjango | LearnDjango.com

Source: learndjango.com

Learn web development with Python and the Django Web Framework. Tutorials on Django REST Framework, Docker, React, and Vue.

Notes:

Linked is a good review of Python Flask and Django. I came from a Ruby world, that’s like comparing Sinatra to Rails. Very different and very related.

Tags: python django learning flask compare
03-08-2024
Python Protocols: Leveraging Structural Subtyping – Real Python

Python Protocols: Leveraging Structural Subtyping – Real Python

Source: realpython.com

In this tutorial, you'll learn about Python's protocols and how they can help you get the most out of using Python's type hint system and static type checkers.

Notes:

I didn’t understand Protocols in Python. Linked is an excellent tutorial that explains not just Protocols, but also contrasts them with duck typing, abstract base classes, talks about use cases and non-use cases. It’s an advanced tutorial.

Tags: python abc duck-typing protocols type-checking

July 2024

31-07-2024
Cargo Cult Science annotated/explained version.

Cargo Cult Science annotated/explained version.

Source: fermatslibrary.com

Richard Feynman

Notes:

I think Richard Feynman coined the term “cargo cult” in the 70’s! More important is his description of the scientific process, and his high standard and description of integrity in doing science. Computer Scientists, does your research achieve Feynman’s standard?

Tags: feynman cargo-cult history science scientific-method
30-07-2024
A few words on Ruby's type annotations state

A few words on Ruby's type annotations state

Source: zverok.substack.com

…that were written in a military training camp and accidentally grew to 5k words

Notes:

Linked is a deep article about type hints in Ruby. When I say deep, I mean it! Requires an in depth understanding to appreciate or follow. And it illustrates how incredibly tough it is to add a major new low level feature to Ruby or any other mature language.

Tags: ruby types hints language-design
29-07-2024
Understanding Hash Value Omission in Ruby

Understanding Hash Value Omission in Ruby

Source: allaboutcoding.ghinda.com

Learn about hash value omission in Ruby, their benefits, examples, and implementation guidelines for more concise code

Notes:

Linked is an article about a feature in Ruby that I didn’t know about. I still think Ruby is superior to python in many ways. Unfortunately circumstances and “the world” and “time” has gotten me leaning more and more into python. Still when I next need to create a web based app, I can’t see using Django over rails.

Tags: ruby hash features explainer
29-07-2024
Annotated area charts with plotnine | Nicola Rennie

Annotated area charts with plotnine | Nicola Rennie

Source: nrennie.rbind.io

The plotnine visualisation library brings the Grammar of Graphics to Python. This blog post walks through the process of creating a customised, annotated area chart of coal production data.

Notes:

Linked is an article about plotline, a python graphing package that I was not familiar with. Along the way the example shows how to take your raw data and extract from it the various series you will need building the graph. Excellent examples. But I wonder what gap this new package was filling among the multiple existing, popular and excellent graphing packages.

Tags: python plotting graphing matplotlib seaborn package
29-07-2024
Mastering Ruby Code Navigation: Major Ruby LSP Enhancements in the First Half of 2024

Mastering Ruby Code Navigation: Major Ruby LSP Enhancements in the First Half of 2024

Source: railsatscale.com

In the first half of 2024, Ruby LSP has seen significant enhancements, particularly in the area of code navigation, thanks to the advancement of its indexer. In this post, we’ll dive into the major code navigation enhancements that have been made to Ruby LSP. We’ll also touch on some experimental features that are on the horizon.

Notes:

Linked is a comprehensive explanation of the Ruby LSP. RUBY,I had to look up what the P stood for. Actually the correct usage is either “LSP server” because LSP stands for “Language server protocol”… or just language server. Maybe the name LSP is morphing from a pure acronym to just the name of the feature, detached from the initials. Yes programmers are so pedantic, don’t you agree?

Tags: ruby coding tool lsp vscode