I'm doing a code challenge in Crystal. As someone who with a Ruby background who went on to learn Rust, you might think that it's a natural fit. However, I'm finding it to fall in the uncanny valley between the two - not as flexible as Ruby and not as expressive a type system as Rust, and the two play off of each other when I'm trying to do type gymnastics to get this very Ruby-like language to behave like Ruby.
8091 author: drmorr@hachyderm.io
12 Jun 2024 22:09
tags: #cplusplus #csharp #golang #java #javascript #kotlin #perl #php #programming #python #rustlang #swift
tags: #cplusplus #csharp #golang #java #javascript #kotlin #perl #php #programming #python #rustlang #swift
I think the thing I find most frustrating about programming languages is that there is no standard way to refer to the length of an array.
Python, go: len(array)
Java, JavaScript: array.length
Rust: array.len()
C++: array.size()
C#: array.Length
PHP: count($array)
Perl: scalar(@array) (lmao)
Swift: array.count
Kotlin: array.size
Like, seriously? Can't we agree on just this one thing???
7596 author: orhun@fosstodon.org
26 Jul 2024 12:04
tags: #bundle #cli #commandline #crawl #html #page #rustlang #save #web
tags: #bundle #cli #commandline #crawl #html #page #rustlang #save #web
A data hoarder’s dream come true: bundle any web page into a single HTML file. 📦✨
💾 monolith: CLI tool for saving complete web pages.
🦀 Written in Rust!
⭐ GitHub: https://github.com/Y2Z/monolith