Live data from Hacker News

Small, native web tricks worth remembering

htmlcat.net

61–70 of 73 posts

Re: Small, native web tricks worth remembering

#61
post #33

Love when I go into a car dealership and get to read all about the different cars. Specially when the cars aren’t actually there. In fact there’s not even a picture of a single car. Yep that’s my jam.

I agree 100%. Pictures or any sort of visual representation of any kind would only diminish the quality of the whole experience.

The fact is, if you're smart enough you can just eyeball raw css and just see it if you close your eyes.

Oh you're not also gifted? Well I guess you're not special enough for this job then. Maybe you should be flipping burgers instead.

/s

Re: Small, native web tricks worth remembering

#62
I really hate hiding scrollbars, and I think the warning on that "feature" misses an important point: The scrollbar is not just for scrolling - it also tells you where you are in the document, and roughly how much of it you can see.

Tiny little slider toward the top - oh man, this is going to take a while. Huge slider - great, quick read. Slider toward the bottom - almost done!

Please stop hiding scrollbars!

Re: Small, native web tricks worth remembering

#63
post #32

Earlier quoted context omitted.

fwiw I find `*` a lot easier in regular use than all of `-d 1 .`. It doesn't automatically expand to dotfiles but for regular typing, this advice looks like something you'd do if you're a robot or making an alias

It tells you which directory is the largest, including dot directories. You can then cd to the largest and run the exact same command again. You can find out what's filled your disk just by following it. It's something I regularly do.

Try ncdu, which kind of does this but better. You can quickly traverse a directory tree recursively sorted by size in a simple ncurses interface and even delete files with instant recalculation.

Re: Small, native web tricks worth remembering

#65
post #33

Love when I go into a car dealership and get to read all about the different cars. Specially when the cars aren’t actually there. In fact there’s not even a picture of a single car. Yep that’s my jam.

If only there was a way to render this syntax in the browser.

Re: Small, native web tricks worth remembering

#66
post #33

Love when I go into a car dealership and get to read all about the different cars. Specially when the cars aren’t actually there. In fact there’s not even a picture of a single car. Yep that’s my jam.

I agree 100%. Pictures or any sort of visual representation of any kind would only diminish the quality of the whole experience. The fact is, if you're smart enough you can just eyeball raw css and just see it if you close your eyes. Oh you're not also gifted? Well I guess you're not special enough for this job then. Maybe you should be flipping burgers instead. /s

Message received loud and clear.

Just to clarify why there aren’t any demos right now: I originally built the site mostly for myself, as a quick reminder for simple things whose syntax is easy to forget.

The use case was simple: I have my editor open, quickly check the site, copy those 2 or 3 lines, and get back to work, already knowing exactly what they do.

Sharing it publicly came later, so demos/screenshots weren’t really part of the original idea.

That said, I’m happy to take the criticism on board, even if I don’t always agree with the delivery :)

Re: Small, native web tricks worth remembering

#67
post #32

Earlier quoted context omitted.

fwiw I find `*` a lot easier in regular use than all of `-d 1 .`. It doesn't automatically expand to dotfiles but for regular typing, this advice looks like something you'd do if you're a robot or making an alias

It tells you which directory is the largest, including dot directories. You can then cd to the largest and run the exact same command again. You can find out what's filled your disk just by following it. It's something I regularly do.

I know, as demonstrated by the comment you're responding to giving a tip about how to type that more quickly but with a caveat

Re: Small, native web tricks worth remembering

#69
post #14
post #11

Earlier quoted context omitted.

>There are a few specific situations where it can be useful re scrollbars, Can you give an example?

An online game for example.

You wouldn't want to hide scrollbars though.

You'd want to make it so either:

a) There is nothing to scroll in the first place, so you don't need a scrollbar

b) Capture the pointer so all interaction only occurs within the game's area.

Re: Small, native web tricks worth remembering

#70

Earlier quoted context omitted.

I agree 100%. Pictures or any sort of visual representation of any kind would only diminish the quality of the whole experience. The fact is, if you're smart enough you can just eyeball raw css and just see it if you close your eyes. Oh you're not also gifted? Well I guess you're not special enough for this job then. Maybe you should be flipping burgers instead. /s

Message received loud and clear. Just to clarify why there aren’t any demos right now: I originally built the site mostly for myself, as a quick reminder for simple things whose syntax is easy to forget. The use case was simple: I have my editor open, quickly check the site, copy those 2 or 3 lines, and get back to work, already knowing exactly what they do. Sharing it publicly came later, so demos/screenshots weren’…

> ..even if I don’t always agree with the delivery :)

Some people need pictures on a menu as well, and will leave 1 star food reviews because of it ;)

Cool site!

Post reply on HN