Better HN
topnewbestaskshowjobs
Log inSign up

brentroose

423 karma · joined Nov 10, 2021 (5y ago) · 51 submissions

Submissions

1.

Artificial Debt(stitcher.io ↗)

3 points · by brentroose · 1mo ago · discuss

comment 2mo ago · link · parent

I'm biased (I'm a dev advocate at JetBrains), but I also still actively write code and use PhpStorm almost daily.

Yes, we're writing less code, but the job of "a programmer" has always been about so much more than _writing_ code. It's about code reviews, QA, debugging, discovery, and maintenance; much more than the "writing" part. Anyone with production code will agree, I think: the writing part is the easy part. That's where I still very much prefer a proper IDE over a text editor or terminal. I want easy code navigation, I want proper static analysis without relying or waiting on third party tools, I want a visual overview of changes that happened. I want to stay in charge of whatever is writing my code. On top of that, I want my agents to have access to the tools that have made me the most productive developer for years.

Curious about your thoughts?

3.

"A" for "Average"(stitcher.io ↗)

2 points · by brentroose · 3mo ago · discuss

4.

My IKEA clock and software design(stitcher.io ↗)

4 points · by brentroose · 7mo ago · 1 comment

comment 9mo ago · link · parent

The rules state that FFI and the likes isn't allowed because the goal is to do it in PHP :)

comment 9mo ago · link · parent

True, it's a bug that I'm going to fix, but it only impacts local test data sets and not the real benchmark :)

comment 9mo ago · link · parent

Around 7GB

comment 9mo ago · link · parent

Almost all, actually. I wrote about it here: https://stitcher.io/blog/11-million-rows-in-seconds

A couple of things I did:

- Cursor based pagination - Combining insert statements - Using database transactions to prevent fsync calls - Moving calculations from the database to PHP - Avoiding serialization where possible

comment 9mo ago · link · parent

The FAQ states that solutions like FFI are not allowed because the goal is to solve it with PHP :)

comment 9mo ago · link · parent

A month ago, I went on a performance quest trying to optimize a PHP script that took 5 days to run. Together with the help of many talented developers, I eventually got it to run in under 30 seconds. This optimization process with so much fun, and so many people pitched in with their ideas; so I eventually decided I wanted to do something more.

That's why I built a performance challenge for the PHP community

The goal of this challenge is to parse 100 million rows of data with PHP, as efficiently as possible. The challenge will run for about two weeks, and at the end there are some prizes for the best entries (amongst the prize is the very sought-after PhpStorm Elephpant, of which we only have a handful left).

I hope people will have fun with it :)

11.

100M-Row Challenge with PHP(github.com ↗)

186 points · by brentroose · 9mo ago · 102 comments

12.

Optimizing PHP to process 50k lines per second instead of 30(stitcher.io ↗)

2 points · by brentroose · 10mo ago · discuss

13.

Open Source Strategies(tempestphp.com ↗)

1 points · by brentroose · 10mo ago · discuss

14.

PHP in 2026(stitcher.io ↗)

13 points · by brentroose · 10mo ago · discuss

15.

PHP 8.5(stitcher.io ↗)

244 points · by brentroose · 1y ago · 190 comments

16.

The State of PHP in 2025(blog.jetbrains.com ↗)

6 points · by brentroose · 1y ago · discuss

comment 1y ago · link · parent

Out of curiosity: do you know why they pay for it themselves instead of asking their company to do so?

18.

Primitive Obsession(acairns.co.uk ↗)

2 points · by brentroose · 2y ago · 1 comment

19.

Don't be clever(stitcher.io ↗)

271 points · by brentroose · 3y ago · 224 comments

20.

Offsite(robinrendle.com ↗)

1 points · by brentroose · 3y ago · discuss

21.

Hakana: Taking Hack Seriously(slack.engineering ↗)

1 points · by brentroose · 3y ago · discuss

22.

CSS Nesting(robinrendle.com ↗)

2 points · by brentroose · 3y ago · discuss

23.

The Risks of Staying Put(robinrendle.com ↗)

1 points · by brentroose · 3y ago · discuss

24.

What happens if your development team is hit by a bus?(blog.bielawski.tech ↗)

1 points · by brentroose · 3y ago · discuss

25.

Readme Driven Development(tom.preston-werner.com ↗)

2 points · by brentroose · 3y ago · 1 comment

26.

Clever Code Considered Harmful(joshwcomeau.com ↗)

3 points · by brentroose · 3y ago · 1 comment

comment 3y ago · link · parent

The rich ecosystem, the amount of developers experienced with it, ease of deployment and maintenance

comment 3y ago · link · parent

Yeah, doc blocks. It's a name that originated within PHP a long time ago: https://docs.phpdoc.org/guide/guides/docblocks.html

comment 3y ago · link · parent

You could probably use GIT commit history as a data source?
12