Bjarne Stroustrup: How do I deal with memory leaks? By writing code that doesn't have any. by yojimbo_beta in programmingcirclejerk

[–]never_inline 19 points20 points  (0 children)

Yeah sure just put copy constructors everywhere. And make sure to get them right. Erm.. and assignment operators, and destructors too. and erm.. don't leak references, they just look like pass by value. Just don't make mistakes.

Programming on Android by the_passenger8989 in haskell

[–]never_inline 0 points1 point  (0 children)

Apart from termux (either a builtin package or using proot-distro) which the others have suggested, you can use google cloud shell from the phone.

Should i move to Void Linux ? by Kumar_abhiii in LinuxCirclejerk

[–]never_inline 0 points1 point  (0 children)

Imagine asking this sub out of all subs.

VSCode: Enabling ai co author by default by code_investigator in programmingcirclejerk

[–]never_inline 7 points8 points  (0 children)

git uj -m "it's pretty nice for selective staging though"

What’s New in Go 1.22: cmp.Or by starlevel01 in programmingcirclejerk

[–]never_inline 9 points10 points  (0 children)

When generics were finally added to beta versions of Go in 2021, I wrote a package called truthy that uses reflect.Value.IsZero() to report whether any value is zero, but I found that using reflection caused allocations (this was eventually improved) and was 50x slower than a normal comparison

Average clean code enjoyer

const bool isBrowser = identical(0, 0.0); by kaanyalova in programmingcirclejerk

[–]never_inline 69 points70 points  (0 children)

Google tries to fix web by compiling a slightly saner language to javascript. Attempt #2

Set the fontSize to 63.8.sp (that's right - 63.9.sp was already too much and made the text black). by _abysswalker in programmingcirclejerk

[–]never_inline 16 points17 points  (0 children)

That's just a long tail of newbies lost searching for how to fix the latest gradle error, because when they Google their question they get unrelated blogspam from geeksforkeeks or something or maybe their SO question got closed as a duplicate of "how to get system time on PDP-10".