A practical guide writing less repetitive code in Rust
A practical guide writing less repetitive code in Rust
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
@ConnyDuck This does not make sense at all levels. Spring has a very good readable code base. The code tells its story by itself. Nobody needs comments like this. Just boosts cognitive load for the reader. #ai #enshittification #cleancode #stupidideas
The second edition of Your Code as a Crime Scene by Adam Tornhill is now out of beta and fully released:
https://medium.com/pragmatic-programmers/your-code-as-a-crime-scene-second-edition-210a1e9c96fc
You'll be able to find the print version in about a month on bookshop.org and in local bookstores.
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...
Critical vulnerabilities in pfSense firewall: RCE via XSS and Command Injection!
Find out how SonarCloud discovered these vulnerabilities in our newest blog post:
https://www.sonarsource.com/blog/pfsense-vulnerabilities-sonarcloud?utm_medium=social&utm_source=mastodon&utm_campaign=&utm_content=blog-pfsense-vulnerabilities-sonarcloud-231212-p1&utm_term=ww_en_all_x
(CVE-2023-42325, CVE-2023-42326, CVE-2023-42327)
#vulnerability #pfSense #cleancode
I'm considering contributing my #java expertise to the #mastodon community. I’ve built #backend for enterprise #java #applications for years. I can explain some common mistakes, #cleancode practices, and other #softwaredevelopment topics I used to share with my teammates as a tech lead. Subscribe to #javafridaytips and join me with your tips. Let's grow together!
What do we need content types for anyway?
Let's look into how an incorrect content type led to a real-world vulnerability in the famous business suite Odoo, CVE-2023-1434
https://www.sonarsource.com/blog/odoo-get-your-content-type-right-or-else/
"We find that 74% of R files failed to complete without error in the initial execution, while 56% failed when code cleaning was applied, showing that many errors can be prevented with good coding practices. "
Damn.... I'm sure Python is inthe same ballpark but that's basically saying 1/4 datasets weren't replicable, which means probably not reproducible either.
#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!
@molly0xfff that's just a recipe for disaster and wholesale ignoring the hard earned lessons of #cleancode. Which has been around since almost 15 years?
Moin and Tach, this is my #introduction.
I'm from #greifswald, germany, plan #it-projects and help scientists, advocate for #privacy, #cleanCode, #privacyByDesign and #floss and try to spread my knowledge un-asked. Besides, I also like #singing, make/create #music and #sheetMusic, use #inkscape, #ardour. I work and live with #linux, respect #hackerEthics, listen to #podcasts and do #solder and #tinker.
I hope for great exchange here and look forward to the community :)
Moin and Tach, ich bin quasi #neuhier.
Ich komme aus #greifswald, plane #it-Projekte und helfe Wissenschaftler:innen, setzte mich für #datenschutz, #cleanCode, #privacyByDesign und #floss ein und versuche mein Wissen zu streuen. Außerdem #singe ich, mache #musik und #notensatz, nutze #inkscape, #ardour. #linux muss sein, ich respektiere die #hackerEthik, höre #podcasts und #frickel und #löte gern an Dingen rum.
Ich hoffe hier auf regen Austausch und freue mich auf die Community :)