News for hackers. Stuff that matters.
Re:Using the Web for a Day with JavaScript Turned Off by everdev on Tuesday May 08, 2018 @10:04AM (#17020926)
Back in 2006/7 I remember we'd use "progressive enhancement" to make a site work without JavaScript and then add JavaScript enhancements for those who had JS enabled.

At some point (maybe after the popularity of Google Maps?) nobody wanted progressive enhancement and it was totally cool to just ignore users who had JS turned off. It made web app development so much easier, but probably less user friendly.

It feels like JS is a hammer to fix the nail of the page reload. I always thought it was too bad that browsers choose to show the blank page instead of sending the request and just rendering the difference themselves.

Re:Using the Web for a Day with JavaScript Turned Off by romaniv on Tuesday May 08, 2018 @10:49AM (#17021262)
>It made web app development so much easier

I aim to develop web UIs using (mostly) progressive enhancement. I adopted several practices and developed some libraries supporting this process. As a result:

1. When I need to create something, I know exactly which data structures to use. This is determined by what is available in modern browsers.

2. I can quickly prototype solutions using plain HTML focusing on logic rather than style.

3. Since my data is by definition contained in HTML, I can easily query it using CSS queries. This makes working with nested data a breeze.

4. I factored code I reuse into generic, self-contained behaviors. Things like "when this form is invalid, this control should be inactive". There is usually very little to none page-specific code.

5. Once a behavior is written and tested, "debugging" usually involves simply making sure the page has the right attributes. I can do this by running a CSS query in console or looking at DOM. No breakpoints, no stepping, no watches.

6. The most important part: I can add one behavior at a time and the result is something that works and makes sense.

7. A lot of UI "logic" I used to have in scripts naturally migrated to CSS.

I like this process way more than fiddling with tons of page-specific "glue" JavaScript. I especially like it when I'm in a crunch, because it pre-defines a lot of the things I would have to "design" on the fly in a traditional development workflow. Also, if I run out of time I have a working (if ugly) app. If I introduce a bug somewhere in UI or run into a compatibility issues, it usually doesn't result in the entire user workflow stopping dead.

Re:Using the Web for a Day with JavaScript Turned Off by scaryclam on Tuesday May 08, 2018 @11:03AM (#17021366)
You sir (or ma'am), are a credit to modern web developers :) I love that you're using PE as a development tool and not just doing it because it's a good way to build robust websites and applications. I may have to try and sell your reasoned approach to some of my colleagues (they're not PE averse, but don't always see it as a great benefit).
Re:Using the Web for a Day with JavaScript Turned Off by Grumbledour on Tuesday May 08, 2018 @12:29PM (#17022194)
This can't be upvoted enough. Making sure your site works from the ground up will improve the product, the process and the developer. Less, easier to read code, less development time, easier to maintain, more and better understanding of the subject matter. And probably better usability as well, since one took the time to think it through.

Sometime you have to cut corners, sure, but if you know what you are doing, the PE way is probably the easier one from the start.

Re:Using the Web for a Day with JavaScript Turned Off by pjmlp on Tuesday May 08, 2018 @10:53AM (#17021288)
This is also my approach, when I am allowed to set the rules.

Server side rendering with vanilaJS for the snippets that actually matter.

Re:Using the Web for a Day with JavaScript Turned Off by NetOpWibby on Tuesday May 08, 2018 @11:38AM (#17021716)
Yes! Glad to see I’m not crazy.
Re:Using the Web for a Day with JavaScript Turned Off by jacquesm on Tuesday May 08, 2018 @01:53PM (#17022974)
Thank you!
Re:Using the Web for a Day with JavaScript Turned Off by Androider on Tuesday May 08, 2018 @10:14AM (#17021005)
It does make development easier, and at some point it just doesn't make sense to support any longer.

If the number of people who visit your site with JavaScript disabled is less than the number of people who visit using the Opera browser, does it really make sense to add [number of supported browsers] x [JS on | JS off] permutations to your testing workload? Is spending the time and resources on creating a non-JS site worth it, or would it better spent somewhere else (usability, accessibility, etc.)? Everything is a trade-off.

I personally feel the JS ship has long sailed. I'm more worried about the recent trend of sites not even working in Firefox anymore, just Chrome. That is definitely a bit sad.

Re:Using the Web for a Day with JavaScript Turned Off by reificator on Tuesday May 08, 2018 @11:22AM (#17021537)
> If the number of people who visit your site with JavaScript disabled is less than the number of people who visit using the Opera browser, does it really make sense to add [number of supported browsers] x [JS on | JS off] permutations to your testing workload?

If your site doesn't work for people with JS disabled, you're unlikely to see significant traffic from people with JS disabled.

Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @11:24AM (#17021558)
Also, if you use JavaScript trackers instead of server logs, guess which group won't show on those trackers at all...
Re:Using the Web for a Day with JavaScript Turned Off by scient on Tuesday May 08, 2018 @12:00PM (#17021949)
Most trackers have a way to handle non-JS clients by rendering a tracking pixel - a solution that has been out there for a long time now.
Re:Using the Web for a Day with JavaScript Turned Off by etatoby on Tuesday May 08, 2018 @03:37PM (#17024099)
Last time I checked, the default embed code provided by Google Analytics (which covers 99% of website stats) was a single script tag.
Re:Using the Web for a Day with JavaScript Turned Off by dredmorbius on Tuesday May 08, 2018 @12:07PM (#17022000)
The anti-JS crowd also tends to block tracking pixels. E.g., New Relic's tracking beacon.
Re:Using the Web for a Day with JavaScript Turned Off by NetOpWibby on Tuesday May 08, 2018 @11:37AM (#17021703)
I just launched a product last week that solves this very use case (for Express apps): https://chew.sh.

It is VERY much an alpha and a lot of things aren’t working, just the bare minimum.

Re:Using the Web for a Day with JavaScript Turned Off by etatoby on Tuesday May 08, 2018 @03:41PM (#17024156)
> requires JavaScript, please enable it to ensure a joyful browsing experience

(followed by some horribly formatted content, at least on my phone)

Guess which product I will not be buying today?

Re:Using the Web for a Day with JavaScript Turned Off by NetOpWibby on Tuesday May 08, 2018 @03:46PM (#17024191)
Lucky for you I'm not selling anything. Also, like I said, it's in alpha. Almost nothing is working. I just wanted to get it in production so I could start tracking my sites.

No worries etatoby, just wanted to share an alternative.

EDIT: Thanks for your comment though, I just thought of some ways I can improve usability by using <noscript> to explain why JS is used for something.

Re:Using the Web for a Day with JavaScript Turned Off by graysonk on Tuesday May 08, 2018 @05:36PM (#17025407)
> Lucky for you I'm not selling anything

Hmm there is a pretty big "Pricing" section in the middle of the page for me

Re:Using the Web for a Day with JavaScript Turned Off by NetOpWibby on Tuesday May 08, 2018 @05:40PM (#17025445)
Well yeah, when it's done. As in, no time soon.
Re:Using the Web for a Day with JavaScript Turned Off by romaniv on Tuesday May 08, 2018 @12:05PM (#17021981)
> Is spending the time and resources on creating a non-JS site worth it

Comments like these make me wonder if any of the people saying PE is hard ever tried it at all. The whole point of progressive enhancement is that you don't create a separate non-JS website.

Re:Using the Web for a Day with JavaScript Turned Off by NoGravitas on Tuesday May 08, 2018 @01:59PM (#17023055)
Of course they haven't tried it. Some thought leader told them PE was dead (or smelled funny), so they were able to write it off and go ahead with what they wanted to do anyway.
Re:Using the Web for a Day with JavaScript Turned Off by ergothus on Tuesday May 08, 2018 @02:56PM (#17023676)
I do not understand your comment. Progressive Enhancement (and I've done it) has a lot going for it, but "easier" or "as easy" isn't the case. Thus time and resources are spent to get the same functionality.

Example: I make a form. It works without JS, so my server has to generate the form, handle the request where the form is submitted, and generate the result HTML. If I'm practicing good separation of concerns, the work is done in a service/contained library that the webserver code calls and assembles into a page. Then I go to add a "nice" Js experience: disable the normal form submit, read the form data, send the request, parse what I need out of the HTML result ("parse" = easy cut here) and replace the portion of the DOM involved. A nice, maintainable PE site. Nothing wrong with that.

But if I have the server generate the original page only, I can have JS read the form, call the service, and update the DOM. I was able to completely skip the server composing a new page. And that's for a bone-simple form, if my site has any interaction on that form before submit, each step represents duplicated effort. Checking if a name is already used? JS to call a service and add a line. Server/service absolutely needs to check that, but if we're not worrying about PE we can completely skip worrying about a nice UI generated on the server-side (which would involve re-populating the form we got, so it's not just "same HTML + one line"). And that's still the stupid-simple stuff.

To do this I need to design the application w/o JS and then find nice ways to improve it. But my designers, my PMs, they are all thinking from a JS-first point of view, so without PE when they say "do X" I can do X. With PE when they say "do X" I need to figure out how to do Y (a flow they didn't consider at all), and make sure it can behave like X. Anywhere it's hard to do so, it's on me to fix that because neither design nor business consider PE remotely important or valuable.

PE is great, and I'd love to work on more sites that use it...but I'll confess I rarely put forth the effort myself, even when I do have the space to do so in a project. Because Progressive Enhancement IS effort (most importantly time), effort that will most likely be seen by a single digit number of users and I've got a lot of stuff I want to do and a lot I need to do. Even a free hour can improve my productivity or quality for far more users if I spend it in something other than PE.

PE has very real benefits beyond just working without JS...but even those benefits rarely outweigh the time/effort costs in an industry where there's always far more work than time.

Re:Using the Web for a Day with JavaScript Turned Off by andrei_says_ on Tuesday May 08, 2018 @06:06PM (#17025678)
I’ve always wondered why anyone would use JS for form submission? One JavaScript error in one remote library and customers are now unable to contact you, and The only signal you get for the failure is your empty inbox.
Re:Using the Web for a Day with JavaScript Turned Off by zeveb on Tuesday May 08, 2018 @10:44AM (#17021219)
> It does make development easier, and at some point it just doesn't make sense to support any longer.

It depends on what you're doing. If you're building an app (something which would make more sense as a native program anyway), then sure — use JavaScript. But if you're displaying text and images, then HTML & CSS are perfectly capable of handling that.

In general, I think that a good content-focused website will work equally well across all browsers. There's no need to force end-users to allow you to execute code on their machines in order to display paragraphs or images.

> I'm more worried about the recent trend of sites not even working in Firefox anymore, just Chrome.

And I'm worried about the long-standing trend of sites not even working in lynx, links, elinks, eww or w3m anymore, just Firefox, Chrome & IE.

Re:Using the Web for a Day with JavaScript Turned Off by pishpash on Tuesday May 08, 2018 @10:54AM (#17021294)
Worse, some sites don't even work for pdf-print any more.
Re:Using the Web for a Day with JavaScript Turned Off by c22 on Tuesday May 08, 2018 @11:59AM (#17021943)
> Is spending the time and resources on creating a non-JS site worth it, or would it better spent somewhere else (usability, accessibility, etc.)?

Even a naive approach to making a javascript-rich site render with JS turned off will have profound positive impacts on usability and accessibility, so I'd say it's still worth it.

Re:Using the Web for a Day with JavaScript Turned Off by godzillabrennus on Tuesday May 08, 2018 @11:50AM (#17021848)
Firefox was amazing tech that changed how many of us used the web. Competition is good for the web. Hopefully they take back market share.
Re:Using the Web for a Day with JavaScript Turned Off by cptskippy on Tuesday May 08, 2018 @11:04AM (#17021372)
I remember when we used the term "Graceful Degradation".

It really isn't that hard to design a functional HTML site and then layer Javascript and AJAX over top of it to enhance the experience. There are very few sites that actually need to be using Frameworks like Angular and React.

Sometimes I wonder if most developers would even be able to design a functional site using only HTML. It seems like most don't know the difference between a button and an anchor.

With modern server side frameworks it's even easier to support graceful degradation or progressive enhancement as the frameworks will handle the accept header processing for you.

Re:Using the Web for a Day with JavaScript Turned Off by Grumbledour on Tuesday May 08, 2018 @11:08AM (#17021407)
However, its also important to mention, that with react and careful planing, a no-js version is basically included for free.

One might debate if a page really needs hundreds of kb of js to function, but then again, this is not much different than the classical progressive enhancement site with jquery etc. layered on and reacts server rendering can make to page easily available and working when js is disabled.

Re:Using the Web for a Day with JavaScript Turned Off by cptskippy on Wednesday May 09, 2018 @09:48AM (#17029755)
> However, its also important to mention, that with react and careful planing, a no-js version is basically included for free.

Careful planning is required of all frameworks to make a JS free version. I wouldn't say it's a feature of React or that it's free.

> One might debate if a page really needs hundreds of kb of js to function, but then again, this is not much different than the classical progressive enhancement site with jquery

JQuery was a crutch that wasn't strictly necessary and with modern browsers you can largely do without it and write pure JavaScript. Assuming you know how, which I would wager most developers don't.

Re:Using the Web for a Day with JavaScript Turned Off by realusername on Tuesday May 08, 2018 @10:10AM (#17020976)
> Back in 2006/7 I remember we'd use "progressive enhancement" to make a site work without JavaScript and then add JavaScript enhancements for those who had JS enabled.

I still do that on my case, a good 95% of the features I develop work without Javascript. One additional benefit is that if your JS crash for any reason, most of the things are still working.

Re:Using the Web for a Day with JavaScript Turned Off by brightball on Tuesday May 08, 2018 @10:31AM (#17021123)
I continue to do it as well. Web frameworks make it so easy it’s hard to justify not doing it.

There are so few web apps that actually need the SPA treatment. It’s a lot simpler to ignore the tool chain headaches that come from committing to the SPA when you don’t need it and gracefully degrade.

It’s so rare that I actually run into an SPA that doesn’t feel slow...I just wonder why people bother sometimes.

Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @10:52AM (#17021275)
> It’s so rare that I actually run into an SPA that doesn’t feel slow...I just wonder why people bother sometimes.

It's fashion over function on the business side, and CV-driven development on the frontend people's side.

Re:Using the Web for a Day with JavaScript Turned Off by ropeadopepope on Tuesday May 08, 2018 @03:49PM (#17024219)
> It's fashion over function on the business side

Oh, there's a function to it. The 7 year tech cycle generates huge amounts of money for everybody involved. Consultants and consulting companies get a nice influx of billable hours every time the tech changes. Software companies pay to upgrade to the coolest tech because it's relatively cheap compared to the amount of money it generates. Users like it because with each tech upgrade comes an increase in convenience and graphical design. And, in some ways, having the latest version of the hot apps is another way of keeping up with the Joneses. Everybody's happy except for the power users. They tend to get left out in the cold.

Re:Using the Web for a Day with JavaScript Turned Off by SquareWheel on Tuesday May 08, 2018 @11:17AM (#17021490)
I've never even heard of Javascript "crashing". Is that a thing that happens?
Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @11:29AM (#17021621)
I've seen it plenty of times. Something triggers a JS execution bug that breaks the entire script. Suddenly, the site is dead. If you're lucky, it might start working after reload. If not, you'll have to wait until developers figure out something is wrong.

Causes vary. Sometimes it's a resource that fails to load. Sometimes it's a race condition. Sometimes, it's just dumb coding[0]. The more JS is put on site, and the more the site depends on it, the more likely it is to happen.

--

[0] - Like one of the large food order sites in my country that won't let you submit a form if it contains a number in the comment box - the very comment box you're supposed to use to add details like floor number. The problem persisted for the last couple times I used them (in a space of several weeks), so I wonder if they even realized they have a problem and are losing business because people see the checkout form broken without explanation, and order elsewhere.

Re:Using the Web for a Day with JavaScript Turned Off by realusername on Tuesday May 08, 2018 @11:21AM (#17021535)
If you have a big website with lots and lots of different kind of visitors you either have:

- Visitors with a bandwidth so low it takes a long time for the JS to download completely (so making it work in the mean time helps a lot).

- Visitors with outdated browsers where your JS will stop on some unsupported feature you forgot to polyfill (I usually add a polyfill after when I see it but in the mean time it works), that's what I meant by "crashing", it never works 100% of the time in 100% of the cases, it depends on the browser as well.

Re:Using the Web for a Day with JavaScript Turned Off by reaperducer on Tuesday May 08, 2018 @11:41AM (#17021745)
I built a website for a mid-sized health care company, and the primary goal was to communicate with as many people using as many devices as possible, not to be flashy.

With that mandate, the site (about 300 pages) ended up almost completely js-free. I think there was only one page that had js, and that was for a calculating widget.

js is great for certain things, but certainly not necessary for all the things it's used for.

Re:Using the Web for a Day with JavaScript Turned Off by sireat on Tuesday May 08, 2018 @05:05PM (#17025100)
Admirable, what type of stack did you use for the back-end?

I remember there was a movement to be completely JS free in late 90s/early 2000s.

Re:Using the Web for a Day with JavaScript Turned Off by reaperducer on Wednesday May 09, 2018 @10:58AM (#17030319)
Nothing fancy. Just a plain LAMP stack. IDE was Coda2. I can't tell you about server stuff, though; that's handled by a different department.
Re:Using the Web for a Day with JavaScript Turned Off by dredmorbius on Tuesday May 08, 2018 @12:10PM (#17022020)
Sounds like a potentially sane organisation. Care to mention them?.
Re:Using the Web for a Day with JavaScript Turned Off by reaperducer on Tuesday May 08, 2018 @12:16PM (#17022059)
Not really. I'm still "the new guy" and I'm not sure how they'd feel about me outing it. Though the consultants keep talking about submitting the site for some kind of award. So maybe you'll see it eventually.
Re:Using the Web for a Day with JavaScript Turned Off by dredmorbius on Tuesday May 08, 2018 @12:57PM (#17022479)
Understood, thanks.

Maybe throw this in the pot: There are those of us who care about such things, and honest signalling counts for something.

Re:Using the Web for a Day with JavaScript Turned Off by yosito on Tuesday May 08, 2018 @12:26PM (#17022163)
> At some point (maybe after the popularity of Google Maps?)

I feel like there was a huge uptick in developers ignoring users with JS turned off when Angular and React started becoming popular. It's interesting to note that big tech companies, who have a financial interest in pushing websites away from progressive enhancement techniques, were the ones behind the creation of those frameworks.

Re:Using the Web for a Day with JavaScript Turned Off by wgerard on Tuesday May 08, 2018 @10:10AM (#17020975)
> I always thought it was too bad that browsers choose to show the blank page instead of sending the request and just rendering the difference themselves.

FWIW there are libraries that work around this, e.g. turbolinks - which I heavily suspect Github is using, and is probably a large part of why they're able to support progressive enhancement.

Re:Using the Web for a Day with JavaScript Turned Off by mattmanser on Tuesday May 08, 2018 @10:45AM (#17021231)
It's more than that, they could have fixed html to support snippets without needing a full page reload.

They haven't and now we're in this javascript SPA mess.

Re:Using the Web for a Day with JavaScript Turned Off by NoGravitas on Tuesday May 08, 2018 @02:08PM (#17023142)
This, so much. There's a reasonable set of common JS usage patterns out there that really ought to be replaced with declarative statements in HTML and supported by browsers, so that doing things like dynamic forms, drag-and-drop areas, page transitions without reload, notification badges, etc. would not have to require running arbitrary code.

Intercooler.js provides a preview of what this could be like, but, of course, it's layered on top of javascript since that's the hammer we have to work with.

Re:Using the Web for a Day with JavaScript Turned Off by mattmanser on Tuesday May 08, 2018 @05:58PM (#17025610)
MS actually did somethinng like this in IE5/6 in VB, but it never caught on. You could write a sort of reusable code snippet. I can't remember for the life of me what they were called though.

Probably had the word "Active" in it. Active control or something like that.

Re:Using the Web for a Day with JavaScript Turned Off by acomjean on Tuesday May 08, 2018 @10:13AM (#17020999)
I thought progressive enhancement.

I think people expect much more interactivity now, (I think google maps was a driver and web based email as well), so it became harder to do pure back end. For example a lot of the queries I run now show a dynamically generated graph. I can do that on the back end, but much easier to use a javascript charting package. I guess I could just use javascript all the way down

Re:Using the Web for a Day with JavaScript Turned Off by reitanqild on Tuesday May 08, 2018 @10:30AM (#17021111)
> I think people expect much more interactivity now,

This keeps coming up.

Personally I keep thinking that devs and cv-driven development might be to blame as I rarely hear any customer demand anything that demands a frontend framework for their web sites (now web apps, that's another story).

Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @10:39AM (#17021184)
Seconded. Actual users have little demand. Especially non-tech users. They just take what devs give them. Frontend stuff seems mostly fashion-driven these days, with designers copying other designers. I can't imagine any user actually asking for hero images, hamburger menus, floating headers/footers, webfonts, or making JS required to render article text.
Re:Using the Web for a Day with JavaScript Turned Off by CamTin on Tuesday May 08, 2018 @11:17AM (#17021493)
It is fashion-driven, but that's not to say that it ignores what users want. Nobody was asking for bell bottoms or leisure suits either, but people bought millions of them. Customers will say "our site needs a refresh" or "our site looks dated", when what they mean is that, regardless of whether or not its functional, they seem old and stodgy compared to their competitors. This happens in brick-and-mortar too: restaurant or shop owners will remodel even if there's nothing really wrong with their existing shop functionally.

The real problem is that fashions are even possible on the web. This is what Ted Nelson calls the "triumph of typesetters over authors," and it's one of the great tragedies of the computer age. We could have had a real, global, hypertext system with working two way links and micropayments, but instead we got HTTP and HTML.

Re:Using the Web for a Day with JavaScript Turned Off by pjmlp on Tuesday May 08, 2018 @10:56AM (#17021308)
It is not without its own set of quirks, but native frontend is surely much more sane.
Re:Using the Web for a Day with JavaScript Turned Off by TuringTest on Tuesday May 08, 2018 @11:35AM (#17021673)
If your page consist solely on a dynamically generated graph, it's OK for it to not show anything with JS disabled.

If you have other content though, it's not OK to not show anything; only the graph should be missing without javascript, the rest of the page should still render.

Re:Using the Web for a Day with JavaScript Turned Off by romaniv on Tuesday May 08, 2018 @11:50AM (#17021853)
>If your page consist solely on a dynamically generated graph

You can put data for the graph into a table, then use a script to render that table as a graph. If people cared enough, graph libraries could expect heir data in table format.

Re:Using the Web for a Day with JavaScript Turned Off by acomjean on Tuesday May 08, 2018 @02:14PM (#17023217)
I use the graph and a table under technique.

Saddly most graph libraries seem to love json data formats, which aren't logically table oriented... though if you used the json data and javascript to load the table and create the graph...

Re:Using the Web for a Day with JavaScript Turned Off by majani on Tuesday May 08, 2018 @05:16PM (#17025215)
There was a viral post on HN back in the day that demoed how the web would look like with seamless page loads instead of JavaScript. The consensus then was that the blank page and spinning gifs were good UI for showing that your click has led to a major change, while seamless JS communicated a minor action to the users
Re:Using the Web for a Day with JavaScript Turned Off by amelius on Tuesday May 08, 2018 @12:37PM (#17022273)
> It feels like JS is a hammer to fix the nail of the page reload.

JS is useful for much more, e.g. collaborative editing, where the user doesn't have to wait for a server round-trip. JS is essential for a real-time multi-user interactive web.

[dead]
Re:Using the Web for a Day with JavaScript Turned Off by mattmanser on Tuesday May 08, 2018 @10:48AM (#17021250)
What do you mean about dropping i18n?

How can we drop that, force everyone to speak Esperanto?

[dead]
Re:Using the Web for a Day with JavaScript Turned Off by uvatbc on Tuesday May 08, 2018 @11:13AM (#17021450)
I'd prefer to take your comment as a push for a common language across the planet.

In other words, remove the need for i18n before removing i18n.

Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @11:37AM (#17021705)
I'd start even simpler. ISO 8601 for dates. Metric for measurements. One way of writing numbers (I like the programming convention, with dot being the decimal place separator). It would already simplify many things, leading to efficiency gains across many segments of economy.
Re:Using the Web for a Day with JavaScript Turned Off by SolaceQuantum on Tuesday May 08, 2018 @11:02AM (#17021359)
With the way the population is going we’re more likely to use mandarin or Hindi as an international language.
Re:Using the Web for a Day with JavaScript Turned Off by plopz on Tuesday May 08, 2018 @11:29AM (#17021611)
Mandarin has the most first language speakers, but English is far ahead for second language speakers.
Re:Using the Web for a Day with JavaScript Turned Off by gear54rus on Tuesday May 08, 2018 @11:12AM (#17021438)
Western civilization needs to prevail somehow too, yes. The tech world is still English-first IMO and the tech drives everything else nowadays because it provides enormous advantages.
Re:Using the Web for a Day with JavaScript Turned Off by always_good on Tuesday May 08, 2018 @11:22AM (#17021539)
This is some of the most self-centered reasoning I've seen on HN. Everyone should learn English to reduce your workload.

It's almost a caricature of the stereotypical redneck who has never left the country and gets mad when they overhear someone speaking Spanish at Fiesta, muttering "but this is America" under their breath.

Re:Using the Web for a Day with JavaScript Turned Off by lmkg on Tuesday May 08, 2018 @11:39AM (#17021719)
> It's almost a caricature

It IS a caricature.

https://en.wikipedia.org/wiki/Poe's_law

Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @11:35AM (#17021674)
Maybe some see it as self-centered, but I find it resonates with me strongly. Now that we're a global civilization, life would be much simpler of global-scale things get standardized. Like, if metric system was adopted everywhere. If people used ISO 8601[0] instead of whatever is their random way of writing time down. If people used one well-defined number format. Etc.

IMO what's really being self-centered is - when dealing with international things like the Internet - to insist on making everyone else's life harder for the sake of whatever random local tradition you grew up with.

And I say that as European with plenty of weird localized ways of writing dates, numbers, currencies, etc. Ways which I abandoned pretty much as soon as I got exposed to computing.

--

[0] - https://xkcd.com/1179/

Re:Using the Web for a Day with JavaScript Turned Off by Rapzid on Tuesday May 08, 2018 @12:01PM (#17021962)
Mmmmm, lexicographically sortable. I prefer the RFC3339 profile, but YES to ISO-8601 for anything meant to be readable by a human. It's loony how many different formats are in use on the wire and internally in programs.
Re:Using the Web for a Day with JavaScript Turned Off by gear54rus on Tuesday May 08, 2018 @11:44AM (#17021784)
How is it self-centered though? There's not 'self' here. My profession (IT) is not the only profession that requires translations. They are required everywhere and so what I am saying is applicable everywhere. My nationality is not in question either, because I am not a native speaker. How is that self centered?
Re:Using the Web for a Day with JavaScript Turned Off by falcolas on Tuesday May 08, 2018 @01:57PM (#17023035)
> How is that self centered?

"I find it to be too much work, and I derive no value from it, so we shouldn't do it."

Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @02:20PM (#17023282)
Hey, I'm actually arguing your case :). I find sticking to local customs to be self-centered, because "why should I change to accommodate other people?".
Re:Using the Web for a Day with JavaScript Turned Off by jacquesm on Tuesday May 08, 2018 @01:55PM (#17023013)
It's self centered because you have already crossed that bridge.
Re:Using the Web for a Day with JavaScript Turned Off by TeMPOraL on Tuesday May 08, 2018 @02:22PM (#17023308)
I'd say sometimes not crossing that bridge, which leads to a common meeting place, and instead insisting that everyone caters to your side is self-centered, but I just recognized that the exact same argument can be used against my position that most websites should be usable without JavaScript... Oh the irony.
Re:Using the Web for a Day with JavaScript Turned Off by jacquesm on Tuesday May 08, 2018 @02:35PM (#17023456)
For years the computing world had the position that if it couldn't be expressed in ASCII7 then 'fuck you'. Of course might makes right and all that but this goes beyond a couple of diacriticals. Finally with UTF-8 and i8n we now have a somewhat level playing field where for those that want we can exchange information.

The segregation between these language spheres on the web is incredibly effective. For instance, the Spanish and the English web rarely link to each other (and if they do it is most likely a link from the Spanish part to the English part). Ditto with many other language pairs.

A single world language is a nice thing to strive for, but I don't see why it would have to be English by default, even though that's what it probably will end up being anyway.

The French have always felt that their language is somehow special and that it should be given preference in the EU, and until not all that long ago it was the 'official' language in quite a few European countries by virtue of being the language of the wealthy. For the longest time the Dutch driving license still had the words 'permis de conduire' on it for that reason (and not as a convenient translation for any French police that might take an interest in the document).

French as a second language was the default, English a distant third. That's all changed now, but it is no different if it is imposed rather than of free will.

So if you want to go to that common meeting place that's fine, but if you're forced to go that common meeting place because a bunch of tech bozos have decided your culture, script and language don't matter because they have already mastered English because it was a requirement for them to be employed then that isn't.

Re:Using the Web for a Day with JavaScript Turned Off by gear54rus on Tuesday May 08, 2018 @02:39PM (#17023493)
And if I didn't it would be empty words. You just can't win :)
Re:Using the Web for a Day with JavaScript Turned Off by jacquesm on Tuesday May 08, 2018 @02:46PM (#17023579)
Google translate! I've seen more than one conversation between people that do not speak each others language through automated translators and even though the results are imperfect and sometimes humorous it does work to the point that it amazes me. It also gets it spectacularly wrong at times, but still. So far no intergalactic wars have broken out over this.
Re:Using the Web for a Day with JavaScript Turned Off by pjmlp on Tuesday May 08, 2018 @10:55AM (#17021301)
Good luck with that.
Re:Using the Web for a Day with JavaScript Turned Off by rattaz on Tuesday May 08, 2018 @12:27PM (#17022176)
Do you speak one language only? Even one additional language would change your perspective here. You won't be able to translate all that properly into one language.

A people's language is a window into their culture and their being. Each language (and even dialect) have their own insightful and delightful quirks.

I could only lamely elaborate here on own experience.

Re:Using the Web for a Day with JavaScript Turned Off by jwilk on Tuesday May 08, 2018 @12:58PM (#17022488)
> Each language (and even dialect) have their own insightful and delightful quirks.

Sure. But you won't be able to enjoy it on a random website. Most of the time the translation quality is mediocre.

Re:Using the Web for a Day with JavaScript Turned Off by gear54rus on Tuesday May 08, 2018 @12:34PM (#17022261)
No I speak Russian and English. Russian is native.
Re:Using the Web for a Day with JavaScript Turned Off by bitwize on Tuesday May 08, 2018 @10:31AM (#17021124)
Iron law of Web development: You develop your site for tge platform that has 95% of your user base, and tell the other 5% to join the 21st century because supporting them is not worth the cost.

Back in the early 2000s, this meant you had to check your site in IE. Stragglers still using Netscape could pound sand.

Re:Using the Web for a Day with JavaScript Turned Off by cptskippy on Tuesday May 08, 2018 @10:57AM (#17021317)
Actually we use to tout Graceful Degradation back in those day. Most sites were either static, rendering information from a DB, capturing simple form input, or a combination of the three. AJAX wasn't a thing and the concept of Web Apps didn't exist.

If you were checking user agents then chances are you were doing something stupid or lazy.

Re:Using the Web for a Day with JavaScript Turned Off by bitwize on Tuesday May 08, 2018 @12:07PM (#17022005)
> Actually we use to tout Graceful Degradation back in those day.

I don't know who "we" is, but what was touted and what was actually done were, then as now, two different things. The client wanted something fancy, was only willing to pay developers who would deliver, and (crucially) was running IE as their browser. As was most of the audience for the page. Stupid or lazy it may have been, it's still what web developers did to feed their families.

Re:Using the Web for a Day with JavaScript Turned Off by icebraining on Tuesday May 08, 2018 @11:30AM (#17021627)
Yet "Best Viewed With Internet Explorer/Netscape" was common back then.
Re:Using the Web for a Day with JavaScript Turned Off by c22 on Tuesday May 08, 2018 @12:19PM (#17022093)
I put one of those graphics on my very first angelfire site, because all I had was IE and I hadn't checked how it would work in anything else. When people started paying me for web development, though, I started installing browsers, operating systems, and even acquiring whole new devices (wap phones) to see how my client's sites were rendering in the real world. I spent whole nights agonizing about tiny tweaks and compatibility hacks to make sure everything looked good, this was the majority of the job in the early aughts. Now, in 2018, if you stick to a somewhat conservative set of html and css you can build nice looking sites that render great in any moderately modern browser across thousands of devices. It's insane to me that web developers now would rather descend back into compatibility hell by making their sites rely on a stack of unwieldy and opaque javascript.
Re:Using the Web for a Day with JavaScript Turned Off by pjmlp on Tuesday May 08, 2018 @10:57AM (#17021318)
Nowadays Chrome replaced IE.