But does it really make less sense to say “a string slice”?
That’s an interesting point. You say “a pizza slice” or “a slice of pizza”, but you only say “a slice of bread”, not “a bread slice” (right? I’m not a native speaker).
But does it really make less sense to say “a string slice”?
That’s an interesting point. You say “a pizza slice” or “a slice of pizza”, but you only say “a slice of bread”, not “a bread slice” (right? I’m not a native speaker).
An important question no-one has asked yet is, What do you need that info for?
The key is to not reassign function names to local variables.
const print = obj.toString
print() // gives you a bad time
To be fair, the US thought that there were spies at Los Alamos, and they were right.
Recall stores an image every few seconds. 5 minutes is indeed much worse. Think of all the content they’re missing!
I know, but for most memes a single line of text is insufficient.
50 million users have an extra 3 seconds of unnecessary lag in a day because you wanted to hit tab rather than write code? That’s nearly 5 years of cumulative wasted time.
As if anyone cared if they had to wait a total of 3 seconds in a workday. If it’s a second per user action, we’re talking, but this is some bare-metal CPU wrangler’s take on how ‘efficient’ code should behave; completely disregarding that most users who touch a computer need 5 seconds to type ‘hi’ into MS Teams.
Most engineers already write bloated, abstracted, glacial code that burns CPU cycles like a California wildfire. Clean code? Ha! You’re writing for other programmers’ academic circlejerk, not the hardware.
It’s interesting that everybody else preaches ‘Write for the human first, for the machine second’.
You want real connection to code? You earn that. You dig in. You wrestle with segfaults at 3 in the morning. You pace your apartment muttering about pointer arithmetic. You burn through Handmade Hero until you get it.
Absolutely the best learning happens at 3AM. This guy is selling being overworked to the breaking point as some kind of rite of passage. That’s not working. Or learning. It’s the road to sucking off a 9mm 4 weeks later.
Well, I’ve done that… partially. However, since I’m not a top-1‰ superstar rock-dev, my solutions took several attempts, still make a lot of assumptions, and are generally kinda bad.
Until I’ve reached an actually good boilerplate automator, Copilot has its place.
The pointer itself does not contain the physical address and its value but only communicates the existence of the physical address and its value.
So you’re telling me 0xDEADBEEF
does not contain the physical address of the thing it points to?
Been there, done that. I’ve learned to be very unique in naming my shit.
To track changes to a project. You know, the thing Git has been made for.
A few years ago I found a text (probably as image) where somebody ‘tried’ to run a virus on linux. It went something like this:
Wanted to install a virus on Ubuntu, but it was only available as an aur package. Tried converting. Didn’t work … Tried
make virus
, but didn’t work. Upgraded cmake, tried again, but some libraries were missing.Tried installing libraries, but they were very outdated and I couldn’t find proper versions.
Checked the source to see what the libs were doing and replaced them.
and so on.
Does someone know what I’m talking about and possibly has the source?
To answer the original question, even though @RedWeasel@lemmy.world’s advice really is superior:
All commands that can be executed via your shell must live in your $PATH
or their subdirectories. You could enumerate all files in there, filter by being executable, and run them with the --help
argument.
You can then filter these commands by their exit code. If --help
is a recognized flag, the exit code should be 0
. Otherwise it should be something else. (Running every command blindly might be a bad idea though.)
That Head First about design patterns actually takes heavy inspiration from the Gang of Four. I haven’t read both (only Head First), but I’d wager you don’t need to read GoF if you’ve read Head First.
Only the writing style… is somewhat cringy.
The single most bestest book that I wish my very first programming teacher would’ve hit me over the head with is “Code Complete 2” by Steve McConnell. I’ve only encountered it a few years into my studies, and time and again I thought: I had to figure this out myself!
It’s basically a collection of all the things you can consider, or think about, or do or do differently when programming. Nothing in there is revolutionary, and none of it is something you couldn’t come up with yourself, but I found it immensely helpful to have the content laid out in a structured way.
A commit all by itself doesn’t mean as much without context.
Luckily a commit points to its parent, which means the context is inherently present. What’s your point?
Why would I not want to be able to apply a commit to any arbitrary branch?
Nobody said that.
Any shortcomings it may have aren’t necessarily due to a flaw in git.
True enough.
Massive disrespect for not learning a thing.