![](https://media.kbin.social/media/5d/5c/5d5ce62c5d0b8e6fb7c2a8b3bdbea37acf68529e5fb4e5ba617983d5543dafa1.jpg)
![](https://lemmy.dbzer0.com/pictrs/image/a18b0c69-23c9-4b2a-b8e0-3aca0172390d.png)
In my case, I use a PCI card with an m.2 slot for my OS drive. I lose a PCI slot, but I already had a few to spare.
In my case, I use a PCI card with an m.2 slot for my OS drive. I lose a PCI slot, but I already had a few to spare.
I use a 1tb ssd for the os/apps with my raid5 strictly for storage. Kinda nice if the os needs to be reinstalled or I want to migrate the raid cluster.
You misunderstand, we’re in the mirror universe.
Good point, that is a valid way to do it sometimes, but it’s extremely situational and trying to do that for everything would be absolute nonsense.
I can understand telling you not to use break
and continue
if the point is to teach you to think about different ways to solve problems, but saying it’s because “it makes the code harder to read” is bullshit. Readable code flow is important, but if using those makes your code too hard to read, your problem is most likely that you’ve just written shitty code.
To get really into the technical weeds, what break
and continue
boil down to in the compiled machine code is a non-conditional branch instruction. This is just going to move the execution pointer to a different location in memory. Other keywords, such as if
, elif
, and else
, will compile down to conditional branch instructions. Basically the same thing, but they have the added cost of having to evaluate some data to see if the branch should happen at all. You can achieve the same things with both, but the high level code might need to look different.
For instance, if you’re in a loop, continue
will let you skip the rest of the code in the loop to get to the next iteration. Not a huge deal to instead make the entire code block conditional to skip it. However, the break
keyword will let you exit the loop at any point, which is more complicated to deal with. You would have to conditionalize your code block and force the looping condition to something that would stop it on the next iteration. If you ask me, that has the potential to be much more complicated than necessary.
Also, good luck using switch
without any break
s, but I’m guessing that’s not quite what your teacher had in mind.
In short, just go with it for now. Be creative and find a way to make it work to your teacher’s liking, but always try to be aware of different ways you can accomplish a task. Also, I don’t know what language you’re using, but if you’re in C/C++ or C# and you feel like getting really cheeky, it doesn’t sound like she disallowed the use of goto
. It’s kinda like break
with fewer safeguards, so it’s super easy to write broken code with it.
Listen, I built enough lego bridges back in the day to know I ain’t trusting that.
I always called that the Shapiro technique, but Ramble-swamble is so much better.
There’s a lot to unpack here and I’m not sure I want to.
Israel must be so proud, murdering starving and defenseless people.
Somebody get that poor pig out of there before the car explodes
If anyone demands I implement some feature into one of my open source projects that I either don’t have time for or don’t want to do, my response is one of the following:
But thankfully, my projects don’t have a very wide audience, so requests/demands are rare.
And this is the big long-term problem with Israel’s campaign of open genocide. They don’t care how many innocents are killed as long as they wipe out Hamas, but in the process, they’re inspiring more fanaticism in the region and fueling Hamas and other similar groups. Both Hamas and the Israeli government are terrorist organizations and they have a symbiotic relationship. The only real losers here are the innocent people caught in the middle.
Cool, we desperately need this. Shame it’ll die in the senate.
Seriously, wake me when accountability actually happens.
Physical punishment in schools is still a thing??? I had to endure that back in the 90s, but I thought for sure people would have figured out better ways to discipline kids by now.
Agreed. I keep seeing news outlets trying to turn this into a story, but I just don’t give a flying fuck what two consenting adults do on their own time. All this reporting has done is making me aware that an actual human is running for a political position, so probably not the shock and awe they were going for.
deleted by creator
Listen, I’m sure Mexico will be sending us a check for that border wall any day now.
I do see a decent amount of activity on it. Full disclaimer, I am not a security expert. I know just enough to be dangerous. But, I see at least a few connection attempts from different IPs about every day. The top 3 countries of origin are China, Russia, and Brazil (based on the reverse DNS, but it’s possible some are using VPNs to hide their origin). My impression is they’re all bots that just go through a list of IP addresses, attempting to connect to the standard ssh port, then guessing the username and password. What I’ve found is they usually go through a list of likely ssh ports until one of them connects. Having the default port open to only the honeypot means they usually establish the connection, then leave it at that, so my real ssh port never gets hit. I kinda think of it like scambaiting, where I’m just wasting time they might otherwise spend trying to break into someone else’s real ssh server.
I think French Toast is a great name for the little guy