!GsmxjHfeAYLsTEQmjS:nixos.org

Matrix Meta (Nix)

626 Members
Discuss your proposals for the Matrix space here, before suggesting them in #matrix-suggestions:nixos.org177 Servers

Load older messages


SenderMessageTime
1 May 2025
@emma:rory.gay@emma:rory.gay the @ case isnt really a real case either 15:46:18
@joepie91:pixie.town@joepie91:pixie.townand the @ case is implemented wrong in a very trivial-to-improve way that has nevertheless not been done15:46:23
@joepie91:pixie.town@joepie91:pixie.townso then why is there @-counting code at all?15:46:33
@emma:rory.gay@emma:rory.gay the only part where the @ case is relevant, is if they print the MXID (which was the first iteration of ping spam), which pings user because mxid.contains(user.localpart) == true 15:46:59
@joepie91:pixie.town@joepie91:pixie.townand so there would be something attached to the @ and so you should be checking for that, not just counting isolated @s15:47:42
@emma:rory.gay@emma:rory.gayideally, you'd check for just localparts and displaynames, yes15:48:01
@joepie91:pixie.town@joepie91:pixie.townno, that is not what I said15:48:09
@emma:rory.gay@emma:rory.gay oh, did you mean matching @.*:.*? 15:48:35
@emma:rory.gay@emma:rory.gayaka "is it a valid mxid"15:48:42
@emma:rory.gay@emma:rory.gay * oh, did you mean matching /@.*:.*/? 15:49:03
@joepie91:pixie.town@joepie91:pixie.town yes, that is the kind of thing I am talking about. and if it's not certain that an @ is always followed by an mxid, then it could even be @\B (ie. @ followed by a non-boundary character) 15:49:10
@emma:rory.gay@emma:rory.gayi feel like this would be the most reliable way to handle it, tbh15:49:53
@emma:rory.gay@emma:rory.gayunless you have a bunch of users that just have singular english words as localpart/displayname...15:50:11
@emma:rory.gay@emma:rory.gayat which point, you've been scuntorphe'd15:50:31
@joepie91:pixie.town@joepie91:pixie.town it would be, but the point I was trying to make above isn't that it's suboptimal, because that can easily be responded to with "well I didn't have the time to get it right". the point I was trying to make is that it would've taken like 5 more minutes and zero structural code changes to deal with the low-hanging fruit only by doing a simple regex check, and that even that wasn't done, and that this is a recurring problem with element/matrix core code 15:51:34
@joepie91:pixie.town@joepie91:pixie.town checking against a list of known users would be ideal but even without the resources to implement that (as it involves state management and so is a bit more work), there is still no excuse for the implementation as it exists today 15:52:05
@emma:rory.gay@emma:rory.gay tbh, this is the kind of thing they would definitely accept a PR for 15:52:36
@joepie91:pixie.town@joepie91:pixie.towna PR will not fix this because it is a process problem, not a code problem15:52:52
@joepie91:pixie.town@joepie91:pixie.towncore devs write these bugs into the code faster than you could possibly PR fixes15:53:02
@joepie91:pixie.town@joepie91:pixie.townthat is why things never actually get more reliable15:53:10
@joepie91:pixie.town@joepie91:pixie.town* that is why things never actually get more reliable despite things getting fixed15:53:18
@emma:rory.gay@emma:rory.gayive had more impactful changes merged tbh15:53:23
@emma:rory.gay@emma:rory.gaylike not running an entire machine learning model if your sensitivity is set to 0 anyways15:53:42
@joepie91:pixie.town@joepie91:pixie.town if you simply do not have a culture of trying to get things "as right as possible within the constraints" then you will never get reliable code regardless of how much work other people put into trying to fix it 15:53:55
@joepie91:pixie.town@joepie91:pixie.townand matrix core does not have that culture and that is why everything sucks15:54:15
@joepie91:pixie.town@joepie91:pixie.townit's a negligent approach to software development15:54:34
@joepie91:pixie.town@joepie91:pixie.townthis just happens to be a particularly obvious example of the problem15:54:49
@emma:rory.gay@emma:rory.gaytrue15:55:10
@kfears:matrix.orgKFears (they/them)
In reply to @joepie91:pixie.town
it would be, but the point I was trying to make above isn't that it's suboptimal, because that can easily be responded to with "well I didn't have the time to get it right". the point I was trying to make is that it would've taken like 5 more minutes and zero structural code changes to deal with the low-hanging fruit only by doing a simple regex check, and that even that wasn't done, and that this is a recurring problem with element/matrix core code
I have seen a lot of such code coming from corporate world. Not sure if there's a correlation here
15:58:53
@joepie91:pixie.town@joepie91:pixie.town KFears (burning out): there is; a lot of companies are purely extractive towards their developers, in that they are expected to be 'shipping code' at all times, and they do not get the room to experiment and learn to improve their craft 16:15:23

Show newer messages


Back to Room ListRoom Version: 6