6 ms·
This page is a truly naked, brutalist HTML quine (2019)
- bhaney 4y agoI especially like that most of the commit messages for this site keep with the quine theme (sorta) and are just "git commit . -m" https://github.com/secretGeek/html_wysiwyg/commits/master https://github.com/secretGeek/html_wysiwyg/commits/master
- divbzero 4y agoThe README also keeps with the quine theme (sorta): https://github.com/secretGeek/html_wysiwyg/blob/master/README.md https://github.com/secretGeek/html_wysiwyg/blob/master/READM...
- crystaldecanter 4y agobrutalist indeed!
- dcow 4y ago> Life is a quine. Indeed. And it even got it’s own commit: https://github.com/secretGeek/html_wysiwyg/commit/d4fe026fb781704899a2d40aee898e2ce7cec7c3 https://github.com/secretGeek/html_wysiwyg/commit/d4fe026fb7... Somehow I feel this statement is more profound than we have yet realized.
- mistermann 4y agoThe Quine or the commit? Or both?
- aendruk 4y agoI reflexively viewed the source of this and then felt like a fool.
- chii 4y agoi dont think it's foolish to verify the claims made on a page!
- post-it 4y agoTrust, but verify.
- LeonB 4y agoAbsolutely. I don’t trust the author one bit and I am that author.
- mark_and_sweep 4y agoTry viewing the source of this: Firefox "View page source" quine: https://firefox-view-source-quine.deno.dev/ https://firefox-view-source-quine.deno.dev/
- fsckboy 4y agoit's quines all the way down
- DrewADesign 4y agoActual Brutalism embraces the idea that beautiful forms can come from purely functional design not obfuscated by baroque, purely decorative structures to embellish or superimpose skeuomorphic references to building structures from bygone eras. (e.g. decorative columns.) The buildings should be designed to accommodate many people, but the small, modular elements should focus on the human scale. All of this stems from a utopian idea that scaling production can provide functional, beautifully designed buildings for use by all people, rather than just the privileged few. While the style is polarizing, and there are obviously examples of shitty brutalism out there, I'd say it often accomplished its goals. In my experience, well-designed brutalist buildings are easy to navigate, have large open spaces, have lots of little nooks and crannies to foster human interaction, and have really beautiful forms. Old images of the Umass Dartmouth (then Southeastern Massachusetts University) library: https://sdg-migration-met.s3.amazonaws.com/wp-content/uploads/2021/07/12202752/f5375815e0746b458b0416568aeaa824-3HistoricAtrium.jpg https://sdg-migration-met.s3.amazonaws.com/wp-content/upload... https://sdg-migration-met.s3.amazonaws.com/wp-content/uploads/2021/07/12202752/cf539f044b60821b49ff24a3797dada9-3HistoricHappenings.jpg https://sdg-migration-met.s3.amazonaws.com/wp-content/upload... https://scontent-bos5-1.xx.fbcdn.net/v/t1.6435-9/58602929_10157454516983291_8180188814971502592_n.jpg?_nc_cat=108&ccb=1-7&_nc_sid=9267fe&_nc_ohc=edabWZGC760AX_O96gh&_nc_ht=scontent-bos5-1.xx&oh=00_AT9_B13MY_lOCwWl_7FDXLRHwTjxlpi1t0kVCfUz4tlMfA&oe=635672F6 https://scontent-bos5-1.xx.fbcdn.net/v/t1.6435-9/58602929_10... In its modern form: https://mir-s3-cdn-cf.behance.net/project_modules/fs/79132130017205.560ecdb522384.jpg https://mir-s3-cdn-cf.behance.net/project_modules/fs/7913213... (though the architect really should have done more to accommodate laptops in that space!) This quine is rather the opposite of brutalism. Every single page element adds purely decorative :before and :after elements and monospace font not optimal for paragraph text that hinder its function just to reference an aesthetic from a bygone era. Adding decoration to a functional object to make it "brutalist" is conceptually kind of ridiculous. HN is far more brutalist than that page. Its structure is clear, functional, and largely unembellished.
- brador 4y agoExamples of brutalist websites: Craigslist, Skimfeed, Reddit. Early Google, Twitter, Facebook also, use archive to take a look at how simple and purely functional they were vs. the bloated mess they are now. In fact, the whole web was that way in those days. Made by engineers for engineers.
- mcint 4y ago(Good) repost. Previous threads are at - https://news.ycombinator.com/item?id=20094866 https://news.ycombinator.com/item?id=20094866 June 4, 2019 - https://news.ycombinator.com/item?id=24824977 https://news.ycombinator.com/item?id=24824977 Oct 19, 2020
- DangitBobby 4y agoVery interesting. Unfortunately on my browser it's not a quine because some style tags were injected (and visible) due to my dark reader extension. ;)
- LeonB 4y agoAuthor here — I experience the same now too. When I wrote it I didn’t have any dark mode extensions, now I have them on mobile and desktop.
- euroderf 4y agoThis reminds me of the Reveal Codes mode of WordPerfect. Ah, the good ol' days! This would be a GREAT way to edit content per structured-content schemas like DITA and Docbook. I would totally go for an editor view like this that shows all markup, dimmed, so that I could edit with confidence that the editor is not mangling, munging, and mutilating my markup. Any chance of making this kind of view work in, say, TipTap or ProseMirror ?
- xkbarkar 4y agocool
- albertgoeswoof 4y agoHTML & CSS are in many ways antithetical to brutalism, as they are sugar coating over the true function of the interface. We should expose only the HTTP API, with the minimum structure in the response back to make it human and machine readable. That is a true Brutalist web. None of these colour schemes, layouts or pretty views, just pure information, delivered at speed.
- xerox13ster 4y agoYou do realize that brutalism applies to architecture and means that you expose the structures but that you can still decorate over that with rugs, curtains, tapestries, and such? Brutalism doesn't necessarily mean drab, spartan minimalism.
- _han 4y agoThe link to “58 bytes of css to look great nearly everywhere” was unfortunately dead, but I found a copy (I think) here: https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad9528b72c41 https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad...
- LeonB 4y agoArgh - ok I can fix this. (Or send a PR please… busy feeding the family right now)
- Waterluvian 4y agoI had no idea about the css unit “ch” and now I want to see what it does to my minimalist pages. I wonder if I want a media query for a different count for mobile. Also I’m not sure you consciously meant this but I like how your comment recognizes, “wait, I don’t have to fix everything myself. It’s healthy to delegate and enable others.”
- JonathonW 4y agoProbably not what you think— ‘ch’ specifies length in terms of the width of a ‘0’ character in the element’s font, not in terms of actual character count.
- Waterluvian 4y agoGiven fonts aren’t all monospace it would have been impossible to achieve the latter, so I expected and am glad for the former. It is an approximation based on one character. And for monospace it is character count.
- zfxfr 4y agoReally brilliant ! It's the only quine I know off that anybody can understand easily. If you haven't seen it the author also wrote a text adventure game in the console! https://secretgeek.net/console_log https://secretgeek.net/console_log
- frobisher 4y agoLove this, thanks for posting! I actually learnt a lot by following your links, from brutalist architecture to my new favourite tool nimbletext :) Great little hack.
- anthk 4y ago
- mike_hock 4y agoTL;DR: > * { display:block; } > html::before {content:'<html>'} > html::after {content:'</html>'} > etc, for all other tags the page uses. Everything else is to also make it look pretty. The before/after content doesn't get copied with CTRL+C, so we gotta be a bit generous with the definition of "quine."
- npilk 4y agoLove this! I hadn't seen it before. A year or two ago I gave my personal website a similar brutalist style, but it's frankly a lot more hacked-together than this because I didn't use some of these clever CSS tricks. Maybe time to refactor... (Site is my username dot com if you're curious)
- pentagrama 4y agoI don't know much about code and what this page accomplished, but I'm browsing the page on a mobile phone and is hard to read, maybe accessibility should be part of the challenge too.
- IggleSniggle 4y agoI’m browsing this page on mobile as well and found it easy to read, so it may be that understanding what the page is accomplishing is an important aspect to finding it readable.
- renonce 4y agoIt seems like the tags can't be selected, so you can't copy the page source from the HTML itself. That still distinguishes the page from its source code.
- IggleSniggle 4y agoI just tried selecting using iOS and had no trouble selecting tags, although I did notice that the behavior was “different.” Did you try selecting with a ctrl-a or with a mouse or something else? You’re right at it is not identical, in several ways, but I’m not sure it ought to be, either.
- ravenstine 4y agoI worked on something similar, and have a superior rewrite in progress somewhere locally. https://codepen.io/Ravenstine/pen/gyMVNx https://codepen.io/Ravenstine/pen/gyMVNx It's more for editing HTML than presenting it. The idea is to use a monospace font because the sizing is consistent enough that elements can be overlayed on top of a textarea. The textarea avoids the complications of things like contenteditable or whatever that attribute is that I'm thinking of. In that Codepen iteration, the tags aren't exactly selectable, but it's written in such a way that they could easily support click events. I do still want to get it to a 1.0 state eventually.