">
 

Six Months Later, the Bundle Is Still Alive

Iniciado por joomlamz, Hoje at 14:25

Respostas: 1   |   Visualizações: 2

Tópico anterior - Tópico seguinte

0 Membros e 1 Visitante estão a ver este tópico.

Saudações, caros membros e entusiastas da tecnologia do **webmastersmz.com**! Como especialista na área, analisei o tópico em inglês *"Six Months Later, the Bundle Is Still Alive"* (Seis Meses Depois, o Bundle Continua Vivo) e trago aqui uma análise técnica dos pontos fundamentais discutidos.

### Análise Técnica do Tópico

Para quem acompanha a evolução do desenvolvimento web e a gestão de infraestruturas, o conceito de "bundling" (agrupamento de recursos) e a escolha de ferramentas de empacotamento de código continuam a ser temas quentes. Os pontos principais abordados após este semestre de avaliação prática revelam:

1. **Resiliência Arquitetural:** O tópico destaca que, ao contrário do que muitos profetizavam com a chegada de novas abordagens sem *bundle* (ou com foco excessivo em componentes nativos de última hora), a estratégia de agrupar e optimizar assets continua a ser vital para a performance.
2. **Optimização de Largura de Banda:** Em contextos de conectividade desafiantes — uma realidade muito grata a nós em Moçambique —, a compactação e minificação eficientes reduzem drasticamente o tempo de carregamento (*Load Time*), melhorando o SEO e a experiência do utilizador (UX).
3. **Gestão de Dependências:** O ecossistema de desenvolvimento continua a validar que manter o fluxo de trabalho (*workflow*) baseado em *bundles* bem configurados previne o caos na árvore de dependências, facilitando o cacheamento no lado do cliente.

Em suma, a longevidade desta abordagem prova que, mais do que seguir modismos, a engenharia de software deve focar-se na estabilidade, na performance e na entrega consistente de valor ao utilizador final.

Agora, a palavra passa para a nossa comunidade! Qual tem sido a vossa experiência com ferramentas de *bundling* nos vossos projetos atuais? Notaram ganhos reais de performance? Como lidam com a compatibilidade e o tamanho dos vossos pacotes? **Deixem as vossas opiniões e vamos debater nos comentários!**

---

Para garantir que os vossos projetos e fóruns rodam sem falhas, convido-vos a conhecer as soluções de alojamento de alta performance da AplicHost em [https://aplichost.com](https://aplichost.com).

Six Months Later, the Bundle Is Still Alive



Tópico: Six Months Later, the Bundle Is Still Alive
Categoria: Tutoriais | Programação & Tecnologia
Idioma Principal: Português (Conteúdo de Tecnologia)

Descrição do Conteúdo / Informações:
-------------------------------------------------------------------------
So, it's been half a year since the first stable version of Symfony JSON Schema Validation Bundle was released, which turned out to be version 3.

Someone is actually using the bundle consistently. It already has around 150 installations, and that number keeps growing every day. Probably even every hour. Most likely, these aren't 150 different users - a significant part of the installations probably comes from CI/CD. But why not? That's good too.

Does that mean I was right about something? Does it mean that you really don't always have to follow all the best practices from beginning to end?

Let me remind you - in an ideal world, the business knows its business processes. You can describe every entity exhaustively, including its parameters and rules, create models for everything, derive validation rules from those models, throw something like API Platform on top of it, and get one f*cking amazing API.

From my previous posts in this series, you may have already figured out that I got tired of this ideal world and decided to take the JSON Schema standard and apply it as a Symfony bundle.

So apparently, I'm not the only one who got bloody tired of all this!!

Since the code somehow acquired a life of its own, I decided to spend some of my available free time on it. If we speak dryly, here is the changelog.

But if we speak like normal human beings, I fixed several problems and significantly reconsidered some parts of the bundle. Every class was touched by the changes, but the paradigm itself remained untouched. Everything should be simple: data → schema → validation → understandable response to the client.

The biggest change is support for long-running PHP runtimes such as Swoole and RoadRunner. You can now load it into an application running under Swoole, for example, and state will not leak between coroutines or threads. At the same time, the schema resolver is now reused instead of being created from scratch for every validation. I personally think that the PHP Swoole extension should be included in PHP itself. Hey, PHP core developers - why the hell isn't that already the case?! Take my weird Schrödinger website, for example. It uses a classic stack: PHP, Symfony - with all the usual stuff like Doctrine, Monolog, Twig and MySQL. But PHP is running with the Swoole extension. The average server response time is 50 ms. That's the level of compiled languages.

Sorry, I got distracted.

JSON Schemas can now also be registered from different sources with different paths and domains. So you can create a schema for an email address with your own specific rules and then simply reference it in 100500 different places. Go ahead and try doing that using DTOs.))) Haha.

There are some other small things as well, but nothing revolutionary. It's just code that I originally wrote for myself that suddenly started being used by someone else. And that made me want to make it a little better.

Guys and girls, support me. Come on, don't be boring, give a star to repo or try the package.

Enthusiasm doesn't live for very long on its own.

Bundle: https://github.com/outcomer/symfony-json-schema-validation

Docs: https://outcomer.github.io/symfony-json-schema-validation/

A special thanks to @javiereguiluz. Apparently, it was probably thanks to him that the bundle made it into Symfony News and got a chance to live a little.

P.S. I also became a Symfony contributor. I've always wondered how people become contributors... Apparently, this is how... You write something, and then it turns out that there's a small thing in the framework or ecosystem that is critical for you, so you go and fix it (In my case, it was something in the Symfony Flex pipeline.). And then one day you wake up and - boom... you're a contributor.

❤️ Support me on GitHub Sponsors


Joomlamz
Consultoria em Informática
-------------------------------------------------------
Especialista em Sistemas Web & Manutenção de Servidores.
A desenvolver o novo AplPortal com suporte a PHP 8.
Precisa de ajuda profissional? Contacte-me.

Tags: