iosifch's profile picture. learner

Iosif Chiriluta

@iosifch

learner

Iosif Chiriluta reposted

An event is a fact something happened in your domain. Named with past tense verbs: `CustomerRegistered` or `OrderPlaced`. Events are immutable, which makes sense when you think about it because you can't change the past. This principle is critical to Event Sourcing


Iosif Chiriluta reposted

This is the value switching #symfony config to PHP will bring to your project ↓ tomasvotruba.com/blog/2020/07/1…


Iosif Chiriluta reposted

I can hear the Go-splainers now... "But Copilot writes the if/else for us!" 🤦‍♂️🤦‍♂️🤦‍♂️

Yau may not like it, but this is peak programming... apparently. I really don't like it. That's 3/4 error handling just because you refuse to even implement rust's "?".

kerckhove_ts's tweet image. Yau may not like it, but this is peak programming... apparently.

I really don't like it.
That's 3/4 error handling just because you refuse  to even implement rust's "?".


Iosif Chiriluta reposted

TIL, doctrine entities can be read only: #[ORM\Entity(readOnly: true)] >readOnly: Specifies that this entity is marked as read only and not considered for change-tracking. Entities of this type can be persisted and removed though.


Iosif Chiriluta reposted

More Medium gold: "Lean Architecture" to kill "Clean," "Hex," and other "spaghetti architectures," which are written about by those who don't understand. The architecture is a "process" ending with: "Step 5: Glue everything together with a decent structure and some decent…


Iosif Chiriluta reposted

1/5 Please don't let your friends map PHP object manually. composer require jolicode/automapper It's completely automatic, but it doesn't mean magic. - Convention over configuration - Extra control on everything via Attributes - Object, Array... both-ways - Symfony support

JoliCode's tweet image. 1/5 Please don't let your friends map PHP object manually.

composer require jolicode/automapper

It's completely automatic, but it doesn't mean magic.
- Convention over configuration
- Extra control on everything via Attributes
- Object, Array... both-ways
- Symfony support

Iosif Chiriluta reposted

What is Primitive Obsession? This article looks into the code smell, the damage it can cause to your codebase, tips on recognising it and - how to fix it! 💪 acairns.co.uk/posts/primitiv…


Iosif Chiriluta reposted

Complete decoupling is impossible for non-trivial software to function. A Domain Event couples at least one consumer service to the producer. Event translation decouples the service inside from its outside, but the outside is still coupled by necessity. Events offer the best…


Iosif Chiriluta reposted

TechDebt is a result of an overcommitment to a particular business direction. Optionality and modularity give you some flexibility. Unfortunately, they come at a price. So, many decision makers prefer savings today and let their successor worry about the consequences.

wardleymaps's tweet image. TechDebt is a result of an overcommitment to a particular business direction.

Optionality and modularity give you some flexibility.

Unfortunately, they come at a price.

So, many decision makers prefer savings today and let their successor worry about the consequences.

Iosif Chiriluta reposted

"Hexagonal Architecture: Common Pitfalls" There are no pitfalls with Hexagonal (Ports & Adapters), only with the people implementing it. Adapter -> Driver-Port -> (Do-Stuff) -> Driven-Port -> Adapter The domain model, anemic/rich, is not part of Hexagonal but can exist inside.


Iosif Chiriluta reposted

I believe that database first approach is the worst software design/development approach. It is rigid and makes a lot of assumptions about the software behavior upfront. The system behavior and DB should evolve independently from each other.


Iosif Chiriluta reposted

I recommend moving completely from designing features as data and start designing them as behaviors. It makes a massive long term impact on software systems. I've done all the data model first programming too.. For years.. in my experience, it's much more expensive long term.

CRUD (Create Read Update Delete) needs to burn in a tire fire. Build an extendible system by following the path to event-driven architecture. codeopinion.com/path-to-event-…



Iosif Chiriluta reposted

Here's a way to think about familiarity vs complexity: driving a car. Can you remember how challenging driving a car was when you took your first lesson? But, before long, it became second-nature and quite easy... right? Being unfamiliar with something does not make it complex.…


Iosif Chiriluta reposted

Focusing on data or “entities” can lead you to develop a system that is hard to change and, over time, littered with technical complexity. I will cover why you must think about your system’s behaviors and start being explicit. codeopinion.com/focusing-on-en…


Iosif Chiriluta reposted

Comparison of memory usage and execution speed between #PHP associative arrays, named and anonymous classes, stdClasses and extended classes, across PHP versions. TLDR; using classes is more memory efficient, and a bit faster. exakat.io/en/array-class…


Iosif Chiriluta reposted

If you want to learn more about what's new in #Symfony 7 after 2 years of dev: symfony.com/7


Iosif Chiriluta reposted

The main challenge with AI assisted programming is that it becomes so easy to generate a lot of code which shouldn’t have been written in the first place.


Iosif Chiriluta reposted

Finally #PHP receives production ready tooling for tracking business flows, communication between Services, errors and performance. dariuszgafka.medium.com/finally-tracin…


Iosif Chiriluta reposted

The problem with solving something just enough to the point that it kinda works, is that the "kinda's" accumulate. A thing that kinda works + another thing that kinda works = a thing that kinda kinda works. After a while there's so many "kindas" with no space for "works".


United States Trends

Loading...

Something went wrong.


Something went wrong.