premartinpatrick, to random French
@premartinpatrick@mastouille.fr avatar
phptek, to php

Time for a little spring cleaning? 🧼 🫧 Join Aaron Holbrook at php[tek] 2024 for an exploration into crafting streamlined, sustainable code that stands the test of time. 🧹 Register today! https://tek.phparch.com/

symfonystation, (edited ) to random
@symfonystation@newsletter.mobileatom.net avatar

Reblog via Arnaud Langlande

🚀 Are you still leveraging heavy inheritance in your Object-Oriented Programming (OOP) projects?

🤔 It may be time to reconsider your strategy!

I explain 🧵 👇 [1/3]

🖼️ Image: https://unsplash.com/@gabrielsanchez

https://files.mastodon.social/media_attachments/files/111/935/091/021/418/678/original/09e7f7de3dca423a.jpghttps://newsletter.mobileatom.net/8146-2/

brudibrau, to random
@brudibrau@hostux.social avatar

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...

kaiserkiwi, to webdev
@kaiserkiwi@corteximplant.com avatar

Adding strict ESLint rules to a huge project later is definitely a lot of work. Especially if over 20 people worked on it the last 5 years.

😅 But I guess I'll never get to the point where the Vue 3 update works, if I don't get the code cleaned and consistent first.

Good thing I love refactoring old code. 😁 Some of this stuff is still from 2018 and it really shows.

SonarResearch, to pfSense

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

phpandcigars, to php German

I think the introduction of attributes in was a big mistake. I worked on a project lately, where some people decided that we use in combination with .

This is not a rant against neither of these projects, but we ended up having attribute declarations in entity classes that are way longer than the entity itself.

It is strange, that all the principles just don’t apply any more if a statement starts with an # …

Is this the new normal now?

fazzaro, to random

"In 2004 I wrote an article subtitled 'Nine benefits of making your methods shorter;' I could probably add another dozen today."

https://medium.com/@jlangr/1980-small-functions-6b51d0e43305

klaushaeuptle, to opensource
bitbonk, to random
@bitbonk@mastodon.social avatar

Found this on my hard drive. I think it is from a presentation from @mfowler
from many years back.

The things on the left are bad refactoring. incentives.

lil5, to typescript
@lil5@fosstodon.org avatar

I see people religiously abstaining from the any keyword, and as always being overly pedantic in code is a bad thing:

For example;
let arr = [1,2,null]
let Narr: number[] = arr.filter(n => n !== null)

This would fail tsc without adding “as any as number[]” at the end

gregorni, (edited ) to programming
@gregorni@fosstodon.org avatar
mithfindel, to dotnet
@mithfindel@mastodon.social avatar

Do you know someone who has a good understanding of the ecosystem and who would love a position that blends product development and team leadership? Let's get in touch! We're our future lead developer on SonarLint for

This position is based in Vernier (, ) in a multicultural team (English B2+/C1 is required). Please do feel free to trigger a chat with me to learn more about the product, the team and the company

mithfindel, to dotnet French
@mithfindel@mastodon.social avatar

Je relance ma bouteille à la mer régulière : si vous connaissez des gens qui ont une bonne connaissance de l'écosystème .Net #dotnet et qui ont une affinité pour l'animation d'équipe, faites moi signe ! #JeRecrute On cherche notre futur•e lead dev sur SonarLint pour Visual Studio #CleanCode

Anglais requis (B2+/C1), poste ouvert à Vernier (#Genève, #Suisse). Je peux prendre un peu de temps pour discuter du produit, de l'équipe et de la société si ça intéresse des gens 😇

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

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 ... 💡

SonarResearch, to security

mXSS in Skiff: Check out part two of our blog series on privacy-oriented webmailers!

Read how browser mutations led to a sanitization bypass, putting users' emails at risk:

https://www.sonarsource.com/blog/code-vulnerabilities-put-skiff-emails-at-risk/?utm_source=mastodon&utm_medium=social&utm_campaign=skiff&utm_content=security&utm_term=mofu

SonarResearch, to security

Stolen with Style: Dive into our technical writeup of a complex Cross-Site Scripting vulnerability we discovered in Proton Mail!

Be ready for a story about parser differentials, sandbox bypasses, and CSS data exfiltration:

https://www.sonarsource.com/blog/code-vulnerabilities-leak-emails-in-proton-mail/?utm_source=mastodon&utm_medium=social&utm_campaign=protonmail&utm_content=security&utm_term=mofu

bbelderbos, to python
@bbelderbos@fosstodon.org avatar

New @pybites YouTube video:

Mastering Refactoring: Simplifying Code with the Dictionary Dispatch Pattern
https://youtu.be/bL0Y-aEnlgY?si=wk6iFOyujxvuxU_c

pybites, to python
@pybites@fosstodon.org avatar

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)

1337core, to random German
@1337core@chaos.social avatar

Wer von euch hat Bücher oder Artikel über Clean Code gelesen und damit etwas für den täglichen Programmieralltag mitgenommen? Wenn ja, was genau und warum?

yisraeldov, to random
@yisraeldov@linuxrocks.online avatar

I feel like every video I watch from @davefarley77 I need to share here.

If you care about good software development practices like etc.. subscribe to his videos.

https://youtu.be/aG6yhdQ9mLc

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • ngwrru68w68
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • Durango
  • ethstaker
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • DreamBathrooms
  • Leos
  • osvaldo12
  • tacticalgear
  • cubers
  • cisconetworking
  • anitta
  • provamag3
  • modclub
  • mdbf
  • GTA5RPClips
  • tester
  • megavids
  • normalnudes
  • lostlight
  • All magazines