Mea culpa: this is kinda my doing. I released a library headroom.js (https://wicky.nillia.ms/headroom.js/) for this purpose in 2013 or something, announced here on HN, and it got very popular. It got ported to every framework imaginable. And tons of websites either used it or imitated it.
I think it can be done well, but most do not do it well. Partially my fault because the defaults in headroom were not how I would recommend it. It had a tolerance option, which meant you had to scroll up so far/fast to trigger the reveal. But in my eternal foolishness I set this to zero by default. Adding a little tolerance makes it much less jittery and more intentionally triggered. And thus much less annoying. See the header on the site, it doesn't appear/disappear with every 1px movement
Beautiful photos! And the site is very nice looking too .
Can I ask what you do wrt the photo storage for your site? I'm looking to get back into photography and don't use Instagram etc, so want somewhere to post. Wondering how I might set up my own site for this purpose. Thanks
This is more an argument against political appointees than it is an argument for hereditary peers. I agree that the system has been abused. It's need reforming
A lifelong hereditary appointment is an affront to democracy imo. It is regrettable we have a monarchy, but their power is very limited. The Lords however have a regular say in the production of laws. A second house is good. But hereditary appointment is only one degree removed from some divine right.
But I entirely agree about political appointments. You only have to look at the last set from the Tories/Boris to see that the system has been abused.
Abused is probably an understatement. The Tories made some extremely questionable and bizarre appointments in their recent terms. We have the son of Russian oligarch sitting there! Inexplicable advisors whose appointment is a mystery even after FOIA requests. And extreme partisans like Jacob Rees Mogg and Priti Patel.
Imo they should be proposed and voted on by the house. That should at least offer some prevention of peerages as favours, as they quite clearly have been used.
> Imo they should be proposed and voted on by the house. That should at least offer some prevention of peerages as favours, as they quite clearly have been used.
You'd get party political trading - we will vote for your pick if you vote for our pick - but perhaps it will help at the margins - the obviously embarrassing would be harder to squeeze through.
The problem is the current process relied a bit too much on people being trustworthy - as you say that's kinda fallen away recently - and obviously the election of Trump show how dangerous it is for a process to rely on people being decent and not abuse the trust. Which is a shame as trusting people gives people the leeway to do the right thing.
In terms of JRM or Patel - while they are not my cup of tea, I think there is value in senior politicians becoming members of the Lords almost by default ( like senior judges or religious leaders ) - as to some extent it does reflect what people have voted for in the past and they have valuable experience. However perhaps it's too early in their cases.
An age limit has been talked about - but normally in terms of upper age - I wonder if it wouldn't be better as an age threshold - you have to have retired and be no longer 'on the make'. Sure that means no young people in the second chamber - but ultimately being representative is the commons role, the second chamber is for experienced people to tell the commons not to be hasty and do more work.
It's very tricky to balance right that's for sure. Agreed that it opens the door to behind the scenes deals. But marginal improvements are still better than whatever the hell we have now.
In the case of Priti Patel she was fired from government for having secret/undisclosed meetings with Israel to recognise some contested land (IIRC). That should be an instant disqualifier for a lifelong peerage.
> That should be an instant disqualifier for a lifelong peerage.
Again the current process does have an element of that - MI5 et al have a look at the list and say 'reputational risk'. "That's a very brave choice minster.."
However, as with Mandelsons appointment to the Lords and US ambassador, it's clearly being ignored - but then who better than the PM of the day to have the final say - the problem is somebody has to - and if you take it away from the PM - then it potentially becomes undemocratic.
Perhaps one improvement would be the removal of the tradition of exiting PM's creating a nomination list - when they no longer care about what the public think - a bit like Joe Biden outrageously pardoning his son.
>Imo they should be proposed and voted on by the house.
Then why wouldn’t the house just stuff them with people that will agree with everything they do and remove any checks and balances? You only need one house at that point.
In part because the composition of the commons changes over time - so if the term timescales are different then they won't necessarily agree at any point in time - but I do agree it would potentially become too politicised if you had that kind of vote.
Ultimately in the UK system, the commons has the final say ( ignoring the monarch in the room here ), so most of the time what the Lords do isn't typically a big public issue - it's quiet revision, have you thought of this?, type stuff. Not that common to have a big conflict - though it does happen.
If your editor of choice supports an extension (vscode does for example) it's a very easy on-ramp for a better search/replace than regex offers. It's syntax-aware so you don't need care about whitespace, indentation etc. Very easy to dip your toes in where a regex would get complex fast, or require multiple passes.
I converted a codebase from commonjs to esm trivially with a few commands right after first installing it. Super useful.
I hope LLMs eventually start operating at this level rather than raw text. And likewise for them to leverage the language server to take advantage of built in refactorings etc
I don't know which editors support this but there's also, for lack of a better word, context aware grep. For example, search and replace foo with bar but only inside strings, or only inside comments, or only variables, or only methods, not class names (maybe ast-grep does this).
reply