pcouy

joined 2 years ago
[–] pcouy@lemmy.pierre-couy.fr 6 points 10 months ago

Because you either need an announce URL or publishing your torrent to the DHT for your friends to be able to peer with you.

Seeding copyrighted material using a public announce URL or the DHT will get you in trouble in most western countries.

[–] pcouy@lemmy.pierre-couy.fr 3 points 10 months ago (1 children)

We still see somewhat old browsers, especially from people using Safari on Apple devices (because IIRC it only updates when you update the whole OS). But it's a lot better than it used to be thanks to most browser having auto-updates

[–] pcouy@lemmy.pierre-couy.fr 1 points 10 months ago

Works fine for me. Which OS and browser are you using ?

[–] pcouy@lemmy.pierre-couy.fr 2 points 10 months ago (2 children)

I'm not sure how this relates to the shared post. I'm just searched the article for "radius" and only found one example where a variable is defined then used later. Were you talking about this ? Or can you clarify what "radius calculation" you hate ?

[–] pcouy@lemmy.pierre-couy.fr 2 points 10 months ago

It seems to be working for me, it's weird. I've updated the post with the same URL anyway, and you can try https://scribe.bus-hit.me/@karstenbiedermann/goodbye-sass-welcome-back-native-css-b3beb096d2b4 if that still does not work

[–] pcouy@lemmy.pierre-couy.fr 1 points 10 months ago (1 children)

Do archivebox allow you to full-text search through archived contents ?

I've mostly replaced bookmarking with wallabag, mostly because of the full-text index, but I've been eyeing archivebox for a while because it handles more types of stuff

[–] pcouy@lemmy.pierre-couy.fr 0 points 10 months ago (1 children)

Well it's in the name, they are code smells, not hard rules.

Regarding the specific example you cited, I think that with practice it becomes gradually more natural to write reusable functions and methods on the first iteration, removing the need for later DRY-related refactorings.

PS : I love how your quote for the Rule of Three is getting syntax highlighted xD (You can use markdown quotes by starting quoted lines with > )

[–] pcouy@lemmy.pierre-couy.fr 0 points 10 months ago (1 children)

Let's rephrase my opinion, so that we can (hopefully) agree on something : What I'm arguing against is the "ChatGPT-style" (or "tutorial-style") comments that I've seen all over juniors' code, even before LLMs got widespread

[–] pcouy@lemmy.pierre-couy.fr 4 points 10 months ago (3 children)

When refactoring, it's often the "what" that changes, not the "why"

[–] pcouy@lemmy.pierre-couy.fr 4 points 10 months ago* (last edited 10 months ago) (5 children)

I'm not sure how we disagree. At least, I don't disagree with you. My whole comment was talking about "what" comments. "Why" comments are a very good thing to have where they're needed

[–] pcouy@lemmy.pierre-couy.fr 6 points 10 months ago (7 children)

That's not what I said. I said that comments can often (but not always) be replaced with good and explicit names.

This can be pushed to some extreme by making functions that only get called at a single place in the code, just for the sake of being able to give a name to the code that's inside (instead of inlining it and adding a comment that conveys the same informations as the function's signature)

It's definetly not for everyone, but for beginners/juniors it gives something objective they can aim for when trying to build good coding habits

[–] pcouy@lemmy.pierre-couy.fr 4 points 10 months ago* (last edited 10 months ago)

Apart from the fact that, as another commenter said, "smells" are not "rules", I think most of these points come down to developing good habits, and ultimately save a lot of time in the long run by initially spending some time thinking about maintainability and preventing/limiting technical debt accumulation.

view more: ‹ prev next ›