Programming Leftovers
-
[Repeat] Buttondown LLC ☛ A list of ternary operators
Other ternary operators are extremely rare, which is why conditional expressions got to monopolize the name "ternary". But I like how exceptional they are and want to compile some of them. A long long time ago I asked Twitter for other ternary operators; this is a compilation of some applicable responses plus my own research.
-
Sandor Dargo ☛ Use std::span instead of C-style arrays | Sandor Dargo's Blog
While reading the awesome book C++ Brain Teasers by Anders Schau Knatten, I realized it might be worth writing about spans.
std::span is a class template that was added to the standard library in C++20 and you’ll find it in the header. A span is a non-owning object that refers to a contiguous sequence of objects with the first sequence element at position zero.
-
Rlang ☛ New qeML Plotting Function
I’ve added a new function to qeML 1.2, qeMittalGraph, based on an idea by my student Aditya Mittal. Below is an example that I think is rather compelling.
The basic idea is quite simple (and not necessarily new, just something I had not seen below): Instead of comparing several curves directly, plot their growth from their initial baseline value. So if for example X is time, then all curves start from the common point X = 0, Y = 1. Viewing the curves in this manner may make comparison more insightful.
-
Rlang ☛ How to Use Dollar Sign ($) Operator in R: A Comprehensive Guide for Beginners
The dollar sign ($) operator is one of the most fundamental tools in R programming, serving as a key method for accessing and manipulating data within data frames and lists. Whether you’re just starting your R programming journey or looking to solidify your understanding, mastering the dollar sign operator is essential for efficient data manipulation.
-
Unified Page to List Requests
Recently we kicked off a new feature in OBS: a request index page. It is unified for all the different places: the same UI is now also available in Project details page and in Package details page. The Request Index feature is part of the beta program. We started the redesign of the request index in August 2024 introducing a new UI to list all the requests replacing the “Tasks” place in the menu.
-
Rlang ☛ DataCamp’s RADAR: Forward Edition
As 2024 draws to a close, which new trends should you be paying attention to? Join DataCamp’s flagship conference RADAR: Forward Edition to explore developments in data and Hey Hi (AI) that will shape 2025 and beyond.
-
Rlang ☛ Birth date temperature
Day 6 of 30DayMapChallenge: « Raster » (previously).
-
Python
-
Redowan Delowar ☛ Explicit method overriding with @typing.override
Although I’ve been using Python 3.12 in production for nearly a year, one neat feature in the typing module that escaped me was the @override decorator. Proposed in PEP-6981, it’s been hanging out in typing_extensions for a while. This is one of those small features you either don’t care about or get totally psyched over. I’m definitely in the latter camp.
-
-
Rust
-
Rust Blog ☛ The Rust Programming Language Blog: Next Steps on the Rust Trademark Policy
As many of you know, the Rust language trademark policy has been the subject of an extended revision process dating back to 2022. In 2023, the Rust Foundation released an updated draft of the policy for input following an initial survey about community trademark priorities from the previous year along with review by other key stakeholders, such as the Project Directors.
-