💾 Archived View for dmerej.info › blog › 0026-a-simple-problem.gmi captured on 2021-12-04 at 18:04:22. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-11-30)
-=-=-=-=-=-=-
2016, Nov 20 - Dimitri Merejkowsky License: CC By 4.0
Let's say that at your work, you have daily meetings every day at 10.
To avoid monotony, you've decided to signal the beginning of the meeting by playing a different song every time.
Let's assume the following:
You'd like to:
1. Make sure to never play the same song twice
2. Be able to answer the question: "What was the song you played X days ago ?"
3. Have a chronologically sorted list of songs, so that you can tell yourself: "Hum. It's been two weeks I did not play anything from Pink Floyd, let's use *Another Brick In The Wall* today"
Based on your experience, how many lines of code do you need to write to solve this problem?
I'm going to give you a moment to think about this ...
Enjoy the video in the mean time:
https://youtube.com/watch?v=VwO21W9AD3w
So how much was it? One thousand lines of code, one hundred, ten?
I know you are going to say it depends on the language you are using, but in reality it does not.
The number of line of code you need to write does not depend on the language you are using because the answer is zero.
You just need a special folder, let's say "Stand Ups" and a file explorer.
Every day, you download your song in the correct folder, and then you use the "sort by date" feature to have your songs sorted by date:
Yup, sometimes "do nothing" is the best strategy :)
I'll leave you with a quote and a link:
The cheapest, fastest and most reliable components of a computer system are
those that aren’t there.
-- Gordon Bell
Bye!
1: http://bravenewgeek.com/you-are-not-paid-to-write-code/
----