Show newer

Comedy engineer: Can we do anything with "Racoon Tycoon"?

Internet: That's already the name of a board game.

CE: Basoon Tycoon?

I: Someone on Instagram already got there.

CE: Brigadoon Tycoon? That has to be original, right?

I: independent.co.uk/news/people/

CE: OH COME ON!

Achievement unlocked: Wrote a program that passes the type system but still contains a bug.

Fuck “both sides” bullshit.

Here is a SITTING #GOP Senator saying that interracial marriage laws should be left up to the states. In 2022.

FUCK BOTH SIDES BULLSHIT.

twitter.com/highbrow_nobrow/st

mystery

library(tidyverse)

b <- tibble(pre=c(8,8,5,3), post=c(8, 8, 5, NA))

# This works
b %>% mutate(post = if_else(is.na(post), mean(post, na.rm=TRUE), post))

# But what if that expression is too hairy for the student? In other languages,
# you can separate out and name the parts. You can do that in R by using the
# completely different $ syntax:
mean_of_others <- mean(b$post, na.rm=TRUE)
revised <- if_else(is.na(b$post), mean_of_others, b$post)
b %>% mutate(post = revised)

# Why doesn't this work? Do mean and if_else not work with the pipe unless they
# are inside something like mutate?
mean_of_others <- b %>% mean(post, na.rm=TRUE) # Error!
revised <- b %>% if_else(is.na(post), mean_of_others, post) # Error!
b %>% mutate(post = revised)

seems to have missed this memo:

"Orthogonality in a programming language means that a relatively small set of primitive constructs can be combined in a relatively small number of ways to build the control and data structures of the language.[2] It is associated with simplicity; the more orthogonal the design, the fewer exceptions. This makes it easier to learn, read and write programs in a programming language[citation needed]. The meaning of an orthogonal feature is independent of context; the key parameters are symmetry and consistency (for example, a pointer is an orthogonal concept)."

en.wikipedia.org/wiki/Orthogon

Our class time slots are 8-9, 9:10-10:10, 10:20-11:20, etc. During my 9:10 class, my addled brain saw the clock approaching :50 and ended the class 20 minutes early.

Nobody stopped me.

Future nonbinary monarch: *chooses they/them pronouns*

Transphobe: That doesn't make sense! "They" is plural!

Monarch: We don't see the problem.

With the change in monarch, the Royal Navy will have to scrape "HMS" off all of the ships and instead paint on "HMS".

For legitimate pedagogical reasons, I just searched my Google Drive for "dank".

For today, the character '|' will be pronounced "hornpipe" and the data type "double" will be pronounced "doubloon".

marks th' spot. The Moon be a treasure trove o' science, water 'n resources. Startin' wit Arrrtemis I, we'll return astronauts to the lunar surface by 2024. So, fire ye pyros & ye main engine 'n get excited as we prepare for Marrrs!#TalkLikeAPirateDay: nasa.gov/what-is-artemis?utm_s 

Arrgh ye filthy landlubbers, tis Talk Like A Pirate Day! Brace the mainsail! Swab the poop deck! Give no quarter! 🏴‍☠️☠️ #talklikeapirateday

Show older
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.