MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/pr1730/how_about_bad_syntax_abused_the_powers_of_read_to/
r/badcode • u/[deleted] • Sep 19 '21
3 comments sorted by
8
In how far is this bad code? This seams pretty reasonable to me and encoding HTML in the language's own structures is not that uncommon (see Elm).
6
Looks cool
1
Image Transcription: Code
(html (head (title "Website") (style :type "text/css" "* { box-sizing: border-box; }" "body { font-family: sans-serif; font-weight: 300; margin: 3em; font-size: 12pt; }" "img { float: right; }")) (body (img :src "http://placekitten.com/200/300" /) (h1 "Hello, World!") (div :id "article" (p "This is a paragraph.") (p "This is another paragraph," (b "oh " (i "fuck."))))))
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
8
u/Host127001 Sep 19 '21
In how far is this bad code? This seams pretty reasonable to me and encoding HTML in the language's own structures is not that uncommon (see Elm).
6
u/glebbash Sep 19 '21
Looks cool
1
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Sep 20 '21
Image Transcription: Code
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!