Hmmm did a search for a combo of #gamedev and #cleancode on Bluesky and it only found 4 posts, one of which was mine! You'd think that with software as complex as a game, that good programming practices would be a top concern?! Thoughts?
Hmmm did a search for a combo of #gamedev and #cleancode on Bluesky and it only found 4 posts, one of which was mine! You'd think that with software as complex as a game, that good programming practices would be a top concern?! Thoughts?
In this #devlog I implement a lives system, introduce a crash bug, then fix it & create a web playable version of the game. Next I begin work on a pickups system to score points by collecting food and streamline the entire codebase by #refactoring to use the #Unity event system. https://youtu.be/hrbINTjkdbo #gamedev #buildinpublic #cleancode
Write code as if the next person to read it is a raging psychopath with no patience.
That person may be you three months later.
December 14
#ZenDevAdvent #java #programming #cleancode
if your function is only called in one place, consider inlining it & reducing the total number of method signatures in your module, to help people better understand it
studies show longer methods have fewer bugs per line of code, so favor longer methods over many smaller methods
I have found the most annoying type of source code comment: Questions. Like this:
// What does this code do? Does it even work?
if (someCondition) {
do_stuff();
}
Hey, don't ask me pal, I am just trying to find that out myself...
And I am really starting to think that the "The code is the documentation" people might have a point. That is honestly worrying...
Oh right, my survey on the book "Clean Code" ended. Seven people have participated, six haven't read the book. This is far from being representative but I urge every dev who hasn't read this book to give it a shot. We are drowning in badly made software and one reason is because devs do not care enough about code quality. It's high time we do something about that and if we are honest about it we need to start with our own habits and practices because they produce bad code.
How to Clean your ABAP code in Seconds with ABAP Cleaner https://youtu.be/0mp0FuJV5_k?si=SoddyGgG-2mLNITW via @YouTube #SAP #developer #development #SAPABAP #cleancode #SAPCommunity #SAPChampions
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)
One of my own Code Style rules that help me write clean and easy maintainable code is: the default value of a boolean should always be 'false'.
#Introduction post is in order?
I am a software engineer from Czech republic, so I like to talk about #cleancode, #agile and other things #programming.
And because the best way to learn coding is to make games, I also sometimes do little #gamedev or #pixelart projects.
And currently I am working on a set of handy plugins for pixel art workflow in Gimp!