Hacker News new | past | comments | ask | show | jobs | submit | gketuma's comments login

Going through the GitHub discussion is eye-opening given that CEO of Vercel just publicly stated that Next.js is an API framework: https://x.com/rauchg/status/1895599156724711665


Is he wrong though? Next.js reason of existence is essentially that .json file navigation. The addition of server side compute (ie: middlewares, router, etc...) is mostly a business decision that the framework has nothing to do with as it breaks your back-end/front-end separation (unless your application is very simple to fit in a nextjs function).


Wow, well explained.


Are you using EFS to share the DB between containers?


No, we're using EBS with Docker volumes, since all the containers are running on the same host.

SQLite actually performs very poorly on EFS in my experience (likely due to the fact that acquiring file locks is over the network).


So is the fix to remove the underlines? Or to stop using red/green color combination? Trying to learn as well. Thanks


For me, it's not just an "underline" issue. In my case, it's a "thin line" issue, and letters are usually made up of thin lines, especially the monospace font used here. But that's just me. (Side note: I still use monospace fonts in programming, I just choose one that has thicker lines in relation to the character size.)

For example, when I saw the website in question, I did not notice the red or green text color at all. I did see the underline, though. I didn't know it's significance, however, because the key is at the bottom of the examples (5 rows of blocks of text examples) rather than the top. Oddly enough, in this particular instance, the green of the text looks more like a light grey, and I can see the red better than the green. Normally it's the other way around, but it might have something to do with the particular shades involved.

Importantly, there are different forms of red/green colorblindness. For some people, the colors are literally indistinguishable. They look exactly the same.

Mine is a form of reduced sensitivity. I can see it if it's a large area. E.g., if you're wearing a red shirt, then I know it's red, and it looks completely different from a green shirt. If it's just a thin line of red, though, then I might not pick up on it unless I concentrate. It just doesn't stand out when the lines are thin.

Fabric can be weird for me. Some fabrics cause issue because they will use red threads interspersed throughout the cloth in order to achieve a red/pinkish overtone, and I won't notice it at all (unless I really concentrate on it). It's because the red is coming from thin lines. I have to be careful with tweed, for example.

But again, that's just my experience.


I have the same kind (IIRC it’s called deuteranomaly).

I find increasing the brightness of the display helps, but it’s still a pain in the arse to distinguish the two when the lines are thin in this example.

Just for fun, can you make out the lettering in this image posted to the fediverse: https://mathstodon.xyz/@csk/109786201604517074

If you have deuteranopia or deuteranomaly, you should be able to just about make it out. With normal colour vision, on the other hand, it’s meant to be nearly impossible to see.


Yeah, I definitely can't see it with my 'normal' colour vision. I did notice down in the comments there's a processed version that lets you see where the letters are, but even with that knowledge it's still impossible.


actually when I look at the processed version I can then make the outer ring of the O and about 70% of the last two letters. Like I can see oh there is that part of the letter - basically in the orange.


LOL, that's great!


> because the key is at the bottom of the examples (5 rows of blocks of text examples) rather than the top.

It's worse in mobile. It's several screens of example blocks before you get to the key.


Depends on the use case. If you want to signal deletion, strikethrough can be more appropriate than coloring. If you really have to use color, I've heard brown-blue combo should be easier, or at least blue-yellow color blindness is a lot rarer than red-green, so it'll be more accessible.

But the most accessible would be to use appropriate structure (together with appropriate semantic structure for those that cannot see at all) rather than appropriate coloring.


The W3C has lots of documentation and guidance on how to deal with this issue, since it's part of their Web Content Accessibility Guidelines: https://www.w3.org/WAI/WCAG21/Understanding/use-of-color.htm...


The solution from literature is “use color as much as you want (within the limits of sufficient contrast for readability) but nether rely exclusively on it, always add some other visual device, such as icons or (even better) textual additions”.


Make color areas bigger and use higher contrast light/dark versions to keep some distance between red and green. Generally avoid thin red to signal anything important.


The fix is "designers" need to understand that there are people with visual disabilities and take steps to stop discriminating against them.


Wait, so just no more using red? Anywhere, at all, in any facet of design? What about other differentiated abilities. Should “designers” stop using anything under 18-pt font? 24-pt? How accessible must an interface before you will grant “designers” their un-quoted status as designers?


> Wait, so just no more using red? Anywhere, at all, in any facet of design?

The usual advice I’ve seen to avoid discriminating against people with reduced ability to differentiate color is “don’t use color distinctions alone for any purpose”. If you want to make things recognizable as different at a glance, and are inclined to use color for it – do that, but also use some other visual distinction. If its text, use a non-color stylistic distinction as well as color.


Sound advice. All that strike through is going to look horrible, and diminish the overall readability for a much larger population. I’m not sure there’s a very good solution for this particular case. Should they trash the entire idea rather than accept some lesser accessibility?

I’m certainly not against broader accessibility in any sense, I have had multiple sclerosis for 22-years, I was really more against using “quotes” to question a professional’s credibility for what seems like a fairly sensible choice.


This website brings me Joy. So elegant.


Came to say the same thing. Thought it was actual pictures of old documents until I realized it was interactive. Worked on my iPhone which is equally impressive. Not many of the 3d sites showcased here do.


Not a web frontend developer, but added it to bookmarks because it's so awesome and enjoyable


Yeah, I wouldn't want every website to look like this but it's a very refreshing design that works super well.


But it's Johnny Cab - I hope you paid the fare!



That is why I've been getting cozy with Firefox again. When Manifest V3 happens, FF hopefully will be our saviour.


"I never hear the fan. Even playing Magic Arena AND a Parallels VM runs silent."

That is because there is no fan.


The regular M1 MacBook does have a fan. The M1 Air doesn't, but throttles the CPU to avoid overheating


While we're being technical, there is no M1 MacBook; there is a M1 MacBook Pro and an M1 MacBook Air, as we as an M1 Mac Mini.


You're right, I meant "M1 MacBook Pro", not "M1 MacBook". I cannot seem to edit after a certain period.


In the Macbook Air there isn't. In the MBP there is.


Sorry if there was confusion.

It's an M1 Macbook Pro, so there is a fan, but I've yet to hear it.

My previous laptop was an Intel Macbook Air (2019?).


I have an M1 Macbook Pro for almost a month now as work laptop and I've only heard the fan once so far, while doing a multi-file search/replace in VSCode. For whatever reason that maxed out the performance cores for a few minutes.

Other than that it's been entirely silent and blazingly fast and I had no major issues with it.



So that GOOD button presses BAD button.


All the sins and bad karma falls on the GOOD button. It is our martyr and savior. It sacrifices its purity for us.


Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: