Kamil Szarek retweeted
▲ @Vercel just launched the AI SDK.
You can now build AI-powered apps with streaming – starting with one simple command: `npm i ai`
Here are some examples👇
Kamil Szarek retweeted
The result? Components that are mostly JSX, and thus, easy to understand, test, and reuse.
For more details, check out: martinfowler.com/articles/mo…
Kamil Szarek retweeted
Tests often show that code works in an unrealistic, parallel universe. E.g. one where...
- Every dependency is mocked
- We can modify the service container at will
- We use Sqlite instead of Postgres
- We invoke the HTTP kernel directly
- We have data in our database somehow
Kamil Szarek retweeted
A former CIA math genius built a quantitative trading fund that earned more than $100 BILLION for investors.
At 66% return/yr, his track record destroys that of Warren Buffet, George Soros, Carl Icahn, and every investor who ever lived.
The Smartest Billionaire in Finance:
Kamil Szarek retweeted
Ever wondered how a QR code works?
No, me neither but it's low-key fascinating.
(Warning, there is some extremely nerdy shit here.👇 )
Kamil Szarek retweeted
jsoncrack - Seamlessly visualize your #JSON data instantly into graphs; paste, import or fetch! https://teapawt.net/t.co/b1Aqf0bsWL
Kamil Szarek retweeted
I typically bill hourly. But, I just completed a *fixed bid* development project for the first time in 20+ years.
Result? It took me twice as many hours as I estimated. 🤦♂️
Estimating custom development is hard.
Lessons learned...
1/4
Kamil Szarek retweeted
Introducing Docker support symfony.com/blog/introducing… #symfony
Kamil Szarek retweeted
Symfony quick tip: Use the `#[CurrentUser]` attribute to inject the current user in your controller.
This allows you to use a much more relevant typehint than Symfony's UserInterface.
Kamil Szarek retweeted
Dear Twitter, what you use to control the flow of your aggregates/models:
- exception
- return generic Result object (like Either or Option)
- something else?
Kamil Szarek retweeted
PHPStan 1.0 is out! With brand-new level 9 (it’s brutal), dozens of improvements accumulated over the past 1½ years, backward compatibility promises for both users & extension developers, and a bright future! phpstan.org/blog/phpstan-1-0…
Kamil Szarek retweeted
🐘If you need some simple pattern matching in #PHP, you don’t need to immediately turn to regex.
Take a look at fnmatch: php.net/manual/en/function.f…
It was made for filenames, but it works with all strings 👍
Kamil Szarek retweeted
Preparing your trivial project for Big Data because Google and Netflix also had this problem.
Kamil Szarek retweeted
It's taken me over 10 years of PHP development to learn that you can insert an exclamation into the DateTime::createFromFormat method to reset all of the remaining time units 🎉
Kamil Szarek retweeted
Time for a next press release 🔍
github.com/oskardudycz/Archi…


























