News for hackers. Stuff that matters.
Re:JavaScript from 2001 on India's largest private bank site by ssijak on Tuesday March 16, 2021 @06:38AM (#26475022)
Why would anyone ever be embarrassed that their code from 2021 is not working on IE3 or Netscape?
Re:JavaScript from 2001 on India's largest private bank site by forgotmypw17 on Tuesday March 16, 2021 @07:01AM (#26475175)
Well, maybe not IE3, but I think it is embarrassing to deny access to, e.g. a five-year-old device with no upgrade path.

Many devs are out of touch with the world where people can't afford a new one.

I don't buy the security argument either, it's often just information access which is limited.

Re:JavaScript from 2001 on India's largest private bank site by KaiserPro on Tuesday March 16, 2021 @06:50AM (#26475098)
why would a watchmaker be embarrassed for not polishing the inside of a case that only the watchmaker can see?
Re:JavaScript from 2001 on India's largest private bank site by ssijak on Tuesday March 16, 2021 @07:07AM (#26475222)
It is false analogy.
Re:JavaScript from 2001 on India's largest private bank site by KaiserPro on Tuesday March 16, 2021 @10:58AM (#26477553)
Its not really. This person obviously takes great pride in making their websites uber compatible.

It takes great skill and effort to do this. Sure its a little batshit, but I applaud the level of perseverance that goes into it. I might have a different view if I was trying to ship something to a specific market segment in a hurry. However I'm not, and it pleases me immensely to see people do such silly[1] (and I mean this with the greatest of respect) things.

[1] For reference, adding chamfers and geneva stripes under things like the main barrel, is utterly silly. However, should I be paying >£50k for a watch, I full expect that _every_ inch of that watch is going to be a masterpiece of finishing (reference: https://www.crownwatchblog.com/how-it-works/finishing-school...)

Re:JavaScript from 2001 on India's largest private bank site by forgotmypw17 on Tuesday March 16, 2021 @07:32AM (#26475371)
Can you explain what is false about it?
Re:JavaScript from 2001 on India's largest private bank site by DC1350 on Tuesday March 16, 2021 @07:48AM (#26475484)
Because the standards you’re building against are arbitrary and just made up by other people. I can make a browser that crashes when it encounters a <div> tag. It’s a shitty browser. Will you feel bad when your stuff won’t work on it?
Re:JavaScript from 2001 on India's largest private bank site by forgotmypw17 on Tuesday March 16, 2021 @09:41AM (#26476546)
You're describing something purposely made non-functional, while I am building against software widely distributed and still occasionally encountered in the real world, hardly arbitrary.
Re:JavaScript from 2001 on India's largest private bank site by DC1350 on Tuesday March 16, 2021 @09:47AM (#26476615)
Do you test for compatibility with the Wii and Nintendo DS browsers?
Re:JavaScript from 2001 on India's largest private bank site by forgotmypw17 on Tuesday March 16, 2021 @09:52AM (#26476668)
I have not yet, but I would like to. If you can help, I would appreciate it.

Due to the wide variety of scenarios and configurations I already have tested with, I think it would be more likely than not that I'd be able to complete my base features test script with few issues.

Your question is a perfect example of why I go so far with testing.

Re:JavaScript from 2001 on India's largest private bank site by jakub_g on Tuesday March 16, 2021 @10:01AM (#26476775)
Talking console browsers:

https://shkspr.mobi/blog/2021/01/the-unreasonable-effectiven...

> A few years ago I was doing policy research in a housing benefits office in London

> ...a young woman sits on a hard plastic chair ...Clutched in her hands is a games console – a PlayStation Portable.

> ...She’s connected to the complementary WiFi and is browsing the GOV.UK pages on Housing Benefit

> The PSP’s web browser is – charitably – pathetic. It is slow, frequently runs out of memory, and can only open 3 tabs at a time.

> But the GOV.UK pages are written in simple HTML. They are designed to be lightweight and will work even on rubbish browsers. They have to. This is for everyone.

Re:JavaScript from 2001 on India's largest private bank site by jfrunyon on Tuesday March 16, 2021 @11:29AM (#26478077)
> The PSP’s web browser is – charitably – pathetic. It is slow, frequently runs out of memory, and can only open 3 tabs at a time.

I'm 99% certain that the latter part of that is false. Personally the PSP's browser was about on par with, eh, IE7 or so, the last time I used it (circa 2013).

Re:JavaScript from 2001 on India's largest private bank site by forgotmypw17 on Tuesday March 16, 2021 @01:27PM (#26479948)
I love me some IE7, but that also sounds about right for IE7 performance on the average crappy website.
Re:JavaScript from 2001 on India's largest private bank site by jfrunyon on Tuesday March 16, 2021 @04:19PM (#26482287)
Well... yeah, it wasn't very good. I realize now "latter part" wasn't clear - I meant just the bit about 3 tabs.

But heck... it even had Flash.

Re:JavaScript from 2001 on India's largest private bank site by DC1350 on Tuesday March 16, 2021 @10:00AM (#26476764)
Ok. I tried to make fun of you but you’re still friendly so I’m curious.

Do you mind if I ask what kind of stuff you’re maintaining where you see any traffic from these old browsers? Do you think it would ever be possible to transpile a site into some shared common set of syntax/features/whatever instead of making browser specific corrections? And what do you think about features like WebGL which are impossible to replicate on older browsers in a performant way?

Re:JavaScript from 2001 on India's largest private bank site by forgotmypw17 on Tuesday March 16, 2021 @10:29AM (#26477125)
Here's a summary of my journey: I started out just writing clean and simple HTML with NoJS support. I wanted to be usable over a slow connection and for Tor users. I had a few older browsers I liked which I also wanted to support. Also, text-mode like Lynx, for the hackers.

I happened upon a great digital art exhibit at the MFA in Boston, and one of the rooms had several beige boxes with Windows 95 and Netscape 3.04Gold set up to exhibit older Web art in a time-accurate setting.

It was then that I realized how much I liked that particular browser, how much I enjoyed using it, and also how capable it was. So I tried to adjust for it, and by then I had tested under so many others, it wasn't even much work. After that came others, like Mosaic and OffByOne and even more obscure stuff, barely a blip on the radar in its day. It became a fun hobby, and something to be proud of.

A couple years ago, NYC had useful Web access kiosks which were than locked up over public outrage about outdoors people using them for porn. However, they allowed Google Translate, and I was able to both read and post to my site via that.

I had not foreseen the use case, but because I had tested for so many others, it worked. All around, I refer to this as the bending over backwards development model. Like the city bus, I work hard to accomodate everyone, and don't turn anyone away if I can help it. Except spammers, fuck them.

Re:JavaScript from 2001 on India's largest private bank site by forgotmypw17 on Tuesday March 16, 2021 @10:16AM (#26476952)
Thank you!

>Do you mind if I ask what kind of stuff you’re maintaining where you see any traffic from these old browsers?

I'm maintaining mostly text-based resources, some of them about technology and interesting to nerds and retro enthusiasts, otheres just general purpose, which I want to make accessible to as many as possible.

For example, when I conducted my first user studies with actual users of screen readers, NO ISSUES were encountered, even though I had not yet made any special adjustments for them.

>Do you think it would ever be possible to transpile a site into some shared common set of syntax/features/whatever instead of making browser specific corrections?

Yes, absolutely. JavaScript makes it very easy by being able to feature-check most things. Also, NoJS is something I already start out with, so it's not difficult to just skip past things like createElement if not supported.

Three biggest challenges I've encountered is no > character (Mosaic treats it as end of HTML comment), no ===, and no anonymous functions.

>And what do you think about features like WebGL which are impossible to replicate on older browsers in a performant way?

I haven't done WebGL, but one feature I have which requires relatively modern JS (think Presto and IE9) is in a separate feature-checked module, older browsers not currently supported.

Again, my goal is for basic feature support, in some cases requiring a skilled operator. For example, this particular feature (client-side cryptographic signatures) can be replicated with an external application.

You need not look far for a great example of progressive enhancement and the benefits it brings. HN has a couple of JS-only niceties, without which the site is still perfectly usable.

Re:JavaScript from 2001 on India's largest private bank site by forgotmypw17 on Tuesday March 16, 2021 @06:58AM (#26475150)
Best answer I've seen :)