"based on my personal experience"
submitted by Ancient_Potatoes
https://reddit.com/r/ProgrammerHumor/comments/vgi559/based_on_my_personal_experience/
"How to securely store a password"
submitted by BlommeHolm
https://reddit.com/r/ProgrammerHumor/comments/vh88fn/how_to_securely_store_a_password/
"In Avengers: Age of Ultron, Ultron often mentions there being no strings. This is a subtle nod to the fact that computers only see char arrays."
submitted by MoffKalast
https://reddit.com/r/ProgrammerHumor/comments/vgiagc/in_avengers_age_of_ultron_ultron_often_mentions/
Armchair speculation: how can we learn from Reddit, Lemmy, “Hacker” “News”, et al?
A vote should be part of a reply with at least N
words. N
could be increased by mods and admins. Instances could federate votes conditionally based on the length or activity of a comment. Word counts can be problematic; I don’t know a better alternative (maybe clause-count?). Flagging doesn’t need a minimum word count.
Forums shouldn’t host their own top-level posts and comments. Those should be links from authors’ own websites with microformats (think IndieWeb). The forum should be Webmention-enabled.
Larger communities should have ephemeral chatrooms (“ephemeral” in that public history has a retention limit if it exists at all) to incubate posts. Authors (yes, original authors) could share their work and collect feedback/improve it before it’s “ready”. They could then post with increased visibility.
One reason to flag a top-level comment could be “didn’t look at the post”. I say “look at” instead of “read” because certain posts are huge essays that could take hours to read. Top level commenters should at least be expected to skim.
These qualities will make a forum less active, since the quality of content will be higher and some validation and attention-seeking will be filtered out. Low activity means higher visibility for good content. Forums could “get of the ground” by starting invite-only, gradually enabling these rules one-by-one before opening to the public.
(psst: I might be working on “a thing”).
#POSSE note from https://seirdy.one/notes/2022/06/14/better-vote-enabled-forums/
"That’s hilarious"
submitted by HeartHeartwt
https://reddit.com/r/ProgrammerHumor/comments/ursz6w/thats_hilarious/
Crypto is good.
Oh you're offended? This may be because the term is occupied by currency and blockchain bros to a point where most people do not see any difference any more and start barking.
Crypto is short for cryptography, not for currency, and that's awesome stuff.
Not convinced? Without crypto you get
* No HTTPS
* No "secure" messages
* No password manager
* Your accounts free for the taking - everywhere
* Your messages public - for everyone
Let's see how many bots I can lure out.
"justify-content values"
submitted by shrihankp12
https://reddit.com/r/ProgrammerHumor/comments/urlcz9/justifycontent_values/
"JavaScript be like..."
submitted by RobBegArm
https://reddit.com/r/ProgrammerHumor/comments/urk1g4/javascript_be_like/
Scream lending protocol racks up $35 million in bad debt after hardcoding not-so-stablecoin prices to $1
"jQuery strikes again"
submitted by Averi765
https://reddit.com/r/ProgrammerHumor/comments/upg1m0/jquery_strikes_again/
#Rust help requested. I am officially at wits end here.
Please take a look at my source file sdlstate.rs.
I'm getting a borrow checker error E0597 on line 39, indicating that tc
does not live long enough. However, looking at the sdl2 sources (via its rust-docs), I don't see how my created texture, t
, can possibly still refer to tc
, which as far as I'm aware, is the only way this error can be generated under current conditions.
error[E0597]: `tc` does not live long enough
--> src/sdlstate.rs:39:21
|
14 | impl<'a> SdlState<'a> {
| -- lifetime `'a` defined here
...
39 | let mut t = tc
| _____________________^
40 | | .create_texture(
41 | | Some(sdl2::pixels::PixelFormatEnum::RGBA8888),
42 | | sdl2::render::TextureAccess::Streaming,
43 | | self.width,
44 | | self.height,
45 | | )
| |_____________^ borrowed value does not live long enough
...
49 | self.current_texture.set(Some(t));
| --------------------------------- argument requires that `tc` is borrowed for `'a`
...
56 | }
| - `tc` dropped here while still borrowed
Why is this happening? Why can't I re-arrange the code to prevent this from happening?
Right now, the only way this code will compile and run correctly is if I manually inject the re-paint code where I invoke f(), which utterly defeats the purpose and benefit of using closures in the first place.
In an attempt to fix this, I've tried:
None of these work, and almost always introduce some manner of errors on their own.
Please help. Thanks.
"Leaked footage of a protesting bug"
submitted by MKVD_FR
https://reddit.com/r/ProgrammerHumor/comments/uq7fnm/leaked_footage_of_a_protesting_bug/
So, how do people run their own personal #fediverse instances? What software? Self-hosted or paying for hosting?
To do my part in ensuring the fediverse stays diverse, I think I'd rather not use mastodon. Also, I'd rather not run that kind of bloat on my small homelab when selfhosting
"MemeHere I go again..."
submitted by Averi765
https://reddit.com/r/ProgrammerHumor/comments/uqpn97/memehere_i_go_again/
"You all think it's intentional.."
submitted by yuva-krishna-memes
https://reddit.com/r/ProgrammerHumor/comments/uqd7z7/you_all_think_its_intentional/
I read/write/explore manuals, code, articles and {b,gem,ph,sh,sp}logs.
#dracula (theme) #FOSS #linux #fishshell #gitea #sourcehut
Currently learning go, lua, emacs, and building my own programming language.
Sometimes I might use my pleroma @hedy to react to a toot or take advantage of a pleroma feature. Feel free to follow that account too, but I primarily use mastodon (for now, sorry). You can also go to that profile to see more profile fields, lol.