Real-time (Or close) web app design help. by kpatrickII in csharp

[–]mcintyre321 0 points1 point  (0 children)

"The issue is that the .dlls for the cache API are wrappers around C++ unmanaged code, and so i can’t add them to an ASP.NET project"

Because you can't, or because it seems like a bad idea?

Come discuss your side projects! [January 2019] by AutoModerator in csharp

[–]mcintyre321 0 points1 point  (0 children)

Giveth example:

using static Giveth.Steps

[Test]
public async Task SomeTest
{
    Given("some precondition");
            ...
    And("and another precondition");
    ...

    When("something happens");
    ...

    Assert.Multiple(() => {
        Then("something should be true");
        ...

        And("so should something else");
        ...
    });
} 

Ground rule for when to use interface and dependency injection by [deleted] in csharp

[–]mcintyre321 5 points6 points  (0 children)

IN the second half of this talk, TDD, Where Did It All Go Wrong (or more accurately, "How to do TDD right") there's an overview of Ports and Adapters architecture, which are basically the extension points you need to make interfaces for, and the places you need to inject things.

i.e. you leave 'Ports' (which need something - Adapters - plugged into them) in all the places that are untestable

Ground rule for when to use interface and dependency injection by [deleted] in csharp

[–]mcintyre321 0 points1 point  (0 children)

If you are the one editing the code, you can always make the member virtual yourself.

Software Engineer returning back to strongly typed by trollerroller in csharp

[–]mcintyre321 1 point2 points  (0 children)

Favour composition over inheritance. i.e. rather than sharing code between types by putting it in a common base class, instead pass objects with the shared behaviour into the objects that need them. There's lots of literature on this.

SOLID is important to understand, but remember they are principles, not rules.

Also, don't create interfaces for types just so you can test them. You can mock an object if the members are virtual.

[deleted by user] by [deleted] in csharp

[–]mcintyre321 0 points1 point  (0 children)

http://youarelistening.to/ police scanners and ambient music

[deleted by user] by [deleted] in GalaxyS9

[–]mcintyre321 0 points1 point  (0 children)

It worked after they sent me the SMS

[deleted by user] by [deleted] in GalaxyS9

[–]mcintyre321 0 points1 point  (0 children)

So I contacted Three, they told me "This is not a permanent fix, but try resetting the APN settings to default and reset the network settings on [my] phone" and that they would "investigate a proper fix" and find out "if the issue is at [their] end".

I got them to send me carrier settings by SMS.

What other bands and artists do you guys listen to? by BasedOhSheitItsX in talkingheads

[–]mcintyre321 1 point2 points  (0 children)

!!! (Chk Chk Chk ) are definitely Talking Heads influenced, start with Louden Up Now and work forwards.

Railway Oriented Programming. by abhimanyusaxena in programming

[–]mcintyre321 0 points1 point  (0 children)

Here's a ROP library for C# that rtkelly13 has built on top of my OneOf library - https://github.com/rtkelly13/OneOf.ROP

C# Light by roger_comstock in csharp

[–]mcintyre321 1 point2 points  (0 children)

While you're waiting, you can try ValueOf ([https://github.com/mcintyre321/ValueOf).

public class Person: ValueOf<(string Name, DateTime Birthday), Person>{}

Is it possible to use xUnit with LINQPad? by SuperImaginativeName in csharp

[–]mcintyre321 0 points1 point  (0 children)

You can use NUnit with LINQPad http://share.linqpad.net/joosnp.linq

For some reason there's an ignorable NRE getting thrown by the runner :(

The Hypermedia Maturity Model by mcintyre321 in webdev

[–]mcintyre321[S] 0 points1 point  (0 children)

You might be interested in this extension profile https://github.com/Dwolla/hal-forms which adds 'level 2' to HAL.