this post was submitted on 23 Oct 2023
313 points (95.1% liked)

Programming Humor

2681 readers
1 users here now

Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev

Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml

founded 1 year ago
MODERATORS
 
all 23 comments
sorted by: hot top controversial new old
[–] wreckedcarzz@lemmy.world 53 points 1 year ago (1 children)

"works on my machine" closes ticket

galaxy brain

[–] Goodtoknow@lemmy.ca 28 points 1 year ago (4 children)

Meh, test in and Chrome, Firefox, use f12 to simulate other devices viewport. Done.

Fuck Safari users tho

[–] 9point6@lemmy.world 8 points 1 year ago* (last edited 1 year ago)

Chrome is 63% (+ edge & Samsung as forks, makes it over 70%) of users, Safari is 20%, Firefox is 3%

Most organisations don't want you ignoring 1 in 5 people, so unfortunately Safari testing (especially with all its shitty bugs) should be second only to Chrome for any professional work.

Also unfortunately Firefox is only 0.5% of mobile traffic, so it's not representative of real users to only do your mobile viewport testing in that browser.

This is like, one step better than "works on my machine" but still totally lazy and only semi effective.

[–] moog@lemm.ee 1 points 1 year ago
[–] Swedneck@discuss.tchncs.de 20 points 1 year ago (2 children)

y'all do realize at least firefox has a built in function to test on different virtual devices, right?

[–] 9point6@lemmy.world 12 points 1 year ago* (last edited 1 year ago)

That's still only testing one browser, unfortunately, and especially for mobile, Firefox is a very small percentage of users

You ideally need to test Chrome, Safari & Firefox as the bare minimum, at least the latest Samsung browser is a good idea too as it's often based on an old version of chrome. Thankfully IE has dropped off the list for most engineers now.

[–] shasta@lemm.ee 6 points 1 year ago

It allows testing on different screen sizes and orientations that match certain devices (and allows you to input custom sizes). It also gives you the option to set the User Agent string so certain styles that might be programmed into the site will trigger. However, it does not run the code in different engines. It's still helpful, but will not show all the bugs or performance issues. For example, the way they render SVG images is slightly different. A certain image that loads quickly in chrome could potentially take longer in Firefox.

But to your point, you don't need all the devices in the above screenshot to do testing. If you really want to do it manually, you can do so with just Firefox, Chrome, and Safari and use their respective emulators to vary the screen size.

[–] aes@lemm.ee 16 points 1 year ago (2 children)
[–] rain_worl@lemmy.world 0 points 2 months ago

the only think i don't agree with on that site is that some sites shouldn't look like that. it is gorgeous. we must abolish css.

[–] creation7758@lemmy.ml 0 points 1 year ago

Nah. Doesn't support https

[–] CompanionCrow@lemm.ee 9 points 1 year ago

There are three sizes: big, medium, small.

[–] DaFuqs@feddit.de 9 points 1 year ago

But does it run on Nintendo DSi browser?

[–] drathvedro@lemm.ee 7 points 1 year ago* (last edited 1 year ago) (1 children)

Not really relevant anymore, almost everything is chromium nowadays and if you do responsive design in the first place the only thing you gotta test against is Firefox and maybe in some rare cases Safari on a 2 generation old iPad. The rest just works ™

What this meme originally alluded to is the time where it was rather common to check useragent on initial request and serve a completely different site, HTML, CSS, and everything, based on which device you visit from. So you'd have like a site for Chrome, and for Opera, for Firefox, for Edge and every IE, a Mac version, one for iPad, and a separate version for each iPhone model following the everchanging style guides, also a WAP site, a site for playstation, xbox and wii, and also a few Android ones. But the only company I know that still does this is Google, who serves a broken version of it's search to mobile Firefox users, just because they can.

[–] shasta@lemm.ee 1 points 1 year ago (1 children)
[–] drathvedro@lemm.ee 3 points 1 year ago

Try copying an image from image search. On Chrome there's newer UI where you can long-press an image and save it or copy the url. While on Firefox without addons it opens up a legacy UI that blocks long-presses. You either have to visit the site itself and fish out the image there, or press share, open the link yourself, which opens even older image page, where you can copy the url from "Full-size image" link. Google claims that Firefox lacks some abilities necessary to display Chrome's UI, but there's a simple addon called "google search fixer" that just mimics chrome's user-agent and proves that this is not at all the case.

[–] agent_flounder@lemmy.world 5 points 1 year ago (1 children)

I think I'll just stick to curses

[–] Diplomjodler@feddit.de 3 points 1 year ago

Death and damnation on you, blasted website! May your ancestors rue the day for seven generations where you don't work on all devices!

Am I doing this right?

[–] DeathbringerThoctar@lemmy.world 1 points 6 months ago
[–] 9point6@lemmy.world 1 points 1 year ago (2 children)

Or just a service like browserstack, much cheaper and easier than needing 100 devices. Obviously a bit of non-automated real device testing is a good idea too, but most of it should be automated.

[–] mesamunefire@lemmy.world 2 points 1 year ago

We had issues with browserstack. It would cache apps on android/iOS between machines. My company had to let them know that it was a security risk. Hope they fixed it.

[–] sheogorath@lemmy.world 2 points 1 year ago

That's if your management wants to invest in a BrowserStack subscription. I work in consulting and the budget the clients want to spend on test automation are zero.