#cleancode

Temma PHP FrameworkTemma@phpc.social
2025-05-23

Send a Slack notification from a web interface using PHP?

With Temma, it only takes a few lines of code.

๐Ÿ‘‰ Full tutorial here:
temma.net/en/tuto/mini-web2sla

#PHP #Temma #SlackIntegration #WebDev #PHPTips #OpenSource #CleanCode

Vipul Kumarvipulkumarsviit
2025-05-23

Code is read more than it is written.

Youโ€™ll write it once โ€”
But your team will read it again and again.

โœ… Optimize for clarity, not cleverness
โœ… Follow consistent coding styles
โœ… Use meaningful structure and naming
โœ… Write with the reader in mind

Readable code saves hours.
Confusing code costs days.

โ€”โ€”โ€”
โ™ป Share to help others level up their software engineering career.
โž• Join My WhatsApp Channel: lnkd.in/g62_G8Gr
โ€”โ€”โ€”

2025-05-21

Constants or Enums in PHP?

๐Ÿ”น Constants = silent bugs
๐Ÿ”น Enums = strong typing, cleaner code

Your future self will thank you.
๐Ÿ”—Full article: medium.com/@sfmok/10-benefits-

#PHp #Enums #CleanCode #WebDev #PHPZen

2025-05-21

Write LINQ like a pro:

๐Ÿง  Chain with intent
๐Ÿ” Use Where() early
๐Ÿงผ Keep it readable โ€” break long chains
๐Ÿšซ Avoid side effects in selectors
๐Ÿงช Profile when querying large datasets

Clean LINQ = happy code.

#CSharp #dotnet #LINQ #CleanCode #DevTips #softwaredevelopment

Vipul Kumarvipulkumarsviit
2025-05-21

Your future self is your most important teammate.

Todayโ€™s shortcuts are tomorrowโ€™s blockers.
Write code your future self will thank you for.

โœ… Leave meaningful comments
โœ… Name things with intention
โœ… Avoid โ€œjust for nowโ€ hacks
โœ… Document decisions and reasons

Code ages โ€” make it age gracefully.

โ™ป Repost to help others level up their career.
โž• Join My WhatsApp Channel: lnkd.in/g62_G8Gr

Ricardo Antonio Pianaadmin@orwell.fun
2025-05-20
๐Ÿง  Il pattern Strategy e i suoi cugini: guida semiseria per dev in cerca di strategie ๐ŸŽฏ

Hai mai pensato di sostituire i tuoi if annidati con qualcosa di piรน elegante? Il pattern Strategy potrebbe essere la soluzione, ma attenzione: insieme ai suoi "cugini" come State, Template Method e Command, puรฒ trasformare il tuo codice in un'opera d'arte... o in un labirinto.

Scopri come questi design pattern comportamentali possono aiutarti (o complicarti la vita) nella progettazione del software, con esempi pratici e un pizzico di sarcasmo.

๐Ÿ”— https://ciberneticagerber.it/2025/05/19/il-pattern-strategy-e-i-suoi-cugini-manuale-semiserio-per-dev-in-cerca-di-strategie/

#DesignPatterns #StrategyPattern #SoftwareEngineering #CleanCode #Programmazione
2025-05-20

Tip 86 of #TuesdayCodingTips - Extendable logger pattern

I like my logs structured. If nothing else, I can log into a CSV file, load that CSV into Excel, turn on filters, and boom, I have a quite nice log analyzer tool. To get the maximum out of it, I need to be able to split my logs into as many columns as possible.

When creating a library where the user can provide their own logger implementation, you need to be very careful about the logger interface to minimize breaking changes in new library versions. Ideally, you want to be able to add new properties to the log without affecting existing logger implementations.

A typical interface method with one parameter per property won't do - every addition breaks the interface. What I like to do is wrap all loggable information in a struct and pass that to the logger interface instead. This allows me to add new properties with less fuss and evolve my libraries faster!

#cleancode #tips #programming

Code snippet that shows an example of an interface that breaks with every release.Somewhat better interface since all properties are encapsulated in a context struct.
Robert ๐Ÿ‡ฎ๐Ÿ‡ฉ๐Ÿ‡ฎ๐Ÿ‡ท๐Ÿ‡จ๐Ÿ‡ญrobertnicjoo@techhub.social
2025-05-20

๐Ÿ“ฆ Say Hello to Numerix โ€” A Powerful Flutter Package for Numeric Utilities! ๐Ÿ”ข

Looking for a clean, Dart-native solution to handle number formatting, conversion, or numeric logic in your Flutter app?

Check out Numerix โ€” a utility package built to simplify working with numbers in Flutter and Dart.

โœจ What Numerix Offers:

Intuitive number formatting

Easy conversions and calculations

Useful extensions for numeric types

Lightweight, efficient, and developer-friendly

Multi-language formatting is supported

Available on all platforms

Numerix can save you time and boilerplate.

๐Ÿ”— Get started here: pub.dev/packages/numerix

#Flutter #Dart #FlutterDev #Numerix #NumberUtils #MathUtils #DartPackages #FlutterPackages #OpenSource #DevTools #CodeSmart #NumberFormatting #NumericExtensions #NumberConversion #UtilityLibrary #CleanCode #nicxon #ptnicxon #free #package #android #ios #windows #web #linux

Vipul Kumarvipulkumarsviit
2025-05-18

Your code works โ€” but can someone else understand it?

Working code is just the beginning.
Readable code is what keeps teams moving.

โœ… Use descriptive names
โœ… Keep functions short and focused
โœ… Avoid cleverness that confuses
โœ… Write code like youโ€™re telling a story

If itโ€™s hard to read, itโ€™s hard to trust.

โ™ป Share to others level up their career.
โž• Join My WhatsApp Channel: lnkd.in/g62_G8Gr

2025-05-16

"Technical debt is the interest you pay for rushing things." โ€“ Unknown
#TechDebt #CleanCode

Vipul Kumarvipulkumarsviit
2025-05-16

Simplicity scales โ€” complexity breaks.

Itโ€™s tempting to over-engineer.
But simple solutions last longer.

โœ… Start with the simplest approach
โœ… Avoid premature abstractions
โœ… Make it easy to read and change
โœ… Let complexity grow only when needed

Simple code isnโ€™t lazy โ€” itโ€™s smart.

โ€”โ€”โ€”
โ™ป Repost to help others level up their software engineering career.
โž• Join My WhatsApp Channel: lnkd.in/g62_G8Gr
โ€”โ€”โ€”

WeblineIndiaweblineindia
2025-05-14

Writing clean code starts with one simple rule: break big problems into smaller, manageable pieces.
Smaller functions = easier testing, better readability, and fewer headaches later on!

Vipul Kumarvipulkumarsviit
2025-05-14

Write tests not because you donโ€™t trust your code โ€” but because you do.

Testing isnโ€™t a chore.
Itโ€™s a sign of care and confidence.

โœ… Catch bugs before users do
โœ… Document expected behavior
โœ… Refactor without fear
โœ… Build with peace of mind

Good tests make great code sustainable.

โ€”โ€”โ€”
โ™ป Share to help others level up their software engineering career.
โž• Join My WhatsApp Channel: lnkd.in/g62_G8Gr
โ€”โ€”โ€”

Thiago Bomfimthiagobfim
2025-05-13

The key to creating maintainable code: lttr.ai/AdoaE

Vipul Kumarvipulkumarsviit
2025-05-11

Small improvements compound into big wins.

You donโ€™t need massive changes overnight.
Daily habits shape long-term success.

โœ… Refactor small pieces regularly
โœ… Learn one new thing each day
โœ… Write clearer code today than yesterday
โœ… Share knowledge with your team

Tiny steps, taken consistently, lead to mastery.

โ™ป Share to help others level up their career.
โž• Join My WhatsApp Channel: lnkd.in/g62_G8Gr

android4n00bsandroid4n00bs
2025-05-11

๐Ÿค– Codebase Monsters: Tame the Beast!

Is your app's code turning into a chaotic mess? Unmaintainable code slows builds and frustrates teams. Modularization is key โ€” break down your app into smaller, independent modules. Boost reusability, reduce build times, and simplify onboarding. Start small, see big improvements!
๐Ÿ‘‰ More details in Telegram: t.me/android4n00bs

JuanluElGuerre :verified:JuanluElGuerre@hachyderm.io
2025-05-07

I was writing yet another JsonConverter<T>... until I discovered how .NET handles polymorphic serialization with just two attributes ๐Ÿ˜ฒ

Hereโ€™s how I ditched boilerplate & made my APIs cleaner with [JsonPolymorphic] + [JsonDerivedType] ๐Ÿš€๐Ÿ‘‡
wp.me/p29SK-ZB
#DotNet #CSharp #SystemTextJson #WebAPI #CleanCode

Temma PHP FrameworkTemma@phpc.social
2025-05-07

PHP messing with your head?

๐Ÿ”น isset() isnโ€™t what it seems
๐Ÿ”น foreach leaves sneaky refs
๐Ÿ”น Copy-paste = ahead

This thread helps you dodge the worst
๐Ÿ”— Full Article : blog.stackademic.com/10-major-

#PHP #WebDev #CleanCode #CodingTips #PHPZen

JAVAPROjavapro
2025-05-05

Your isnโ€™t a dishwasher. Or is it? Steve Poole breaks the model, builds it backโ€”better. Modern gives you the tools. This article shows you how to wield them. Think sealed. Think smart. Think different.

Dive in: javapro.io/2025/04/30/policy-a

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst