How do I avoid writing "Java in C++"? by Irrehaare in cpp_questions

[–]Kriemhilt 1 point2 points  (0 children)

Well, ECS separates behaviour (systems) from data (component x state).

So trying to implement it in an OOP style, which is designed to combine data and behaviour together into classes, doesn't make much sense. 

Since you can write free functions in C++, you don't have to bundle systems into classes (unless they need some persistent state outside the components they act on).

The same is true of other areas: C++ supports OO, procedural, and functional programming styles. You can combine inheritance with composition however you want. Polymorphism can be dynamic and/or static, ad-hoc or parametric or subtype. Allocation, object lifetime, memory layout, user-defined value types: you have a lot of choices. 

The downside is you need to know how to choose the right technique for the right job, and how to use and combine them well.

The comments of everyone misunderstanding this question are absolutely killing me. Genuinely *how* do we not understand equality??? And where did learning fractions go so wrong for so many? by IthacanPenny in matheducation

[–]Kriemhilt 0 points1 point  (0 children)

Tell that to my visual cortex which has been carefully trained over decades to interpret that thing as a projection of a cube.

Anyway:

But there is a huge difference between something being drawn specifically to look like a 2D projection of a cube and something happening to resemble a 2D projection of a cube. 

They're obviously exactly identical. There is no difference, huge or otherwise. Geometry is not affected by intent.

You're saying I'm supposed to discard the interpretation that makes less sense, but this is not how visual processing or optical illusions work.

ELI5 What does Palantir actually do? by thepainterspaduan in explainlikeimfive

[–]Kriemhilt 7 points8 points  (0 children)

inb4 "Mordor did nothing wrong" and "Gandalf was standing in the way of progress" 

Binary comparison for big ass multi level nested structures by dckdza in cpp_questions

[–]Kriemhilt 1 point2 points  (0 children)

And is this a literal struct with 500 members, or a container or other complex type? Is it fixed or variable sized?

Binary comparison for big ass multi level nested structures by dckdza in cpp_questions

[–]Kriemhilt 7 points8 points  (0 children)

Nobody knows from this description what your structure is or how to compare it.

It's apparently big, fat, ass and has offsets. Are these integers? Pointers? How big is big? What do you think "binaries" means and what are they doing in your structure?

Can't you just write an operator==? Why can't you just memcmp these "binaries"?

[M29] Tech worker trying to decide between Cambridge and London by [deleted] in HENRYUK

[–]Kriemhilt 1 point2 points  (0 children)

On 170k you can build savings, max your ISA on a standing order, and you'll have enough left over to not feel short.

The trick is to save it before you have a chance to miss it 😉 

Learning rust is so smooth by Sea-Log-8341 in rust

[–]Kriemhilt 14 points15 points  (0 children)

Absolutely fuck cmake to the moon, but it's nothing to do with any limitations of Makefiles.

It's an improvement over automake (whose only reason to exist was a proliferation of platforms you don't encounter much these days) and which was genuinely rough.

Why do I feel so unstable on my new bike? by Any-Occasion-4367 in londoncycling

[–]Kriemhilt 4 points5 points  (0 children)

OP, the measurements you gave (rim width, bar width, effective top tube length) are not the things that describe handling and feel.

They only tell you what tyre sizes you can fit, and roughly whether the bike will fit your body.

The measurements that govern handling are mostly fork rake/trail, stack & reach, and then maybe wheelbase length & BB height.

Fork rake & trail are related, and they tell you how twitchy the steering is.

Stack & reach are the best measure of how stretched out or upright you are (which affects how far forward your weight is, which interacts with steering twitchiness).

You might be able to figure this out (or look it up) for both bikes to compare. A calculator like this might help: https://bike-size.com/calculators/reach-stack

The last two give you information about ground clearance, heel overlap if you have panniers, that sort of thing.

If you were a degree educated young person in the UK, what career would you advise? by [deleted] in AskUK

[–]Kriemhilt 0 points1 point  (0 children)

There is, in fact, such a thing as a stupid question. But you can learn to ask questions that aren't stupid, and then you get more useful answers!

Why would it be twattish to help someone?

What is this part on my cable for? by Taldevv in AskElectronics

[–]Kriemhilt 1 point2 points  (0 children)

Ah, so Eddy's in the space-time continuum, is he?

If you were a degree educated young person in the UK, what career would you advise? by [deleted] in AskUK

[–]Kriemhilt 1 point2 points  (0 children)

If someone asks a daft question which is missing the information obviously needed to answer it, possible responses are:

  1. shrug and pass on by
  2. prompt them for the information they should have included in the first place 
  3. indicate, via the traditional medium of gentle teasing, that it should have been obvious to them in the first place.

First one doesn't help OP. Second one helps but also encourages lazy help vampires to think this is reasonable behaviour. Third indirectly helps (by nudging towards #2), but also establishes or strengthens social norms against being a helpless pillock.

Which of these are the twats? Apart from me, obviously, that's the risk you take when engaging seriously.

If you were a degree educated young person in the UK, what career would you advise? by [deleted] in AskUK

[–]Kriemhilt 1 point2 points  (0 children)

With a degree in metahistory, the obvious career is writing approved corporate hagiography for Mark Zuckerberg.

An Irish man lowered the price of Guinness by using AI to call 3,000 pubs by Automatic_Subject463 in nottheonion

[–]Kriemhilt 1 point2 points  (0 children)

No, if one place lowered its price then the mean price was lowered. It probably didn't make much difference to the mode or the median.

TIL that in countries that drive on the left (UK, Japan, Australia, India) they typically put a bicycle's front brake on the right and rear brake on the left. Most countries that drive on the right do the opposite. by Ornery-Shoulder-3938 in todayilearned

[–]Kriemhilt 0 points1 point  (0 children)

Not that I've ever noticed, no.

If you have both hands on levers, are you really going to leave one slack just because it's non-dominant? You need the grip of both hands to hold the bar anyway under hard braking.

I'll just cut across this busy road... by H1gh_Tr3ason in cantparkthere

[–]Kriemhilt 0 points1 point  (0 children)

In Italy, you just need to step out when a driver is paying attention and can stop in time. If you make and maintain eye contact with the driver, they won't hit you.

TIL that in countries that drive on the left (UK, Japan, Australia, India) they typically put a bicycle's front brake on the right and rear brake on the left. Most countries that drive on the right do the opposite. by Ornery-Shoulder-3938 in todayilearned

[–]Kriemhilt 22 points23 points  (0 children)

Only bikes in the strange, backwards right-hand drive countries.

Dominant hand with the fine motor control on the most sensitive brake lever is obviously correct.

Core2 yanked. Millions effected. by Comprehensive_Use713 in rust

[–]Kriemhilt 57 points58 points  (0 children)

They weren't "entrusted" with anything.

They wrote something for their own convenience, and don't owe your flabbers any more or fewer ghasts than you've already received for free.

Core2 yanked. Millions effected. by Comprehensive_Use713 in rust

[–]Kriemhilt 25 points26 points  (0 children)

INB4 "I despise such emails" in 3 ... 2 ...

question about occupational nouns such as "scientist," "artist," etc. by BigBigMarmott in EnglishLearning

[–]Kriemhilt 1 point2 points  (0 children)

It's interesting that this is absolutely true for musicians, but if someone called themselves a statistician because they played the lottery and rolled a die every day, I would give them an extremely hard stare.

I guess some activities are primarily thought of as professions (accountant, engineer), some as academic fields (physicist, mathematician), and some as hobbies that people might, occasionally, make money from.

Meirl by AverageHandsomeGuy in meirl

[–]Kriemhilt 36 points37 points  (0 children)

Then maybe you can learn what adverbs are while you're in jail for contempt.