Skip to content

Instantly share code, notes, and snippets.

View Miezhiko's full-sized avatar
👗

Искорка Miezhiko

👗
View GitHub Profile
@Innf107
Innf107 / data.md
Last active October 15, 2024 07:10
Programming is about information not data, or: you might not need dependent types

Programming is about information not data, or: you might not need dependent types

When I took "Fundamentals of Computer Science" in college, my professor was very adamant about the distinction between data and information and about how data doesn't have any inherent meaning. At the time, it seemed a bit silly to me how much emphasis he put on such a seemingly insignificant difference.

In retrospect, I think he was exactly right about this and I wish more programmers took it to heart.

Data is something you can store in a computer, such as, let's say, the byte 0b01000001.

@Miezhiko
Miezhiko / words_counter.rs
Last active June 16, 2020 13:10
Words counter
extern crate unicase;
use std::{
collections::HashMap,
iter::FromIterator,
fs
};
use unicase::Ascii;