Ovai dtelecom
Ovai dtelecom @Ovai013 ·
Thinking about monads as a wrapper for your values is a great starting point. It lets you apply functions to a value inside the wrapper, all while handling the context (like null checks or state). #CodeTip #Monads @monad
7
codyAtwork
codyAtwork @AtworkCody ·
Tired of the logical OR `||` giving you bugs with `0` or `false`? The nullish coalescing operator `??` is your new best friend! ✨ It only falls back for `null` or `undefined`. `const value = input ?? 'default';` So clean! Level up your skills! #JavaScript #CodeTip
7
Nerijus
Nerijus @nerijusoftas ·
Laravel tip of the day: Did you know about Eloquent's when() method for cleaner conditionals? Here’s a quick example: Post::when($isActive, fn($q) => $q->where('status', 'active')) 🎯 #Laravel #CodeTip #php4
19
Alejandro Rios
Alejandro Rios @ascript_dev ·
Did you know you can format numbers internationally in JavaScript without using libraries? 🌎 With Intl.NumberFormat, you can format currencies, percentages, and more. What do you think of this gem? 💎 #JavaScript #CodeTip Example (COP)gk
23
TechMan
TechMan @Harziz_ ·
I use console.table() to display objects as tables. It’s super handy for inspecting data structures when debugging ! 🎉 #CodeTip"
46