Login
You're viewing the code4lib.social public feed.
  • Oct 18, 2026, 1:10 AM
    The year is 2026, and websites still use the "you must have 1 of each of these things" as the criteria for passes and then if you do better than that they fail out without telling you why (it's probably because I use spaces)
    "The given value doesn't match the criteria" in red, and then a list of what the password must contain that's all crossed out and written in green to denote that the criteria has been met
    💬 1🔄 0⭐ 0

Replies

  • 💬 0🔄 0⭐ 0
  • Oct 19, 2026, 8:51 AM
    @gemlog Yaknow, I guess I have an equal but opposite value of spaces in (variable|file|etc)names and pass(word|phrase|etc)'s. In the former, gotta avoid if at all possible, avoid unnecessary pain. In the latter, it's a necessary warning pain alerting the user to a high likelihood of poorly-coded security :D
    💬 1🔄 0⭐ 0
  • Oct 19, 2026, 8:54 AM

    @keithzg I do take pains to examine user input,  but I also have a script that I run over dirs  of photos for example. How I use them or where I submit them will all have fewer gotchas without spaces and strange chars. Under scores are still very readable to separate words.

    💬 0🔄 0⭐ 0
  • Oct 19, 2026, 9:12 AM

    @gemlog I adopt a "what's the least-necessary to entirely denote this?" approach to filenaming, so I have avoided formalizing too many details of a personal sanitization scheme, but recently I've been finding myself being given files to interact with named like, FOD 2040_5.2.2._Foam Cake_Angel food cake for 3.txt, and now there's a conundrum! With spaces already acting as a section separator, we're losing semantic data if I just replace every space with an underscore too.

    Which is in part to say, I can understand and accept why some people might want to just skip any such worrying, and that's a valid choice.

    But in another part, I pondered for a long while and never did any better than swapping the existing value separation character from _ to - but yeah you'd better believe there's a file named FOD2040-5.2.2-Foam_Cake-Angel_food_cake_for_3.md sitting in a Git repo

    💬 0🔄 0⭐ 0