19/7/22 一个由王者荣耀引发的“惨案”(.NET)

今天因为某些原因下载王者,结果害我删照片从4000删到2000(心痛+累),硬生生挤出来7G。下载过程巨慢,于是去搜搜王者是怎么开发的(想多吐槽一下),结果发现是用的.NET C#写的,顿时感到震惊(小白无地自容)

.NET就是微软用来实现XML,Web Services,SOA(面向服务的体系结构service-oriented architecture)和敏捷性的技术。

  • 接着问题来了,.NET是啥?

.NET Frameworks (pronounced as “dot net”) is a software framework developed by Microsoft that runs primarily on Microsoft Windows. It includes a large class library named as Framework Class Library (FCL) and provides language interoperability (each language can use code written in other languages) across several programming languages. Programs written for .NET Framework execute in a software environment (in contrast to a hardware environment) named the Common Language Runtime (CLR). The CLR is an application virtual machine that provides services such as security, memory management, and exception handling. As such, computer code written using .NET Framework is called “managed code”. FCL and CLR together constitute the .NET Framework.(摘自wiki)

然后按照自己理解就是,.NET是一个允许应用程序通过Internet进行通讯和共享数据的平台,而一个 .NET应用是运行于 .NET Framework的应用程序。(CLR FCL就是直译过来挺好理解)

  • 接着又接触到XML,Web Service,SOA是啥?(小白真的无所畏惧,万事可wiki)

Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.

The term Web service (WS) is either:
(generic) a service offered by an electronic device to another electronic device, communicating with each other via the World Wide Web, or
(specific) a Web service implemented in the particular technology or brand, e.g W3C Web Services.

Service-oriented architecture (SOA) is a style of software design where services are provided to the other components by application components, through a communication protocol over a network.

自己思考后发现WS有点包含XML的意思,XML是程序之间通讯途径针对于计算机和人都可读的,主要用于应用与应用,而WS是计算机与计算机之间的通用数据传输,同样可以应用与应用。SOA则是一种设计模式,看了诺浅博主的见解,举个例子就是开发一个功能,它可以通过接口直接在客户端、移动端使用而不用每一个端写一遍程序。

  • 在WS的wiki下发现了它在罗列HTTP、XML、JSON,这个留给另一篇日记吧。
    (理解有错的还望各位大佬指出)
©️2020 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页