News for hackers. Stuff that matters.

throw156754228

You can't wish the complexity of business logic away. If it is vast and interconnected, then so is the code.
And have a dozen versions of the same logic leading to subtle bugs in production.
Re:Disposable vapes to be banned in England and Wales on Friday October 25, 2024 @02:20PM (#41948048)
If only I had a pound for every discarded vape canister littered on the ground I've seen in London over the past few years. Will the ban fix this? I barely even know what a vape is.
Re:Apple Mobile Processors Are Now Made in America. By TSMC on Wednesday September 18, 2024 @06:46AM (#41578075)
> I don't think the government applying such levers to change how the market allocates capital probably won't be a win for economic output or quality of life.

We've got China cheating with their massively deflated currency, so how the market allocates capital is already screwed.

Who said I want my own data centre if I don't want to use AWS/GCP/Azure?
>It wont be easy or painless but it wont be impossible either.

With data egress costs, all the security infrastructure built up is all bespoke to a provider, not to mention engineers relearning the new provider's APIs and all its warts. The cost would be HUGE. Would be something that would go to a board for approval.

No this argument is not analogous. I worked for a bank that upped and moved offices on a commercial lease renewal. Let me know when you hear of a bank migrating Cloud providers and I will reconsider. It is 100% vendor lock in, no escape.
Re:Makefiles for Web Work (2022) on Saturday August 24, 2024 @03:54AM (#41336432)
I like this, package.json starts to look really ugly when you build up lots of scripts that need to run interdependently. For example some stubbed back ends, front end, some auth service, etc. You end up with ugly long npm scripts with &&s everywhere. However for this sort of thing, personally I'd rather use docker compose, dependencies are explicit and declarative, like this I guess. You can define health checks for services with docker compose too.
I feel like Slack is 80% of the problem. Honestly I'd like to get rid of it at our company, and just have everything come down/go back up through my manager. I realise some of you probably have never experienced this.
Re:DEF CON's response to the badge controversy on Sunday August 11, 2024 @04:31PM (#41219140)
>bit off more than it could chew

The fact that Dmitry was still pushing changes on the aeroplane, although he seemed to frame this as a positive, doesn't exactly inspire a lot of confidence in their professionalism, viewed from the outside.

Re:Things I Won't Work With: Dimethylcadmium on Sunday August 11, 2024 @02:00AM (#41214258)
Great discussion following the article in the comments. Bunsen was a legend.
Re:Things I Won't Work With: Dimethylcadmium on Sunday August 11, 2024 @01:51AM (#41214233)
The OP's article says Cadmium is not well absorbed from the gut. So even less reason to be concerned.
Re:A contribution to the wild-bug-hunt-story genre on Saturday August 10, 2024 @07:15AM (#41208713)
OP learnt about idempotency in http the hard way. However the post reminded me that I don't particularly like this hydration step of NextJS apps where there is javascript executing that is difficult if not impossible to step debug.
Re:A contribution to the wild-bug-hunt-story genre on Saturday August 10, 2024 @06:50AM (#41208632)
Follow the Ruby on Rails getting started guide and build a toy Rails web app. It has conventional http semantics baked in, you'll learn a lot.
Re:p5.js on Saturday August 03, 2024 @05:01PM (#41149237)
It is indeed slow. It's a library written by non-developers for non-developers and it shows in the APIs.
Also their other well known problem: you lose the program state if an exception is thrown in the monad above.
I don't want to be relying on another flaky LLM for anything mission critical like this.

Just fix the original problem, don't layer an LLM into it.

Re:Show HN: Preprocessor I've been working 4 years now on Sunday July 28, 2024 @05:35PM (#41096157)
No not test harder. You should be testing anyway.
Re:Show HN: Preprocessor I've been working 4 years now on Sunday July 28, 2024 @02:32PM (#41095016)
What I mean is this code should be tested like any other, using visual testing suites like playwright or cypress.
Re:Show HN: Preprocessor I've been working 4 years now on Sunday July 28, 2024 @11:51AM (#41094005)
Read my message again, I'm not saying 'just don't do that'.
The model of a word to a vector breaks down really quickly one you introduce the context and complexity of human language. That's why we went to contextual embeddings, but even they have issues.

Curious would it handle negation of trained keywords, e.g "not urgent"?

Re:Node.js adds experimental support for TypeScript on Sunday July 28, 2024 @03:21AM (#41091763)
What is 'it' here in your sentence above?
Re:Show HN: Preprocessor I've been working 4 years now on Sunday July 28, 2024 @02:44AM (#41091636)
I think in a nutshell you are saying a developer could accidentally hit tab one too many times. Just test against any visual regressions, it's not hard.
Re:Show HN: Preprocessor I've been working 4 years now on Sunday July 28, 2024 @02:41AM (#41091618)
Honestly I always had a soft spot for haml. If someone wrote a haml plugin for React I would be in heaven. It's JSX that is an ugly hot mess in mature codebases, not html.
>The NODE_OPTIONS were only applying to the yarn process, not the underlying Next.js server that was being invoked by yarn.

Doesn't make sense. All child processes should get that env var.

Re:Node.js adds experimental support for TypeScript on Thursday July 25, 2024 @02:01AM (#41065173)
I see it just strips the typings. So if I attach the debugger I'm still going to see javascript right?
TLDR last I written as a J.
Re:When ChatGPT summarises, it does nothing of the kind on Sunday July 21, 2024 @06:10PM (#41028687)
It's even worse than the author writes. As the 'parameter' side of the equation gets trained on more and more scraped AI-spam garbage, summarising will actually get even worse than it already is.
Re:Firing Myself on Sunday July 14, 2024 @02:55AM (#40959319)
A typical commercial change control process exists to factor in human error. There's a cost to setting it up. This company never set it up, but ended up paying another way.

Older »