Post AcBA2LcwlDLPEQK4vY by jvalleroy@fosstodon.org
(DIR) More posts by jvalleroy@fosstodon.org
(DIR) Post #AcBA2Hkx9VN7E62Pqq by jvalleroy@fosstodon.org
2023-11-25T17:48:47Z
0 likes, 1 repeats
I'm (finally) reading through How to Design Programs (https://htdp.org/) and doing all the exercises. I had started the related MOOC several years ago, but never completed it.#racket #scheme #programming
(DIR) Post #AcBA2LcwlDLPEQK4vY by jvalleroy@fosstodon.org
2023-11-25T17:49:11Z
0 likes, 0 repeats
It feels a bit weird to describe the data formats in comments, and not anything actually enforcing the types. Also there was an example where they use the same variable to hold either numbers or a single string. Just feels a bit weird, I guess you could do that in Python, but would never think to do so. Probably due to my background in C.
(DIR) Post #AcBAUVa9LGY8DMRUyO by baltakatei@twit.social
2023-11-25T22:41:59Z
0 likes, 0 repeats
@jvalleroy I read the preface and it seems it describes how I use notes and prose in the comment header of functions I write for myself, describing inputs, outputs, dependencies, examples, etc.. I've worried about conciseness but “self-documenting code” doesn't seem helpful to future me who often forgets what past me was up to. Prose is how I first learned to organize my thoughts, not code.