News for hackers. Stuff that matters.

macca321

Re:Ask HN: What is the current driver of tech layoffs? on Friday January 12, 2024 @04:54AM (#38966092)
Yes, real developers know the quirks of ie6 Vs Firefox 3
Re:Fine-grained caching strategies of dynamic queries on Thursday September 21, 2023 @04:23AM (#37594742)
About 15 years ago I implemented "cache namespacing" for memcached, where you build a final cache key for a stored item (e.g. "profile_page") by doing an initial multiget cache query for all the "namespace" version values (e.g "user_123", "team_456" might be needed for "profile_page"), which you combine together as a prefix for the final cache key.

You can then invalidate any final cache key that uses one of the namespaces by incrementing the namespace key.

I haven't come across this technique mentioned elsewhere since, but it's very useful.

See the namespaces section in the now 404ing memcached FAQ https://web.archive.org/web/20090227062915/http://code.googl...

I guess nosql, edge caching and materialised views make it less applicable than it used to be (when inelastically scaling single/replicated SQL instances were the only game in town and taking load off them was vital).

Or is this technique now a first class feature of various cache client SDKs?

Re:OpenTF renames itself to OpenTofu on Wednesday September 20, 2023 @04:37AM (#37581874)
It'd be very interesting to know Hashi's internal strategy around this.

- Maybe do nothing, and as long as OpenTofu doesn't attempt to extend Terraform they are in not that different a position than pre-MPL.

- Add so many features OpenTofu can't keep up?

- Add some sneaky code to latest versions of hashi providers which makes them not work with unofficial terraform binaries?

Re:HashiCorp Did It Backwards on Thursday September 07, 2023 @08:23AM (#37417895)
You can exfiltrate secrets that aren't in the state, but are in accessible resources during a plan using an http data source with the secret encoded into the url
I wonder if a non commercial Terraform Cloud "offering" like https://github.com/leg100/otf is "competing" with Hashicorp...
In the long run, I wonder if all video will be signed via blockchain-or-other-trusted-3rd-party. You'd need everything from the camera to the the editing software to support it though.
Re:Kanban board in one HTML using localstorage on Tuesday February 16, 2021 @05:56AM (#26152797)
I would really like a client-side js library that lets you sync localstorage to consumer cloud storage (onedrive/gdrive etc)
The thing people like about Facebook is looking at other peoples photos, safe in the knowledge that they don't know you are looking at their photos.
Re:The Culture War: Iain M. Banks’s Billionaire Fans on Wednesday January 27, 2021 @04:26AM (#25926041)
It would be a lot harder in the Culture to get someone to be your human footstool.
Re:WhatsApp loses millions of users after terms update on Monday January 25, 2021 @08:44AM (#25902998)
I use it because my mum, who has Parkinsons, can work her Facebook Portal.
Re:How to Stop Endless Discussions on Sunday January 03, 2021 @11:22AM (#25622664)
I think a process like this works well for enabling the success of the kind of people who like the sound of a process like this.
Re:A Month of Terraform on Monday November 23, 2020 @04:42AM (#25185085)
In a polyglot shop, it can actually be quite handy that HCL is it's own relatively simple language.
Re:TypeScript 4.1 on Friday November 20, 2020 @07:38AM (#25159844)
Better to return a union of custom result types. Save exceptions for when stuff goes really wrong.
Re:Airbnb S-1 on Tuesday November 17, 2020 @05:41AM (#25122184)
What action am I meant to take in response to these stories? Put £5k aside to buy shares?
Re:.NET 5.0 on Tuesday November 10, 2020 @04:25PM (#25052175)
Carter
Re:.NET 5.0 on Tuesday November 10, 2020 @04:04PM (#25051894)
I don't like it either, but one advantage is that the settings can be live updated when the config files change
Re:Pointers from Portugal on Addiction and the Drug War on Friday October 09, 2020 @03:20AM (#24727642)
Teeth are a luxury.
Lobby government for green energy
Re:The Fed now owns nearly 1/3 of all U.S. mortgages on Friday September 11, 2020 @02:47PM (#24446045)
Mortgage repayments are much cheaper than renting, at least where I am in London
Re:REST APIs must be hypertext-driven (2008) on Thursday September 10, 2020 @03:44AM (#24429885)
This is an article from 2008 by the person who invented REST.
Re:I sold my side-project for $30k on Tuesday September 01, 2020 @04:02AM (#24339533)
Probably for the API access to Zendaya's Insta and Twitter accounts
You should see the crazy Psion devices my dad used to spend £500 on in the 90s. There's a market
Or, "how to stifle innovation with bureaucracy".
Re:Parallel Seam Carving on Wednesday August 12, 2020 @08:21AM (#24131284)
This is a SAAS product if ever there was one
Re:Dividing front end from back end is an antipattern on Friday July 24, 2020 @02:57PM (#23943218)
The title is correct, but the article misses the most important thing. The reason you should not divide them is that delivery of a non trivial feature requires change at each layer of the stack.

Conway's Law etc etc

Re:Ask HN: Is all of FAANG like this? on Thursday July 23, 2020 @10:51AM (#23927930)
Are they happy with 8hr a day? I keep worrying that I'd have to put in 12 hr shifts to keep up with the graduate hires.
Re:Mastering Jq: Part 1 on Wednesday July 01, 2020 @07:49AM (#23700404)
I reckon JMESPath should be first choice in 2020, as it's properly specified, so you can find x-language implementations that behave the same.
Re:Roy Fielding's Misappropriated REST Dissertation on Monday June 29, 2020 @05:46AM (#23675958)
I though we could call it UnREST

FIOH from the article is better ŧhough

Re:Roy Fielding's Misappropriated REST Dissertation on Monday June 29, 2020 @05:45AM (#23675950)
Worth reading "The Hypermedia Maturity Model" afterwards

https://8thlight.com/blog/jason-desrosiers/2018/05/30/the-hy...

Older »