Comments (4)
I'm not sure to follow.. the result would be the same right ?
from symfony.
Yes, the result would be the same. But is it better to use shortcode than directly emoji in the code? Is this a good practice? Or is it useless and we leave the emoji in the code?
from symfony.
In my mind I really don't see why we would need some back and forth with a library to... get the exact same data in the end 😅
But instead using the Emoji component here would require multiple composer packages and a .... certain amount of emoji names translated in every possible variant ...
Regarding "good practices" i have no idea, but.. I let you guess this comparaison before clicking on the results ;)
<?php
echo mb_strlen('🐘') . PHP_EOL;
echo strlen('🐘') . PHP_EOL;
echo PHP_EOL;
echo mb_strlen(':elephant:') . PHP_EOL;
echo strlen(':elephant:') . PHP_EOL;
echo PHP_EOL;
Results: https://3v4l.org/dk4RV#v8.3.8
(note: i post this comparaison just for fun... IRL this difference makes in fact no impact here. and i don't mean "very few" i really mean "no")
from symfony.
I checked by curiosity: these emojis are here since the component introduction
from symfony.
Related Issues (20)
- [Process] Prepared command placeholders
- [symfont/notifier] The "brevo" scheme is not supported (with reproducer repo)
- implementing SignalableCommandInterface in standalone symfony/console might prevent SIGINT/SIGTERM
- Using IsCsrfTokenValid attribute with invalid token redirects user to login page
- [DependencyInjection] Regression in sorting service locators by priority
- [FrameworkBundle][Notifier] The "brevo" scheme is not supported (with reproducer repo)
- BC Break when serializing an entity with an empty array in serializer_groups HOT 2
- [ErrorHandler] Code highlighting on PHP 8.3 is broken on rendered exception pages
- Leaking and/or losing sessions in worker mode (RoadRunner, Swoole) HOT 6
- [DoctrineBridge] Pass `User` to `EntityValueResolver`'s expression
- [PropertyInfo] Version 7.1 conflicts with `symfony/doctrine-bridge` 7.0 HOT 3
- MailerInterface is not working HOT 1
- [Validator] IBAN validator fails if IBAN contains non-breaking space
- [Cache] [BC] cache namespace changed after minor update HOT 1
- [HttpKernel] Inconsistent MapRequestPayload behavior with empty request body and default parameter
- [HttpClient] Error "connection reset by peer" in long-running process
- "When" Constraint -> Possibility to apply validations if expression(s) not matched (same way as if/else) HOT 1
- Support substitutions in SendgridApiTransport HOT 2
- Incorrect condition for rendering preferred choices in form_div_layout.html.twig
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symfony.