I’ve said it before, but Ctrl+Insert, Shift+Delete, and Shift+Insert for Copy, Cut, and Paste respectively, are underrated keyboard combinations
Die Martin Die
Just a hobbyist programmer.
- 0 Posts
- 11 Comments
Die Martin Die@sh.itjust.worksto Technology@lemmy.world•Companies That Tried to Save Money With AI Are Now Spending a Fortune Hiring People to Fix Its MistakesEnglish12·12 days agoTo be fair, 0.2 + 0.1 = 0.30000000000000004
Die Martin Die@sh.itjust.worksto Technology@lemmy.world•SpaceX's Starship blows up ahead of 10th test flightEnglish601·1 month agoMy feed rn:
Die Martin Die@sh.itjust.worksto Technology@lemmy.world•The Meta AI app is a privacy disaster: Meta's AI App ‘Discover’ Feed Publicly Exposes Private Chats Without Users Knowing.English4·1 month agoSame, except WhatsApp instead of FB Messenger. I had no results trying to convince my family and friends to use other stuff
Die Martin Die@sh.itjust.worksto Programmer Humor@programming.dev•Fox news trying to explain github.6·1 month agoSupposotory*
Derp, I misread.
Kinda.
Lua defines it implicitly only when you use the
function foo:bar(a, b, c) -- note the colon
syntactic sugar, which gets translated to
function foo.bar(self, a, b, c) -- note the period
In all cases,
self
is a regular variable name. You can even redeclare a new local with that name even when the old one is in scope.Edit: some typos
Die Martin Die@sh.itjust.worksto Programmer Humor@programming.dev•Python needs an actual default function14·2 months agoif debug.getinfo(1).what == "main" then -- ... end
Not that you’ll ever use it. No, seriously.
Edit: actually, they are not quite equivalent. This code just checks whether we are outside any function, not necessarily in the main file (i.e. not in a module). I don’t think there’s an equivalent to Python’s
__name__
in stock Lua.
Die Martin Die@sh.itjust.worksto Linux Gaming@lemmy.world•Anyone else find themselves branching out on gaming since being on Linux ?English1·3 months agoDon’t forget:
Edit: format
Die Martin Die@sh.itjust.worksto Programmer Humor@programming.dev•TIL that "nginx" is pronounced "engine-x", and not "n-jinx"1·5 months agoEn-eh hinks (with heavy Spanish accent)
I use febr a rch btw