436 karma · joined March 26, 2017
A truly modern language is Rust.
I’ve been writing code for many years but one of the areas I wanted to improve was debugging, I’ve always printed variables but last month I decided to start using a debugger instead of logging to the console. For the past weeks I’ve only been using breakpoints and the resume program function because the step-into, over, out functions have always been confusing to me. An hour ago I sent Gemini images of my debugger and explained my problem and it actually told me what to do and it actually explained to me what the step-* functions did and it told me what to do step by step (I sent it a new screenshot after each step and told it to explain to me what was going on).
I now have a much better understanding of how debuggers work thanks to Gemini.
I’m fine with google getting my data, the value I just got was immense.
For example, in php 8.5 you’ll be able to do:
[1,1,2,3,2] |> unique
And then define “unique” as a constant with a callback assigned to it, roughly like:
const unique = static fn(array $array) : array => array_unique($array);
Much better.
This syntax is invalid. But it will be possible next year with the proposed partial function application rfc
array_column(?, 'tags')
Because words have specific meanings. There’s a specific expectation when using them. It’s like if someone said “I can’t install this app on my iPhone” but then they have an android phone. They are similar in that they’re both smartphones and overall behave and look similar, but they’re still different.
If you are told an api is restful there’s an expectation of how it will behave.
More on this, I I'd like to get feedback on whether it's intuitive or not (I went with a builder which is what I personally find intuitive but I'd love to hear what more seasoned (and unbiased) people think).
That’s an insane take. The vast majority of their citizens are just regular people like you or me.
Pretty sure that Wordpress logo is just the stock logo that came with every Wordpress installation. The name wp engine was the website name of that Wordpress installation.
I feel like this is a half empty half full kind of situation. Some people might think like you but others might view it as probably the most memorable keynote in Wordpress history (because if all the drama).
I always disliked the it’s a library not a framework debate. Isn’t any library a framework, technically?
It’s really nice. It started in php as xhp in the late 2000s and was later ported to JavaScript as jsx.
I would say most packages are somewhat maintained. But there are definitely a lot that don’t. Just last week I tried to install a few web worker packages and I couldn’t make any of them work.