New @pybites YouTube video:
Mastering #Python Refactoring: Simplifying Code with the Dictionary Dispatch Pattern
https://youtu.be/bL0Y-aEnlgY?si=wk6iFOyujxvuxU_c
#python #refactoring #cleancode
My inner “clean” coder is very happy to see that making an already small function even smaller made it x4 faster because GCC started to inline it (“Other lessons learned” section).
On the other hand this is something I wouldn’t have expected and it horrifies me.
https://codingnest.com/the-little-things-the-missing-performance-in-std-vector/
What is the #cleancode way to handle loging form different points in the application. Apps tend to be littered with logging calls, but that seems to violate all sorts of #solid and #architecture rules. But we still need to be able to log and many different places
#cleancode #solid #architecture
Is there dead, unused, or duplicate code in your system? It's a hidden time and resource sink. It's time to remove it ruthlessly. #10xSoftwareDelivery #CleanCode
#cleancode #10xsoftwaredelivery
The global developer community is expected to grow significantly this year, with estimates a global workforce of 27.7 million developers. To understand this number, imagine a hypothetical scenario in which each of these programmers writes ten lines of code. The result would be 277 million lines 🙈🤯 of code being made every day, and this doesn't even include the impact of AI tools that create new code.
What Is Clean Code?
Clean code is clear, consistent, structured, testable and tested, reliable and scalable, with minimal bugs and defects. With clean code best practices, developer teams can better manage the state of code including reducing risk related to vulnerabilities in code and extending the lifetime of business applications as a result.
Agree?
https://thenewstack.io/what-is-clean-code/
#CleanCode #DevOpsWorkflow #DeveloperProductivity #TechnicalDebt #DeveloperTools #CodingChallenges #CodeConsistency #Satisfaction #Global #CodeEfficiency #SoftwareDevelopment #Code #Security #Developer #DevOps
#cleancode #devopsworkflow #developerproductivity #technicaldebt #developertools #codingchallenges #codeconsistency #satisfaction #global #codeefficiency #softwaredevelopment #code #security #developer #devops
When is it time to refactor?
Great article by Rob van der Leek:
https://pybit.es/articles/when-to-refactor-your-code/
+ a new tool he built you can add to your pre-commit to get a warning when it's time to refactor (based on function length)
#python #refactoring #cleancode
"Making a graphic lib to encapsulate OpenGL?" why? it's already an api that encapsulate low level gpu stuff, I should just use it directly! It's not like I want to switch it out for another api anyway.
I'm still SOLID, KISS and DRY 'ing all over but somehow I'm realizing that it is less cumbersome and way more readable to use the low level library directly everywhere.
#coding #c #programmation #cleancode
#coding #c #programmation #cleancode
For the past month I've been trying to make a game, but I keep falling in the "making an engine" trap.
I start planning for things I don't even want in the game in case I wish to reuse the code for another project
I'm not even very good in making enigne, I am just trying to make something playable
#coding #c #programmation #cleancode
#coding #c #programmation #cleancode
So I'm getting a bit tired of encapsulating everything and adding tons of abstraction layers for projects ... I work on myself.
I just realize that for the most part these abstraction just aren't necessary!
#coding #c #programmation #cleancode
#coding #c #programmation #cleancode
I've been reading "Clean code" for a bit and while it's been great to continue improving my professional career, I feel that I also need to read something different that does not requires me to take notes every now and then.
A new reason emerges for writing clean code. Better Support by Generative AI
Generative AI is a new technology that can help you write code. It is still in its infancy, but it is already very impressive. From what I saw so far when working with generative AI like GitHub CoPilot clean intention revealing code results in much better support when leveraging generative AI for software development.
#cleancode #tech #softwaredevelopment #news#it #developer #abap #java #javascript #nodejs #python
#cleancode #tech #softwaredevelopment #News #developer #ABAP #java #javascript #nodejs #python
Clean code is it really worth it? #cleancode #softwaredevelopment
https://aytartana.wordpress.com/2023/06/20/clean-code-is-it-really-worth-it/
#cleancode #softwaredevelopment
Amén, de aquí la importancia de intentar hacer código pensando en las personas y no tanto en las máquinas 😊 #developer #cleanCode #readwise
#developer #cleancode #readwise
I've got some results! With my current research, not including clean #code requirements correlates with a higher amount of #CVE s published per year.
I looked at 19 github repositories that are big and have some CVEs.
However!: My N is very low, it's only a seminar. The results aren't very representative. Yet. I may get that topic for my masters thesis, then I'll be able to look at it in more detail.
#code #cve #cleancode #security #software #development
Pybites Podcast 119 - Chris May (@_chrismay) on the importance of refactoring 💡 😍 https://youtu.be/LuyQ_ZTI-jU
Learn about an uncommon & unexplored operation in the context of binary trees: roll (or rolling), which modifies binary tree structures.
https://foojay.io/today/rolling-binary-trees-a-guide-to-common-design-patterns-in-java/
#foojaytip #computerscience #research #datastructures #algorithms #binarytrees #bigoh #designpatterns #solidprinciples #cleancode
#foojaytip #computerscience #research #datastructures #algorithms #binarytrees #bigoh #designpatterns #solidprinciples #cleancode
As an engineer you still need to take care of keeping the code maintainable, readable and testable. Tools can only automatically correct some basic things like code style and formatting.
More details on how to learn those skills leveraging the books, the style guide repository and more can be found in the blog:
https://blogs.sap.com/2022/12/21/clean-code-writing-maintainable-readable-and-testable-code/
#cleancode #software #developer #code
Today I deleted a feature I created 5 years ago to solve a problem that we had. We've created a new better solution with what we learned from the old solution. I didn't feel bad even a little bit deleting the old code.
In software development, it's not just about writing code that works. It's about writing code that is easy to understand, maintain, and evolve over time.
#CleanCode #SustainableDevelopment
#cleancode #sustainabledevelopment