Daily Shaarli

All links of one day in a single page.

November 4, 2023

CSS { In Real Life } | Code Gardening

Maintaining, improving code, fixing bugs and delivering minor features. Small step by small steps.

zerocal - A Serverless Calendar App in Rust Running on shuttle.rs | Matthias Endler

Nice: a web service that creates a calendar event from a URL

Down and to the Right: Firefox Got Faster for Real Users in 2023 - Mozilla Hacks - the Web developer blog
Why I Love Programming | Matthias Endler
  1. Automating stuff gives you superhero strengths
  2. Coding is fun (and we can forget the rest)
  3. Sharing is fun too
  4. Elegant, creative solutions
  5. Talk to a machine
  6. Standing on the shoulders of giants
Being a Professional Programmer | Matthias Endler

The difference between professional and hobby is accountability. In professional programming, you're expected to get the job done.

If a skill becomes obsolete, it's not a skill.

Professional programmers have to balance constraints: deadlines, budgets, and code quality for example.

At the end one of the most important fact is communication.

Ten Years of Vim | Matthias Endler

If I can give you one tip, don't learn Vim by memorizing commands. Instead, look at your current workflow and try to make it better, then see how Vim can make that easier.

Hecto, Chapter 3: Raw input and output – flenker.blog – thoughts on stuff, views on things

Just for the expression:

Russian: Killing two rabbits with one shot
German: Killing two flies with one swat
Francais: Faire d'une pierre deux coups

Skipping skip links ⚒ Nerd

To my surprise they didn’t use skip links when they were presented one. [...] They didn’t understand the purpose of these links.

He explained that when he clicks on a link, for instance to an interesting article about skip links, he expects the first thing he encounters to be the article itself.

Instead of a "Skip to content", a "Skip to navigation" could be better.

Of Boxes and Trees - Smart Pointers in Rust | Matthias Endler

The author takes the example of a tree structure.

TL;DR; Start with lifetimes, if it is not enough and you don't need a specific guarantee: Box, then go for Rc or Arc if needed.

Cursed Rust: Printing Things The Wrong Way | Matthias Endler

Various way to print "Hello World!" in rust

A Little Story About the `yes` Unix Command | Matthias Endler

How it is optimized to be the fastest possible.

lexi-sh/rs-natural: Natural Language Processing for Rust
Little Helpers | Matthias Endler

We take all of this for granted because the devices rarely fail, but it's really amazing when you think about it. It's only been a few decades since much of this was tedious, time-consuming, manual labor.

About automation:

That means we have more time to focus on the fun stuff, like playing with the cat.

Grading on a Curve: How Rust can Facilitate New Contributors while Decreasing Vulnerabilities

TL;DR security vulnerabilities introduced by new Rust contributors are largely less than C++ contributors. They use the amount of commits to measure it as experience. It confirms the claim of the

Namely, while it may still be true that Rust may feel like a more difficult language to learn, in at least some ways, new contributors benefit from its adoption, with their first contributions being less than 2% as likely to introduce vulnerabilities as C++, and first-time contributors appearing at a notably higher rate in the projects examined.

The results should not be used as is, as there are some effects:

  • does Rust increase the number of contributors or does Rust act as its own filter and
    reduce the rate of new contributors entirely
  • it is possible Rust developers are more experienced with programming in general. Note that the study focused on new contributors, not new maintainers.
  • at around 18,000 commits, a C++ developer will be less likely to introduce a vulnerability than an equivalently experienced Rust developer.
  • Finally, there is some limitation to these results in that they
    all come from Oxidation projects.
Why Type Systems Matter | Matthias Endler

Advantages of types: they are here to help, improve readability, and provide context

UI Tips for Landing Pages & Apps by Jim Raptis
What Happened To Programming In The 2010s? | Matthias Endler