HNHacker News
TopNewBestAskShowJobs

tiew9Vii

1,637 karma · joined January 6, 2019

submissionscomments
tiew9Vii··on Podman Quadlets with Podman Desktop
For local development I found no advantages, if anything I found it a little less convenient.

For servers where you don’t need the complexities of Kubernetes etc, using Quadlets is nice as you can manage containers as regular systemd services and no Docker daemon running as root.

tiew9Vii··on AI is stifling new tech adoption?
No such thing as one true way with React and the pain is just as bad if not sometimes worse.

Do you choose createreact app / webpack / vite / next.js ?

Do you choose built in react state/contexts, redux, recoil, zustand, jotai state libraries?

Do you do data tables yourself or use the behemoths TanStack, react-table-libray, MUI x-data-grid

What about HTTP requests? Fetch api? axios? rtk-quey?

What about forms and validation? KISS simple, do it yourself? react-hook-form + zod, tanstack form?

Now how do you integrate them all in to your app, managing each edge case for each dependency with their own opinionated way of doing things not quite neatly working with your other dependency but can brute force it to work with some effort and hacks?

I find things like doing basic vanilla JS, or even things like of Svelte or Elm far less pain than React projects i've worked on. Svelte/Elm did require reading the docs not relying on a LLM.

tiew9Vii··on Why Northern England is poor
It's not to different from a lot of working class towns world over with social economic issues from my travels. Nothing to do with 1066 and I'd say a lot of other points in the article.

I'm not in the UK anymore and been watching a UK YouTuber going around old towns https://www.youtube.com/@wanderingturnip/videos, some themes are not to different from a US YouTuber I watch going around US towns https://www.youtube.com/@PeterSantenello/videos

tiew9Vii··on Why Northern England is poor
I was born and bred in Tameside.

It's a 15 minute train ride to Manchester. 30-40 min drive/bus trip to Manchester, 1 hour train ride to Leeds and slightly longer drive.

Generally Tameside is well serviced, you got all the amenities you would expect and location wise you have very good access for commuting. Manchester, Salford, Leeds university all easily accessible. Tamesides location makes it popular as a commuter location looking for lower costs of living.

It's always been a working class place. Despite the wealth of the industrial revolution, the grand factories mostly now demolished and buildings, the majority of people where/are working class low paid workers and didn't see that money although the money built grand markets and highstreets for workers to spend the wages.

Tameside is a low socioeconomic area which is generational.

I went to an at best, average school. The importance of school wasn't really seen, or taught at home or in school. Myself, I had a mixed schooling history. Troublesome/difficult, likely influenced through parents attitudes, being bullied at times, not academically smart but not dumb, dyslexic and can remember one specific teacher publicly shaming me for not being able to spell my surname instead of trying to teach me. My social worker partner is adamant i'm on the spectrum. I feel there was a nurturing missing generally at these average, low social economic schools and my time could of been better with the right support in school. Eck I got a C GCSE in maths but learnt a bit of category theory, Haskell and functional programming myself.

Those who had a reasonable fortunate home life seem to of done just ok in their adult life from the area.

Those who were disruptive, high level of truancy, poor parenting, some are dead, some are in prison, some look like they should be dead with addiction. Their kids will likely follow down the same path they did and they've had more kids than the people who turned out alright.

Growing up in low social economic environments is hard to break out of. It starts at home with the importance of education and it's hard to start at home when your parents and parents parents never seen the importance and then the schooling isn't prepared to deal with it.

I broke out of it leaving as fast as I could, hard work when younger and some luck.

The north can be raw, probably not so much these days but "southern pansy" or "posh", "gay" is used disparagingly for people trying to better themself. I grew up not in poverty and not well off, in a area that wasn't the worst but not great. My mum see's anyone who has done well for themselfs as "posh" looking down on her and that can be a common theme with the less fortunate people I know in the area. This is a generational attitude.

The story seems common over the world. People growing up less well off struggle to get out of being less well off and it often starts at home and education and it's hard to start at home in the environment you are in and education doesn't happen due to home environment apart from the few outliers who do overcome the odds stacked against them.

It's funny reading these articles from people who haven't grew up poor, in the north, never seen a council estate, or the way of life, talking about Universities in 1066 and Northern Conquests as a reason.

tiew9Vii··on Moving on from React, a year later
It is an application problem, agreed.

It’s an application problem caused as a result of choosing the library, a common recommended library, and how the library and its documentation promotes its usage. The tools used were as the tools recommend. Admittedly, joining the project the wrong tools for the job were selected but these are all the react standard supporting libs.

The application should have been architected not to use redux-query, instead use the browser fetchApi and server side cache control headers as we own the entire stack. Today that’s controversial as ”every body uses” and “this is what the docs recommends”

tiew9Vii··on Moving on from React, a year later
redux-query seems a popular library for dealing with API calls in react.

I’ve landed on a project using it.

By default it seems to maintain its own cache in the frontend of all api requests unless you use a non ergonomic feature “useLazy*” where you can give it hint if to use the local cache or not.

It’s completely terrible in a web app! Web is distributed and multi user by default.

End result with the app I’m working on if user a adds an item in one browser session, user b goes to a list view they don’t see the update, they see the redux-query cache.

It’s an over complicated mess for an already solved problem. Have the server send proper cache-control headers and let the browser deal with the caching instead of trying to build fat clients on a web app that should be thin clients.

You are right you don’t need to maintain state on the client but all these fashionable JavaScript frameworks promote doing just that.

tiew9Vii··on Pricing software adds billions to rental costs, White House says
I think the incentives are completely clear, it’s about maximising $$$, profit, returns.

People are not making mistakes, it’s a conscious effort to increase profit as much as possible. The only mistakes is allowing this to exist and not regulating it out of existence.

tiew9Vii··on Landlords Are Using AI to Raise Rents
Allegedly a insurer "CEO Had Deployed an AI to Automatically Deny Benefits for Sick People" got assassinated very recently.
tiew9Vii··on Rust for AWS Lambda, the Docker Way
An alternative to this is to statically compile and use scratch docker image.

Another tip is if writing a http app etc Axum/Actix have Lambda shims.

I add a cli flag “—lambda” which enables the shim. That means I can run the app locally, in Kubernetes, ECS, Lambda with minimum effort. It also makes dev easier pretending lambda doesn’t exist.

tiew9Vii··on Australian real estate agent hallucinates two schools in rental listing
Australian realestate is notoriously broken.

Look at listings on realestate.com.au.

A lot of listings will have something on the lines of: images are representative of the property for advertising purposes only and may not reflect the property.

They use AI to do virtual touch ups/generate the images rather than use the real images to hide the mould and warts

tiew9Vii··on Australia's 3G Shutdown – Why your 4G/5G Phone is now Blocked
Except I’ve driven extensively around the world and I’m not an Australian only being in Australia for the past few years.

I’ve driven the world most dangerous roads that’s my thing. Often you wouldn’t even call them roads.

I felt more safe on a goat track with a coach coming the other way and sheer drop at the side of the road or highway with cows in the middle of the road and chaos traffic than Australia. Even 150mph down the Autobahn felt safer than 110kmh on an Australian highway.

Every car journey in Australia I play a game, spot the potential accident ahead as someone nearly crashes or does something stupid.

Watch dash cam owners Australia, half of it’s avoidable but the driver drives straight in to it rather than defensively avoid putting themselves in a dangerous situation

It’s absolutely an attitude/cultural issue. They have a lengthy process to get a license however I notice there’s a preference of parents teaching their bad habits vs professional driver training.

tiew9Vii··on Australia's 3G Shutdown – Why your 4G/5G Phone is now Blocked
Those days have long gone, those tourism campaigns lied to us.

I think it's rated as the worlds second most litigious country. If you can think of it there is probably a law and a fine for it.

tiew9Vii··on Australia's 3G Shutdown – Why your 4G/5G Phone is now Blocked
> It can't just be speed, otherwise other 'similar' countries would be orders of magnitude above Australia.

It's not just speed.

The standards of driving in Australia is terrible. There's an aggressive attitude, tail gating, no lane discipline, if someone is going way under the speed limit, you come to an overtaking lane, go to over take they'll speed up as "you are not passing me" etc. If you watch "Dash Cam Owners Australia" on YouTube half the incidents are avoidable but because "It's my right of way" or "I'm in the right" the driver will drive straight in to the incident rather than give way and avoid ignoring being “dead right” is still dead.

I've driven/ridden in countries with terrible roads, no real rules, and to the average person looks like chaos but it seems to just work. The difference is non of these countries are aggressive drivers.

When I moved to Australia I used to think the low national speed limits were silly. Now I think it'd be carnage if they are increased given the Australian driving standards.

tiew9Vii··on Australia proposes ban on social media for those under 16
> As usual, the problem with this is that it assumes a way to perfectly identify somebody on the internet, which in turns mean a way to perfectly identify, in real time, somebody carrying permanently a tracking device with GPS, microphone and camera.

It's Australia, who often rank very low for a western country on human rights.

https://www.amnesty.org/en/location/asia-and-the-pacific/sou...

Secret trials https://www.hrlc.org.au/news/2023/4/19/secret-trials-have-no...

Secret laws https://www.theguardian.com/law/2023/mar/28/more-than-800-se...

Secret ministries https://www.theguardian.com/australia-news/2022/aug/19/scott...

Secret backdoors https://www.schneier.com/blog/archives/2018/12/new_australia...

Introducing Digital ID system that may be enabler for this https://www.oaic.gov.au/digital-id

While trying to introduce laws to weaken encryption an ex Australia prime minister famously said:

> "The laws of mathematics are very commendable, but the only law that applies in Australia is the law of Australia" Malcolm Turnbull.

What's crazy the west look at places such as China as dystopian with the great firewall etc, it appears China was just ahead of the game.

Australia is probably the easiest place to introduce a system to block social media, a experimentation ground for five eyes. Easy to push things through, protesting isn't an Australian pass time, not that big of a country, not that small of a country.

tiew9Vii··on Get me out of data hell
Sadly it sounds like most AU corporate companies I've worked at.
tiew9Vii··on Get me out of data hell
Reluctantly worked on AU data projects for maybe the past decade. I don't classify myself as a data engineer, in fact I hate data engineering or data related work which is glorified ETL and SQL most of the time. They are the worst, broken projects I've done, not software engineering in the software engineering sense. I don't think I've worked on a good one yet despite the potential to be really interesting projects. I prefer general software projects doing a bit of everything as a generalist, data pays the bills though in AU.

Not seen/heard of this person before but reading this specific blog post it all sounds very familiar, it's depressing.

The "CTO" getting on stage taking a bunch of credit and everything being a mess or incomplete or lies is very familiar. Maybe not CTO but higher management. It's all smoke, mirrors, optics, self promoting, it works as these people end up making their way up the ladder when the lonely dev trying to do better work is just a dispensable cog in the wheel.

tiew9Vii··on BYD to launch its smallest EV in Australia, hinting at low-cost Seagull arrival
https://www.racv.com.au/royalauto/transport/cars/australian-...

Top 10 selling car models in 2023

Ford Ranger – 63,356

Toyota Hilux – 61,111

Isuzu Ute D-Max – 31,202

Toyota RAV4 – 29,627

MG ZS – 29,258

Tesla Model Y – 28,769

Toyota Landcruiser – 26,449

Mitsubishi Outlander – 24,263

Mazda CX-5 – 23,083

Hyundai Tucson – 21,224

---

Top three are Ute's, 4th/5th place SUV's and the others are all large cars.

You do see smaller cars like Corolla's (I own one) or Hyundai i30's as you say but the numbers above say they are not as popular as larger cars, and I agree from observations when you compare to somewhere like Europe.

tiew9Vii··on Dbt – Incremental but Incomplete
Some opinionated conventions around defining templated SQL queries in YAML files for ETL.

Then it provides additional tooling around that, GUI’s, governance, everything your average large corporate asks for.

tiew9Vii··on Scramble: Open-Source Alternative to Grammarly
I was a big fan of Grammarly, as dyslexic, so often write the wrong word then ten minutes later when re-reading spot i used the wrong word/spelling etc.

It worked extremely well, as you say I think by using basic rules engines.

I’ve canceled my subscription recently as found it getting worse, not better, I suspect because they are now applying LLMs.

The suggestions started to make less sense and the problem with LLM suggestions is all your writing takes the tone of the LLM, you loose your personality/style in what you write.

The basic rules approach worked much better for me.

tiew9Vii··on How to Know When It's Time to Go
> Java is turning into the Cobol of our generation

Despite speed of Java evolution accelerating and Java being the best Java has ever been, I agree with this. Everything is Javascript or Python these days, Java is seen as old, boring, hard, inconvenient as you need to compile it and often it doesn't compile. Javascript/Python happily run until they don't and fail at runtime which feels like it just works (until it randomly doesn't) and you can pick up a teach yourself Javascript/Python in 24hrs style book and feel you are a competent developer very quickly.

A lot of Java positions I see now are maintenance roles, which isn't a great thing. Maintenance roles are never great, often seen as bottom tier developers. Unlike Cobol, there's likely many more people who have programmed Java than Cobol so even if Java dev becomes a niche I suspect they'll still be enough of them around that compensation is not anything significant.

Kotlin is nice, let's see where it is in ten years. Closure, Groovy, JRuby, Scala are also nice but ultimately Java won as the modern Java and all those other JVM languages that once had interest and promise are now niche or completely dead.

tiew9Vii··on Turbopuffer: Fast search on object storage
Cloud backed SQLLite looks like it might be good for this. Doesn’t support S3 though

https://sqlite.org/cloudsqlite/doc/trunk/www/index.wiki

tiew9Vii··on I Received an AI Email
The irony

Everyone is playing lip service to global warming, energy efficiency, reducing emissions.

At the same time data centers are being filled with power hungry graphic cards and hardware to predict if showing a customer an ad will get a clock, generating spam that “engages” users aka clicks.

It’s like living in a episode of black mirror.

tiew9Vii··on UK's Housing Crisis Needs a London-Sized City to Fix It
Immigration is exacerbating Australian housing problems.

Australia also has an obsession with property speculation as a tax efficient investment with capital gains discounts and negative gearing.

Property in Australia isn’t about owning a home, it’s about having an investment.

Pretty much all houses in Australia are sold at auction. It’s impossible to get an accurate guide price. Every dark pattern is used to maximise sale price at auction. The auctions them selves are something of a spectacle with real estate agents acting as minor celebrities.

So much wealth in Australia is now in property, anything that reduces property value such as building more homes, increasing supply, abolishing negative gearing and capital gains discounts is political suicide. Prosperity owners in Australia have become dependent on the next owner paying more than the current owner to cover negative gearing and make a profit via capital gains. Text book definition of a pyramid scheme.

Builders are land banking drip feeding supply. Why increase supply selling for less when they can maximise value by artificially limit supply.

Then current own homers are a bunch of middle class NIMBYS. I live in a suburb the NSW government announced has a high priority suburb to build high density as it is along a rail route. Perfect place to build along a rail route with access to the city, central coast etc. The locals don’t want it.

Sydney is now the second most expensive place to live in the world. It’s property problems has a lot more to it than immigration.

tiew9Vii··on Two million checkboxes (written in Elixir)
Any recommended learning resources?
tiew9Vii··on AWS Lambda Web Adapter
A lambda lives for a relatively short period of time, ephemeral. It only handles a single request at a time but will live long enough to serve multiple requests. If another request comes in while one is in process a new lambda can spin up.

As a lambda lives for a period of time you can create a pool for that individual lambda. That pool lives for the life of the lambda.

Now for things like HTTP clients this is generally OK.

If you have a Postgres pool etc, it's not ok. Postgress doesn't like lots of connections and you will have POOL_SIZE * NUMBER_OF_ACTIVE_LAMBDA connections.

So unless you limit the number of Lambda's you have using reserved capacity Lambda's are simply not a good fit for running a PG pool locally inside the lambda for web stuff.

If you have a batch job, that runs once a day, with a single lambda, inserts a bunch of records in to postgres or similar, then a small pool in the lambda is fine.

So a lot depends on what you are doing in the lambda, how many you have, what your downstream service you are connecting to us.

tiew9Vii··on AWS Lambda Web Adapter
> What I mean by "programming the machine" is doing technical tasks that relates to making the cloud work in the way you want.

I take a different perspective.

When using a cloud, i need to design my application to work within my selected clouds constraints.

A lot of the extra work then comes down to if using a cloud, not just a single VPS on a cloud provider, you are dealing with distributed computing and have to deal with all the issues of distributed computing. Consensus, error handling, etc.

I agree though, more often than not it's a lot of extra work but mostly due to dealing with distributed architecture/designing for being cost effective.

On personal projects I find designing to be cost effective has me jumping through a lot of hoops and doing novel things. It means I can run multi-region apps with performance better than most webapps for cents/dollars. The equivalent apps I work on in my day job can be costing tens to hundreds of thousands of dollars as they don't jump through the hoops I do. "It's not worth it", "let's look at it later", "we'll just do this, it's good enough for now". As it's someone else's money i just think "meh" and move on as isn't my fight when the majority of people don't want to do it.

tiew9Vii··on Open Source Python ETL
You see this a lot. A new generation comes in to relearn all the old lessons. It’s also happening on the frontend “server side rendering is bad, it’s slow” to the latest frontend frameworks and thought leaders “you should be using SSR” (server side rendering)

ETL is hot again with machine learning. Companies have massive amounts of data they need to get in shape for models. The promise of a GUI anyone can use with little experience (low costs) means these tools are gaining traction again for the same lessons to be learnt from the last generation who moved on/out the industry.

tiew9Vii··on I am sick of LeetCode-style interviews
> Senior Java developers who could not import HashMap without looking it up

> No IDE, specifically to test basic ability. We use a web-based shared editor, that has syntax highlighting, and auto-tabbing, but specifically no auto-complete nor auto-import.

I can sympathize with the candidate and think the test is poor and not surprised people had to look it up.

I've been doing Java since early 2000's and off the top of my head can't tell you what package HashMap is in without looking it up except it starts with `java.` something, probably. I type `HashMap` in my IDE, hit auto complete. I haven't needed to remember the exact package name since early 2000's when I started coding so don't know it, no need to, why waste space in my head for it. If there's a second HashMap class available on the class path I can tell you the one I want from the suggestion list.

You're trying to test someones memory on something they haven't needed to remember for decades now, knowing a specific fully qualified path to a class/what package it is in isn't a useful test. Knowing what a HashMap is and how to use it is useful.

Enable auto complete/import. You don't have it disabled for your currently employed devs and they'd not function well without it and probably fail the same test.

tiew9Vii··on Koheesio: Nike's Python-based framework to build advanced data-pipelines
From their docs: > Koheesio is a Python library that simplifies the development of data engineering pipelines. It provides a structured way

I think this pretty much sums it up, "a structured way".

It's looks to be a thin wrapper around spark to provide a consistent way to structure ETL jobs. They've implemented a mini dsl defining jobs as a datastructure on top of Spark.

I've seen several companies build stuff similar to this internally, defining jobs as a data structure. It all amounts to each company having their own internal conventions, their own view of what is easier for their devs and creating a framework for it. Nike have just decided to make theirs public.

You can do all this simply with simple spark scripts. Personally I'd use simple spark scripts. Big companies with lots of people love making these tools as companies love conventions, their conventions, their style guides, deal with staff churn/on-boarding frequently so believe these kind of things make that easier.

Probably makes sense in Nike as a way of organizing their ETL jobs but that looks to be all it brings. A way to structure/define your simple spark jobs the way Nike devs believe it should be done.

tiew9Vii··on Migrating Uber's ledger data from DynamoDB to LedgerStore
From one of the original sources linked in this thread

> LSG promised shorter indexing lag (i.e., time between when a record is written and its secondary index is created). Additionally, it would give us faster network latency because it was running on-premises within Uber’s data centers.

https://www.uber.com/en-AU/blog/migrating-from-dynamodb-to-l...

← PreviousPage 3 of 13Next →