- Hands-On Design Patterns with Kotlin
- Alexey Soshin
- 253字
- 2021-06-25 20:49:30
Building your own PC
Imagine that you have a shop where you sell PCs.
Regular PC consists of the foll:
- Motherboard
- CPU
- Graphical card
- RAM
Most of your customers don't actually care what components you put in this PC. What they do care about is whether this PC will be able to run Magnificent Pilfering Car 7 at 60fps (which is frame per second).
So, you decide to build it like that:
data class PC(val motherboard: String = "Terasus XZ27",
val cpu: String = "Until Atom K500",
val ram: String = "8GB Microcend BBR5",
val graphicCard: String = "nKCF 8100TZ")
So when a new customer comes in wanting to try out this game everybody is talking about in the neighborhood, you just do:
val pc = PC()
And they are already off toward home, ready to share their newest experiences from MPC7. Actually, your business goes so well that you have one PC just sitting there, ready for the next customer to come in.
But then another customer arrives. And this one is tech savvy. So, frankly, they think that for the games they play, a nKCF 8100TZ graphic card wouldn't be enough at all. They've also read that there's now BBR6 RAM available and they want 16 GB of it. And of course, they want it right away. But they're willing to pay in cash.
That's the moment you wish that you could just modify this PC that's sitting in your warehouse a little, instead of assembling a new one.
- C語言程序設計(第2版)
- Web Application Development with R Using Shiny(Second Edition)
- MATLAB應用與實驗教程
- Java深入解析:透析Java本質的36個話題
- 深度學習:算法入門與Keras編程實踐
- HTML5入門經典
- Hands-On Full Stack Development with Go
- Developing SSRS Reports for Dynamics AX
- Hands-On Kubernetes on Windows
- App Inventor少兒趣味編程動手做
- 零基礎學C語言(第4版)
- Advanced Python Programming
- AMP:Building Accelerated Mobile Pages
- C語言程序設計
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite