当前位置:网站首页>What code did the full stack programmer write this month?
What code did the full stack programmer write this month?
2022-06-24 11:16:00 【Programmer fish skin】
Guess how many lines ? What languages have you written ?
Hello everyone , I'm fish skin .
How time flies , It's the end of the month again . For programmers , Summary is still very important , I have always kept a habit , At the end of each month, you should check your code statistics for this month , For example, how many lines of code are written 、 What language code has been written 、 What's the percentage, etc .
Now let's take a look ~
No fishing this month
First , I certainly don't do the code statistics myself , It is impossible to count lines of code 、 Then go to the classification ! therefore , I usually look directly at the code submission report provided by the company , According to your monthly code git Submission number , Automatic statistics generation .
For example, the following code submits a language pie chart :
From the pie chart , You can see that I wrote this month 23.58 % Of Java、 Yes 30 % Left and right front ends (TypeScript + JavaScript + CSS)、 Yes 12.67 % Of Markdown、 also 30 % About other languages .
wait ,Others It's something else I can understand , This UNKNOWN What the hell is it ?! I think it's systematic Bug Come on, ha ha .
Are you curious about what other languages have ?
Let me give you some examples , such as Java And some configuration and data exchange files of the front-end project , such as xml、yaml、yml、properties、conf、 json、proto etc. . There are also some script files , image bash Script 、bat Script 、SQL Script etc. . There are also some engineering documents , such as gradle project management , And automatically build the jenkinsfile etc. .
Before, some friends questioned that my work was not the whole stack ( Do everything ), This time I can believe it !
however , It's not that only full stack engineers have to write all kinds of languages . To do a complete project , It is impossible to confine yourself to a programming language , Related technology stacks are like the configuration files mentioned above 、 Data exchange file 、 Script 、 Engineering documents, etc , In fact, every programmer should be familiar with or understand . That's the only way , You can be an engineer , Instead of relying on copy and paste to survive .
Oh, yes. , It seems that most of my code now depends on copy and paste , I put my face here and set off firecrackers ?
This month I wrote a new 1.58 Wan line code , Average daily 500 That's ok , Not a lot . But this will only count the code you finally submitted , That is, after I optimized , So it is estimated that nearly a thousand lines of code will be written every day .
however , It doesn't make much sense to focus on the number of lines of code , Just look good and you're done , It also reflects that I didn't fish very much !
What is the meaning ?
What's the point of looking at your own code statistics ? There are at least three things for me :
1. replay
First , Help me review my work and efficiency this month .
In fact, in the past six months , Most of the time I'm doing research 、 Technology selection and scenario analysis , In addition to writing a lot of code this month , I seldom write code at other times . therefore , When I realized I was writing less code , I would like to spend more time on my own projects after work , Write more code , Don't let yourself be unfamiliar .
There is more code written this month , I will also warn myself not to just indulge in writing code , Become a tool for the project and the boss . I will make myself pay more attention to things outside the code later , For example, business scenarios ; I will also think about whether it really makes sense to write so much code to implement this requirement , Could you change the way .
In addition, I don't know if you pay attention to ,Markdown Document languages account for a percentage of my code this month 12 % about , It also means that I have written a lot of documents recently , Writing more documents is very helpful for the project !
2. future
By analyzing code statistics , Can determine my future focus on learning direction , For example, one month I was working on one Java Implemented projects , Yes 80 % Of Java Code , Then I'll naturally focus on Java On , Take a deep look after work Java Things that are .
3. Fulfillment
Don't underestimate that , Reviewing the amount of code you write can really help you gain a sense of accomplishment , It's like a monster upgrade , See how many monsters you brushed last month 、 How many pieces of equipment have you exploded , This month will be more motivated to rush !
Of course , Writing more code is not necessarily a good thing , Some programmers are crafty , To round up the number of lines , A special line of code is followed by a blank line , The functions written in one line of code are divided into ten lines ! No need, no need .
How to count ?
See here , There must be some students who want to count the number of lines of code they write , Here are a few ways .
1. GitHub
If you use GitHub To manage your code , Can enter the insights panel , You can see the number of submissions in the specified period 、 Number of file modifications 、 Number of code additions and deletions .
2. Editor plugin
Many editors are like WebStorm、IDEA、VSCode etc. , Both provide code line statistics plug-ins , such as JetBrains All in one bucket Statistic plug-in unit .
After installation , You can see the number of lines in each language in the code 、 Percentage and other information .
3. Tools
There are also some off the shelf code statistics tools , such as cloc . Use... On the command line , You can directly analyze local or GitHub Code package on . Support the statistics of code blank lines by language 、 Comment row 、 Number of natural lines, etc , You can also analyze the specified submissions separately .
4. Hard core command
If your git The command is very smooth , You can also write commands directly to count the code , You don't need any tools at all !
But you can tell by the dog's order , This approach is too hard core :
git log --author="_your_name_" --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' -5. Software
There are also some ready-made statistical development software , such as WakaTime, You can flexibly configure your own development indicator kanban , Record your own code work .
Okay , That's what we're sharing , Originality is not easy. , If you think the article is good , hope give the thumbs-up Under the support , Give me some creative motivation .
I'm still developing my Programming navigation ( https://www.code-nav.cn ), A project to help you find programming resources , Welcome to use !
How did I teach myself in college , Get Tencent 、 Byte and other big factories offer Of , You can read this article , No more confusion !
I studied computer for four years , Mutual encouragement !( https://t.1yb.co/q0mS )
边栏推荐
- What is the knowledge map? What does it do
- Qt: 判断字符串是否为数字格式
- Cloud vendor secondary virtualization restrictions
- [net action!] Cos data escort helps SMEs avoid content security risks!
- What is wireless WiFi? What are the benefits of wireless WiFi
- Today's sleep quality record 76 points
- I pushed my younger brother into Tencent. Look at his benchmark resume!
- The record of 1300+ times of listing and the pursuit of ultimate happiness
- Tke deployment kubord
- 腾讯开源项目「应龙」成Apache顶级项目:前身长期服务微信支付,能hold住百万亿级数据流处理...
猜你喜欢

Understanding of homogeneous coordinates

今日睡眠质量记录76分

Shape change loader loads jsjs special effect code

Today in history: Turing's birth day; The birth of the founder of the Internet; Reddit goes online

"Write once, run at all ends", Qualcomm released AI software stack!

Fashionable pop-up mode login registration window

Apple's legendary design team disbanded after jobs refused to obey cook

服乔布斯不服库克,苹果传奇设计团队解散内幕曝光

Fais ce que tu veux.

如何开发短信通知和语音功能医院信息系统(HIS系统)
随机推荐
【毕业季·进击的技术er】绕树三匝,何枝可依?
What is the knowledge map? What does it do
Ppt drawing related, shortcut keys, aesthetics
How to use data analysis tools to deal with emergencies in retail industry
It's so difficult for me. Have you met these interview questions?
如何开发短信通知和语音功能医院信息系统(HIS系统)
2D 照片变身 3D 模型,来看英伟达的 AI 新“魔法”!
[latest in the whole network] how to start the opentsdb source code in the local ide run
Déplacer Tencent sur le cloud a guéri leur anxiété technologique
@RequestBody注解
How to export only the titles in word documents? (i.e. delete all the text contents and keep only the title) stop B
System design: load balancing
What is a voice assistant? What will the future voice assistant look like?
What is wireless WiFi? What are the benefits of wireless WiFi
如何只导出word文档中的标题?(即将正文内容都删除,只保留标题)B站牛逼
【206】使用php语言去生成go语言的代码
Base64 decoding method three ways for non professionals
math_ Summation and derivation of proportional series & derivation of sum and difference of equal powers / difference between two nth power numbers/
The latest entry date of SQL Sever test questions
Clickhouse deployment and basic usage 1