Patrick Jaja (@patricks1987) profile picture

Text ist nicht unterhaltsam

Düsseldorf, Germany
Joined January 2013
Photo by Patrick Jaja (@patricks1987)Photo by Patrick Jaja (@patricks1987)Photo by Patrick Jaja (@patricks1987)Photo by Patrick Jaja (@patricks1987)Photo by Patrick Jaja (@patricks1987)Photo by Patrick Jaja (@patricks1987)Photo by Patrick Jaja (@patricks1987)Photo by Patrick Jaja (@patricks1987)
PHP 8.4 introduces lazy loading via the new “Lazy Objects” RFC, objectively an expert-level feature that takes time to understand. We wrote about how the upcoming Doctrine ORM 3.4 implements lazy loading with minimal setup and no code generation. buff.ly/NRGCNTS
1
2
114
Patrick Jaja retweeted
Passionate about PHP? Join our team at ALDI! We use PHP, MySQL, AWS, Docker, Spryker, GitLab CI, PHPUnit, PHPStan, and more. Benefits: yearly training budget, internal academy/workshops, focus on automation, 🔥 salary. Deep involvement in the PHP community is highly appreciated.
14
11
139
22,726
Patrick Jaja retweeted
I've been at @Google 12 years today. Here are 10 lessons I've learned that may help others: 1️⃣ Embrace lifelong learning Continuous learning is the heartbeat of a thriving career. Stay endlessly curious. Write about what you learn - the process of explaining concepts to others will deepen your own understanding and uncover gaps in your knowledge. Have the humility to admit when you don't know something, and model a growth mindset for your team. Invest in your own growth, and inspire others to do the same. 2️⃣ Put users front and center The best engineers are user-obsessed. Let customer needs guide every decision and prioritization. Always start with user needs and work backwards to the right solutions. Seek to understand the real human problems your work solves. 3️⃣ Collaborate to amplify impact No engineer is an island. The most impressive feats in our field are accomplished by teams, not individuals. Shift from a "me" to a "we" mindset. Focus on collaborating, sharing knowledge, and uplifting those around you. 4️⃣ Just start. You can edit a bad page, not a blank one. Don't let perfectionism paralyze you. Start by taking action, even if it's not flawless. Get your minimum viable product out there. Then, focus on doing it right. Refine your approach, fix bugs, and optimize for quality. Finally, seek ways to do it better. 5️⃣ Master the art of influence The most effective engineers are also skilled influencers. They build bridges and buy-in. Identify key stakeholders, decision-makers, and influencers. Understand their priorities, motivations, and communication styles. 6️⃣ Think strategically Understand what matters most to the business and your users. Focus on outcomes over just outputs. Develop the ability to think strategically and connect the dots across projects, teams, and organizations. Anticipate downstream implications of decisions and architecture choices. 7️⃣ Focus on what you can control Concentrate on what's within your sphere of influence. You can't control everything, but you can always control your response. Zero in on actions you can actually take to move forward, no matter how small. 8️⃣ Communicate with clarity The ability to distill complexity is a hallmark of great engineers. Strive to communicate clearly in all you do. Tailor your communication style to your audience. Seek to listen and understand first, then to be understood. 9️⃣ Build bridges, not silos The most impactful work happens at the intersections. Seek to understand others' perspectives, needs, and constraints. Find ways to align and create win-win solutions for everyone. 🔟 Invest in your wellbeing Sustainable high performance requires intentional renewal. Prioritize balance and resilience. Set boundaries. Take breaks. Craft a life of meaning and joy beyond your identity as an engineer. I hope these lessons help others. May we continue to learn, lead, and inspire, one step at a time. ~ Addy
56
133
12
1,161
90,104
A quick note about xz-utils backdoor: 1 - luckily, this was caught early. 2 - most run xz-utils 5.2/5.4. 5.6 is bad. 3 - quick check: `xz -V` 4 - Thanks to people who paid attention openwall.com/lists/oss-secur… cisa.gov/news-events/alerts/…
16
182
13
481
269,337
𝗗𝗼 𝗬𝗼𝘂 𝗡𝗲𝗲𝗱 𝗧𝗼 𝗞𝗻𝗼𝘄 𝗔𝗹𝗹 𝗗𝗲𝘀𝗶𝗴𝗻 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀? The answer is no. Even though we have 23 design patterns, around 10 are mostly used in everyday development. Knowing which patterns exist overall is good, but you need to know these very well. Design patterns can be divided into three main types: 𝟭. 𝗖𝗿𝗲𝗮𝘁𝗶𝗼𝗻𝗮𝗹 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀 These design patterns deal with object creation mechanisms, trying to create objects in a manner suitable to the situation. Important patterns in this group are: 🔹𝗙𝗮𝗰𝘁𝗼𝗿𝘆: This pattern allows delegating the instantiation logic to factory classes. The Factory Method creates objects without exposing the instantiation logic to the client. 🔹𝗦𝗶𝗻𝗴𝗹𝗲𝘁𝗼𝗻: The Singleton pattern ensures that a class has only one instance and provides a global point of access to it. It's useful when exactly one object is needed to coordinate actions across the system. 𝟮. 𝗦𝘁𝗿𝘂𝗰𝘁𝘂𝗿𝗮𝗹 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀 These patterns deal with the composition of classes and objects that form larger structures. Important patterns in this group are: 🔹𝗔𝗱𝗮𝗽𝘁𝗲𝗿: This pattern works as a bridge between two incompatible interfaces. It wraps an existing class with a new interface to become compatible with the client's interface. 🔹𝗙𝗮𝗰𝗮𝗱𝗲: The Façade pattern provides a unified interface to a set of interfaces in a subsystem. Façade defines a higher-level interface that makes the subsystem easier to use. 🔹𝗗𝗲𝗰𝗼𝗿𝗮𝘁𝗼𝗿: This pattern dynamically adds/overrides behavior in an existing method of an object. This pattern provides a flexible alternative to subclassing for extending functionality. 🔹𝗣𝗿𝗼𝘅𝘆: The Proxy pattern provides a surrogate or placeholder for another object to control access to it. In its most general form, a proxy is a class functioning as an interface to something else. 𝟯. 𝗕𝗲𝗵𝗮𝘃𝗶𝗼𝗿𝗮𝗹 𝗣𝗮𝘁𝘁𝗲𝗿𝗻𝘀 These patterns are specifically concerned with communication between objects and how they interact and distribute work. Important patterns in this group are: 🔹𝗖𝗼𝗺𝗺𝗮𝗻𝗱: The Command pattern encapsulates a request as an object, thus allowing users to parameterize clients with queues, requests, and operations. 🔹𝗧𝗲𝗺𝗽𝗹𝗮𝘁𝗲 𝗠𝗲𝘁𝗵𝗼𝗱: This pattern defines the program skeleton of an algorithm in a method called template method, which defers some steps to subclasses. 🔹𝗦𝘁𝗿𝗮𝘁𝗲𝗴𝘆: The Strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. Strategy lets the algorithm vary independently from clients that use it. 🔹𝗢𝗯𝘀𝗲𝗿𝘃𝗲𝗿: This pattern defines a one-to-many dependency between objects so that all its dependents are notified and updated automatically when one object changes state. Check out this helpful cheat sheet below. Also, check my full e-book on Design patterns: github.com/milanm/DesignPatt… #technology #softwareengineering #programming #techworldwithmilan #developers
11
291
3
1,217
76,234
Patrick Jaja retweeted
CSS Tip! ✨ It's 2024 and you have a new way to make animated borders 🚀 .glow::after { offset-path: rect(0 100% 100% 0 round var(--radius)); animation: loop; } @​keyframes loop { to { offset-distance: 100%; }} Using the offset-* properties you can animate elements along the perimeter of others 😍 The rect() value gained support in Safari 17.2 🙌 To start, you create an element and put it inside your main element. For example, you put a span inside the button 🤙 <button> <span data-glow /> Click me! </button> Make the element fill its parent with absolute positioning and inset [data-glow] { position: absolute; inset: 0; } Now the good part, you use a pseudoelement on that element and define an offset-path [data-glow]::after { content: ""; offset-path: rect(0 auto auto 0 round var(--radius)); animation: loop 2.6s infinite linear; } With the rect value, you are saying the path fills the parent container: top: 0 right: auto || 100% bottom: auto || 100% left: 0 Then you can use round to make sure the path uses the same radius as whatever the parent has The @​keyframes animation merely animates the offset-distance of that pseudoelement to 100% @​keyframes loop { to { offset-distance: 100%; }} You can see this more clearly in the video 🫶 The offset-* properties also include an offset-anchor property. This allows you to dictate which point of the element follows the path. For example: anchor-offset: 100% 50%; This means that the "right, center" of the element will follow the perimeter of the parent element 🤙 Lastly, the visuals 🎨 For color, you can use a gradient such as a linear gradient to fill the pseudo-element. [data-glow]::after { background: radial-gradient( circle at right, hsl(320 90% 100%), transparent 50% ); } Then clip away everything so you only have the border and can still have translucent backgrounds, etc. Use a mask with mask-composite ✨ A little transparent border trick: [data-glow] { border: 2px solid transparent; mask: linear-gradient(transparent, transparent), linear-gradient(white, white); mask-clip: padding-box, border-box; mask-composite: intersect; } Bit of a long one. Hope you find it useful 🙏 @CodePen link below 👇
Animated gradient border but with my own twist to it, I used offset path to achieve this animation and it resulted in less code than I expected while avoiding some pitfalls that I saw with other solutions. It is a very pleasing visual effect ✨ @CodePen is in the 🧵
22
166
7
1,393
284,059
Patrick Jaja retweeted
Now this is interesting: AWS has just open-sourced their own JavaScript runtime, called LLRT (low-latency runtime). 10x faster startup than Node. Aiming to be WinterCG and Node compatible. github.com/awslabs/llrt
31
214
44
1,607
286,598
Patrick Jaja retweeted
Google Bard is now Gemini. Try Gemini Advanced & Ultra 1.0, Google's most capable AI model yet, now in 150+ countries. Love it on the web! gemini.google.com Now also available natively on Android and iOS. Gemini Advanced handles complex coding tasks like step-by-step tutorials tailored to you, evaluating code approaches, debugging help, brainstorming fresh ideas & generating boilerplate code. The promise of future goodies like expanded multimodal & deeper data analysis abilities highlights Gemini Advanced's potential as a prime developer tool. My team enjoyed a small collaboration on Gemini's underlying training data to improve web dev use-cases and continue to look for feedback. Learn more: blog.google/products/gemini/…
13
58
7
303
51,645
Patrick Jaja retweeted
Early cache expiration Instead of letting a cached item expire (and a user experiencing a very slow request when it recalculates), let the cache system dispatch a message to do it *before*. We do this to refresh vimeo metadata so you don't have to wait. symfony.com/doc/current/cach…
2
22
1
113
7,359
Patrick Jaja retweeted
Frontend developers when a new JavaScript framework comes out
78
401
53
3,984
414,678
Patrick Jaja retweeted
Shopify wrote about all their performance improvements in 2023 (link in the tweet below). Pretty crazy to see GitHub Copilot is writing 20,000 lines of their code every day with almost 1 million in total so far.
8
5
3
61
12,010
Patrick Jaja retweeted
"First do it, then do it right, then do it better." Just start. The journey to success often begins with a single step, but that first step can be the hardest to take. It's easy to get caught up in the fear of failure or the desire for perfection, but I hope this quote I first shared in 2013 can be a reminder of the importance of simply getting started as we go into 2024. Just Start Somewhere "Start slow if you have to. Start small if you have to. Start privately if you have to. Just start." - James Clear Taking that first step doesn't require perfection or immediate mastery. The key is to overcome inertia and take action, as this action will lead to progress, learning, and (if you’re lucky and consistent) ultimately success. When you start, you allow yourself the opportunity to grow, adapt, and move forward. The Power of Starting Beginning a new project or habit often feels daunting. According to psychologists, we tend to overestimate the pain of starting and underestimate our ability to persist. However, studies show that "small starts" predict eventual success better than initial enthusiasm or early progress. This phenomenon is known as the fresh start effect - taking the first step energizes us and bolsters motivation. So focus on starting without putting pressure on perfection. Progress and course corrections will follow. First, Do It: Embrace the MVP Mindset Doing it = get the simplest MVP out. A Minimum Viable Product (MVP) represents the simplest version of a product or idea that allows you to test, gather feedback, and iterate. By embracing this mindset (just get something done - it's OK if rough, a prototype, a draft), you focus on progress over perfection, understanding that getting something out into the world is far more valuable than waiting for the perfect moment. Expand Your Comfort Zone Venturing outside one's comfort zone can elicit fears of failure. Leaning into discomfort not only builds confidence and skills, but research shows it makes us more receptive to learning. Recognize that fear is often the mind's way of urging us to grow. Don't let it stop you from progressing. Then, Do It Right: Refine and Correct Doing it right = fix correctness issues. Once you've taken that first step and put your MVP out into the world, it's time to refine and correct. This stage is about learning from feedback, identifying areas of improvement, and making adjustments accordingly. It's a chance to iterate on your idea, ensuring that it meets the needs of your audience or customers while aligning with your vision. Cultivate Curiosity and Resilience Meeting new challenges with curiosity and resilience makes venturing outside our comfort zone more sustainable and enjoyable. Cultivate curiosity about growth opportunities and your capacity to rise to them. Set mini-challenges to incrementally expand your horizons. When facing inevitable setbacks, avoid self-criticism and tap into resilience - the ability to recover, learn and continue progressing. Self-compassion, adaptability and maintaining perspective are key here. With consistent effort, you build confidence in your ability to start, stumble, learn and work toward mastery. Finally, Do It Better: Strive for Continuous Improvement "Doing it better = iterate towards an ideal end-state (e.g., make it fast)." The journey doesn't end with merely doing it right. The final step is to continuously improve, striving for excellence and growth. By iterating towards an ideal end-state, you demonstrate a commitment to progress, ensuring that your product, idea, or project remains relevant, innovative, and successful. Set New Goalposts As you improve, have a clear idea of when you are “done” or update your goalposts. Elite athletes turn small gains into competitive edges via the aggregation of marginal gains. Identify areas of potential improvement and set measurable stretch goals, from increasing efficiency to enhancing user delight. Overcoming the Greatest Barrier to Progress "The greatest barrier to progress is not lack of resources or talent, but fear of failure." Recognizing that fear of failure is the most significant obstacle in the pursuit of success allows you to confront it head-on. By acknowledging this fear, you can focus on taking that first step, knowing that once the ball starts rolling, it becomes much easier to keep it in motion. Remember that starting is more than half the battle. Don't wait until you feel ready, because the perfect moment may never come. The Bottom Line Rather than striving for perfect execution, embrace the power of starting - put forth an MVP, soft launch an initiative, or set a milestone. Progress begets motivation. By simply starting, you open the door to growth and innovation. The rest will follow. Embrace the power of starting and then iterating until you're happy.
178
744
63
3,918
751,216
Patrick Jaja retweeted
🥳 PHP 8.3 Released! In this new release, we have: ⌨️ Typed Class Constants 🏛️ Dynamic Class Content Fetch ♻️ A New [#Override] Attribute ➕ …and more! 👓 Read all about it on: php.net/releases/8.3/en.php 🔗 php.net/ChangeLog-8#8.3.0 📦 php.net/downloads
66
1,056
156
3,129
406,672
Patrick Jaja retweeted
BREAKING: PHP IS STILL DEAD
18
58
10
276
22,261
Patrick Jaja retweeted
Did you know that PHP has a global function called "file" that reads the lines of the given filename into an array? 🐘
31
38
5
380
44,383
As someone who was attacked online for days after saying that the ESLint rewrite would not be in TypeScript, I can verify that there is a fairly aggressive pro-TypeScript faction online. We need to stop attacking people for language or framework choices. It’s dumb.
57
89
8
936
173,138
Nächstes Level geschafft 🎉 Ich habe Level 6 bei @localguides erreicht, weil ich anderen geholfen habe, die Gegend mit Google Maps zu erkunden. #localguides – at Felanitx, Spain
4
12
Patrick Jaja retweeted
Lmao. why Linux is safer than other oses?
239
2,537
342
16,531
1,758,490