Théo Fidry

4.8K posts

Théo Fidry

Théo Fidry

@tfidry

@theofidry on GitHub https://t.co/gpLxgxuRuP

Barcelona, Spain Katılım Mart 2015
1.4K Takip Edilen720 Takipçiler
Théo Fidry
Théo Fidry@tfidry·
@GromNaN Def. agree, although let's be honest, multi-ternary (or multi-expression statements) on one line are always hard to read
English
0
0
0
42
Jérôme Tamarelle
Jérôme Tamarelle@GromNaN·
When chained, the ternary operator syntax is hard to read. I prefer a using match(true) #PHP
Jérôme Tamarelle tweet media
English
9
9
86
13.5K
Théo Fidry
Théo Fidry@tfidry·
@mitsuhiko What is the root cause? (not very familiar with Rust, pardon my ignorance)
English
1
0
3
248
Armin Ronacher ⇌
Armin Ronacher ⇌@mitsuhiko·
This is from the 2024 Rust survey. The first three items all have the same root cause. I wish there was some reason to be optimistic that this could improve, but I don’t really see it.
Armin Ronacher ⇌ tweet media
English
4
2
49
5K
Théo Fidry
Théo Fidry@tfidry·
@Shyim97 @dunglas @Vonage I find it really interesting, because despite all of those valid points, even as I learn other languages, I'd still pick PHP over TypeScript/Go/Python/Kotlin 🙃
English
0
0
5
130
Shyim
Shyim@Shyim97·
@dunglas @Vonage I would not choose PHP for any new project tbh, missing async functionality in widespread packages like Symfony or Doctrine the toolchain is annoying there are not one php many combinations due to installed extensions and everything scoped system-wide. composer is not bundled
English
7
1
8
1.3K
Roman Pronskiy
Roman Pronskiy@pronskiy·
Apparently I delete lines and use multiple cursors in @phpstorm far more often than I use code completion 😁
Roman Pronskiy tweet media
English
3
1
10
1.1K
Théo Fidry
Théo Fidry@tfidry·
@matthieunapoli I don't know the project but I do take you for a reasonable and experience person that can make a sensible judgement about this 😄 I think DDD is just a tool to help estrablish and detect boundaries/constraints. Sometimes the result is just that you're highly dependent on infra
English
0
0
1
44
Matthieu Napoli
Matthieu Napoli@matthieunapoli·
@tfidry No: in that project it must be thrown out the window
English
1
0
0
41
Matthieu Napoli
Matthieu Napoli@matthieunapoli·
It's been interesting to work on a very high-scale project: the usual DDD approach (writing infrastructure-agnostic code) must be thrown out the window. Infrastructure details are interwoven with domain logic because of the high traffic/volume.
English
4
3
33
6.2K
Théo Fidry
Théo Fidry@tfidry·
@matthieunapoli But I like to see it as a much more contrived example, which doesn't even need to be about DDD: Hard to explain on Twitter though: 3v4l.org/fh93m
English
0
0
0
34
Théo Fidry
Théo Fidry@tfidry·
@matthieunapoli I mean the first post was pretty much: you need perf => throw DDD out of the window ;)
English
2
0
0
48
Théo Fidry
Théo Fidry@tfidry·
@alex_s_ @_Codito_ @martinbean But surely creating entities is cheap? I would avoid any DB/FS call in there as much as possible, but I don't see how creating objects in the data provider would be a problem
English
1
0
2
59
Alexander Schranz
Alexander Schranz@alex_s_·
@_Codito_ @martinbean Keeping complexitiy out of data providers is good. Because all data providers are called even when you filter only by a specific test case. Something I did wrong in the past creating entities inside of them, instead better return only scalar values in them: Docs:
Alexander Schranz tweet media
English
2
0
0
45
Martin Bean
Martin Bean@martinbean·
Since PHPUnit adopted attributes, I’ve much preferred specifying test data above test cases using the TestWith attribute, rather than referencing a data provider with its implementation elsewhere in the class. An example of before and after 🔽
Martin Bean tweet media
English
2
2
16
1.4K
Théo Fidry
Théo Fidry@tfidry·
@vanamerongen Reminds me of the useless auto-generated php/java doc "This is the constructor" that the IDE was adding all the time. Yeah no shit
English
0
0
1
57
Pauline Vos 🍉
Pauline Vos 🍉@vanamerongen·
Really irks me when people request I document things with comments that are already perfectly conveyed by naming. Like I'm literally just commenting what it already says it is
Pauline Vos 🍉 tweet media
English
7
0
16
1.6K
Théo Fidry
Théo Fidry@tfidry·
@marcelpociot In my experience, if you do pic sync, you should at least include a serialization step
English
0
0
0
48
Marcel Pociot 🧪
Marcel Pociot 🧪@marcelpociot·
How do you work with queues in Laravel locally? Do you just use the "sync" queue driver, or redis/database and then start the worker manually?
English
41
2
30
12.3K
Théo Fidry
Théo Fidry@tfidry·
@vanamerongen @mootoday IMO git hooks are like IDEs: let people do what they want, enforce rules via the CI And if one forces git hooks, I'll alias git commit to add `--no-verify`: let me hook free
English
1
0
1
21
Pauline Vos 🍉
Pauline Vos 🍉@vanamerongen·
@mootoday --no-verify or just rename the hook file, lol Why wouldn't you want them in your CI in the first place? They take like half a second
English
1
0
0
67
Théo Fidry
Théo Fidry@tfidry·
@MabarDev @janedbal @OndrejMirtes But all of that introduces dependencies and slows it down 🙃 I really like the idea of the tool, but I also feel you'll always hit a limit with a token base approach (although it is much faster)
English
0
0
0
31
Marek Bartoš
Marek Bartoš@MabarDev·
@janedbal @OndrejMirtes - allow indirect dependencies from specific packages. I have a CMS defining a ton of dependencies and I consider dependency versions to be part of the API. It allows me to require one package in an extending module instead of ~40.
English
1
0
0
40
Jan Nedbal
Jan Nedbal@janedbal·
🚀Boost your CI pipeline with github.com/shipmonk-rnd/c… • Uncovers unused, shadow and misplaced #composer deps • Scans 15 000 files in just 3s!⚡ • Fine-grained ignores • Supports #php 7.2 - 8.3 • Zero composer dependencies • No config needed for first try Try it today!💪
Jan Nedbal tweet mediaJan Nedbal tweet media
English
4
8
50
7.3K