Disclaimer: This question uses some liberal wording to get key ideas across. It's not meant to be academically rigorous, so please try to focus on the ideas and not the exact definitions of the terms used. If you need clarification on something or have suggestions to make the wording clearer I'll...
@jacwah yes. BiPredicate is not as descriptive as TargetFilter and with TargetFilter it is possible to change the interface without having to change it on a billion other places as well (not that it really should change, but if it would need to change)
@jacwah then we can add a negate default method to TargetFilter. I think going back to BiPredicate would be the wrong way to go. As said, BiPredicate is not as descriptive as TargetFilter. Just having custom parameter names there is already a reason to have it. And how fun is it to write BiPredicate<Entity, Entity> really?
I don't think a variable's type needs to convey what it's for, that's why we name them. We could create a FilterDescription type that's a wrapper for StringBuilder, but choose not to.
@jacwah when it has a lot of generics in it, and has a clear and specific purpose, I prefer to extract it to a class. A FilterDescriptionis a String, there's no need to make a specific class for it. And while it might not be necessary to have TargetFilter, I find it more useful to have it.
@Marc-Andre I've been pretty hard to please for the last year or two. I love open world exploration games so I was big on the dead rising series for a while. i used to get addicted to minecraft-alikes but they don't hold my attention anymore. recently i put a few hours into heroes of might and magic 3 on iPad, but that is mostly nostalgia. i play hearthstone a lot still though
that's really cool looking, I want one! :D If you really do want to 3D print something it might be worth checking around town. Some schools may have a 3D printer or a company, if you ask nicely you may borrow thairs/pay them a small fee to use it :)
In Java, I am trying to split on the ^ character, but it is failing to recognize it. Escaping \^ throws code error.
Is this a special character or do I need to do something else to get it to recognize it?
String splitChr = "^";
String[] fmgStrng = aryToSplit.split(splitChr);
You're sitting somewhere... Sirens go, please leave this building immediately, you look into the eyes of the other person, share a laugh... Then think, we should really go :D
> I think this is exactly what ngFitText is for (if we still use that). I think that if we were to put the title in it's own section (a div?) and apply something from ngFitText to it, it would be automatically shrunk to keep it on one line. @Phrancis would have a better of idea of how to use ngFitText.
Loki Astari vs. Simon Forsberg: 2919 diff. Year: -2857. Quarter: -1261. Month: -4. Week: -222. Day: -20.