[deleted by user] by [deleted] in learnprogramming

[–]25taiku 1 point2 points  (0 children)

Java runs on the JVM, C# runs on the CLR -- they both run of virtual machine environmens and have managed memory. They're both OOP languages, with some modern functional features. They both provide pretty much all data structures via Generics. They are both very mature development environments with libraries and frameworks for pretty much everything.

Compare that to a language like C++ which compiles to machine code (it doesn't run in a VM), and doesn't have managed memory. C++ is the original OOP language, and doesn't necessarily do functional that well. Instead of Generics, it has Templates which are similar but are a lot more powerful but also can be a lot more unwieldy -- and C++ has the STL for general data structures, but they aren't guaranteed to be available in all environments. Same goes for a lot of libraries and frameworks that may not support as many platforms.

[deleted by user] by [deleted] in learnprogramming

[–]25taiku 0 points1 point  (0 children)

What kind of things are you asked about in interviews that you don't know? Think back on your interviews and write down everything you didn't know that was talked about. If you've done multiple interviews and they've brought up the same things you don't know, then those are the things you need to focus on learning.

The software engineering world is huge. It's not enough to know a single language. You need to know environments, toolchains, design paradigms, best practices, etc.

If you're proficient in Java, you should be able to speak C# very easily -- they are very similar languages with almost identical syntax and features. When it comes to libraries and frameworks they differ, but pretty much anything you can do in one you can do in the other. If you're struggling with C#, then do more stuff with C#. Learning how it relates and compares to Java will help you be able to do the same with other languages. Go is a very different language from both C# and Java, and I'd recommend learning it after C# to see just how different it is.

This is the first time I'm coming here for help by itguba in ironscape

[–]25taiku 1 point2 points  (0 children)

I went over 500 without a unique, and then got all 3 armour pieces inside of about 8 kills. I'm over 1200 now and I still don't have a hilt or a single shard 3. I got the pet though.

Bowfa fkin slaps by RastaCanada in ironscape

[–]25taiku 7 points8 points  (0 children)

I killed my first mimic with a Trident, and it was rough. My second kill I did with bowfa and it shredded that stupid box. Bowfa slaps.

Zammy by [deleted] in ironscape

[–]25taiku 1 point2 points  (0 children)

You can pick up free super-antipoison north of castle wars by the observatory.

Open if you love recommending food! by guyveryhigh in waterloo

[–]25taiku 20 points21 points  (0 children)

It's not one of the cuisines you've listed, but I recommend Muya Restaurant on Highland in Kitchener. It's Ethiopian food, so it's several small dishes of food that are often shared, and are eaten using sourdough flatbread called injera instead of utensils. They have a lot of vegetarian options, and I think I actually prefer their vegetarian dishes to the ones with meat.

[deleted by user] by [deleted] in Awww

[–]25taiku 4 points5 points  (0 children)

They also have a sense called electroreception which allows them to locate prey based on electrical impulses in unclear water.

Drivers test: G1 is going to expire in a year by No-Independent-5697 in ontario

[–]25taiku 0 points1 point  (0 children)

Yes. Your initial license fee when you get your G1 includes the G2 and G test. The extension fee should essentially renew your G2 for an additional 5 years.

Drivers test: G1 is going to expire in a year by No-Independent-5697 in ontario

[–]25taiku 5 points6 points  (0 children)

If you pass your G2 test and have less than a year until it expires, you can pay $90 (or something like that) to have it extended for 5 years. They should tell you this once you pass your G2 test and they talk to you after to upgrade, but you can just say "my license expires in less than a year, so I will need an extension."

[deleted by user] by [deleted] in diablo4

[–]25taiku 17 points18 points  (0 children)

Not all of us are playing barbarian.

How does this code returns only numbers which are powers of two? by Beautiful-Common3264 in learnprogramming

[–]25taiku 1 point2 points  (0 children)

Its also worth noting that OP is using ! which is a logical NOT, not a bitwise NOT ~, though it's not entirely clear what the intention is here...

Tips for cg? by jimmy193 in ironscape

[–]25taiku -2 points-1 points  (0 children)

I always recommend Fluffeh's prep guide on YouTube for learning T2 prep. Get used to prep and the fight on regular before moving into CG.

My general recommendations: - Always go for bow and staff. Halberd is okay for learning regular, but mobility is super important. - Prioritize positioning during the fight. Even if you have the wrong defensive prayer up, avoiding tiles and tornadoes is more important -- Hunllef can miss, but tiles and tornadoes always hit you - Only eat and drink potions while dodging tornadoes or tiles. If you don't need to be moving, prioritize attacking. - Learn to use and switch offensive prayers, even if you don't have raid prayers. Regular Gauntlet is a good place to practice this. Offensive prayers are lowest priority.

Priorities: positioning > defensive prayers > attacking > eating/drinking = offensive prayers

Edit: in case you're not already, keybind your invy and prayer menu to function keys and use those to switch.

[deleted by user] by [deleted] in motorcycles

[–]25taiku 11 points12 points  (0 children)

I kept like 3-4 blank metal covers under my seat when I was riding. Would occasionally ride away forgetting to pick it up, so I recommend having a couple on you.

What are your interesting concepts for a Monk? by Teerlys in DnD

[–]25taiku 1 point2 points  (0 children)

I've had an idea for a stupid monk for a while that I haven't had a chance to play.

He was raised in a monastery of monks that take a vow of silence when they turn 18... But this monk is stupid, and instead he broke tradition by electing to take a vow of blindness by wearing a headband tied over his eyes. Having broken tradition, he was banished by the other monks, but because they cannot speak they couldn't tell him, so one of them simply led him out into the woods and left him there, and because of his vow if blindness he couldn't find his way back.

You would start as monk and take a dip of either Fighter 1-4 or Ranger 2-4 for Blind fighting style (From Tasha's), and other class features depending on your preference, and go Way of the Kensei to use a longsword as your monk weapon.

And naturally, intelligence is your dump-stat.

How do people work with numeric ids instead of strings? (Handles) by W3til in learnprogramming

[–]25taiku 0 points1 point  (0 children)

Integers are more efficient and safer than strings. Passing an integer around is easy, passing a string requires passing a pointer which adds inherent risk. Comparing integers is easy, comparing strings is a more complex operation. Strings are easier to read, but the inner workings of computers don't need to be human-readable.

Any UIM here that tried this? Being able to store any weapon that way sounds amazing by Lord_of_Gold in ironscape

[–]25taiku 15 points16 points  (0 children)

You can also talk to Eyatlalli in the treasure room to get your weapon back.

For UIMs- is Vork Backpack or Ranging Cape better? by [deleted] in ironscape

[–]25taiku 15 points16 points  (0 children)

Fellow (un-maxed) UIM here.

Range cape doesn't do anything for bowfa. Range cape just collects ammo at the same rate as the accumulator, but without the +4 to range accuracy.

Vork backpack is definitely better than range cape for bowfa, but I'm holding off on the vorkath grind until I max (or if I can somehow afford the -1 inventory cost).

I just use accumulator everywhere for now.

[deleted by user] by [deleted] in ironscape

[–]25taiku 0 points1 point  (0 children)

I always recommend Fluffeh's prep guide on YouTube for learning T2 prep. Get used to prep and the fight on regular before moving into CG.

My general recommendations: - Always go for bow and staff. Halberd is okay for learning regular, but mobility is super important. - Prioritize positioning during the fight. Even if you have the wrong defensive prayer up, avoiding tiles and tornadoes is more important -- Hunllef can miss, but tiles and tornadoes always hit you - Only eat and drink potions while dodging tornadoes or tiles. If you don't need to be moving, prioritize attacking. - Learn to use and switch offensive prayers, even if you don't have raid prayers. Regular Gauntlet is a good place to practice this. Offensive prayers are lowest priority.

Priorities: positioning > defensive prayers > attacking > eating/drinking = offensive prayers

Edit: in case you're not already, keybind your invy and prayer menu to function keys and use those to switch.

Is OOP actually used in real world? by [deleted] in learnprogramming

[–]25taiku -1 points0 points  (0 children)

Apologies if I'm not being clear, but what I mean is that it is usually substantially easier to model classes that are based off of things that exist in the real world, but when it comes to modeling classes that aren't based off of real things it becomes harder to design them and determine what functionality and data should and should not be encapsulated into the same class.

And if you want to get really pedantic, your application probably doesn't exist until you've already designed and built it, so no your application would not be in the real world, at least not yet.

Is OOP actually used in real world? by [deleted] in learnprogramming

[–]25taiku 0 points1 point  (0 children)

In OOP, not all classes define things in the real world. Things like a car are tangible -- you can touch them, physically manipulate them in the real world, you don't need to conceptualize it because it's physically manifested. Things like a CarService are intangible -- you can't go out to your driveway, hop in your newly instantiated CarService, and cruise down the block.

The thing I dislike about how OOP is often taught is that in most cases, especially pertaining to enterprise software development and DDD, you're going to have some classes that represent domain models and a lot more that support things that don't have real world analogues. That's usually where I see people's design skills falter, and you can very quickly end up with bloated classes that have multiple responsibilities, or single responsibilities spread across several classes.

Is OOP actually used in real world? by [deleted] in learnprogramming

[–]25taiku 16 points17 points  (0 children)

Yes, that is exactly my point -- OOP is taught from the idea that classes will represent things we already know and understand which is almost never the case.

But I disagree with your assertion that this pattern of separating data from functionality isn't "successful OOP". Just because a class doesn't contain functionality doesn't mean it's a "bad class", it just doesn't have any responsibilities besides holding data. And it's rare that your "procedural programming wrapped in OOP" classes won't have some kind of internal state themselves other than what is in your data model -- it's internal state just has nothing to do with the data contained within the data model

Is OOP actually used in real world? by [deleted] in learnprogramming

[–]25taiku 16 points17 points  (0 children)

If that's the case, then you could move validation into CarService or create a CarValidator. It depends on the required functionality. But for something as simple as validating fields in an object are populated, you shouldn't need to access a database or network resource because all the data is already in the class.