News for hackers. Stuff that matters.
Re:Just Normal Web Things by Buttons840 on Saturday August 05, 2023 @02:41PM (#37015122)
Finish the story. Did you die on this hill?

Whenever I push for things that are technically correct I'm ignored and/or not treated well it seems.

Re:Just Normal Web Things by BlargMcLarg on Saturday August 05, 2023 @03:23PM (#37015451)
Wait until you get asked, by CTOs and business people, to disable F5/refreshing because it breaks the process flow but building a resilient process flow into an old app takes 10x-100x as long. Only for them to realize if you restart the system, disconnect the network, have a timeout, etc. the problem still exists. They even contemplated physically removing F5 before realizing "wait people can just click refresh or remap F5, that won't work".

Same people will also claim "we don't need a frontend dev or a UX designer".

Re:Just Normal Web Things by jholman on Saturday August 05, 2023 @08:58PM (#37017880)
Physically removing F5? Like going around to individual computers and modifying the keyboards?
Re:Just Normal Web Things by paulddraper on Saturday August 05, 2023 @10:47PM (#37018500)
Yeah I don't understand either
Re:Just Normal Web Things by golergka on Sunday August 06, 2023 @02:54AM (#37019589)
If I understand correctly, they are talking about an in-house system where toy would be able to do exactly that
Re:Just Normal Web Things by BlargMcLarg on Sunday August 06, 2023 @02:56AM (#37019591)
This was a webapp to be used internally in an enclosed system, so yes, modifying the keyboards. Company's own hardware.
Re:Just Normal Web Things by undebuggable on Sunday August 06, 2023 @03:57AM (#37019857)
Watching DOM events on the document and disabling key events for the key code 116. One can still trigger document refresh by remapping F5 to other physical key in OS settings, or by clicking refresh button in browser toolbar.
Re:Just Normal Web Things by josephg on Sunday August 06, 2023 @04:21AM (#37019985)
Does that work? I’m surprised browsers allow websites to disable the default behaviour of F5.
Re:Just Normal Web Things by undebuggable on Sunday August 06, 2023 @05:25AM (#37020299)
Yes absolutely. It's possible to remap the entire keyboard at the website level.
Re:Just Normal Web Things by johnnyanmac on Sunday August 06, 2023 @05:54AM (#37020469)
That seems unnecessarily complex compared to watching for a request to the same webpage, intercepting, and dropping the request. I believe that is all the refresh function is doing.

Now ofc I wouldn't give any executives that idea. Don't mess with expected user functionality, that's like UX 101. if I see my navigation tampered with, I flag that site as spam.

Re:Just Normal Web Things by undebuggable on Sunday August 06, 2023 @06:13AM (#37020564)
Depends on one's determination and motives there are many ways to "disable refresh". One motive I imagine and don't approve is some want their website to feel like a mobile app, for whatever reason.
Re:Just Normal Web Things by ukuina on Sunday August 06, 2023 @09:56AM (#37021948)
I don't think you can drop a window refresh event in JS?
Re:Just Normal Web Things by Swizec on Saturday August 05, 2023 @03:03PM (#37015275)
I always attempt to die on the links should be links hill. So far the only times I didn’t get my way was when the thing was in fact semantically a button, it just happened to use navigation to achieve its aim. Usually in these cases the markup is too complex to shove into a link anyway.

Happy to report that our production site has more links that look like buttons than it does buttons that act like links. It’s almost a meme on my team that Swiz will get you if you use onClick for navigation.

The other hill I enjoy defending is that we should use more browser built-in components instead of trying to design our own.

Re:Just Normal Web Things by toastal on Sunday August 06, 2023 @12:52AM (#37019084)
Please tell my your hill also doesn’t let folks use target=_blank without a very good reason to break the user agent's default behavior.
Re:Just Normal Web Things by Swizec on Sunday August 06, 2023 @03:11PM (#37025465)
Luckily that one doesn’t even come up. “Kids these days” don’t know about it :D

I jest, but I am at least 5 years older than everyone else on the team. And have the unfun background of getting into professional webdev before jQuery.

Re:Just Normal Web Things by xp84 on Sunday August 06, 2023 @02:34AM (#37019517)
> browser built-in components instead of trying to design our own.

Ugh. Let me know if you have any tips. All the art-school “UX designers” have to have custom date pickers and stupid knockoffs of iOS switches and custom drop-downs when there are actual, better, and automatically-accessible, versions of all those. How do you fight against this vanity design without making an enemy of the whole design team?

Re:Just Normal Web Things by danjac on Sunday August 06, 2023 @04:18AM (#37019967)
Any artist or designer has to learn their medium before they are allowed to produce designs for it. If you want to learn to sculpt, you have to learn what you can and cannot do with clay; if you want to learn to design clothes, you have to learn about fabrics, sewing and tailoring (Jean Paul Gautier and Versace worked as tailors in the industry while they were doing their early work).

Yet there seems to be a free pass where a "web designer" is allowed to dictate how a site should work and look without knowing the basics of HTML, CSS and JS.