News for hackers. Stuff that matters.
Re:Stop Asking Me to “Sign Up” (2014) by reaperducer on Saturday September 26, 2020 @03:06PM (#24601311)
And when I'm logged out, don't hide the "Sign In" button from me!

Digital Ocean is guilty of this. If you're on a phone, or a tablet, or any browser with a window narrower than about 700px, the page is so obsessed with selling Digital Ocean that in order for an existing customer to use an account you've already paid for, you have to click the hamburger menu, and then scroll... scroll... scroll... all the way down to the bottom of 75 options to find a sign-in button.

For a company that brands itself as being tech-forward and people-friendly, Digital Ocean should know better.

Re:Stop Asking Me to “Sign Up” (2014) by dkersten on Saturday September 26, 2020 @04:25PM (#24601825)
I love Digital Ocean, but this annoys me so much. If anyone from DO sees this, please fix this crap!
Re:Stop Asking Me to “Sign Up” (2014) by bredren on Saturday September 26, 2020 @04:41PM (#24601937)
We need an extension in the meantime.

This is bad at even at 1000px. That’s 1/3rd of an xdr pro display and my most common window width now.

Re:Stop Asking Me to “Sign Up” (2014) by trevyn on Saturday September 26, 2020 @11:42PM (#24604074)
uBlock Origin, right-click, "Block element".

I thought it was just an ad blocker, but now I realize it's a "whatever DOM element I dislike" blocker.

Re:Stop Asking Me to “Sign Up” (2014) by thih9 on Sunday September 27, 2020 @03:11AM (#24604844)
This works unless the css classes or HTML structure change frequently.

I think e.g. Facebook does that and I’ve been unable to block annoying elements there.

Does anyone know how to make it work in that scenario?

Re:Stop Asking Me to “Sign Up” (2014) by zelphirkalt on Sunday September 27, 2020 @03:52AM (#24605004)
Even worse with random CSS class names and random ids on many websites. Some of the JS dev crowd think it to be a good idea to have class names random generated. I consider it to be a kind of dark pattern by now.
Re:Stop Asking Me to “Sign Up” (2014) by trevyn on Sunday September 27, 2020 @04:22AM (#24605094)
Some CSS-in-JS libraries will create a hash of the underlying CSS and use that as the class name. So not quite random, and should remain consistent if the underlying CSS hasn't changed.
Re:Stop Asking Me to “Sign Up” (2014) by SaltyBackendGuy on Sunday September 27, 2020 @12:34PM (#24607886)
Yeah it's terrible. The JS framework we use hijacks the ID property with some internal ID which is quite annoying in some cases.
Re:Stop Asking Me to “Sign Up” (2014) by itsCarton on Saturday September 26, 2020 @07:11PM (#24602873)
With DO, I've noticed that you can enter login credentials into the sign up screen and it works to authenticate you if you have an existing account.
Re:Stop Asking Me to “Sign Up” (2014) by grawprog on Saturday September 26, 2020 @09:57PM (#24603592)
How hard would it be for DO to change the sign up button to 'Sign up/Login'? Seems like an utterly trivial change to make for something that's completely possible, but totally hidden, while the 'visible' solution is extremely aggravating.

That's a textbook example of poor UI.

Re:Stop Asking Me to “Sign Up” (2014) by bobthepanda on Sunday September 27, 2020 @03:31AM (#24604917)
I've seen a lot of rhetoric, even on HN, that frontend/webdev is "not that hard", that frontend/webdev engineers are doing busy work to justify their jobs, etc. And then people with this mentality go to their jobs, they subconsciously or overtly promote these views in their workplaces, people who are good at this stuff try to avoid toxic workplaces that undervalue them rhetorically or with actual compensation, and then you wind up with "easily" fixable things like this and the toxic people blame the frontend engineers who are willing to stay in environments like this.
Re:Stop Asking Me to “Sign Up” (2014) by Dahoon on Saturday September 26, 2020 @03:53PM (#24601632)
A phone with less than 700px width in 2020? The sites I work with have small screens at around 1000-1200 px width. 700 is more like a wap feature phone..
Re:Stop Asking Me to “Sign Up” (2014) by reaperducer on Saturday September 26, 2020 @04:18PM (#24601781)
A phone with less than 700px width in 2020?

On a mobile device, web display pixels (logical pixels) are not the same as physical pixels.

An iPhone SE's logical width is 320px.

An iPhone 8 is 375px.

An iPhone 8 Plus is 414 px.

An iPad is 768px.

700 is more like a wap feature phone

WAP phones were closer to 180px. I know because I built local WAP news and weather sites for them. Squeezing color radar maps into 180px was... interesting.

Re:Stop Asking Me to “Sign Up” (2014) by rriepe on Saturday September 26, 2020 @04:46PM (#24601975)
> An iPhone SE's logical width is 320px.

I always forget about this one. Thanks for ruining my afternoon.

Re:Stop Asking Me to “Sign Up” (2014) by cocire on Saturday September 26, 2020 @05:07PM (#24602126)
I love my iPhone SE since I can easily use it one-handed without worrying about dropping a $1,000 electronic device
Re:Stop Asking Me to “Sign Up” (2014) by rriepe on Saturday September 26, 2020 @09:09PM (#24603408)
It's a great phone. I'm just building a thing that needs to support it, and I was treating 380px as the lower end of things.
Re:Stop Asking Me to “Sign Up” (2014) by tomc1985 on Saturday September 26, 2020 @05:57PM (#24602494)
I did too, but with battery health at 91% I'd get maybe an hour of heavy use (and 12hr of light use) before having to charge it
Re:Stop Asking Me to “Sign Up” (2014) by benrbray on Saturday September 26, 2020 @04:22PM (#24601798)
Even on desktop I always have two windows open side-by-side. Normally it's VS Code and Chrome, so I can reference documentation while coding, or take Markdown notes while reading. Most websites seem not to be designed for this use case, which is a shame since the solution is usually setting min-width to a smaller value.
Re:Stop Asking Me to “Sign Up” (2014) by Zak on Saturday September 26, 2020 @06:09PM (#24602569)
Multi-display or a huge single display and a cooperate window manager is a real game changer for productivity... unless of course "desktop" actually means a laptop used away from a desk.
Re:Stop Asking Me to “Sign Up” (2014) by asalahli on Saturday September 26, 2020 @03:58PM (#24601658)
iPhone SE came out in 2016 and has a resolution of 640x1136. I still use it.
Re:Stop Asking Me to “Sign Up” (2014) by ehsanu1 on Saturday September 26, 2020 @04:14PM (#24601758)
Css width is probably 320px on that too. Css pixels are not screen pixels.
Re:Stop Asking Me to “Sign Up” (2014) by zelphirkalt on Sunday September 27, 2020 @03:58AM (#24605027)
Can anyone explain this? Why are these pixels not the same as physical pixels, like I asume to be on a computer screen?
Re:Stop Asking Me to “Sign Up” (2014) by reificator on Sunday September 27, 2020 @05:41AM (#24605431)
Because after a short lived attempt to educate uninterested web developers about px vs em vs.... browsers decided the easiest way forward was to give up and lie.
Re:Stop Asking Me to “Sign Up” (2014) by ehsanu1 on Sunday September 27, 2020 @04:17AM (#24605082)
Re:Stop Asking Me to “Sign Up” (2014) by zelphirkalt on Sunday September 27, 2020 @11:35AM (#24607404)
No, I meant: Explain why pixels on smart phones are not physical pixels, as I would expect them to be. Why does a phone need to act differently, kind of dishonest about its pixels?
Re:Stop Asking Me to “Sign Up” (2014) by reificator on Monday September 28, 2020 @03:28AM (#24613935)
> Explain why pixels on smart phones are not physical pixels, as I would expect them to be. Why does a phone need to act differently, kind of dishonest about its pixels?

The phone is not acting differently. The phone is acting according to the specification, which is that a pixel is 1/96th of an inch. This happens on all devices, not just phones.

From the spec:

> The absolute length units are fixed in relation to each other and anchored to some physical measurement. They are mainly useful when the output environment is known. The absolute units consist of the physical units (in, cm, mm, pt, pc, Q) and the visual angle unit (px):

> 1in = 2.54cm = 96px

https://developer.mozilla.org/en-US/docs/Glossary/CSS_pixel

https://drafts.csswg.org/css-values-3/#absolute-lengths

Re:Stop Asking Me to “Sign Up” (2014) by ako on Sunday September 27, 2020 @11:51AM (#24607542)
Because it ensures a page is useable on a mobile phone, even if the author didn’t take mobile into account: the screen can accommodate for about as much information as a regular 320px computer screen. If you try to use every pixel as you would on a regular screen it would be illegible for most users.
Re:Stop Asking Me to “Sign Up” (2014) by cocire on Saturday September 26, 2020 @05:08PM (#24602134)
The newer generation of the SE came out this year (2020) and works great too