Safari is the new IE 2: Revenge of the Linkbait   Leave a comment

marekwmsdn:

Good bye Safari, you are old…

Originally posted on Read the Tea Leaves:

The things I write rarely have broad appeal. I tend to write about weird esoteric stuff like IndexedDB and WebSQL, maybe throwing the normals a bone with something about CSS animations. I’m not some kind of thought-leader.

My „Safari is the new IE” article, however, got sharedincessantly, was picked up by Ars Technica, and attracted the attention of people a lot smarter than me on both sides of the ensuing debate. Having no less than Don Melton call me out on Twitter has pretty much been the highlight of my career so far. It’s been overwhelming, to say the least.

I thoroughly enjoyed the resulting debate, though, and yes, there are valid arguments on both sides. So I’d like to pick up where I left off, and respond to my detractors while doubling-down on my claim that Safari is acting as an anchor in the…

View original 2 117 słów więcej

Posted 8 Lipiec 2015 by marekwmsdn in Bez kategorii

Dependency injection in WCF   Leave a comment

marekwmsdn:

Bardzo ciekawe o połaczeniu WCF z DI

Originally posted on chsakell's Blog:

Dependency injection is a software design pattern that implements inversion of control for resolving dependencies and is highly recommended for building scalable, testable and maintainable applications. In this very blog we have seen many times this pattern, mostly in ASP.NET MVC and ASP.NET Web API related posts where for example dependencies (data repositories or middle services) were injected into MVC constructors. We haven’t seen this pattern though in applications using the Windows Communication Framework. I decided to write this post cause I believe there many interesting things to cover when it comes to „marry” Dependency Injection and WCF. I will divide this post in the following three main areas:

Solution architecture

We are going to build a Service Oriented…

View original 2 116 słów więcej

Posted 6 Lipiec 2015 by marekwmsdn in Bez kategorii

Node zaackeptowane przez MS?   Leave a comment

  1. MS stawia kartę na Node.js jako narzędzie do tworzenie rozwiązań IoT – http://www.infoworld.com/article/2924297/microsoft-windows/windows-10-goes-node-js-in-microsofts-internet-of-things-plan.html. Powstaje Windows IOT Core (na Build 2015 ogłoszono inicjatywę – http://ms-iot.github.io/content/Downloads.htm) podobne do Windows Embedded (ma już 15 lat i na rynku wbudowanych OS w urządzeniach zajmuje 35% rynku) . Mówi się o sforkowaniu node.js przez MS na rzecz komputerów ARM. Są problemy z silnikiem Chakra (Spartan)a V8 (node). Powoli zrównywa się embedded device z IOT. Jedna z potrzebnych funkcji IOT jest integracja z systemami biznesowymi firmy. W blogu http://blogs.windows.com/buildingapps/2015/05/12/bringing-node-js-to-windows-10-iot-core/ opisano jak zacząć pracę z Node.js
  2. 15 ciekawych projektów wykorzystujących Node.js – http://www.infoworld.com/article/2606426/application-development/153472-13-fabulous-frameworks-for-Node.js.html#slide10

Posted 21 Maj 2015 by marekwmsdn in Bez kategorii

Command Pattern   Leave a comment

marekwmsdn:

Kapitalny przykład wzorca Command

Originally posted on Zapiski programisty .net:

Command pattern allows you to encapsulate a command as an object.

Interface ICommand has only one method: Execute. In this place you can also put Undo method if you would like to have this kind of functionality.

    public interface ICommand
    {
        void Execute();
    }

I would like to have possibitity to register person for some kind of training. To do this I am creating RegisterForTrainingCommand class that implements ICommand interface.

 
    public class RegisterForTrainingCommand : ICommand
    {
        private readonly ITraining _training;
        private readonly IPerson _person;

        public RegisterForTrainingCommand(ITraining training, IPerson person)
        {
            _training = training;
            _person = person;
        }

        public void Execute()
        {
            _training.Register(_person);
        }
    }

Once I have possibility to register for training I can also create command for paying for training.

 public class PayForTrainingCommand : ICommand { private readonly ITraining _training; private readonly IPerson _person; private readonly decimal _amount; public PayForTrainingCommand(ITraining training, IPerson person, decimal amount) { _training = training…

View original 254 słowa więcej

Posted 3 Maj 2015 by marekwmsdn in Bez kategorii

English Phrases   Leave a comment

Posted 3 Maj 2015 by marekwmsdn in Bez kategorii

Node.js extension for Visual Studio   Leave a comment

marekwmsdn:

Przyda się do tworzenia aplikacji w jednym środowisku

Originally posted on Zapiski programisty .net:

Node.js plugin for Visual Studio allows you to create Node.js application within the Visual Studio. It supports editing with IntelliSense, debugging and deployment of Node.js projects. It is a free and available for download

View original

Posted 3 Maj 2015 by marekwmsdn in Bez kategorii

JSON formatting in C#   Leave a comment

marekwmsdn:

Pożyteczny kwawłek kodu

Originally posted on Zapiski programisty .net:

If we want to have nice formatted json output in C# we can use Newtonsoft library and write little helper method

static string GetFormatedJson(string input)
{
	var json = JObject.Parse(input);
	return json.ToString();
}

View original

Posted 3 Maj 2015 by marekwmsdn in Bez kategorii

Obserwuj

Otrzymuj każdy nowy wpis na swoją skrzynkę e-mail.

Dołącz do 415 obserwujących.