当前位置:网站首页>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 )
边栏推荐
- 今日睡眠质量记录76分
- Any 与 TypeVar,让 IDE 的自动补全更好用
- The nodejs service global timeout callback failed to get process Domain problem
- [Qianfan 618 countdown!] IAAs operation and maintenance special preferential activities
- SwiftUI Swift 内功之 Swift 中的属性观察者 didSet 与 willSet
- Why choose b+ tree as storage engine index structure
- "Write once, run at all ends", Qualcomm released AI software stack!
- Suddenly I thought of the wooden house in my hometown
- What is the function of the graphics card driver? Do you want to update the graphics card driver
- 程序员大部分时间不是写代码,而是。。。
猜你喜欢

喜欢就去行动

2D 照片变身 3D 模型,来看英伟达的 AI 新“魔法”!

Understanding of homogeneous coordinates

图片的可视化呈现有效增强大屏吸引力

"One good programmer is worth five ordinary programmers!"

@Requestbody annotation

Fais ce que tu veux.

Group counting_ Structure and workflow of CPU

喜歡就去行動

Any and typevar make the automatic completion of IDE better
随机推荐
【206】使用php语言去生成go语言的代码
Understanding of homogeneous coordinates
What does ERP system mean
Audio knowledge (III) -- MFCCs code implementation
Mongodb index operation
如何开发短信通知和语音功能医院信息系统(HIS系统)
Oxylabs live online: website capture demo
Maui的学习之路 -- 开篇
把腾讯搬到云上,治愈了他们的技术焦虑
math_等比数列求和推导&等幂和差推导/两个n次方数之差/
The nodejs service global timeout callback failed to get process Domain problem
Google Earth Engine(GEE)—如何新增一个图例在Map面板
MYSQL_ Elaborate on database data types
为什么虚拟机ping的通主机,主机ping不通虚拟机
Self cleaning Manual of mining Trojan horse
Disaster recovery series (II) -- enterprises' one-stop disaster recovery construction with the help of cloud platform?
2008R2 precautions for configuring L2TP pre shared key VPN
RPM installation percona5.7.34
Svg+js drag slider round progress bar
Canvas falling ball gravity JS special effect animation