- C# 7 and .NET Core Cookbook
- Dirk Strauss
- 201字
- 2021-07-03 00:11:54
Improvements to literals
This is another minor improvement to the C# language, but one that I'm sure will often be used by developers. One of my first jobs as a young man was working for a logistics company. These folks used to supply parts to Volkswagen, and the most critical parts were flown in by air freight from Germany or elsewhere. I will never forget the 9- and 12-digit shipping numbers the logistics people used to throw around in casual conversation. I wondered how they were able to remember literally hundreds of varying shipping numbers during the course of a year. After listening to them for a while, I noticed that they were saying these numbers with slight pauses after every third number. Even just looking at the 12-digit number 395024102833 is visually taxing. Imagine doing this several times a day, including memorizing the fast movers on the next shipment (I'm not even going to go into the printed shipment manifest, which was a nightmare). It is, therefore, easier to think of the number as 395-024-102-833 and this makes it easier to spot patterns. This is essentially exactly what C# 7.0 now allows developers to do with literals.
- Clojure Programming Cookbook
- JavaScript前端開發模塊化教程
- Java異步編程實戰
- SQL Server 2016從入門到精通(視頻教學超值版)
- CentOS 7 Linux Server Cookbook(Second Edition)
- MATLAB實用教程
- 深入理解Android:Wi-Fi、NFC和GPS卷
- Java SE實踐教程
- C++20高級編程
- SignalR:Real-time Application Development(Second Edition)
- Python+Office:輕松實現Python辦公自動化
- OpenCV 3.0 Computer Vision with Java
- Android初級應用開發
- Java 9:Building Robust Modular Applications
- Tkinter GUI Programming by Example