Programming Leftovers
-
Who Was On The Winning Team?
However, there’s an easier way to do it by thinking combinatorically33 And this is the reason I wrote this up in the first place: I didn’t expect to be able to use the enumerative combinatorics I learned a few months ago, but thanks to spaced repetition it was still fairly accessible in my brain!: There are \({19 \choose 5}\) ways to select the members of the winning team from all 19 colleagues. There are \({15 \choose 5}\) ways to select the winning team without picking any Peter44 If we restrict the valid candidate pool to only those whose names are not Peter, there are 15 colleagues to choose from.. Thus, the probability that Peter is in the winning team is \[1 - {15 \choose 5} \bigg/ {19 \choose 5} = 74 \%.\]
It was a fairly good guess!
-
Programming types and mindsets
One of the longest running schisms in programming is that of static vs dynamic typing. I've heard a million arguments from both sides throughout my entire career, but seen very few of them ever convinced anyone of anything. As rationalizations masquerading as reason rarely do in matters of faith. The rider will always justify the way of the elephant.
-
Monoliths are not dinosaurs
A great example can be found in two insightful blog posts written by Prime Video’s engineering teams. The first describes how Thursday Night Football live streaming is built around a distributed workflow architecture. The second is a recent post that dives into the architecture of their stream monitoring tool, and how their experience and analysis drove them to implement it as a monolithic architecture. There is no one-size-fits-all. We always urge our engineers to find the best solution, and no particular architectural style is mandated. If you hire the best engineers, you should trust them to make the best decisions.
-
Hello, Perceptron: An introduction to artificial neural networks
The purpose of this article is to give programmers without much exposure to machine learning an understanding of the key building block powering generative AI: the artificial neuron.
-
Escaping creative downturns
If I'm stuck in a creative downturn, there's usually only one remedy: keep going. That is, accept the downturn, but continue to stare at the computer, waiting for it to pass. While staring at the computer, there's room for menial and managerial tasks put aside during more inspired times. Checking up on things, getting back to people, and reading copious amount of [Internet]. But it's still a creative deadzone.
-
Rust Basics Series #7: Using Loops in Rust
Loops are another way of handling control flow of your programs. Learn about for, while and 'loop' loops in Rust.