当前位置:网站首页>[laravel series 8] out of the world of laravel
[laravel series 8] out of the world of laravel
2022-06-29 04:03:00 【Ma Nong Lao Zhang ZY】
Out of the Laravel The world of
Remember what the first article in this series was ? At that time we wrote 《 Get into Laravel The world of 》. In reason , Finished learning , Daily application is more handy , Why should we go out again ?
Another new beginning
For our life , It is a cycle of beginning and ending . At the beginning , We walk in Laravel The world of . I didn't explain the use of each function in depth from beginning to end , There are too many tutorials in these contents , Usually we simply introduce the use of a function , Then start to analyze its source code . You must know , What we want to see more is the design idea of this framework , Including the application of design patterns 、 Organization of code structure 、 Path analysis of the underlying call, etc . In my submission , After understanding these contents , You can look back at the functions that the framework has encapsulated , Will feel very friendly and simple .
This is actually the main reason why you guys recommend learning by reading the source code . But I believe you know the feeling of a person looking at the code , That sleepy , That's silly . therefore , I wrote this series for selfish reasons , I hope to encourage myself to deeply understand the whole by sharing Laravel Framework system . therefore , There will also be various stepping pits when recording video , All kinds of debugging are not smooth and nothing can be found . But I have shared it in a small video before , Video recording is just a way for me to review , Including these articles , I don't expect you to see , And I am not afraid of mistakes and omissions , Having a great God to point it out is the greatest help to me . So most of the time it's just a glance , Have a try , And then start recording , Debugging while recording , Further impression . In fact, when writing articles , It takes far more energy than it takes to record a video . But then again , If these articles and videos can really bring you even a little harvest , So it's a merit , Thank you for your , And thank myself .
There is no end to learning ,Laravel My study is over , Many small partners should also use it in daily business development . What will be the next starting point ? In fact, many PHP Programmers may not have much exposure to high concurrency , After all PHP The applicable scenario is that start-ups can conduct rapid product verification . therefore , Often after reaching a certain scale , Many enterprises will switch to Java And other language environments , For example, the most famous Taobao . Taobao was the first one to buy PHP Mall system , When the scale becomes larger , Directly Sun The technical experts of the company and the big bulls at the time of Taobao's founding changed to Java . It's in 《 This decade of Taobao Technology 》 This book has all talked about .
that ,PHP Can't you do business with high concurrency and large traffic ? I believe many students have blurted out :“Swoole All right !”.
ok , Don't talk nonsense , The next series will write Swoole . however , No source code analysis ,C I can analyze the source code . Let's just learn Swoole Application functions in , And a and Laravel Very similar Swoole frame :Hyperf .
Of course , Not that I left Swoole perhaps Workerman , Native PHP Concurrency sucks . current PHP8 Introduced JIT , coordination OPCache , Coupled with the distributed deployment of multiple machines , In fact, the performance is not bad . however , But again , In some business scenarios , a Swoole Indeed, it can withstand the tradition of several or even dozens of sets PHP The server , This is not nonsense . let me put it another way , Very financial friendly , He is also very friendly to the boss , It's also good for us . Why? ? Without touching the concepts of some traditional compiled languages , I want to raise my technical level to a higher level , It's really hard. ,PHPer We must jump out of the comfort zone !
Laravel Elegant
I still remember that we talked about this problem at the beginning , At the same time, many people on the Internet will say that it is an elegant framework . After this period of study , I believe you have your own answer . Especially during the interview , Can you tell the interviewer exactly where the elegance is ?
Service container 、 The facade 、 Their implementation process is actually very complicated , But it does present us with a feeling of elegance , Variable naming conventions 、 Clear code hierarchy, etc , Not one by one . We can achieve many functions with very little code , So the feeling is more about the structure of the whole frame , Some code is used in a very Java The feeling of . But this also proves a truth , the world will be blessed with harmony and unity , It's not just the language , These frameworks are also getting closer , More and more similar .
If you want to continue to learn some programming ideas , It's time to take a look Java Related framework . The system is more complex , More concepts , But they are all more popular and updated . Whether it is suitable for PHP How about it ? Different people have different opinions , The wise see the wise , It is beyond my ability to give you an answer .
Do you want to learn other frameworks
This... , Which one do you use in your work ? If you use TP perhaps Yii , That in itself is no problem . You can find in these frameworks Laravel The shadow of many implementations in . If you are using Laravel , There's nothing wrong with expanding your horizons . Do not say who copied who , Ideas are open source , You must admit this . Many implementations may have better solutions in other frameworks , We learned that it is also a kind of harvest .
In addition, I have a personal point of view , The most simple , Most convenient , The most used framework should be your main framework . For example, in China ,TP It's really a good choice , adopt Laravel To learn the trend of thought , adopt TP To get the job done and do whatever you want , It is a good plan .
No project tutorials ?
My day ah !( Xiao Yueyue's tone )
I also need to provide specific project tutorials ? I have searched a lot of these things , use Laravel A blogger 、 Shopping mall 、 Do official website tutorials or source code analysis , There is more than enough , And they are all the explanations of the great gods , Never worse than me , It will only be better . But remember , Official documents and actual combat experience are your magic weapons , Those of us CRUD Programmers can design the database well enough to deal with these projects . After all, in the end we are all just doing data operations .
ok , Put a Flag , finish writing sth. Swoole Then we will study together MySQL、Redis、Nginx How about three big pieces ? At that time, we will work together to study what projects to do and how to build the appropriate database and table !
summary
Not much else , Look forward to our next Swoole Let's meet in the series . I hope you have something to gain from this journey , What is more important is to bring some inspiration , If you have anything to say, just leave a message !
边栏推荐
- 科班出身,结果外包都不要
- Remote connection of raspberry pie in VNC Viewer Mode
- Data collection and management [11]
- Does cdc2.2.1 not support postgresql14.1? Based on the pgbouncer connection mode, with 5433
- 女程序员晒出5月的工资条:工资是高,但是真累,网友评论炸锅了
- Data collection and management [2]
- 人大金仓(KingBase)导出表结构
- 高性能限流器 Guava RateLimiter
- leetcode - 295. Median data flow
- Go implements distributed locks
猜你喜欢

Use gstarwmr video conversion for yocto system of i.mx8m development board

数据库和缓存如何保持一致性

Seekbar custom pictures are not displayed completely up, down, left, right / bitmaptodrawable / bitmaptodrawable inter rotation / paddingstart/paddingend /thumboffset

How to keep database and cache consistent

SqlServer如何查询除去整列字段为null的结果

Source code analysis of go redsync distributed lock

Vg4131sxxxn0s1 wireless module hardware specification

Anaconda's own Spyder editor starts with an error

Anaconda自带的Spyder编辑器启动报错问题

技术:如何设计zkVM电路
随机推荐
On June 27, 2022, I have the right to choose the journey of the summer vacation.
科技云报道:混合办公的B面:安全与效率如何兼得?
[tcapulusdb knowledge base] Introduction to tcapulusdb tcapsvrmgr tool (I)
Set hardware breakpoint instruction for ejtag under the PMON of the Godson development board
Kingbase export table structure
Live broadcast preview | neurips special session I & Young Scientists special session
【C语言】详解线程回收函数 pthread_join
赚钱的5个层次,你在哪一层?
PATH 与 LD_LIBRARY_PATH 的用法举例
Technology: how to design zkvm circuit
自己动手搭建一个简单的网站
Data collection and management [11]
MySQL复习资料(附加)case when
pytorch 读写文件
Data statistical analysis (SPSS) [5]
技术:如何设计zkVM电路
How to merge upstream and downstream SQL data records
Logstash starts too slowly or even gets stuck
Call snapstateon closed sou from Oracle CDC
Ling Jing thinks about her own way