7 ms·
If developers are genuinely concerned with browser diversity and not handing the Web over to Google and whatever they deem to be the next IE6, it starts with ha
by userbinator 7y ago
If developers are genuinely concerned with browser diversity and not handing the Web over to Google and whatever they deem to be the next IE6, it starts with having a test plan for other browsers.
I'd say it starts with dialing back the "new feature/change fetish" that a lot of web developers have. Yes, I know some things simply can't be done without a JS webapp, but not all and probably not even a majority, so if HTML and CSS will do the job fine, then so be it; and even if it needs to use JS, it likely doesn't need to be latest-browser-only JS either.
The constant "X is bad, use Y; no, Y is bad, use Z; no, Z is bad, use..." churn and that "push the web forward" trendchasing seems to be so entrenched in "modern" (there's another buzzword) web dev culture that I wonder if Google/Chrome is responsible for cultivating and propagating it, because it's not quite as endemic in other areas of software and also helps Chrome keep its monopoly, since it keeps the target moving and beckons at others to "catch up".
I think web developers need to adopt a more "do what you can with what you have"/demoscene-ish (for lack of a better term) attitude and not the silly "I could do it with just X, but I'll use Y because it's newer/better-but-I-can't-explain-why-and-everyone-else-is" that really just assists Google's monopoly. In other words: Writing a webapp that could work over 20 years of browsers may not be as hard as it sounds (I've done it --- and I'm not even a web developer --- which might be the reason why...), and you will definitely help browser diversity that way.
- cageface 7y agoThe problem with this is that the web is competing with native apps. A vanilla HTML site might be good enough in some cases but often you really need to push the envelope of what’s possible the web and that’s hard to do and also support niche browsers on a tight development budget.
- potench 7y agoYou can install a “progressive web app” as a native Android app now. There’s been a big push to develop PWAs on the heels of react and single page apps for a couple years now - google is doing a good job trying to support the web as users move so aggressively to mobile. Facebook basically has its own browser in-app(iOS and Android), i bet that browser has more traffic than Firefox.
- pjmlp 7y agoGoogle is a bit schizophrenic though. You can watch IO talks from Android, Chrome, Flutter where the presenter eventually throws some jabs at other competing stacks as if they aren't from the same employer.
- notyourword 7y agoUsing the word schizophrenic like that contributes to the stigma associated with psychotic mental illness. It is ableist to use a disability you don't have as a metaphor.
- pjmlp 7y agoSo the censorship of how we are allowed to speak has arrived to HN?
- lightedman 7y agoIt was always here, right in the rules dictating how you are to speak. Corporations acting like dictators. Makes you feel all nice and warm, doesn't it?
- notyourword 7y agoYou can call disabilty politics censorship if that is what makes you feel good.
- pjmlp 7y agoWhat makes me feel good is freedom of speech and fight against the return of the kind of government my ancestors were forced to live on.
- GuB-42 7y agoAll large companies are schizophrenic to some extent. Where I work, departments bill each other. Sometimes, two departments develop competing tools that are third department could make use of. Instead the third department use an off the shelf tool because the "license" for the internal tools is too expensive. At these scales, companies are almost like states. A group of entities with shared services but otherwise working independently.
- userbinator 7y agoThe problem with this is that the web is competing with native apps. Only for certain things. A lot of web browsing is still pure information-consumption. The "native apps" are also turning into effective webapps, thanks to Electron and the like. Even this site, which is interactive, doesn't require JS to use (it provides some enhancements, but the site is still quite usable without.)
- TheGoddessInari 7y agoGoogle's practices pushing web non-standards haphazardly are so heinous that even Electron can't usually handle general web apps, like WhatsApp (especially) because it depends on Chrome-specific, not even Chromium, features. Many others are the same way.
- echelon 7y agoCan you cite this? I'm collecting a laundry list of reasons Google has degraded the web, and this is certainly evidence.
- green-eclipse 7y agoIf you go back in time far enough, Google has improved the web exponentially more than it has harmed it.
- huehehue 7y agoThis is a bit hard to say, right? Google is also responsible for the normalization of aggressive user tracking and the creation of the ad-ridden tire fire that is the modern internet.
- DCoder 7y agoI wrote up one example that was particularly frustrating when I realized it [0]. [0]: https://www.reddit.com/r/programming/comments/ar1qj1/_/egl52wk/ https://www.reddit.com/r/programming/comments/ar1qj1/_/egl52...
- LeoNatan25 7y ago> The problem with this is that the web is competing with native apps. Only in the minds of web “devs”.
- hazz99 7y ago> "dev" Drop those apostrophes - a web developer is a completely valid, skilled profession. Web apps unequivocally compete with native apps, that is a fact. I prefer the Slack web client to the native version. I use Google Docs instead of Microsoft Word. I use Google Drive, iCloud, Google Photos etc. instead of my own harddrive. To think that web apps don't compete with native apps is simply untrue.
- tambre 7y ago> I prefer the Slack web client to the native version. Slack doesn't have a native version, does it? They have a desktop client, but that's just the web version wrapped inside Electron.
- benzoate 7y agoThe iOS and iPad apps are native, as far as I can gather, and there are differences in how the conversations are laid out (e.g. date separators).
- LeoNatan25 7y ago_You_ use? Good for you! And? A web developer, doing what they know what to do on the web, is a legitimate developer. A web "developer" that only knows webdev, doesn't have the skill or will to learn anything else but webdev, insists on splurging web crap as "apps" outside of the web—that's, to me, is not legitimate, and "dev" worthy.
- inetknght 7y ago> The problem with this is that the web is competing with native apps. No it isn't. Competition with native apps is the completely wrong way to think of it. The web should complement native apps.
- tragic 7y ago> Yes, I know some things simply can't be done without a JS webapp, but not all and probably not even a majority, so if HTML and CSS will do the job fine, then so be it; and even if it needs to use JS, it likely doesn't need to be latest-browser-only JS either. Sticking to HTML and CSS won't necessarily get rid of this - new stuff is being added to CSS all the time, in particular. And browser support is just as patchy.
- soperj 7y agoHow much new css do you actually use though w/ patchy browser support?
- The_rationalist 7y agoThere are many essential css properties that Firefox doesn't support, e.g fit-content
- soperj 7y agohttps://caniuse.com/#search=fit-content https://caniuse.com/#search=fit-content All browsers seem to have bugs with it. I also don't understand how it's essential.
- connicpu 7y agoBut when a browser doesn't fully support a CSS feature most of the time is your site just looks a little wrong. Unless it's a major feature, the site will probably still be functional to the user.
- deergomoo 7y agoThe flip side of this is that many new JavaScript features can be either transpiled to ES5 syntax, or polyfilled. It will be great when we don’t need to anymore, but I’m always pleasantly surprised by just how much modern JS can be used in, say, IE11, just by having Babel be part of the build step. CSS unfortunately doesn’t work that way, so apart from graceful degradation you’re out of luck.
- goatinaboat 7y agoWebdevs don’t seem to have much of a user-centric view of the sites they develop. The vast majority of use cases on the web are “I want to see a list of options then fill in a form”. All the tech needed to shop online or bank or pay bills or book travel or whatever existed 20 years ago (SSL being the last piece of the puzzle, all the rest is just plain HTML).
- pjmlp 7y agoFully agree, plain old cached SSR with a little sprinkle of JavaScript when it really matters.
- goatinaboat 7y agoThe thing is too, anyone can do that. HTML forms are easy, generating HTML is easy. There just doesn’t need to be any webdevs, the dedicated role doesn’t need to exist. No amount of trying to rebrand themselves as “full stack engineers” will save them when that realisation dawns on the people paying their over-inflated salaries!
- javajosh 7y agoAs long as the web is a viable software distribution platform, the world will need "webdevs". 2019 is still a chaotic time for the platform, and winners and losers still haven't really shaken out, not even at a basic architectural level. There are profound questions about what computation gets done where, what side-effects happen where, which in turn influences everything about how software is built, tested, distributed, and run, and yet they aren't really answered so much as philosophized about.
- paulryanrogers 7y agoIf form controls like select lists and checkboxes were style-able and compose-able I think it would reduce the need for JS in many cases. Multi select in particular feels like it's stuck in the 90's. Also select's lack of consistent search capabilities is painful.
- deergomoo 7y ago> I'd say it starts with dialing back the "new feature/change fetish" that a lot of web developers have I wonder whether this phenomenon is driven by HTML, CSS, and JavaScript being such lacklustre tools for building applications? Many things that are completely reasonable to deal with in any “native” stack (animations, local storage, offline access, hardware access, accessibility just to name a few), while usually possible with a web stack, are often unnecessarily difficult or awkward. Things are improving fairly rapidly because of the insistence that everything should be web based these days, and I could totally see that driving people to the bleeding edge. I mean hell, I do it myself. I’m a web developer, and when reading about shiny new features I’m often eager to start using them ASAP — especially when it would replace a bunch of kludgy JavaScript I’d been relying on previously.
- ummonk 7y agoAs a web developer, I love using new features. 90% of the time though, the new features can easily be covered by a polyfill, and there is no excuse not to use poly fills.
- tsimionescu 7y agoFrom my experience, JS is relatively portable, at least if you stay away from some corners. CSS (and some aspects of HTML) are a much more likely reason for strange differences between browsers. Another common culprit for browser-specific bugs is simply using browser-specific CSS extensions, because sometimes it is simpler than fiddling with standard CSS until it looks right.
- zzo38computer 7y agoYes, I think that they should do back all of that "new feature/change fetish" as you say. It also would improve compatibility, to not do such messy stuff, too. Most web pages will not need any JavaScripts, although some might need it. And in some other cases, optional JavaScript might help, such as to auto-fill or validate a form, in which case the form will still work with JavaScript disabled. (Also note that, for example, Lynx does not implement JavaScript.) For some of that, my idea of a <widget> element might help a bit. It would improve performance, allow better user customizations, allow enabling some functions that would previously require JavaScript even though JavaScript is disabled, and is compatible even with browsers that do not implement <widget>. CSS is also overused, although even if you use it, you should try to also allow working without CSS in cases where such a thing makes sense (which it often does, although not always). (CSS styles often just make stuff worse in my opinion anyways; that is why I put in my own CSS codes for stuff.) I think, the end user need to have enough ropes to hang yourself and also a few more just in case. The entire control of the interface should be controlled by the end user. Also, these web pages and HTTP(S) are rather overused anyways. There are other protocols, such as Gopher and Telnet and SSH and NNTP and IRC, which are better for some things (and worse for some things, too, I suppose). (But multiple protocols and multiple interfaces can be offered if wanted, anyways, I suppose.)