Hacker Newsnew | past | comments | ask | show | jobs | submit | luminarious's commentslogin

https://hardi.design UX design portfolio, board game projects, and some code


Pug templates have been the most readable in my projects. Underappreciated imho, wish Astro also supported it.


Agree, but isn't the project very low in activity?

https://github.com/pugjs/pug/activity

That is not necessarily a bad thing, sometime stability is what matters the most. But here the last commit was removal of a security and bugs branch...


Pug has been pretty complete for quite a while, there just isn't that big of a potential for insecurity for something that becomes vue's html/jsx at build time and 99% of run time threats is basically that the dev sent unsanitized use input to v-html instead of v-text.

The main problem with pug is that, AFAIK, vue is the only modern webframework with stable support for it.


This seems like something that could be automated with code? It feels like a genuinely useful way of solving highlighting for most common use cases.


It does, right? I imagine you would be map syntax highlighting rules and colour themes over to this convention in order to generate a new set of glyphs. I'm sure it isn't trivial but it could likely remove or at least alleviate one of the cons listed in the article.

This is one of the cooler things I've seen in a while!


Definitely! For example, Glyphs has a decent python scripting API which could be used to automate the whole process. I used it for automatically assigning each layer the correct color attribute to save me some clicks. And I also generated all the calt lookup rules from a list of keywords.


I wonder if you can load a font from base64 string like you can with images. Then, one may write a pure js library which generates such font from a set of rules on the fly. Catered to a specific use case.


That would be:

  @font-face {
      font-family: 'foo';
      src: url(data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAAGy …)
  }


A minor detail, but the MIME type should be `font/woff` (or `font/woff2` if appropriate), not the nonstandard `application/x-...`.

(E.g. see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_...)


You can load a font that way on the web, I believe.


https://hardi.design

I've had some form of personal site for more than 15 years now, usually with a hand-coded theme. It's unremarkable technically, but as a UX designer, it certainly gives me more confidence that I know how the web works.

Made with Saber (Vue.js) using Vercel.


Do you mean images and media, since these could be avoided/ mitigated? Or do you mean the browser itself won't work in a constrained environment?


Nope, I mean the rampant abuse of JavaScript where it doesn't belong, but images and media don't help matters any. More info here: https://idlewords.com/talks/website_obesity.htm


Inter UI is quite impressive as far as usability goes: https://rsms.me/inter/


Why can't they just charge for it?


How many lines of WebGL would it be?


How many lines does it take you to build a pixel buffer in WebGL? SDL2 here is being used to handle input, open a window, and update a texture stretched over the full window using a software-rendered buffer of pixel data.


Probably about the same. Most of the code is defining data types and loading an OBJ file, and modern OpenGL requires quite a lot of boilerplate before anything gets drawn.


http://javascript.info starts out simple enough for complete beginners but goes deep enough that even intermediate users can find new details.


For websites, http://l20n.org seems the most natural version so far. Or is there something better?


You might want to checkout http://l10ns.org


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: