Readit News logoReadit News
eajakobsen commented on Phoenix 1.7 for Elixir: Edit a Form in a Modal   blog.appsignal.com/2023/0... · Posted by u/amalinovic
ecmascript · 2 years ago
Completely off topic but sometimes on HN I don't understand how stuff lands on the front page. At the time of this writing, this post has 3 points and 0 comments, yet it is placed nr #3 on the "front page" list.

I get the feeling that certain topics about certain technologies often get at the front page even if there is other threads that have more points and activity that isn't shown on the front page.

Why is that?

eajakobsen · 2 years ago
From the FAQ:

> How are stories ranked?

> The basic algorithm divides points by a power of the time since a story was submitted. Comments in threads are ranked the same way.

> Other factors affecting rank include user flags, anti-abuse software, software which demotes overheated discussions, account or site weighting, and moderator action.

So if a story gets points very quickly, it will appear on the front page. If it don't keep getting points it will disappear.

eajakobsen commented on Mounting your iPhone on your motorcycle can damage its camera (2022)   old.reddit.com/r/motorcyc... · Posted by u/behnamoh
kylec · 2 years ago
Surprising, considering mounting your iPhone to a motorcycle was central to the main ad for the iPhone 13:

https://www.youtube.com/watch?v=Nn50z2PEDEA

eajakobsen · 2 years ago
There is some fine print at the bottom of the screen in the shot where the phone is connected to the handlebars:

> Always use a dampener with your iPhone when riding as shown. Use only with low-powered bikes and avoid prolonged use.

eajakobsen commented on Making a single bolt for an FL car   thedrive.com/news/making-... · Posted by u/clouddrover
eajakobsen · 3 years ago
The video that "recently surfaced on Instagram" was uploaded to YouTube by Red Bull six years ago:

https://www.youtube.com/watch?v=iptAkpqjtMQ

eajakobsen commented on Europe’s Longest Bicycling Tunnel Opens in Norway   reasonstobecheerful.world... · Posted by u/imartin2k
frumiousirc · 3 years ago
And, of course, there is a car parked in the bike lane blocking the entrance to the tunnel (very start of the video).
eajakobsen · 3 years ago
To be fair this video was recorded before the tunnel officially opened.
eajakobsen commented on Replying to comments about our web page design   research.exoticsilicon.co... · Posted by u/nhanb
nhanb · 3 years ago
I've always liked ExoticSilicon's design, but not until this post did I realize their smart bit of CSS for default font size:

  font-size: min(max(1em, 1.3vw), 1.3em);
Which explains why it looks just right on my high-DPI Chromebook even though I haven't configured a big enough default font size for the browser.

This is going to be the default font-size for all of my websites now (preceded by a fallback for maximum compatibility of course).

eajakobsen · 3 years ago
If you want it to be even more readable you could do the following:

    font-size: clamp(1em, 1.3vw, 1.3em);
I would also consider using `rem` instead of `em` incase you want to use it anywhere other than the root element.

eajakobsen commented on Tailwind CSS v3.3   tailwindcss.com/blog/tail... · Posted by u/adrian_mrd
Varqu · 3 years ago
So tailwind at this point is basically just a bunch of custom CSS classes which are granular to the point of single CSS properties?

How is that better, than just writing custom CSS classes for components + having some util CSS classes?

eajakobsen · 3 years ago
I really like CSS, and in my personal projects I don't use Tailwind.

However, I use it in my day job, and here it is useful to us as a team. The variables combined with the tooling ensures we write consistent styles across our site. The color names and text sizes also correspond to what our design team uses in Figma, making implementing and updating designs quick.

That said, I still find it a pain to read, and we could probably have set up something very similar with CSS Custom Properties.

eajakobsen commented on Show HN: I built a little online drum machine using 808 style samples   peel.fm... · Posted by u/berkcebi
guntherhermann · 3 years ago
> A reset button would be nice to undo the horrible mess I made.

The (...) button next to "Your jam" -> Clear does the job for me

eajakobsen · 3 years ago
Ah, I missed that :)
eajakobsen commented on Show HN: I built a little online drum machine using 808 style samples   peel.fm... · Posted by u/berkcebi
eajakobsen · 3 years ago
Looks great and works great! A reset button would be nice to undo the horrible mess I made.

A minor note, when I load the page I get console warnings about an Audio Context being prevented from starting automatically, but once I click play everything works perfectly fine.

eajakobsen commented on Tailwind is a leaky abstraction   jakelazaroff.com/words/ta... · Posted by u/jakelazaroff
pindab0ter · 3 years ago
How does Tailwind require bouncing between multiple files? Everything is in the HTML in the form of class names.

Yes, you will have to know what the classes do, but where that isn't already intuitive it's just a one-off lookup, and then you know.

HTML + CSS can simply not be parsed without hoping between multiple files. Unless you inline all of your CSS, of course.

eajakobsen · 3 years ago
I think the point in the comment you are replying to is that they _prefer_ having markup and styles in separate files.

u/eajakobsen

KarmaCake day66August 17, 2022View Original