Avi FlombaumProcode.avi.nyc·Oct 3, 2023Turbo Drag and Drop: Part 2 - Refactor Turbo FramesIn the previous post we built a common UI pattern of a button that reveals a form and on submitting the form, adds the newly created item to a list. We implemented the new playlist functionality using Turbo Frames and just a little bit of Javascript ...Discuss·46 readsturbo frames
Maxi Contierimaximilianocontieri.com·Sep 25, 2023Code Smell 225 - Pass by ReferenceTL;DR: Beware of passing arguments by reference Problems Unexpected Results Side Effects Readability Broken Encapsulation Solutions Pass arguments by copying even large objects. Don't make premature optimizations. Declare variables as consta...Discuss·79 readsCode Smellsrefactoring
Geni Jahoblog.genijaho.dev·Sep 17, 2023Upgrading to Laravel 10, PHPUnit 10, and Pest 2We're upgrading from Laravel 9 to 10, and PHPUnit 9 to 10, and, if all goes well, we'll top it off by migrating to Pest, the latest version. To keep the positive vibes on I'll skip an upgrade from PHP 8.1 to 8.2, just because I don't want to restart ...Discuss·82 readsRectorPHP
Jov Mitjovchem.hashnode.dev·Aug 29, 2023Extract Class RefactoringRefactoring is perhaps a task that we, as developers, are doing the most. Often, we need to create a new type, whether to organize some data or extract a functionality we want to reuse. In both cases, the usual path developers take is to open the pro...Discussrefactoring
Rosius Ndimoforphatrabbitapps.com·Aug 28, 2023Refactoring to Serverless. Improving app performance with Express Step functionsIntroduction Serverless computing is a cloud-based approach to application development that eliminates the need for provisioning and managing servers. Instead, developers focus on writing code that is triggered by events such as HTTP requests or data...Discuss·11 likes·173 readsAWS STEP FUNCTIONSserverless
Maxi Contierimaximilianocontieri.com·Aug 28, 2023Code Smell 222 - Comma OperatorTL;DR: Use comma operator just for loops Problems Readability Hidden Defects Solutions Avoid operator usage Prefer foreach operator Break the sentences Context In JavaScript, the comma operator allows you to evaluate multiple expressions se...Discuss·85 readsCode Smellscode smell
Maxi ContieriforClean Code Cookbookcleancodecookbook.com·Aug 26, 2023Clean Code Cookbook at Product HuntI've launched the book on product hunt. https://www.producthunt.com/posts/clean-code-cookbook I am thrilled to announce the launch of our latest endeavor, the "Clean Code Cookbook," a comprehensive guide to help programmers at all levels master the a...Discuss·36 readsProgramming Blogs
Maxi ContieriforClean Code Cookbookcleancodecookbook.com·Aug 19, 2023Book Code AvailableCode samples from the book are available here https://github.com/mcsee/clean-code-cookbook You can subscribe or clone the repo. I will be adding more code samples and improving them Stay tuned!Discuss·1 like·68 readsbooks
Paul-Sebastian Manolepaulsebastian.codes·Aug 9, 2023FeaturedDon't Repeat Yourself and (Bad) CouplingI've heard and received (even recently, which is what made me write this article) many recommendations to always apply the Don't Repeat Yourself Principle, more commonly known as the DRY principle, even when there are just 2 lines of code that are re...Francesc Travesa and 1 other are discussing this2 people are discussing thisDiscuss·39 likes·584 readsprinciples
Bryan Guillénbryandevideas.tech·Aug 7, 2023Code Smells & RefactoringHave you ever encountered code that you know something's wrong with, but you can't tell exactly what? You just know it looks bad. Or maybe you are getting started in a new team or company and you want to make sense of the codebase, or even improve it...Discuss·5 likes·83 readsrefactoring