Can my imp familiar still talk when shapshifted (to a raven, if that matters)?

My Great Old One warlock just made third level, and I chose Pact of the Chain. I chose an imp as a familiar initially (recasting find familiar would allow me to change to an ordinary familiar or any of the other special familiars, as well as retrieving the familiar spirit if the physical form is killed), with the intention that the imp would usually remain shapeshifted into the form of a raven — to avoid awkward questions about alignment, for the most part.

That said, the imp is one of the two familiars that can actually speak, both the common tongue and Infernal. Since ravens have been taught to talk (like parrots) for centuries, it wouldn’t be instantly obvious the raven is more than it seems, at least to someone who doesn’t know find familiar themselves. The question is, can the imp still speak when shapeshifted to raven form?

I’m not asking to be able to speak through the familiar — that’s a separate invocation on my wish list for a few levels later. I don’t need the imp to speak to me, of course; we have telepathy for that. But can the imp speak its own words when in the form of a raven?

How to write DRY Unit Tests when order of method calls matters

Suppose I’m writing a calculator engine with a class as follows…

public class ArithmeticExpression {     ArithmeticExpression Add(double operand) { /* ... */ }     ArithmeticExpression Subtract(double operand) { /* ... */ }     // ... other useful operations like division, multiplication, etc.     double ProduceResult() { /* ... */ } }  

… and the goal is to defer evaluation of the expression until ProduceResullt() is called, so that correct order of all stacked operations is maintained.

My question is:

How should I tackle with unit testing this class without getting overwhelmed by the number of combinations of method calls?

It is clear to me that the order of calls should be tested somehow, but writing tests like this:

public void Multiply_CalledAfterAdd_TakesPrecedenceOverAdd() {      // ... } public void Multiply_CalledAfterDivide_EvaluatesLeftToRight() {     // ... } 

can get maddening and out of control quite quickly. And it’s not even about those 16 tests for the four basic arithmetic functions. Suppose in the future I decide to extend the calculator with a modulo operation – that’s 9 almost identical tests more to begin with.

On the other hand – the whole puprose of the class is to keep the order of operations maintained, so it’s got to be verified somehow.

Wrapping up – I know the example is trivial, but it’s a general problem that I struggle to find an answer to. Any help is appreciated, thanks.

TechBlogUp – Technology That Matters

Why are you selling this site?
I need to sell this website as i am not able to get time for it.

How is it monetized?
I have used Adsense on it.

Does this site come with any social media accounts?
Yes a facebook account with 83k followers

How much time does this site take to run?
The site is getting traffic from google but you should start posting articles in order to make it active again.

I am not getting time for this website so thought to sell it.

TechBlogUp – Technology That Matters

Term for an A*-like pathfinding strategy where only the heuristic goal distance matters

I am trying to find a proper term for the A*-like best-first pathfinding strategy where the node to expand next is the one with the least estimated distance from the goal, regardless of its distance from the source.

In best-first search algorithms, the node to expand next is the most promising one according to some evaluation function (which may take into account the current global knowledge). In the normal A* algorithm, the evaluation function is the sum of the length of the currently know shortest path from the source and the heuristic estimate of the distance to the goal. Is there a standard term for a similar strategy where the evaluation function is just the heuristic distance to the goal?

I was thinking about greedy and hill-climbing, but greedy in this context seems to be just a synonym of best-first, and in what is commonly referred to as hill-climbing, there seems to be either no backtracking, or just one-step backtracking, that is, old unexpanded nodes are discarded at each step.

main domain for hosting plan matters for seo or other?

for years for my hosting account one of my domains was main domain (say domain 1) and i had other domains as separate folders under it, say domain 2, domain 3, domain 4 etc… my main website is domain 4, not domain 1. in fact, domain 1 was just a place holder static site with no activity or usage at all.

now i will change my hosting plan and i can choose another domain for main domain in place of domain 1.

should i choose my most active site ( e.g. domain 4) as main domain, and list other sites under it (such as domain 2, domain 3, domain 5 etc…) or even if i choose another inactive domain of mine as main domain it doesnt matter? i just cannot choose domain 1 anymore (dont ask why, it will confuse you unnecessarily)

please answer in terms of SEO, security and performance. i think it doesnt matter what domain i choose as main domain for my hosting, whether most active or an inactive site. am i right?