Kamil Szarek (@szarektech) profile picture

Software developer

Poland
Joined February 2014
Photo by Kamil Szarek (@szarektech)Photo by Kamil Szarek (@szarektech)Photo by Kamil Szarek (@szarektech)
Kamil Szarek retweeted
StackOverflow graph of questions asked per month. Holy shit.
837
1,832
879
26,993
4,682,651
Kamil Szarek retweeted
Let me make this perfectly clear: we don’t do this in PHP land.
51
92
7
941
140,282
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👇
63
309
53
2,224
750,396
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
9
23
5
122
24,976
Spiral/RoadRunner Framework and FrankenPHP are the future of PHP. Watch this space. #php #golang
9
28
160
27,418
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:
305
2,532
252
14,362
3,569,999
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.👇 )
210
7,727
831
31,097
Kamil Szarek retweeted
jsoncrack - Seamlessly visualize your #JSON data instantly into graphs; paste, import or fetch! https://teapawt.net/t.co/b1Aqf0bsWL
18
352
14
1,813
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
20
32
10
313
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.
9
56
1
280
Dear Twitter, what you use to control the flow of your aggregates/models: - exception - return generic Result object (like Either or Option) - something else?
7
3
1
6
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…
25
258
21
785
🐘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 👍
6
58
4
324
Preparing your trivial project for Big Data because Google and Netflix also had this problem.
12
187
12
1,074
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 🎉
43
418
84
1,650