#codesmells — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #codesmells, aggregated by home.social.
-
Code Smells sind Hinweise darauf, dass im Code etwas nicht sauber ist - etwas schlecht riecht. Es geht nicht um Syntaxfehler oder Bugs, sondern um Strukturen, die dich langfristig ausbremsen. Der Code funktioniert vielleicht heute, aber er wird schwerer zu verstehen, zu testen und zu erweitern. Gera
https://magicmarcy.de/code-smells-was-riecht-denn-hier-so-streng
#CodeSmells #Methoden #Logik #Parameter #MagicStrings #MagicNumbers #Programming #Awareness
-
Code Smells sind Hinweise darauf, dass im Code etwas nicht sauber ist - etwas schlecht riecht. Es geht nicht um Syntaxfehler oder Bugs, sondern um Strukturen, die dich langfristig ausbremsen. Der Code funktioniert vielleicht heute, aber er wird schwerer zu verstehen, zu testen und zu erweitern. Gera
https://magicmarcy.de/code-smells-was-riecht-denn-hier-so-streng
#CodeSmells #Methoden #Logik #Parameter #MagicStrings #MagicNumbers #Programming #Awareness
-
Code Smells sind Hinweise darauf, dass im Code etwas nicht sauber ist - etwas schlecht riecht. Es geht nicht um Syntaxfehler oder Bugs, sondern um Strukturen, die dich langfristig ausbremsen. Der Code funktioniert vielleicht heute, aber er wird schwerer zu verstehen, zu testen und zu erweitern. Gera
https://magicmarcy.de/code-smells-was-riecht-denn-hier-so-streng
#CodeSmells #Methoden #Logik #Parameter #MagicStrings #MagicNumbers #Programming #Awareness
-
Send messages only to your direct acquaintances, not their friends. https://hackernoon.com/code-smell-08-send-messages-only-to-your-direct-acquaintances-not-their-friends #codesmells
-
Do you want Infrastructure as Code security? :kubernetes: :github: :microsoft:
Do you use CodeQL to scan your code (which is, btw, free for open source code)?
From today you can use #CodeQL to scan it, using a new open source package written by my team mate @geekmasher
Scan #Terraform, #GitHubActions, #HelmChart, and #AzureBicep, with more in progress.
#IAC #InfrastructureAsCode #SAST #CodeSecurity #CodeSmells #StaticAnalysis #GitHub #AdvancedSecurity
-
Which "CLI options to kwargs" mapping code is the least "smelly"? I realized that my naive implementation creates a new identical Hash on each call to kwargs, which adds overhead when processing multiple values or a file of values and `BusinessLogic.do_stuff(value,**kwargs)` is called on each value. This got me thinking about how to best eliminate duplicate work.
https://gist.github.com/postmodern/bfadfeee86779e8fc9225c122dc65960
#ruby #codesmells -
This week on our @pybites podcast: Code Smells 🎉
I talk about 15 things to look out for in your (and others) code to make it cleaner and more maintainable over time. 🐍 😍
I hope this is helpful for you:
https://pybit.es/articles/write-more-maintainable-python-code-avoid-these-15-code-smells/Happy to hear your thoughts on this ... 💡
#python #cleancode #codequality #codesmells #maintainability #softwaredevelopment #softwaredesign #codingbestpractices #refactoring
-
Who claims „all comments are Code smells“ never had to work with rookie developers. „The code speaks for itself“ only works when the reader has a matching vocabulary #development #codesmells
-
My talk on Primitive Obsession (Your Classes are Too Big) is up on YouTube!
Sign up for my newsletter at https://mycmt.dev to get a copy of the slides and source code.
-
Why do developers resort to flags so much? So many times doing code reviews or just talking with peers, I see developers look at a function that does ALMOST what they want, so they just add a flag to it and turn it on for their special case. These functions quickly turn into unreadable, unmaintainable, mess. How can we educate and teach our communities to be better? #programming #codesmells #discussion
-
Over on Reddit I'm participating in a discussion about code smells. Invariably, the number of lines in a method and the number of methods in a class are mentioned. And I completely and utterly disagree. Here's a copy of my argument agains line counts and method counts. #softwareArchitecture #codeSmells #objectOriented