当前位置:网站首页>Why is the first program a programmer writes "Hello world!"
Why is the first program a programmer writes "Hello world!"
2022-06-22 03:27:00 【Embedded software pragmatists】
《 Trisomy 》 There are a lot of people in the novel “ Tiger body one earthquake ” The concept of , For example, this “ Dimension reduction blow ” The concept of . In the novel , The singer threw a... At the solar system “ Two way foil ”, Then the three-dimensional solar system suddenly became a two-dimensional world ……

This is the plot of the novel , And in real life , We have a lot of similar “ Dimension reduction blow ” What happened .
I said, “ Programmers write code ” Is a “ Dimension reduction blow ” What happened , Or more to say “ Dimension reduction creation ” What happened , Do you believe ?
Have you ever thought about it , Why most of the first programs programmers write are output :
“Hello, World!”
instead of “Hello, Kitty!”, Neither “Hello, Program!”?
It looks like “ Ancestral tradition ”, But I think it has a special meaning .

We write code , Is creating a world .
Programmers touch the world , The first thing is to the world Say Hello.
Maybe you think I'm blowing water , Even nonsense .
If you are an Embedded Software Engineer , You will know , Basically all the contents in the chip have an address , One dimensional .

Loaded running program , lie in Flash or ROM in , Is a linear space , Each byte has a unique address ; Where the dynamic variable is located RAM It also has an address ; even to the extent that MCU Internal registers , It also has an address .
not only MCU The space inside is one-dimensional , You write programs in one dimension , Every function that runs , Each line of code , Even every one byte All have unique addresses .

Many engineers who do application software development , I don't know the address that can be operated directly , For example, the following code , I can see that they are stunned :
#define MPU_CTRL 0xE002ED94
*(uint32_t*)MPU_CTRL |= 0x00002000;What I want to say is , This is a one-dimensional world .
You write code to build this one-dimensional world , It can also be understood that , This is a “ Dimension reduction creation ”.
Think about it like this , Programmers are really an awesome and noble profession .
You hold on , Don't spray yet , I know you've been working as a programmer , There are thousands of grass and mud horses running inside , Every minute I want to delete the database and run away .

other !“ Delete the library and run away ” Is a “ Dimension reduction blow ” What happened , Now let's talk about “ Dimension reduction creation ”!

Think , What did you do as a programmer for ? I think , Most of them are probably curious about software , It's a very interesting thing , You can do many amazing things .
therefore , Remain true to our original aspiration , To continue this great cause !
Come back to , Go on to the one-dimensional world of embedded software .
above-mentioned , All target objects in embedded software , Almost all have addresses , It's like living in a one-dimensional world .
Every step of the program , It's like driving the world around .
Step by step , The world is very stable , Follow your every command .
In limine , You carefully let it go step by step , Feel its magical start ;
later , You try to jump in many steps , Experience the pleasure it brings ;
later , You dare try to make it fly , Very exciting !
then , You find it's taking too big a step , Easy to pull eggs .
The pointer , Make you happy and worry !
At this time , You have experienced C The pointer to language , It's a magical thing ,C Language will be eclipsed without pointers , Pointer , And let the world you created be full of countless frustrations ——bug!

Actually , That's not the reason you roast . And those who stink of copper “ Bosses ”, Say this and that to you proudly , From time to time “ The great leap forward ” The idea of the project to sprint the progress of the project , It makes you sick .
therefore , After a long time , The heart begins to breed “ fuck you ”. This is a later story , This article does not discuss this .
Now? , You believe what I say “ Programmers write code ” Is a “ Dimension reduction creation ” It's over , Someone is upset about the boss , Just think about it for a minute “ Delete the library and run away ” Such dimensionality reduction attacks , But the one-dimensional world is innocent .
Some people are upset , He is distorting the one-dimensional world he created , Write a bunch of shitty code .

So many people later , Don't like “ ancestral ” Code for , ha-ha !
Low dimensional creation of the world , It came too soon , It is very slow to show the rules of creating the world .
even to the extent that , Programmers also create chains of disdain .

Many people often ignore coding rules , I also don't like the design method of those rules .
Self programmer , The world created is usually mediocre , Thought is also stagnant .
Programmers need to keep learning . Stagnant programmers are easily eliminated .
Okay , Maybe you'll ask , Why is the world created by programmers “ A one-dimensional ” Of , It's not two-dimensional , The three-dimensional , Even four-dimensional .
What I'm talking about is , Program operation and basic hardware space , Itself is one-dimensional , But you can abstract out two dimensions , A three-dimensional or even four-dimensional world , For example, flat display , 3D animation, etc , These should be considered by human senses , But from this point of view , No problem .
Think again ! A lot of people are worried about , Will our human world be occupied or even ruled by artificial intelligence .
Maybe , Once AI has ideas , That's a terrible thing .
The software world we have worked hard to create , Maybe one day we will have a “ Dimension reduction blow ” 了 .
Google's AlphaGo, adopt “ Deep learning ”, I have defeated the go champion .

The other day , Google employees say ,AI Possessed personality .

I'm afraid to think about it .
I always feel that these are far away from us .
But your cell phone , Your computer , Collect your personal behavior all the time , Analyze your preferences , Recommend the products you may like .
On the other hand , You often click open to read , It is usually the content of a certain aspect , Seems to have been trapped in “ information cocoons ” Inside the .

All of this , Good or bad , Are imperceptibly affecting our lives , Changing the world .
Output from us “Hello, World!” rise , Human beings make continuous progress , Keep evolving , It permeates every corner of the human world , Every minute is changing our world .
these , It's a programmer's masterpiece .
Programmers are really changing the world .
Maybe you can't live without your cell phone ;
No computer , It seems that you can't go on with your work ;
modern society , No software seems to be collapsing .
Programmers incorporate many real-world concepts into the programming world . these , When you write code, you will realize , Even this “ Address ” The concept of , Are from the address of the human world . In a little bit more depth , Observer mode 、 The concept of these design patterns, such as factory pattern , It all comes from human life .
And these , A good idea or point of view , Continuous iteration , Make the software world colorful .
If you create MCU Applets are a world , The software program I created is also a small world , The software he wrote is also a small world , So connect these little worlds , As well as exchange of needed goods , This will form a big world , As the saying goes “ All things connected ” And so was born .

Okay , A colorful world , It's the programmer's creation .
Readers looking at my article , If you just finished the college entrance examination , When you fill in your application , Whether to consider such a noble profession ?
Ha ha ha !

边栏推荐
猜你喜欢

NXP imx8mp learning records

uv_ loop_ Init() process

Project management software development project management

【爬虫笔记1】环境搭建和必要工具Selenium

Scheduling function: Splunk operator Controller Manager
![[nvme2.0b 5] sous - système nvm](/img/4f/e60e62a04e617b2e7858494917f390.png)
[nvme2.0b 5] sous - système nvm

Selenium entry level project - Doudou quiz

Figure data platform solution: cluster deployment

Modèle stratégique

Deep learning final review
随机推荐
selenium入门级项目 - 豆豆玩竞猜
Fastdfs5.0.11 installation
[microservices | Nacos] quickly realize the configuration center function of Nacos, and complete configuration update and version iteration
rabbmitMQ 发布订阅模式<二>
tail的用法
【NVMe2.0b 5】NVM Subsystem
golang并发编程之原子操作详解
opencv安装(x86/tx2 cuda/共享库)
Figure database ongdb release v-1.0.2
Are you a technology manager or a project manager?
【NVMe2.0b 11】NVMe Reset
Using open source software to save an enterprise level map data platform solution
深度学习期末复习
uv_run流程
Typora + picGo 配置图床实现图片自动上传
六、MySQL之数据定义语言(一)
360edr planing
基于logback.xml实现保存日志信息的无感操作
tx2镜像源设置
【leetcode周赛总结】LeetCode第298场周赛总结(6.19)