To anyone saying it’s dumb not to use a forge, have you heard of a little open source project called Linux ? It does not use a forge either
- 16 Posts
- 100 Comments
pcouy@lemmy.pierre-couy.frto Technology@lemmy.world•Decentralization Scoring System (v1.3)English3·3 months agoThere are a few things I don’t like about this scoring system :
- Why is there a “Top Provider Content Share” metric if its gonna score the same as the “Top Provider User Share” every time ?
- Why is the Top Provider Content Share not higher than the user share ? For instance, emails usually have at least one sender and one recipient, making it twice as likely that at least one of them is using gmail. If an email has 10 recipients across 10 different providers, each provider has a copy of the data
- Why is ease of hosting a mail server rated so well ? How is “leveraging email hosting services” decentralized in any way ?
- Why are we using a random repo created a few hours ago by a random github user as a reference ?
pcouy@lemmy.pierre-couy.frto Technology@beehaw.org•I Believe That It's Important For All of Us to Understand What 'Decentralization' Truly Means. Please, Let's Talk About That12·3 months agoSelf hosting emails is a pain, but I’ve been doing it for almost 2 years and I do not have any of these issues. I’m not an expert either, I just thoroughly followed a tutorial to properly configure dmarc, dkim and everything else and everything just works (I just hope I’m not jinxing it by writing this :D )
pcouy@lemmy.pierre-couy.frto Technology@beehaw.org•I Believe That It's Important For All of Us to Understand What 'Decentralization' Truly Means. Please, Let's Talk About That14·3 months agoThere are a few things I don’t like about this scoring system :
- Why is there a “Top Provider Content Share” metric if its gonna score the same as the “Top Provider User Share” every time ?
- Why is the Top Provider Content Share not higher than the user share ? For instance, emails usually have at least one sender and one recipient, making it twice as likely that at least one of them is using gmail. If an email has 10 recipients across 10 different providers, each provider has a copy of the data
- Why is ease of hosting a mail server rated so well ? How is “leveraging email hosting services” decentralized in any way ?
- Why are we using a random repo created a few hours ago by a random github user as a reference ?
pcouy@lemmy.pierre-couy.frto Selfhosted@lemmy.world•Question about what to put on RAID and what to put on NVMEEnglish2·5 months agoAlternatively, if your databases are on a filesystem that supports snapshots (LVM, btrfs or ZFS for instance), you can make a snapshot of the filesystem, mount the snapshot and backup thame database from it. This will ensure the backup is consistent with itself (the backed up directory was not written to between the beginning and the end of the backup)
pcouy@lemmy.pierre-couy.frto Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com•PrivTracker - Private BitTorrent tracker for everyoneEnglish7·6 months agoBecause 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.frOPto Programming@programming.dev•Goodbye SASS, welcome back native CSS2·6 months agoborder-radius: max(0px, min(8px, calc( (100vw - 4px - 100%) * 9999)) );
Oh I missed this. I think it’s only here to showcase doing math between different units, which is really nice in my opinion. I’m thinking about a few instances where I had to resort to dirty JS hacks just because CSS did not support this at the time
pcouy@lemmy.pierre-couy.frOPto Programming@programming.dev•Goodbye SASS, welcome back native CSS4·6 months agoWe 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
Works fine for me. Which OS and browser are you using ?
pcouy@lemmy.pierre-couy.frOPto Programming@programming.dev•Goodbye SASS, welcome back native CSS3·6 months agoI’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.frOPto Programming@programming.dev•Goodbye SASS, welcome back native CSS3·6 months agoIt 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
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
>
)
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
When refactoring, it’s often the “what” that changes, not the “why”
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
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
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.
It’s often a good idea to make the code itself very explicit through verbose function and variable names, rather than writing comments that could lead to inconsistencies between code and comments (by not updating the comments at the same time as the code) (see “Fallacious Comments” from the catalog)
They are both serialization formats that are supposed to be able to represent the same thing. Converting between these 2 formats is used in the article as a way to highlight yaml’s parsing quirks (since JSON only has a single way to represent the
false
boolean value, it makes it clear that theno
value in yaml is interpreted as a booleanfalse
and not as the"no"
string)Anyway, I disagree with your point about YAML and JSON not being interchangeable
Reminds me of the time when I bind mounted my home dir in a chroot, then
rm -rf
ed the chroot when I no longer needed it…