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.
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.
That’s it exactly. In addition to over-hiring during COVID, the massive spending spree from a ton of over-inflated, short-sighted acquisitions ever since the IPO absolutely demolished the company’s budget. Cutting Weta Digital was only the tip of this latest iceberg.
Damn near everything in Nier Gestalt/Replicant. That game wrecks me every time I play it.
Excuse you, but Riccitiello retired. Sure, it was at the last minute with absolutely no transition plan ahead of time, but it was totally voluntary and not at all forced by the board!
(/s if it wasn’t obvious)
Late 30s here and I beat that level for the first time very recently. My mind was blown when I learned that was not the final level of the game.
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.
You ever had a deep fried burrito? That shit is life changing and good enough reason for me to keep going.
Well, now I know what cake I want for my next birthday.
He’s feeling sassy today
I’m feeling very called out by this question.
That is great turnaround time, but I hope they aren’t crunching like crazy to get these patches out the door. I’m fine waiting an extra week or two if it means the devs aren’t being worked to the bone.
Which means it’ll probably be training on literally everything you do on the computer and reporting it all back to Microsoft
That sounds roughly accurate from my standpoint. I would love to stay where I’m at, but I’m being forced out by the upcoming RTO mandate. And on top of that, our brilliant executive team is currently chasing the AI trend, putting a bad taste in a lot of people’s mouths here. I think we also still have a hiring freeze mostly in effect except for a very few select positions with the educated guess that another RIF may be coming in the next few months. The whole thing makes me really angry the more I think about it.
I loved Xillia! I keep hoping against all odds they’ll remaster it for modern platforms like Symphonia or Vesperia.
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 have https open along with a non-standard port for ssh. Just for fun, I have the standard ssh port open, but redirecting to a Raspberry Pi running a honeypot. It’s fun to mess with foreign bots trying to access my network.
I’m really happy they’re seeing good demand. Fully upgradable laptops have been a dream of mine for years and I’ve been thinking when it’s time for me to replace mine, the Framework would be at the top of my list.
Control was so good! I found it was a little tough at times, but it maintains the creepy vibes throughout the game. And the more you progress, the more Jesse feels like an absolute badass without undercutting the game’s atmosphere. Just a fantastic game all around.
Top half: Just a baby
Bottom half: Still just a baby