this post was submitted on 10 Feb 2024
220 points (100.0% liked)

196

16484 readers
1856 users here now

Be sure to follow the rule before you head out.

Rule: You must post before you leave.

^other^ ^rules^

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] kryptonianCodeMonkey@lemmy.world 15 points 9 months ago* (last edited 9 months ago) (1 children)

Reject the code block. Embrace the modularity. If you were going to write a code block, write a function instead.

[–] zea_64@lemmy.blahaj.zone 13 points 9 months ago (1 children)

If you must avoid code blocks, that means you can only use one line. I don't think you can be Turing complete if each function can only call one function. I don't even think you can get a context-free grammar, Chomsky normal form at least allows a variable to expand into two variables.

[–] JDubbleu@programming.dev 6 points 9 months ago

Please never bring up CNF again. I'm a year out of college, two years out of finite automata, and I still shudder when it's brought up.