News for hackers. Stuff that matters.
Re:Replacing the scroll tracker on GOV.UK by mxz3000 on Monday March 28, 2022 @05:19PM (#30835721)
I'm consistently really impressed with the UK gov's websites. They're fast, usable and mostly quite intuitive, something that is helped by the fact that they all share a common theme. They support pretty much everything you'd want to do from an admin perspective.

This contrasts greatly with US and French government websites I've had the displeasure of using in the past.

Re:Replacing the scroll tracker on GOV.UK by samwillis on Monday March 28, 2022 @06:08PM (#30836235)
While I agree, venture outside central government to local authority and you still get a shit show of bad websites and services.

The other day I paid out yearly fee for our garden waste bin collection. The page takes you to an completely un-styled credit card form with no branding and just the price, no details, then the “confirmation” screen is just white page with a single line “payment received”, nothing else not even a redirect. Oh and no confirmation email.

Our local planning site had a bug for six months where when you typed in the search box, focus was lost if you typed to slowly due to the results appearing automatically and steeling focus…

Re:Replacing the scroll tracker on GOV.UK by diordiderot on Monday March 28, 2022 @06:14PM (#30836274)
It really confuses me. All of "Her Majesty's government's" designs and software are exceptionally well made and freely available.

Why can't counties, boroughs, and councils just copy it and add a dash of styling

Re:Replacing the scroll tracker on GOV.UK by andygh on Tuesday March 29, 2022 @04:24AM (#30840131)
Having worked in building local government services there's loads of factors of why this hasn't worked (despite GDS trying desperately to make it so).

Most of it comes down to money - the vast majority of residents that use Council services are older and/or less likely to have access to a computer or smartphone and/or more likely to need support in accessing these services from someone else. We're pretty good at designing services for these people for the web but frankly, they aren't using them.

Some of it is because local government pays poverty wages. Much of the staff I worked with in our IT dept (in a pretty well complimented software development team, it must be said) had been working there 20 years or they are trainees on apprenticeships or fixed-term 1 year contracts. Because of that, there's huge difficulties in adopting agile as a working model, changing technology stacks to ones that the GDS and GOV.UK use is incredibly difficult and recruiting staff that can lead the way on this is an impossibility. Instead, we're relying on outsourcing this to companies like Capita who make some of the worst designed government services I've ever seen.

Finally, Councillor's (our budgetholders at the end of the day) just don't see the material benefit of good digital services for their residents. Faced with a year-on-year cut to the grants they get from central government and the poltiics of raising Council Tax, they see IT staff more as a cost centre than as an area for capital development.

Re:Replacing the scroll tracker on GOV.UK by diordiderot on Thursday March 31, 2022 @03:30AM (#30864731)
Thank you so much for your thorough reply Andy!

Do you think that there's anything an average bloke can do to improve their own local services such as lobbying etc?

Re:Replacing the scroll tracker on GOV.UK by ceeplusplus on Monday March 28, 2022 @06:39PM (#30836456)
It's expensive to hire even halfway competent developers. Local governments aren't big enough to even have good IT departments, nevermind actual software development.

I do wonder sometimes why stuff like Squarespace isn't used more often. It seems like at least the informational pages could look nice, even if the stuff that requires custom logic looks terrible.

Re:Replacing the scroll tracker on GOV.UK by Nextgrid on Monday March 28, 2022 @08:01PM (#30837060)
I don't understand why every council should have their own developer. Seems like most municipalities need a standard set of services (the parent mentioned garbage bin collection, but others like council tax payment also come to mind) that can be built once by the UK government and then offered as an SaaS to every council, allowing them to gain economies of scale and freeing up their developers (if any) to work on custom stuff that's too specific to be shared across many municipalities.
Re:Replacing the scroll tracker on GOV.UK by cameronh90 on Monday March 28, 2022 @08:27PM (#30837239)
GDS have arguably started to encroach on local government services with their voter registration service.

However don't underestimate the inclination of people to protect their silos. Even if offered a free service by central government, you'd almost certainly find a lot of local governments choosing to implement their own.

Re:Replacing the scroll tracker on GOV.UK by phatfish on Monday March 28, 2022 @06:59PM (#30836636)
Councils and other local government organizations are expected to get fleeced by Capita and other "preferred" private outsourcing companies that don't care about anything other than collecting taxpayer money.

Of course it would make complete sense for the gov.uk team to expand and help local government organizations with their online presence. But that won't feather the nest of the right people.

Re:Replacing the scroll tracker on GOV.UK by petepete on Monday March 28, 2022 @07:38PM (#30836923)
Some do, like Hackney

https://github.com/LBHackney-IT

As others have said, most don't have the budget or inclination.

Re:Replacing the scroll tracker on GOV.UK by steve_gh on Tuesday March 29, 2022 @02:27AM (#30839470)
Mine too. The Bath area (BANES) recycling centre booking is all GDS design elements. Looks great, intuitive and works really well.
Re:Replacing the scroll tracker on GOV.UK by Angostura on Monday March 28, 2022 @08:00PM (#30837052)
The platform simply doesn't seem to be available for local authorities to use. So they have to cobble stuff together themselves with Wordpress, Drupal or whatever they have to hand.
Re:Replacing the scroll tracker on GOV.UK by Veen on Monday March 28, 2022 @06:19PM (#30836297)
Lack of incentives and resources (i.e. they don't give a shit, and if they did they have something else to spend the money on).
Re:Replacing the scroll tracker on GOV.UK by zurgax on Monday March 28, 2022 @06:48PM (#30836533)
Depends which bit you look at in my experience, some of the home office stuff (especially around visas and immigration) still manages to be obscure and is sometimes defective. Perhaps a sufficiently misanthropic department can always get its institutional culture to bleed through the standardised stylesheets.
Re:Replacing the scroll tracker on GOV.UK by OJFord on Monday March 28, 2022 @06:56PM (#30836605)
I don't know about your specific example, but there's some stuff GDS hasn't touched (yet?) and it shows. The 'modern' stuff that has that consistent design across departments, awesome accessibility etc. is all great IME.

Devil's advocate though: I know someone who works in tax (for a private firm of accountants) and hates it. Too dumbed down, and the bar at which they need to reach out to HMRC for guidance or some other resource is just too low.

I find it often ends up linking through to actual legislature, so perhaps it's just something in the middle that's missing, the 'technical reference' level.

Re:Replacing the scroll tracker on GOV.UK by GrantZvolsky on Monday March 28, 2022 @08:23PM (#30837215)
GDS[1] and HMRC[2] don't have much in common besides the fact that HMRC uses GDS's design system.

[1]: https://github.com/alphagov [2]: https://github.com/hmrc

Re:Replacing the scroll tracker on GOV.UK by OJFord on Tuesday March 29, 2022 @05:22AM (#30840455)
I don't work (and never have) in the public sector, but my understanding was that that's essentially true of any department; that GDS operated like a sort of slightly dictatorial contractor that also provides some common infrastructure and design system etc.?

Happy to be corrected, for the purpose of this thread though it was the design system I'm talking about anyway really though.

Re:Replacing the scroll tracker on GOV.UK by GrantZvolsky on Tuesday March 29, 2022 @04:45PM (#30848126)
It seems that technology-wise, there is more proximity between GDS and the other departments, which is what I was alluding to. This is based on my observation of the various github repositories, with no insight into how the work is organized.
Re:Replacing the scroll tracker on GOV.UK by mxz3000 on Monday March 28, 2022 @07:11PM (#30836729)
Yeah some stuff hasn't been migrated yet but it's pretty rare in my limited experience.

Regarding your devil's advocate example, it's obvious a power user (i.e. tax pro) will have different needs than a layman like me, and it's clear that the sites are built for the latter, which makes way more sense as that's like 99.999% of the users anyways. The power users are probably so rare that just forcing them to phone in makes sense.

Re:Replacing the scroll tracker on GOV.UK by tails4e on Tuesday March 29, 2022 @04:38AM (#30840211)
It's nice to see pride in a civil service tech job. For the most part it's absolutely crazy how poor tech is handled in most governments, and nothing is done about it. Source: my sister waited 4 weeks for her civil service work laptop to be fixed. They have contract repair companies, but couldn't be bothered organising it. She ended up driving to the contractor herself after 4 weeks and waited for thr repair. Shocking.
Re:Replacing the scroll tracker on GOV.UK by t3rabytes on Monday March 28, 2022 @08:12PM (#30837128)
usa.gov has gotten quite good thanks to work that USDS has done to standardize design language across the government (and help support agencies that want to adopt it), but getting other agencies to use it has been a slowwwwwwwwwwww process.
Re:Replacing the scroll tracker on GOV.UK by userbinator on Monday March 28, 2022 @08:10PM (#30837116)
They also work well in very obscure browsers: https://news.ycombinator.com/item?id=25915313
Re:Replacing the scroll tracker on GOV.UK by silasdavis on Monday March 28, 2022 @06:40PM (#30836466)
Interacting with gob.es has given my a vast amount of respect for gov.uk.
Re:Replacing the scroll tracker on GOV.UK by drawfloat on Tuesday March 29, 2022 @02:45AM (#30839560)
I find it hard to believe the devs behind Gov.uk were genuinely considering hard coding all URLs and headings in to FE JS. Surely their mind went to the “window.location” + throttle scroll function solution/“better but not suitable Intersection Observer” options first?

Glad they settled on those either way, because adding 200kb of uncompressed URLs and heading text for tracking is madness.

Re:Replacing the scroll tracker on GOV.UK by u2077 on Monday March 28, 2022 @07:45PM (#30836962)
> but we couldn’t use them because we need to support old browsers like Internet Explorer.

Isn’t IE dead?

Re:Replacing the scroll tracker on GOV.UK by chippiewill on Monday March 28, 2022 @07:50PM (#30836990)
IE11 is still supported until June of this year in various Windows SKUs. Longer for certain enterprise customers with extended support.

Government websites tend to have very broad support requirements.

Re:Replacing the scroll tracker on GOV.UK by userbinator on Monday March 28, 2022 @08:06PM (#30837091)
Even after official support ends, it will continue to be in use for a long time.
Re:Replacing the scroll tracker on GOV.UK by PoignardAzur on Tuesday March 29, 2022 @04:20AM (#30840106)
Yeah, but this is just tracking what parts of pages are read. Given how small a share of their traffic IE must be, they could probably skip scroll-tracking on IE.
Re:Replacing the scroll tracker on GOV.UK by adamckay on Monday March 28, 2022 @08:39PM (#30837332)
The GOV.UK website will no doubt continue to support IE for a good while yet based on this information [1] from one of the developers of the Government Digital Service, as it's required to be as accessible as possible.

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

Re:Replacing the scroll tracker on GOV.UK by spiffytech on Tuesday March 29, 2022 @10:01AM (#30842634)
GOV.UK likes to make sure that people at the margins can still access their material. See this post from last year about someone using a PlayStation Portable to access their housing benefits:

https://news.ycombinator.com/item?id=25915313

Re:Replacing the scroll tracker on GOV.UK by hdjjhhvvhga on Monday March 28, 2022 @06:24PM (#30836338)
> That would mean adding almost 2,260 URLs to the JavaScript. This might sound reasonable

This is one of the many things in today's web I have a problem with.

Re:Replacing the scroll tracker on GOV.UK by dbbk on Tuesday March 29, 2022 @06:03AM (#30840687)
It actually doesn't sound reasonable, I have no idea what they're talking about.
Re:Replacing the scroll tracker on GOV.UK by hdjjhhvvhga on Monday March 28, 2022 @09:33PM (#30837717)
To all downvoters: please consider that 2260 URLs with 100 characters each make 226 KB. That's 1/4th of a megabyte... On a news site! And for what?! As if infinite scroll wasn't bad enough, you now have the solution you wouldn't have in the first place if you hadn't decided that it's an excellent idea to play with the user's brain by displaying new articles masquerading as the continuation of the previous one. Yes, I know, the ship has sailed, but the whole issue still bothers me.
Re:Replacing the scroll tracker on GOV.UK by zimpenfish on Tuesday March 29, 2022 @06:35AM (#30840864)
I've scraped the country pages, and then the internal links, removed all the URLs they won't be scroll-tracking (like '/email-signup'), and turned them into a JS file for a total size of 153742 bytes uncompressed. If you take advantage of the fact that all those country pages share a prefix, you can get the array down to 84423[1] (whilst still knowing the prefix.) Convert it to plain text (because you don't always need it immediatelyas an array) and it comes down to 81399. Then use `lz-string` to compress it and you end up with 26656 bytes.

Also since there's only 226 unique prefixes for the links, you could use another level of prefix removal and get it down even further - the JS array is now 38659 bytes, which `lz-string` gets down to 9372 bytes.

I'm pretty sure someone smarter than me can get it down even further.

[edit: discovered some blank URLs that could be stripped]

Re:Replacing the scroll tracker on GOV.UK by zimpenfish on Tuesday March 29, 2022 @06:39AM (#30840893)
For comparison, the crown SVG included on every single page is 2043 bytes.
Re:Replacing the scroll tracker on GOV.UK by JoelEinbinder on Monday March 28, 2022 @09:38PM (#30837752)
2260 * 100 bytes = 226kb not 226mb.
Re:Replacing the scroll tracker on GOV.UK by hdjjhhvvhga on Monday March 28, 2022 @10:00PM (#30837877)
Sorry, I got confused - but the argument still holds, it's absurd.
Re:Replacing the scroll tracker on GOV.UK by makapuf on Tuesday March 29, 2022 @02:10AM (#30839366)
226K uncompressed, I'm sure some of the url share prefixes so even a very simple, handcrafted scheme would compress somewhat.
Re:Replacing the scroll tracker on GOV.UK by zimpenfish on Tuesday March 29, 2022 @06:35AM (#30840869)
I can get it down to 38726 bytes as a JS array, or 9490 if you use `lz-string` on that.