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·69 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·153 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·71 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·30 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·62 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·37 likes·566 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·80 readsrefactoring
Maxi Contierimaximilianocontieri.com·Aug 2, 2023Code Smell 220 - Return TupleTL;DR: Don't return multiple values. Problems Coupling Missing Abstraction Readability Extensibility Solutions Create a return object grouping the tuple Reify it into an object with cohesion and behavior (not a DTO or Dictionary) Look for ...Discuss·91 readsCode SmellsGeneral Programming
Hooman PegahmehrforApplication Supportappsupport.academy·Aug 2, 2023Tiny PowerShell Project 2 - Recursion and Call Depth OverflowRecursion in PowerShell (and in programming in general) refers to a technique where a function or method calls itself repeatedly until a certain condition is met. It is a powerful programming concept used for solving problems that can be broken down ...DiscussTiny PowerShell ProjectsRecursion