Des postes

messages de Mmm7777
Side Effects in Flutter: What they are and how to avoid them

Mutating state or calling async code inside the build method can cause unwanted widget rebuilds and unintended behaviour. Here are some examples and rules to follow. https://codewithandrea.com/articles/side-effects-flutter/

3y
How to Parse JSON in Dart/Flutter: The Essential Guide

Learn how to parse JSON and define type-safe model classes that can handle validation, nullable/optional values, and complex/nested JSON data. https://codewithandrea.com/articles/parse-json-dart/

3y
How to Parse JSON in Dart/Flutter with Code Generation using Freezed

Tired of writing JSON parsing code by hand? Here's how to automate this with code generation and the Freezed package. https://codewithandrea.com/articles/parse-json-dart-codegen-freezed/

3y
Flutter Timer vs Ticker: A Case Study

Need a Flutter widget that updates every frame? Here's why using Timer is not a good choice, and why Ticker is a much better solution. https://codewithandrea.com/articles/flutter-timer-vs-ticker/

3y
Flutter: How to Draw a Task Completion Ring with CustomPainter

CustomPainter is often the way to go when we need to draw some custom shapes in Flutter. Let's see how to use it in practice. https://codewithandrea.com/articles/flutter-drawing-with-custom-painter/

3y
How to add Rounded Borders to a Widget in Flutter

In Flutter you can use DecoratedBox to set a lot of decoration/styling options to your widgets. Here's how. https://codewithandrea.com/tips/rounded-border-widget-flutter/

3y
How to quickly generate some fake data when building Flutter UIs

The faker package lets you generate addresses, names, food, dates, sports... you name it! Here's how to use it. https://codewithandrea.com/tips/faker-package/

3y
How to style an ElevatedButton in Flutter

How to style an ElevatedButton in Flutter, including reusing the same style across all buttons with ThemeData. https://codewithandrea.com/tips/elevated-button-style-flutter/

3y
How to build a Chat Messaging UI in Flutter

A simple and elegant approach to build a Chat Messaging UI with DecoratedBox, Align, and Padding widgets in Flutter. https://codewithandrea.com/articles/chat-messaging-ui-flutter/

3y
Flutter TextField Validation: How to work with TextEditingController, Form, and TextFormField

TextField validation is a common problem that can be solved in multiple ways. Here's an interesting approach based on TextEditingController and ValueListenableBuilder. https://codewithandrea.com/articles/flutter-text-field-form-validation/

3y
AsyncValueWidget: a reusable Flutter widget to work with AsyncValue (using Riverpod)

How to create a reusable widget class that helps us when working with asynchronous data from Riverpod providers. https://codewithandrea.com/articles/async-value-widget-riverpod/

3y
Elasticsearch, Teaching PHP, Design Patterns, People, Joe Watkins, and more

Listen to Eric, John, and Oscar discuss the articles in the July 2021 issue, Deep Dive into Search. Topics Covered Using Elasticsearch in an application. Archery (for some reason). Password complexity and entropy. Why you should use a password manager. Eric’s interview with Joe Watkins about Bus Factors. Teaching and mentoring new developers. Rocky Linux, […] The post Elasticsearch, Teaching PHP, Design Patterns, People, Joe Watkins, and more appeared first on php[architect].

https:

Interview with Ken Marks

Eric van Johnson and John Congdon talk to Ken Marks about his article in the July issue, Mentoring and Teaching PHP and his new book PHP Web Development with MySQL Topics Covered How he got started writing and why he wrote a book. How he teaches students to build web applications with PHP and MySQL. […] The post Interview with Ken Marks appeared first on php[architect].

https://www.phparch.com/podcast/interview-with-ken-marks/?utm_source=rss&utm_medium=rss&utm_campaign=interview-with-ken-

Trimming One’s Sails

This month, we look at how to use Algebras from functional programming in PHP, offload tasks to Laravel Horizon, and techniques for writing code you can quickly adapt to any change.If you’re looking for the right person to add to your team or digging through a pile of documents to find the right match, we […] The post Trimming One’s Sails appeared first on php[architect].

https://www.phparch.com/magazine/2021/08/trimming-ones-sails/?utm_source=rss&utm_medium=rss&utm_campaign=t

finally{}: Stepping Through

By Beth Tucker Long Sometimes you need something tried and true, and sometimes you need to escape the daily grind and try something new. I spend a lot of time debugging. I mean, A. LOT. As a consultant, debugging is about 90% of my work, with the other 10% being meetings, or so it seems […] The post finally{}: Stepping Through appeared first on php[architect].

/2021/08/finally-stepping-through/?utm_source=rss&utm_medium=rss&utm_campaign=finally-stepping-through

Interview with Scott Keck-Warren

Eric van Johnson and John Congdon interview Scott Keck-Warren, who wrote an article on Boosting User Perceived Performance with Laravel Horizon, in the August 2021 issue. Topics Covered Getting started programming with QBasic Working with PHP, Laravel, and picking up new languages. Scaling with queues and tasks to send surveys and synchronize data. The benefits […] The post Interview with Scott Keck-Warren appeared first on php[architect].

https://www.phparch.com/podcast/interview-with-sc

Functional PHP, Laravel Horizon, MFA, Testing with Pest, Taylor Otwell, and more

Eric, John, and Oscar sit down to go over the August 2021 issue, Trimming One’s Sails. Topics Covered Grokking algebraic structures and functional programming with PHP Laravel Horizon and diving into worker queues Multi-factor authentication and why you should use add it to your application. Testing with Pest PHP and how it’s different from PhpUnit. […] The post Functional PHP, Laravel Horizon, MFA, Testing with Pest, Taylor Otwell, and more appeared first on php[architect].

h

It’s Really an Upgrade

We often consider improvements from what they’ll cost us, in time, effort, or money, in the short term and undervaluing the long-term benefits we’ll get. We cover practices that look daunting but are worthwhile in this issue, including PHP refactoring tools like Rector, Commands and Queries, PHP Unit, Strategic Domain-Driven Design, Livewire, and more. The post It’s Really an Upgrade appeared first on php[architect].

https://www.phparch.com/magazine/2021/09/its-really-an-upgra

Education Station: PHP is the Worst

By Chris Tankersley I have been programming for nearly twenty years at this point, and I have worked in various languages. At many of my previous jobs, as well as my current one, I have had the pleasure of working with PHP as the core language of my job. Since the first time I started […] The post Education Station: PHP is the Worst appeared first on php[architect].

/2021/09/education-station-php-is-the-worst/?utm_source=rss&utm_medium=rss&utm_campaign=education-station-php-is-the-worst

Upgrading code with Rector, CQRS, Livewire, is PHP the Worst?, and more

Eric, John, and Oscar talk about changes behind the screen and the September 2021 issue, It’s Really an Upgrade. Topics Covered Changes in ownership at php[architect] The Rector project: using it to upgrade and downgrade library code. CQRS: using it to scale database reads and writes. JWTs and Security Livewire and JavaScript front end frameworks […] The post Upgrading code with Rector, CQRS, Livewire, is PHP the Worst?, and more appeared first on php[architect].

https://www.phparch

Interview with Tomas Votruba

Eric van Johnson and John Congdon interview Tomas Votruba, who wrote an article on Why Would Anyone Want to Downgrade Their PHP Code? in the September 2021 issue. Topics Covered Downgrading PHP Code and why this might be a good workflow for you Rector – Instant Upgrades and Automated Refactoring The power of automated refactoring. The post Interview with Tomas Votruba appeared first on php[architect].

https://www.phparch.com/podcast/interview-with-tomas-votruba/?utm_source=rss&utm_medium=