News for hackers. Stuff that matters.
Re:The baseline for web development in 2022 by netr0ute on Thursday January 27, 2022 @03:48PM (#30106413)
Why make it so complicated? Just assume everyone has a 2G connection (you don't see them because of a demographics problem, but 2G users are out there) and make sure all static information is accessible without JS. Don't think about web browser compat at all because that's a software problem which costs nothing to fix on the user end, while 2G and slow processors are hardware problems which cost a lot to fix.
Re:The baseline for web development in 2022 by LAC-Tech on Thursday January 27, 2022 @04:31PM (#30107025)
For the past 1.5 years I've been working on apps for the agriculture industry, mostly in Australia.

This means 2G, slow 3G or satellite using customers are extremely common. No G too, if they're using your product out in the field. I myself lived 30 minutes drive from a mobile connection in 2021. A sheep literally ate my internet by chewing through the cable from the satellite to the house.

So those users definitely exist in my demographic. And very much in the demographic of my clients, as potential customers.

Still, it seems to be a hard sell to make things work with crap connections or offline. First off, frontend devs resist because you're taking away their favourite toys. (Very rational from their perspective - their next gig is probably in banking or retail or somewhere else with ubiquitous fast internet). Second off, those allocating budgets are very hesitant to spend money on any software dev out of the mainstream. From their perspective software is risky enough given its expense, let alone doing something that might require specialists. (This may be more of an Australian thing, they're not risk takers like Americans).

So yes, you're very right on a technical level. I'm with you, and would love to talk to others who see this. On a more practical level - it's hard to make the stars align, even if it will land you customers.

Re:The baseline for web development in 2022 by agumonkey on Thursday January 27, 2022 @04:36PM (#30107085)
Do you ever write articles / blog entries about this ? I love frugal programming (and it seems there's some people interested in that too). You're experience is pretty telling.
Re:The baseline for web development in 2022 by LAC-Tech on Thursday January 27, 2022 @06:40PM (#30108673)
Appreciate the comment. I do keep meaning to blog.

Anything in that post that caught your interest in particular? I'll make it happen.

Re:The baseline for web development in 2022 by agumonkey on Friday January 28, 2022 @04:17AM (#30112420)
How do you think/design around the limited bandwidth. The initial payload, the message/ protocol size. The ergonomics too. I assume you try to be straight to the point very often.

Basically the idea is how much can we provide with 'only' a 2G link (afaik equivalent to 2 56k modems).

Re:The baseline for web development in 2022 by dalmo3 on Friday January 28, 2022 @05:37AM (#30112948)
> Anything in that post that caught your interest in particular? I'll make it happen.

Nothing can ever top the fact you have a cable from a satellite to your house!

Re:The baseline for web development in 2022 by nicbou on Friday January 28, 2022 @03:21AM (#30112041)
It's interesting to read about people who build things outside the Bay Area scene. It would be interesting to just learn about your job and its challenges.
Re:The baseline for web development in 2022 by stonenoodles on Thursday January 27, 2022 @09:52PM (#30110186)
Would subscribe/read as well. Not original poster, but would be interested in these edge case challenges and solutions.
Re:The baseline for web development in 2022 by fomine3 on Friday January 28, 2022 @02:46AM (#30111787)
Agriculture industry specific user base and limitations, like you wrote.
Re:The baseline for web development in 2022 by wlll on Friday January 28, 2022 @05:56AM (#30113085)
> A sheep literally ate my internet by chewing through the cable from the satellite to the house.

That must have been a pretty long cable!

Re:The baseline for web development in 2022 by xvector on Thursday January 27, 2022 @04:37PM (#30107102)
Also, these customers are likely unprofitable to monetize. The cost for a single SWE likely exceeds the incomes of the whole town a few times over.
Re:The baseline for web development in 2022 by giantrobot on Thursday January 27, 2022 @05:24PM (#30107792)
> Also, these customers are likely unprofitable to monetize.

I don't see why you think this would be the case. A friend of mine lives down in Gilroy, CA (south of the San Jose) in a veritable mansion. He and his wife have done very well for themselves. Because they chose land over some SF row house their only internet access is a spotty 4G connection that really acts like a spotty 2G connection much of the time. No ISP is willing to run a landline out where he lives and WISPs aren't much better than the 4G. He's definitely not the only monied person with shitty Internet access.

Lost 2G users don't necessarily have 2G (or equivalent) connections all the time. There's plenty of places or times where 4G gets congested and performs terribly even when the end users have high end devices and nominally good connections. A lost sale because someone couldn't complete a form because of poor coverage on the subway is a lost sale.

Mobile Internet should never be expected to be some fixed value for any user. Someone with a brand new iPhone on a network with great 5G coverage can still be standing behind a lamppost or something and get 2G levels of network performance. Since an overwhelming percentage of web traffic is from mobile it doesn't make sense to not degrade gracefully in poor network conditions or just minimize resource use.

Re:The baseline for web development in 2022 by swiftcoder on Friday January 28, 2022 @02:31AM (#30111687)
Do you know how many massive mining/logging/oil corporations operate most of their hardware outside of "normal" internet connectivity? There's for sure money in that market (if you can work your way past the environmental/ethical issues)
Re:The baseline for web development in 2022 by LAC-Tech on Thursday January 27, 2022 @06:39PM (#30108666)
These customers are also businesses, sometimes pretty big ones. A lot of work gets done away from towns.

Also Australia is a pretty rich country.

Re:The baseline for web development in 2022 by netr0ute on Thursday January 27, 2022 @04:38PM (#30107113)
What about if it's all unpaid? FOSS is a thing, after all.
Re:The baseline for web development in 2022 by krono on Thursday January 27, 2022 @04:07PM (#30106690)
Don't worry, we're slowly circling back to servers pushing out fully pre-rendered pages that don't require any scripts - or make it more convenient to create those, anyway. React's upcoming server-side components will likely be a very popular solution for achieving this.

It's like PHP but this time in JavaScript.

Re:The baseline for web development in 2022 by seumars on Thursday January 27, 2022 @04:25PM (#30106948)
It’s disappointing to see that the consensus among frontend devs is to just sit and wait for a new API from react to do all the work. Every framework out there has simple methods for rendering a component to string which can be returned to the client.
Re:The baseline for web development in 2022 by tomphoolery on Thursday January 27, 2022 @04:48PM (#30107230)
Trust me, no one who's actually working on this in the real world is banking on React's upcoming APIs for this at all.

Suspense is still not done, and it's been over 4 years. Server components aren't happening anytime soon IMO. The only reason why I think this year is still tenable is because Vercel ate up all the React devs who can contribute to such a task.

Most JS devs I've talked to or work with are writing code based on what we have now.

Re:The baseline for web development in 2022 by krono on Thursday January 27, 2022 @05:30PM (#30107870)
To be fair, React's work is the most likely implementation of this concept for people to have heard about before. They've been talking about it for years, after all :)

You're either vastly underestimating the number of developers at that skill level, or overestimating the number of those devs you or I might ever have even heard of.

Re:The baseline for web development in 2022 by epistasis on Thursday January 27, 2022 @06:37PM (#30108640)
As a non-expert outsider, I thought that was the promise of React since the early days? Isn't there already server side rendering?

What you describe, a PHP style server rendering of mostly static HTML, with small bits of JavaScript for interactivity, sounds great. But will that actually be possible?

I'm really really sick of web apps and mobile apps that flash the "no content here" version of widgets while they wait for data to be loaded. It's the very very worst sort of user experience.

Re:The baseline for web development in 2022 by Dma54rhs on Thursday January 27, 2022 @04:14PM (#30106801)
The jsx soup already reminds me hacking php and html together with each other, truly back to the roots :)
Re:The baseline for web development in 2022 by klabb3 on Friday January 28, 2022 @05:59AM (#30113107)
Indeed. But it's kinda funny that it quite literally came full circle.
Re:The baseline for web development in 2022 by agumonkey on Thursday January 27, 2022 @04:43PM (#30107157)
> PHP but this time in JavaScript

a sizeable improvement maybe, also does using the same language on both side a pro or a con ? real question

Re:The baseline for web development in 2022 by grogenaut on Friday January 28, 2022 @10:46PM (#30123591)
Every time I've tried using typescript (sorry not using untyped JS) on the server and client, the mismatch between client and server libraries made it very hard to re-use the objects, frameworks or libraries. So much so that it felt like two different languages, or at least as different as writing react and writing CDK. I very quickly reached for any other server language and an IDL like GQL for the communications. This let me re-use code for the transport which was the max I was able to get from typescript/js only.

The other big issue is the things I was working on actually needed high parallelism, and node really provides concurrency, so I quickly hit issues there as well. I'm currently working in a GQL based world and the golang based one we use is massively parallel and very performant, and I'd be worried about the speed loss writing in node.

This makes me very sad because I really do like Typescript as a language, and writing everything in one language seems like it'd be great. But it's really brought down by all the typing issues with legacy javascript, node, and other tools.

But then again, I'm not writing crud apps at work or for fun so your mileage may vary.

Re:The baseline for web development in 2022 by krono on Thursday January 27, 2022 @04:59PM (#30107401)
For the vast majority of projects it certainly means faster development and far lower production cost.
Re:The baseline for web development in 2022 by agumonkey on Thursday January 27, 2022 @06:09PM (#30108368)
I was mostly worries that not having different PL would allow people to forget abstract interfaces.
Re:The baseline for web development in 2022 by krono on Thursday January 27, 2022 @07:56PM (#30109384)
We already have cheap and fast. Can only pick two out of three[1], I'm afraid :)

Jokes aside, theoretical knowledge is definitely lacking. There doesn't seem much interest either - that is, until you show how they could have saved days and get more reliable results more efficiently, if only they had known there's that 50+ year old algorithm they could have used. Experienced and knowledgable devs are still very important to have around.

1: https://paydirtapp.com/blog/wp-content/uploads/2012/11/FastG...

Re:The baseline for web development in 2022 by netr0ute on Thursday January 27, 2022 @04:13PM (#30106781)
If I can't use an adblocker on it then count me out.
Re:The baseline for web development in 2022 by datavirtue on Thursday January 27, 2022 @04:32PM (#30107038)
Thank the gods.
Re:The baseline for web development in 2022 by ravenstine on Friday January 28, 2022 @12:34AM (#30110990)
What I find funny was the whole idea of a "web app" used to be that having JavaScript on the frontend perform lean API requests to the backend would result in a snappier experience for the user. It's turned out to be quite the opposite, though I primarily blame the developers rather than the technology itself; pretty much everyone is using the technology wrong, otherwise so many blogs wouldn't completely fail to show content with NoScript enabled.
Re:The baseline for web development in 2022 by Lamad123 on Thursday January 27, 2022 @04:14PM (#30106795)
You are a 2G user when you most need the Internet. Just drive in parts of New York state or Northeastern Pennsylvania (I mention these two states because they are not remote empty rectangles like Idaho or Utah).
Re:The baseline for web development in 2022 by jefftk on Friday January 28, 2022 @06:48AM (#30113486)
From the article:

1. Other mobile browsers update independently from the OS, whereas Safari is only updated when there is an update to iOS. iOS devices that are no longer supported with newer versions of iOS cannot update to the latest version of Safari.

2. All browsers in iOS are based on Webkit: There are Chrome and Firefox versions for iOS but those use the same engine as Safari in iOS. This is because of an Apple guideline which mentions that all iOS browsers must use Webkit.

These users can't fix this problem without getting a new device.

Re:The baseline for web development in 2022 by duckmysick on Friday January 28, 2022 @06:28AM (#30113341)
> Don't think about web browser compat at all because that's a software problem which costs nothing to fix on the user end

Disagree. It costs them time and attention. If they don't have to do something, they won't do it.

Updating software is low on people's priority lists. And not everyone has automatic updates enabled.

Re:The baseline for web development in 2022 by fomine3 on Friday January 28, 2022 @02:48AM (#30111803)
OP is written by LINE employee, that's widely used messenger in some Asia. So it seems that it covers wide user range. Maybe Asia is good at 4G deployment, some developing country just skip 3G and deploy 4G. Or OP maybe only see Japan, where 4G coverage is enough high to stop supporting 3G on 5G phone.
Re:The baseline for web development in 2022 by onion2k on Friday January 28, 2022 @05:32AM (#30112908)
If a user on 2G you'd probably be better off moving away from typical web dev entirely, and delivering a desktop or mobile app with as much clientside logic built in as possible (offline database, CRDT for syncing, no external dependencies, binary protocol for any critical networking, etc).
Re:The baseline for web development in 2022 by golergka on Thursday January 27, 2022 @04:27PM (#30106973)
How are going to build something like Figma with these constraints?
Re:The baseline for web development in 2022 by netr0ute on Thursday January 27, 2022 @04:31PM (#30107032)
Why does anyone NEED Figma?
Re:The baseline for web development in 2022 by golergka on Thursday January 27, 2022 @05:10PM (#30107581)
Depends on your definition of "need". But most people I know that use it enjoy it a lot, and especially collaboration features that they didn't have in desktop software.
Re:The baseline for web development in 2022 by swiftcoder on Friday January 28, 2022 @02:34AM (#30111705)
There's no particular reason why native desktop software can't support online collaboration - online video games all somehow manage to support networked interaction while running on the desktop.
Re:The baseline for web development in 2022 by golergka on Friday January 28, 2022 @08:08AM (#30114091)
I'm working on electron-based desktop software at my job. We support macos, windows and linux. Building the same software natively would take 4x developers, move much slower, and require a lot more coordination. We would also not have access to incredible ecosystem of libraries and tools that we have at our disposal now. And if we wanted to develop a web version, to enable potential customers to try it out without installation, it would be a separate project equal in complexity to what we're already doing right now.
Re:The baseline for web development in 2022 by swiftcoder on Friday January 28, 2022 @09:17AM (#30114837)
Of these points, I think that (almost) free cross-compile to the web is the only one that really holds up to inspection.

Cross-platform desktop software has been a thing for decades prior to Electron showing up on the scene, there are frameworks designed explicitly to support that, and there is a truly massive ecosystem of native libraries and tools.

Re:The baseline for web development in 2022 by golergka on Friday January 28, 2022 @09:52AM (#30115303)
I've had experience with crossplatform frameworks like Qt before. It doesn't come close to Typescript, React and CSS in terms of developer productivity.
Re:The baseline for web development in 2022 by netr0ute on Friday January 28, 2022 @11:10AM (#30116482)
"Developer productivity" is just the latest tech buzzword. What did devs do 20 years ago and how is there so much good software from back then by today's standards?
Re:The baseline for web development in 2022 by golergka on Friday January 28, 2022 @12:34PM (#30117775)
You're making the same mistake as people who ask how ancient buildings we're built that they stand so long. You don't see ancient buildings that crumbled down, and you don't remember a LOT of old software that was complete crap. I've used computers since 1995 with DOS 7, and my memories of these times aren't so rosy at all.
Re:The baseline for web development in 2022 by netr0ute on Friday January 28, 2022 @01:35PM (#30118577)
This also doesn't consider all the crap software you get today, so you are making the same mistake as well.
Re:The baseline for web development in 2022 by bitwize on Thursday January 27, 2022 @03:57PM (#30106553)
2G and 3G are going away soon, it's LTE/5G or GTFO.
Re:The baseline for web development in 2022 by netr0ute on Thursday January 27, 2022 @04:01PM (#30106613)
> 2G and 3G are going away soon

Only in the most developed countries, as places like Bolivia are still hanging on to 2G. You just don't hear about those places because of that demographics problem, so people assume 4G/5G are all that's out there.

Re:The baseline for web development in 2022 by SkyPuncher on Thursday January 27, 2022 @04:03PM (#30106647)
How many companies are targeting their primary use case in Bolivia?
Re:The baseline for web development in 2022 by it_citizen on Thursday January 27, 2022 @04:10PM (#30106740)
So what? With that line of reasoning, very few websites should care about accessibility for people with disabilities.
Re:The baseline for web development in 2022 by SkyPuncher on Thursday January 27, 2022 @04:50PM (#30107258)
Well, this line of reasoning is why accessibility is federally required. It's something that most companies explicitly do not care about.
Re:The baseline for web development in 2022 by netr0ute on Thursday January 27, 2022 @04:08PM (#30106716)
Probably not many, but there are two good counterarguments to that. The first is because that "primary use case" becomes a self-fulfilling prophecy. If Some Company isn't intentionally targeting places like Bolivia and instead feeds Big Macs to their website, then people in Bolivia could never discover Some Company's website because of its bloat. Because people can't discover it, Some Company never knows that it could target those people. The second is that not all websites are to promote some product or company, but only provide information. Information usually isn't country-specific, so ignoring the 2G demographic leaves them in the dust.
Re:The baseline for web development in 2022 by jacquesm on Friday January 28, 2022 @01:05PM (#30118223)
There are 660 million people living in Latin America, roughly twice as many as in the United States. You can bet that there are companies targeting them. I know a couple and I live in Western Europe, so locally I'd expect that number to be just about as high as in any other place where people live.
Re:The baseline for web development in 2022 by Turing_Machine on Thursday January 27, 2022 @04:08PM (#30106717)
Hmm... at this point, someone with an entrepreneurial bent should probably be asking him- or herself "Just how much money is lying on the table in places like Bolivia?"

Wikipedia tells me that Bolivia has a GDP (PPP) of $89.018 billion, and there are a bunch of countries like Bolivia.

Re:The baseline for web development in 2022 by dudeman13 on Thursday January 27, 2022 @04:56PM (#30107338)
If Bolivia is like sweet home, that money is concentraded as fuck so either their schtick would have to be ubiquitous for it to be worth it, or they would be selling to the ~10% richest in Bolivia (which probably have decent internet access).

For all that people sometimes go on about untapped market potential in poor countries, it really isn't that easy when >90% of the population lives on less than 350 USD/month.

Sauce: spent the first 1/4 of century of my life living in a third world shithole.

Re:The baseline for web development in 2022 by Turing_Machine on Thursday January 27, 2022 @07:16PM (#30109000)
Well, yeah, you're probably not going to sell many Lamborghinis there (other than to the elites you mention).

On the other hand, Coca-Cola has a presence in Bolivia, and apparently controls about 60% of the Bolivian market.

With 11 million people, that's gotta be a nice piece of change.

If what you're selling is closer in price to a Coke than a Lambo, you probably shouldn't write Bolivia off.

Re:The baseline for web development in 2022 by lelanthran on Friday January 28, 2022 @04:27AM (#30112489)
> If what you're selling is closer in price to a Coke than a Lambo, you probably shouldn't write Bolivia off.

If what you're selling is BOTH:

a) closer in price to a Coke than a Lambo

and

b) closer in demand to a Coke than a Lambo

Then, sure, you shouldn't write it off.

However, if you're selling stock-trading software, even for the price of a coke, you might not make enough money back to justify supporting Bolivia.

Cokes, even in poor countries, are still purchased by tens of millions of people at least once a month. Selling a similarly priced item that may be purchased by a few hundred people at most is not the same thing as Coke.

Re:The baseline for web development in 2022 by dudeman13 on Friday January 28, 2022 @08:34AM (#30114345)
If what you are selling has to be 1/20 as ubiquitous as Coke to be viable, you are already killing off approximately all business ideas.
Re:The baseline for web development in 2022 by rhn_mk1 on Thursday January 27, 2022 @04:10PM (#30106729)
Is that the right question to ask? Shouldn't we rather ask: how many companies care about users in Bolivia at all?
Re:The baseline for web development in 2022 by pjmlp on Thursday January 27, 2022 @04:48PM (#30107228)
Bolivian companies I guess, duh.
Re:The baseline for web development in 2022 by nicbou on Thursday January 27, 2022 @04:16PM (#30106823)
Not in the Berlin U-Bahn, or on German intercity trains. Not in large swathes of rural land. Not for people who ran out of data, but still need to Google stuff.
Re:The baseline for web development in 2022 by bitwize on Thursday January 27, 2022 @04:32PM (#30107033)
In the USA, the major telcos are shutting off their 2G and 3G towers, this year -- after which if you are not reachable with LTE or 5G, you will simply have no service.
Re:The baseline for web development in 2022 by netr0ute on Thursday January 27, 2022 @04:34PM (#30107058)
That doesn't account for private stations or congested areas where the service is technically 4G or WiFi, but you get 2G speeds.